Home
last modified time | relevance | path

Searched refs:bytesAsInt (Results 1 – 2 of 2) sorted by relevance

/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmComputeShaderTestUtil.hpp110 deInt32* const bytesAsInt = reinterpret_cast<deInt32*>(&bytes.front()); in getBytes() local
114 case OPATOMIC_IADD: bytesAsInt[0] += inputInts[ndx]; break; in getBytes()
115 case OPATOMIC_ISUB: bytesAsInt[0] -= inputInts[ndx]; break; in getBytes()
116 case OPATOMIC_IINC: bytesAsInt[0]++; break; in getBytes()
117 case OPATOMIC_IDEC: bytesAsInt[0]--; break; in getBytes()
118 case OPATOMIC_LOAD: bytesAsInt[ndx] = inputInts[ndx]; break; in getBytes()
119 case OPATOMIC_STORE: bytesAsInt[ndx] = inputInts[ndx]; break; in getBytes()
120 case OPATOMIC_COMPEX: bytesAsInt[ndx] = (inputInts[ndx] % 2) == 0 ? -1 : 1; break; in getBytes()
131 deInt32* const bytesAsInt = reinterpret_cast<deInt32*>(&bytes.front()); in getBytes() local
133 bytesAsInt[ndx] = inputInts[ndx] % 2; in getBytes()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDecodeUtf8Test.java178 private void assertInvalid(int... bytesAsInt) throws Exception { in assertInvalid() argument
179 byte[] bytes = new byte[bytesAsInt.length]; in assertInvalid()
180 for (int i = 0; i < bytesAsInt.length; i++) { in assertInvalid()
181 bytes[i] = (byte) bytesAsInt[i]; in assertInvalid()