Searched refs:BITS_PER_BYTE (Results 1 – 9 of 9) sorted by relevance
33 #define BITS_PER_BYTE 8 macro
33 const uint8_t BITS_PER_BYTE = 8; variable123 *(data + i) = (value >> ((sizeof(uint32_t) - i - 1) * BITS_PER_BYTE)) & 0xff; in GetUint32()162 *(data + i) = (value >> ((sizeof(uint32_t) - i - 1) * BITS_PER_BYTE)) & 0xff; in SetUint32()
26 *(data + i) = (value >> ((sizeof(uint32_t) - i - 1) * BITS_PER_BYTE)) & 0xff; in SetUint32()
46 #define BITS_PER_BYTE 8 macro
94 esurface->stride = SAMPLE_IMAGE_WIDTH * bpp / BITS_PER_BYTE; in PicSourceSurfaceInit()107 esurface->stride = g_displayTest.displayInfo.width * bpp / BITS_PER_BYTE; in DestSurfaceInit()
50 #define BITS_PER_BYTE 8 macro
66 … result |= ((uint8_t)tokenWithFlag[TOKEN_SIZE + i]) << ((TOKEN_FLAG_SIZE - 1 - i) * BITS_PER_BYTE); in GetTokenFlag()74 flag[i] = (value >> (BITS_PER_BYTE * (TOKEN_FLAG_SIZE - 1 - i))) & 0xFF; in SetTokenFlag()
58 *tkl = (uint8_t)((GetRandomNum() % BITS_PER_BYTE) + 1); // create a random digit, range: 1~8 in CoapCreateToken()158 …->rwBuffer[(*index)++] = (char)((contentLen - COAP_MESSAGE_DIFF_VALUE_TWO_BYTES) >> BITS_PER_BYTE); in CoapEncodeExtensionMsg()507 if (((uint32_t)((*p)[1] << BITS_PER_BYTE) | (*p)[COAP_OPTION_EXTENSION_LEN]) > in CoapParseOptionExtension()512 *value = (uint16_t)((((*p)[1] << BITS_PER_BYTE) | (*p)[COAP_OPTION_EXTENSION_LEN]) + in CoapParseOptionExtension()
862 size_t tempLength = (size_t)(((messageExtendedLength[0] & 0xFF) << BITS_PER_BYTE) | in DecodeExtendedLength()