VirtualBox

Changeset 94560 in vbox


Ignore:
Timestamp:
Apr 11, 2022 3:02:29 PM (2 years ago)
Author:
vboxsync
Message:

VMM/IEM,libs/softfloat: Don't use global variables in SoftFloat, pass in a state pointer to (almost) all functions instead. Started on fsqrt instruction implementation. [build fix] bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllAImplC.cpp

    r94558 r94560  
    52725272    {
    52735273        softfloat_tininess_afterRounding,
    5274           (fFcw & X86_FCW_RC_MASK) == X86_FCW_RC_NEAREST ? softfloat_round_near_even
    5275         : (fFcw & X86_FCW_RC_MASK) == X86_FCW_RC_UP      ? softfloat_round_max
    5276         : (fFcw & X86_FCW_RC_MASK) == X86_FCW_RC_DOWN    ? softfloat_round_min
    5277         :                                                  softfloat_round_minMag,
     5274          (fFcw & X86_FCW_RC_MASK) == X86_FCW_RC_NEAREST ? (uint8_t)softfloat_round_near_even
     5275        : (fFcw & X86_FCW_RC_MASK) == X86_FCW_RC_UP      ? (uint8_t)softfloat_round_max
     5276        : (fFcw & X86_FCW_RC_MASK) == X86_FCW_RC_DOWN    ? (uint8_t)softfloat_round_min
     5277        :                                                  (uint8_t)softfloat_round_minMag,
    52785278        0,
    52795279          (fFcw & X86_FCW_PC_MASK) == X86_FCW_PC_53      ? (uint8_t)64
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