Changeset 85223 in vbox for trunk/include
- Timestamp:
- Jul 11, 2020 4:17:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm.h
r85087 r85223 3151 3151 * @remarks x86: Requires a 486 or later. 3152 3152 */ 3153 DECLINLINE( int64_t) ASMAtomicIncZ(size_t volatile RT_FAR *pcb) RT_NOTHROW_DEF3153 DECLINLINE(size_t) ASMAtomicIncZ(size_t volatile RT_FAR *pcb) RT_NOTHROW_DEF 3154 3154 { 3155 3155 #if ARCH_BITS == 64 … … 3292 3292 * @remarks x86: Requires a 486 or later. 3293 3293 */ 3294 DECLINLINE( int64_t) ASMAtomicDecZ(size_t volatile RT_FAR *pcb) RT_NOTHROW_DEF3294 DECLINLINE(size_t) ASMAtomicDecZ(size_t volatile RT_FAR *pcb) RT_NOTHROW_DEF 3295 3295 { 3296 3296 #if ARCH_BITS == 64 … … 3354 3354 DECLINLINE(void) ASMAtomicOrS32(int32_t volatile RT_FAR *pi32, int32_t i32) RT_NOTHROW_DEF 3355 3355 { 3356 ASMAtomicOrU32((uint32_t volatile RT_FAR *)pi32, i32);3356 ASMAtomicOrU32((uint32_t volatile RT_FAR *)pi32, (uint32_t)i32); 3357 3357 } 3358 3358 … … 3403 3403 DECLINLINE(void) ASMAtomicOrS64(int64_t volatile RT_FAR *pi64, int64_t i64) RT_NOTHROW_DEF 3404 3404 { 3405 ASMAtomicOrU64((uint64_t volatile RT_FAR *)pi64, i64);3405 ASMAtomicOrU64((uint64_t volatile RT_FAR *)pi64, (uint64_t)i64); 3406 3406 } 3407 3407 … … 3553 3553 DECLINLINE(void) ASMAtomicUoOrS32(int32_t volatile RT_FAR *pi32, int32_t i32) RT_NOTHROW_DEF 3554 3554 { 3555 ASMAtomicUoOrU32((uint32_t volatile RT_FAR *)pi32, i32);3555 ASMAtomicUoOrU32((uint32_t volatile RT_FAR *)pi32, (uint32_t)i32); 3556 3556 } 3557 3557 … … 3599 3599 DECLINLINE(void) ASMAtomicUoOrS64(int64_t volatile RT_FAR *pi64, int64_t i64) RT_NOTHROW_DEF 3600 3600 { 3601 ASMAtomicUoOrU64((uint64_t volatile RT_FAR *)pi64, i64);3601 ASMAtomicUoOrU64((uint64_t volatile RT_FAR *)pi64, (uint64_t)i64); 3602 3602 } 3603 3603 … … 4841 4841 } 4842 4842 4843 /* whole dword . */4843 /* whole dwords. */ 4844 4844 if (iBitStart != iEnd) 4845 ASMMemZero32(pu32, ( iEnd -iBitStart) >> 3);4845 ASMMemZero32(pu32, ((uint32_t)iEnd - (uint32_t)iBitStart) >> 3); 4846 4846 4847 4847 /* bits in last dword. */ … … 4884 4884 /* whole dword. */ 4885 4885 if (iBitStart != iEnd) 4886 ASMMemFill32(pu32, ( iEnd -iBitStart) >> 3, ~UINT32_C(0));4886 ASMMemFill32(pu32, ((uint32_t)iEnd - (uint32_t)iBitStart) >> 3, ~UINT32_C(0)); 4887 4887 4888 4888 /* bits in last dword. */ … … 5029 5029 # endif 5030 5030 if (iBit >= 0) 5031 return iBit + iBitPrev;5031 return iBit + (int)iBitPrev; 5032 5032 # endif 5033 5033 … … 5183 5183 # endif 5184 5184 if (iBit >= 0) 5185 return iBit + iBitPrev;5185 return iBit + (int)iBitPrev; 5186 5186 # endif 5187 5187
Note:
See TracChangeset
for help on using the changeset viewer.