VirtualBox

Changeset 94634 in vbox for trunk


Ignore:
Timestamp:
Apr 19, 2022 2:19:25 PM (3 years ago)
Author:
vboxsync
Message:

lib/softfloat: Corrected zero detection when setting the inexact flag. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/softfloat-3e/source/s_roundPackToExtF80.c

    r94613 r94634  
    187187            sig64Extra =
    188188                softfloat_shiftRightJam64Extra( sig, sigExtra, 1 - exp );
    189             if ( exp < -63 || sig64Extra.extra != 0 ) {                                                 /* VBox: Missing inexact result flag */
     189            if ( (exp < -63 || sig64Extra.extra != 0) && /* zero: */ sig != 0 && sigExtra != 0 ) {      /* VBox: Missing inexact result flag */
    190190                softfloat_exceptionFlags |= softfloat_flag_inexact;                                     /* VBox: Missing inexact result flag */
    191191            }                                                                                           /* VBox: Missing inexact result flag */
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