VirtualBox

Changeset 60201 in vbox for trunk/include


Ignore:
Timestamp:
Mar 26, 2016 11:43:31 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106235
Message:

iprt/asm-amd64-x86.h: Use the Visual C++ halt() intrinsic when possible for ASMHalt().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asm-amd64-x86.h

    r59310 r60201  
    7070#  pragma intrinsic(__writecr8)
    7171# endif
     72# if RT_INLINE_ASM_USES_INTRIN >= 14
     73#  pragma intrinsic(__halt)
     74# endif
    7275# if RT_INLINE_ASM_USES_INTRIN >= 15
    7376#  pragma intrinsic(__readeflags)
     
    20422045 * Halts the CPU until interrupted.
    20432046 */
    2044 #if RT_INLINE_ASM_EXTERNAL
     2047#if RT_INLINE_ASM_EXTERNAL && RT_INLINE_ASM_USES_INTRIN < 14
    20452048DECLASM(void) ASMHalt(void);
    20462049#else
     
    20492052# if RT_INLINE_ASM_GNU_STYLE
    20502053    __asm__ __volatile__("hlt\n\t");
     2054# elif RT_INLINE_ASM_USES_INTRIN
     2055    __halt();
    20512056# else
    20522057    __asm {
Note: See TracChangeset for help on using the changeset viewer.

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