Changeset 52455 in vbox for trunk/include/iprt/asm-math.h
- Timestamp:
- Aug 22, 2014 7:47:06 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm-math.h
r52454 r52455 331 331 * 332 332 * @remarks Architecture specific. 333 * @remarks Make sure the result won't ever exceed 32-bit, because hardware 334 * exception may be raised if it does. 335 * @remarks On x86 this may be used to avoid dragging in 64-bit builtin 336 * arithmetics functions. 333 337 */ 334 338 #if RT_INLINE_ASM_EXTERNAL && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)) … … 358 362 * Multiple a 64-bit by a 32-bit integer and divide the result by a 32-bit integer 359 363 * using a 96 bit intermediate result. 360 * @note Don't use 64-bit C arithmetic here since some gcc compilers generate references to361 * __udivdi3 and __umoddi3 even if this inline function is not used.362 364 * 363 365 * @returns (u64A * u32B) / u32C. … … 367 369 * 368 370 * @remarks Architecture specific. 371 * @remarks Make sure the result won't ever exceed 64-bit, because hardware 372 * exception may be raised if it does. 373 * @remarks On x86 this may be used to avoid dragging in 64-bit builtin 374 * arithmetics function. 369 375 */ 370 376 #if RT_INLINE_ASM_EXTERNAL || !defined(__GNUC__) || (!defined(RT_ARCH_AMD64) && !defined(RT_ARCH_X86))
Note:
See TracChangeset
for help on using the changeset viewer.