Changeset 51831 in vbox for trunk/include
- Timestamp:
- Jul 3, 2014 3:26:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm.h
r51830 r51831 4827 4827 return _rotl(u32, cShift); 4828 4828 #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)); 4830 4830 return u32; 4831 4831 #else … … 4848 4848 return _rotr(u32, cShift); 4849 4849 #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)); 4851 4851 return u32; 4852 4852 #else … … 4869 4869 return _rotl64(u64, cShift); 4870 4870 #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)); 4872 4872 return u64; 4873 4873 #elif RT_INLINE_ASM_GNU_STYLE && defined(RT_ARCH_X86) … … 4906 4906 return _rotr64(u64, cShift); 4907 4907 #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)); 4909 4909 return u64; 4910 4910 #elif RT_INLINE_ASM_GNU_STYLE && defined(RT_ARCH_X86)
Note:
See TracChangeset
for help on using the changeset viewer.