Changeset 101640 in vbox for trunk/include/iprt/x86.h
- Timestamp:
- Oct 28, 2023 1:01:28 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/x86.h
r101516 r101640 4921 4921 #define X86_SIB_SCALE_SHIFT 6 4922 4922 #ifndef VBOX_FOR_DTRACE_LIB 4923 /** @def X86_MODRM_SIB 4924 * @param a_BaseReg The base register value (0..7). 4925 * @param a_IndexReg The index register value (0..7). 4926 * @param a_Scale The left shift (0..3) to be applied to the index 4927 * register (0 = none, 1 = x2, 2 = x4, 3 = x8). 4928 * */ 4929 # define X86_SIB_MAKE(a_BaseReg, a_IndexReg, a_Scale) \ 4930 (((a_Scale) << X86_SIB_SCALE_SHIFT) | ((a_IndexReg) << X86_SIB_INDEX_SHIFT) | (a_BaseReg)) 4931 4923 4932 AssertCompile((X86_SIB_BASE_MASK | X86_SIB_INDEX_MASK | X86_SIB_SCALE_MASK) == 0xff); 4924 4933 AssertCompile((X86_SIB_INDEX_MASK >> X86_SIB_INDEX_SHIFT) == X86_SIB_INDEX_SMASK);
Note:
See TracChangeset
for help on using the changeset viewer.