VirtualBox

Changeset 49391 in vbox


Ignore:
Timestamp:
Nov 5, 2013 3:17:27 PM (11 years ago)
Author:
vboxsync
Message:

iprt/x86.h: Added X86_IS_CANONICAL.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/x86.h

    r49083 r49391  
    13031303#define X86_PAGE_4M_BASE_MASK_32            0xffc00000U
    13041304
     1305/**
     1306 * Check if the given address is canonical.
     1307 */
     1308#define X86_IS_CANONICAL(a_u64Addr)         ((uint64_t)(a_u64Addr) + UINT64_C(0x800000000000) < UINT64_C(0x1000000000000))
    13051309
    13061310
  • trunk/src/VBox/VMM/VMMAll/IEMAll.cpp

    r48936 r49391  
    334334 * Check if the address is canonical.
    335335 */
    336 #define IEM_IS_CANONICAL(a_u64Addr)         ((uint64_t)(a_u64Addr) + UINT64_C(0x800000000000) < UINT64_C(0x1000000000000))
     336#define IEM_IS_CANONICAL(a_u64Addr)         X86_IS_CANONICAL(a_u64Addr)
    337337
    338338
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette