Lines Matching refs:p
65 #define GetUi16(p) (*(const UInt16 *)(p)) argument
66 #define GetUi32(p) (*(const UInt32 *)(p)) argument
67 #define GetUi64(p) (*(const UInt64 *)(p)) argument
68 #define SetUi16(p, d) *(UInt16 *)(p) = (d); argument
69 #define SetUi32(p, d) *(UInt32 *)(p) = (d); argument
70 #define SetUi64(p, d) *(UInt64 *)(p) = (d); argument
74 #define GetUi16(p) (((const Byte *)(p))[0] | ((UInt16)((const Byte *)(p))[1] << 8))
76 #define GetUi32(p) ( \
77 ((const Byte *)(p))[0] | \
78 ((UInt32)((const Byte *)(p))[1] << 8) | \
79 ((UInt32)((const Byte *)(p))[2] << 16) | \
80 ((UInt32)((const Byte *)(p))[3] << 24))
82 #define GetUi64(p) (GetUi32(p) | ((UInt64)GetUi32(((const Byte *)(p)) + 4) << 32))
84 #define SetUi16(p, d) { UInt32 _x_ = (d); \
85 ((Byte *)(p))[0] = (Byte)_x_; \
86 ((Byte *)(p))[1] = (Byte)(_x_ >> 8); }
88 #define SetUi32(p, d) { UInt32 _x_ = (d); \
89 ((Byte *)(p))[0] = (Byte)_x_; \
90 ((Byte *)(p))[1] = (Byte)(_x_ >> 8); \
91 ((Byte *)(p))[2] = (Byte)(_x_ >> 16); \
92 ((Byte *)(p))[3] = (Byte)(_x_ >> 24); }
94 #define SetUi64(p, d) { UInt64 _x64_ = (d); \
95 SetUi32(p, (UInt32)_x64_); \
96 SetUi32(((Byte *)(p)) + 4, (UInt32)(_x64_ >> 32)); }
104 #define GetBe32(p) _byteswap_ulong(*(const UInt32 *)(const Byte *)(p)) argument
105 #define GetBe64(p) _byteswap_uint64(*(const UInt64 *)(const Byte *)(p)) argument
109 #define GetBe32(p) ( \
110 ((UInt32)((const Byte *)(p))[0] << 24) | \
111 ((UInt32)((const Byte *)(p))[1] << 16) | \
112 ((UInt32)((const Byte *)(p))[2] << 8) | \
113 ((const Byte *)(p))[3] )
115 #define GetBe64(p) (((UInt64)GetBe32(p) << 32) | GetBe32(((const Byte *)(p)) + 4))
119 #define GetBe16(p) (((UInt16)((const Byte *)(p))[0] << 8) | ((const Byte *)(p))[1]) argument
141 Bool x86cpuid_CheckAndRead(Cx86cpuid *p);
142 int x86cpuid_GetFirm(const Cx86cpuid *p);
144 #define x86cpuid_GetFamily(p) (((p)->ver >> 8) & 0xFF00F) argument
145 #define x86cpuid_GetModel(p) (((p)->ver >> 4) & 0xF00F) argument
146 #define x86cpuid_GetStepping(p) ((p)->ver & 0xF) argument