VirtualBox

Changeset 51831 in vbox for trunk/include


Ignore:
Timestamp:
Jul 3, 2014 3:26:56 AM (11 years ago)
Author:
vboxsync
Message:

gnu inline fun

File:
1 edited

Legend:

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

    r51830 r51831  
    48274827    return _rotl(u32, cShift);
    48284828#elif RT_INLINE_ASM_GNU_STYLE && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86))
    4829     __asm__ __volatile__("roll %1, %0" : "=r" (u32) : "Ir" (cShift), "0" (u32));
     4829    __asm__ __volatile__("roll %b1, %0" : "=r" (u32) : "Ic" (cShift), "0" (u32));
    48304830    return u32;
    48314831#else
     
    48484848    return _rotr(u32, cShift);
    48494849#elif RT_INLINE_ASM_GNU_STYLE && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86))
    4850     __asm__ __volatile__("rorl %1, %0" : "=r" (u32) : "Ir" (cShift), "0" (u32));
     4850    __asm__ __volatile__("rorl %b1, %0" : "=r" (u32) : "Ic" (cShift), "0" (u32));
    48514851    return u32;
    48524852#else
     
    48694869    return _rotl64(u64, cShift);
    48704870#elif RT_INLINE_ASM_GNU_STYLE && defined(RT_ARCH_AMD64)
    4871     __asm__ __volatile__("rolq %1, %0" : "=r" (u64) : "Ir" (cShift), "0" (u64));
     4871    __asm__ __volatile__("rolq %b1, %0" : "=r" (u64) : "Jc" (cShift), "0" (u64));
    48724872    return u64;
    48734873#elif RT_INLINE_ASM_GNU_STYLE && defined(RT_ARCH_X86)
     
    49064906    return _rotr64(u64, cShift);
    49074907#elif RT_INLINE_ASM_GNU_STYLE && defined(RT_ARCH_AMD64)
    4908     __asm__ __volatile__("rorq %1, %0" : "=r" (u64) : "Ir" (cShift), "0" (u64));
     4908    __asm__ __volatile__("rorq %b1, %0" : "=r" (u64) : "Jr" (cShift), "0" (u64));
    49094909    return u64;
    49104910#elif RT_INLINE_ASM_GNU_STYLE && defined(RT_ARCH_X86)
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