VirtualBox

Changeset 94263 in vbox for trunk


Ignore:
Timestamp:
Mar 16, 2022 2:26:33 AM (3 years ago)
Author:
vboxsync
Message:

iprt/types.h,VMM,ValKit,IPRT: Dropped the bit counts in member prefixes in the RTFLOATxxU types and added a RTFLOAT32U. Added some fld [mem] tests. bugref:9898

File:
1 edited

Legend:

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

    r94261 r94263  
    10301030#ifdef RT_BIG_ENDIAN
    10311031# define RTFLOAT64U_INIT(a_fSign, a_uFraction, a_uExponent)     \
    1032     { { (a_fSign), (a_uExponent), (uint32_t)((a_uFraction) >> 32), (uint32_t)(a_uFraction) } }
     1032    { { (a_fSign), (a_uExponent), (uint32_t)((a_uFraction) >> 32), (uint32_t)((a_uFraction) & UINT32_MAX) } }
    10331033#else
    10341034# define RTFLOAT64U_INIT(a_fSign, a_uFraction, a_uExponent)     \
    1035     { { (uint32_t)(a_uFraction), (uint32_t)((a_uFraction) >> 32), (a_uExponent), (a_fSign) } }
     1035    { { (uint32_t)((a_uFraction) & UINT32_MAX), (uint32_t)((a_uFraction) >> 32), (a_uExponent), (a_fSign) } }
    10361036#endif
    10371037#define RTFLOAT64U_INIT_C(a_fSign, a_uFraction, a_uExponent)    RTFLOAT64U_INIT((a_fSign), UINT64_C(a_uFraction), (a_uExponent))
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