VirtualBox

Changeset 52455 in vbox for trunk/include/iprt/asm-math.h


Ignore:
Timestamp:
Aug 22, 2014 7:47:06 AM (10 years ago)
Author:
vboxsync
Message:

Updated ASMMultU32ByU32DivByU32 and ASMMultU64ByU32DivByU32 documentation. (Don't put unscoped implementation details in the function description, or at least not immediately below the function brief!)

File:
1 edited

Legend:

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

    r52454 r52455  
    331331 *
    332332 * @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.
    333337 */
    334338#if RT_INLINE_ASM_EXTERNAL && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86))
     
    358362 * Multiple a 64-bit by a 32-bit integer and divide the result by a 32-bit integer
    359363 * using a 96 bit intermediate result.
    360  * @note    Don't use 64-bit C arithmetic here since some gcc compilers generate references to
    361  *          __udivdi3 and __umoddi3 even if this inline function is not used.
    362364 *
    363365 * @returns (u64A * u32B) / u32C.
     
    367369 *
    368370 * @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.
    369375 */
    370376#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.

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