Changeset 77119 in vbox for trunk/include/iprt
- Timestamp:
- Feb 1, 2019 2:49:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r76585 r77119 2687 2687 /** @def RT_BYTE1 2688 2688 * Gets the first byte of something. */ 2689 #define RT_BYTE1(a) ( ( a) & 0xff)2689 #define RT_BYTE1(a) ( (uint8_t)((a) & 0xff) ) 2690 2690 /** @def RT_BYTE2 2691 2691 * Gets the second byte of something. */ 2692 #define RT_BYTE2(a) ( ( (a) >> 8) & 0xff)2692 #define RT_BYTE2(a) ( (uint8_t)(((a) >> 8) & 0xff) ) 2693 2693 /** @def RT_BYTE3 2694 2694 * Gets the second byte of something. */ 2695 #define RT_BYTE3(a) ( ( (a) >> 16) & 0xff)2695 #define RT_BYTE3(a) ( (uint8_t)(((a) >> 16) & 0xff) ) 2696 2696 /** @def RT_BYTE4 2697 2697 * Gets the fourth byte of something. */ 2698 #define RT_BYTE4(a) ( ( (a) >> 24) & 0xff)2698 #define RT_BYTE4(a) ( (uint8_t)(((a) >> 24) & 0xff) ) 2699 2699 /** @def RT_BYTE5 2700 2700 * Gets the fifth byte of something. */ 2701 #define RT_BYTE5(a) ( ( (a) >> 32) & 0xff)2701 #define RT_BYTE5(a) ( (uint8_t)(((a) >> 32) & 0xff) ) 2702 2702 /** @def RT_BYTE6 2703 2703 * Gets the sixth byte of something. */ 2704 #define RT_BYTE6(a) ( ( (a) >> 40) & 0xff)2704 #define RT_BYTE6(a) ( (uint8_t)(((a) >> 40) & 0xff) ) 2705 2705 /** @def RT_BYTE7 2706 2706 * Gets the seventh byte of something. */ 2707 #define RT_BYTE7(a) ( ( (a) >> 48) & 0xff)2707 #define RT_BYTE7(a) ( (uint8_t)(((a) >> 48) & 0xff) ) 2708 2708 /** @def RT_BYTE8 2709 2709 * Gets the eight byte of something. */ 2710 #define RT_BYTE8(a) ( ( (a) >> 56) & 0xff)2710 #define RT_BYTE8(a) ( (uint8_t)(((a) >> 56) & 0xff) ) 2711 2711 2712 2712
Note:
See TracChangeset
for help on using the changeset viewer.