Lines Matching refs:x
37 uint8_t *x = (uint8_t *) raw;
39 x[i] = (uint8_t) i;
47 r = mbedtls_get_unaligned_uint16(x + offset);
50 r = mbedtls_get_unaligned_uint32(x + offset);
53 r = mbedtls_get_unaligned_uint64(x + offset);
81 x[i + offset] = 0xff;
89 mbedtls_put_unaligned_uint16(x + offset, r);
92 mbedtls_put_unaligned_uint32(x + offset, r);
95 mbedtls_put_unaligned_uint64(x + offset, r);
98 for (size_t i = 0; i < sizeof(x); i++) {
99 TEST_EQUAL(x[i], (uint8_t) i);
140 /* Check BSWAP(BSWAP(x)) == x */
250 /* Populate with known data: x == { 0, 1, 2, ... } */
251 uint8_t *x = (uint8_t *) raw;
253 x[i] = (uint8_t) i;
260 read = MBEDTLS_GET_UINT16_BE(x, offset);
263 read = MBEDTLS_GET_UINT24_BE(x, offset);
266 read = MBEDTLS_GET_UINT32_BE(x, offset);
269 read = MBEDTLS_GET_UINT64_BE(x, offset);
275 read = MBEDTLS_GET_UINT16_LE(x, offset);
278 read = MBEDTLS_GET_UINT24_LE(x, offset);
281 read = MBEDTLS_GET_UINT32_LE(x, offset);
284 read = MBEDTLS_GET_UINT64_LE(x, offset);
292 uint64_t b = x[i + offset];
302 x[i + offset] = 0xff;
308 MBEDTLS_PUT_UINT16_BE(read, x, offset);
311 MBEDTLS_PUT_UINT24_BE(read, x, offset);
314 MBEDTLS_PUT_UINT32_BE(read, x, offset);
317 MBEDTLS_PUT_UINT64_BE(read, x, offset);
323 MBEDTLS_PUT_UINT16_LE(read, x, offset);
326 MBEDTLS_PUT_UINT24_LE(read, x, offset);
329 MBEDTLS_PUT_UINT32_LE(read, x, offset);
332 MBEDTLS_PUT_UINT64_LE(read, x, offset);
339 TEST_EQUAL(x[i], (uint8_t) i);