Changeset 94558 in vbox for trunk/src/libs/softfloat-3e/source/8086-SSE
- Timestamp:
- Apr 11, 2022 1:55:56 PM (3 years ago)
- Location:
- trunk/src/libs/softfloat-3e/source/8086-SSE
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/softfloat-3e/source/8086-SSE/s_extF80MToCommonNaN.c
r94480 r94558 49 49 void 50 50 softfloat_extF80MToCommonNaN( 51 const struct extFloat80M *aSPtr, struct commonNaN *zPtr )51 const struct extFloat80M *aSPtr, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 52 52 { 53 53 54 54 if ( extF80M_isSignalingNaN( (const extFloat80_t *) aSPtr ) ) { 55 softfloat_raiseFlags( softfloat_flag_invalid );55 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 56 56 } 57 57 zPtr->sign = signExtF80UI64( aSPtr->signExp ); -
trunk/src/libs/softfloat-3e/source/8086-SSE/s_extF80UIToCommonNaN.c
r94480 r94558 49 49 void 50 50 softfloat_extF80UIToCommonNaN( 51 uint_fast16_t uiA64, uint_fast64_t uiA0, struct commonNaN *zPtr )51 uint_fast16_t uiA64, uint_fast64_t uiA0, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 52 52 { 53 53 54 54 if ( softfloat_isSigNaNExtF80UI( uiA64, uiA0 ) ) { 55 softfloat_raiseFlags( softfloat_flag_invalid );55 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 56 56 } 57 57 zPtr->sign = uiA64>>15; -
trunk/src/libs/softfloat-3e/source/8086-SSE/s_f128MToCommonNaN.c
r94480 r94558 50 50 *----------------------------------------------------------------------------*/ 51 51 void 52 softfloat_f128MToCommonNaN( const uint32_t *aWPtr, struct commonNaN *zPtr )52 softfloat_f128MToCommonNaN( const uint32_t *aWPtr, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 53 53 { 54 54 55 55 if ( f128M_isSignalingNaN( (const float128_t *) aWPtr ) ) { 56 softfloat_raiseFlags( softfloat_flag_invalid );56 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 57 57 } 58 58 zPtr->sign = aWPtr[indexWordHi( 4 )]>>31; -
trunk/src/libs/softfloat-3e/source/8086-SSE/s_f128UIToCommonNaN.c
r94480 r94558 50 50 void 51 51 softfloat_f128UIToCommonNaN( 52 uint_fast64_t uiA64, uint_fast64_t uiA0, struct commonNaN *zPtr )52 uint_fast64_t uiA64, uint_fast64_t uiA0, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 53 53 { 54 54 struct uint128 NaNSig; 55 55 56 56 if ( softfloat_isSigNaNF128UI( uiA64, uiA0 ) ) { 57 softfloat_raiseFlags( softfloat_flag_invalid );57 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 58 58 } 59 59 NaNSig = softfloat_shortShiftLeft128( uiA64, uiA0, 16 ); -
trunk/src/libs/softfloat-3e/source/8086-SSE/s_f16UIToCommonNaN.c
r94480 r94558 46 46 | exception is raised. 47 47 *----------------------------------------------------------------------------*/ 48 void softfloat_f16UIToCommonNaN( uint_fast16_t uiA, struct commonNaN *zPtr )48 void softfloat_f16UIToCommonNaN( uint_fast16_t uiA, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 49 49 { 50 50 51 51 if ( softfloat_isSigNaNF16UI( uiA ) ) { 52 softfloat_raiseFlags( softfloat_flag_invalid );52 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 53 53 } 54 54 zPtr->sign = uiA>>15; -
trunk/src/libs/softfloat-3e/source/8086-SSE/s_f32UIToCommonNaN.c
r94480 r94558 46 46 | exception is raised. 47 47 *----------------------------------------------------------------------------*/ 48 void softfloat_f32UIToCommonNaN( uint_fast32_t uiA, struct commonNaN *zPtr )48 void softfloat_f32UIToCommonNaN( uint_fast32_t uiA, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 49 49 { 50 50 51 51 if ( softfloat_isSigNaNF32UI( uiA ) ) { 52 softfloat_raiseFlags( softfloat_flag_invalid );52 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 53 53 } 54 54 zPtr->sign = uiA>>31; -
trunk/src/libs/softfloat-3e/source/8086-SSE/s_f64UIToCommonNaN.c
r94480 r94558 46 46 | exception is raised. 47 47 *----------------------------------------------------------------------------*/ 48 void softfloat_f64UIToCommonNaN( uint_fast64_t uiA, struct commonNaN *zPtr )48 void softfloat_f64UIToCommonNaN( uint_fast64_t uiA, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 49 49 { 50 50 51 51 if ( softfloat_isSigNaNF64UI( uiA ) ) { 52 softfloat_raiseFlags( softfloat_flag_invalid );52 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 53 53 } 54 54 zPtr->sign = uiA>>63; -
trunk/src/libs/softfloat-3e/source/8086-SSE/s_propagateNaNExtF80M.c
r94480 r94558 53 53 const struct extFloat80M *bSPtr, 54 54 struct extFloat80M *zSPtr 55 SOFTFLOAT_STATE_DECL_COMMA 55 56 ) 56 57 { … … 67 68 sPtr = aSPtr; 68 69 if ( ! bSPtr ) { 69 if ( isSigNaNA ) softfloat_raiseFlags( softfloat_flag_invalid );70 if ( isSigNaNA ) softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 70 71 goto copy; 71 72 } 72 73 isSigNaNB = extF80M_isSignalingNaN( (const extFloat80_t *) bSPtr ); 73 74 if ( isSigNaNA | isSigNaNB ) { 74 softfloat_raiseFlags( softfloat_flag_invalid );75 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 75 76 if ( isSigNaNA ) { 76 77 uiB64 = bSPtr->signExp; -
trunk/src/libs/softfloat-3e/source/8086-SSE/s_propagateNaNExtF80UI.c
r94480 r94558 57 57 uint_fast16_t uiB64, 58 58 uint_fast64_t uiB0 59 SOFTFLOAT_STATE_DECL_COMMA 59 60 ) 60 61 { … … 76 77 *------------------------------------------------------------------------*/ 77 78 if ( isSigNaNA | isSigNaNB ) { 78 softfloat_raiseFlags( softfloat_flag_invalid );79 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 79 80 if ( isSigNaNA ) { 80 81 if ( isSigNaNB ) goto returnLargerMag; -
trunk/src/libs/softfloat-3e/source/8086-SSE/s_propagateNaNF128M.c
r94480 r94558 52 52 void 53 53 softfloat_propagateNaNF128M( 54 const uint32_t *aWPtr, const uint32_t *bWPtr, uint32_t *zWPtr )54 const uint32_t *aWPtr, const uint32_t *bWPtr, uint32_t *zWPtr SOFTFLOAT_STATE_DECL_COMMA ) 55 55 { 56 56 bool isSigNaNA; … … 63 63 || (bWPtr && f128M_isSignalingNaN( (const float128_t *) bWPtr )) 64 64 ) { 65 softfloat_raiseFlags( softfloat_flag_invalid );65 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 66 66 if ( isSigNaNA ) goto copy; 67 67 } -
trunk/src/libs/softfloat-3e/source/8086-SSE/s_propagateNaNF128UI.c
r94480 r94558 57 57 uint_fast64_t uiB64, 58 58 uint_fast64_t uiB0 59 SOFTFLOAT_STATE_DECL_COMMA 59 60 ) 60 61 { … … 64 65 isSigNaNA = softfloat_isSigNaNF128UI( uiA64, uiA0 ); 65 66 if ( isSigNaNA || softfloat_isSigNaNF128UI( uiB64, uiB0 ) ) { 66 softfloat_raiseFlags( softfloat_flag_invalid );67 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 67 68 if ( isSigNaNA ) goto returnNonsigA; 68 69 } -
trunk/src/libs/softfloat-3e/source/8086-SSE/s_propagateNaNF16UI.c
r94480 r94558 49 49 *----------------------------------------------------------------------------*/ 50 50 uint_fast16_t 51 softfloat_propagateNaNF16UI( uint_fast16_t uiA, uint_fast16_t uiB )51 softfloat_propagateNaNF16UI( uint_fast16_t uiA, uint_fast16_t uiB SOFTFLOAT_STATE_DECL_COMMA ) 52 52 { 53 53 bool isSigNaNA; … … 55 55 isSigNaNA = softfloat_isSigNaNF16UI( uiA ); 56 56 if ( isSigNaNA || softfloat_isSigNaNF16UI( uiB ) ) { 57 softfloat_raiseFlags( softfloat_flag_invalid );57 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 58 58 if ( isSigNaNA ) return uiA | 0x0200; 59 59 } -
trunk/src/libs/softfloat-3e/source/8086-SSE/s_propagateNaNF32UI.c
r94480 r94558 49 49 *----------------------------------------------------------------------------*/ 50 50 uint_fast32_t 51 softfloat_propagateNaNF32UI( uint_fast32_t uiA, uint_fast32_t uiB )51 softfloat_propagateNaNF32UI( uint_fast32_t uiA, uint_fast32_t uiB SOFTFLOAT_STATE_DECL_COMMA ) 52 52 { 53 53 bool isSigNaNA; … … 55 55 isSigNaNA = softfloat_isSigNaNF32UI( uiA ); 56 56 if ( isSigNaNA || softfloat_isSigNaNF32UI( uiB ) ) { 57 softfloat_raiseFlags( softfloat_flag_invalid );57 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 58 58 if ( isSigNaNA ) return uiA | 0x00400000; 59 59 } -
trunk/src/libs/softfloat-3e/source/8086-SSE/s_propagateNaNF64UI.c
r94480 r94558 49 49 *----------------------------------------------------------------------------*/ 50 50 uint_fast64_t 51 softfloat_propagateNaNF64UI( uint_fast64_t uiA, uint_fast64_t uiB )51 softfloat_propagateNaNF64UI( uint_fast64_t uiA, uint_fast64_t uiB SOFTFLOAT_STATE_DECL_COMMA ) 52 52 { 53 53 bool isSigNaNA; … … 55 55 isSigNaNA = softfloat_isSigNaNF64UI( uiA ); 56 56 if ( isSigNaNA || softfloat_isSigNaNF64UI( uiB ) ) { 57 softfloat_raiseFlags( softfloat_flag_invalid );57 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 58 58 if ( isSigNaNA ) return uiA | UINT64_C( 0x0008000000000000 ); 59 59 } -
trunk/src/libs/softfloat-3e/source/8086-SSE/softfloat_raiseFlags.c
r94480 r94558 44 44 | should be simply `softfloat_exceptionFlags |= flags;'. 45 45 *----------------------------------------------------------------------------*/ 46 void softfloat_raiseFlags( uint_fast8_t flags )46 void softfloat_raiseFlags( uint_fast8_t flags SOFTFLOAT_STATE_ARG_COMMA ) 47 47 { 48 48 49 #ifdef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 49 50 softfloat_exceptionFlags |= flags; 51 #else 52 pState->exceptionFlags |= flags; 53 #endif 50 54 51 55 } -
trunk/src/libs/softfloat-3e/source/8086-SSE/specialize.h
r94480 r94558 101 101 | exception is raised. 102 102 *----------------------------------------------------------------------------*/ 103 void softfloat_f16UIToCommonNaN( uint_fast16_t uiA, struct commonNaN *zPtr );103 void softfloat_f16UIToCommonNaN( uint_fast16_t uiA, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ); 104 104 105 105 /*---------------------------------------------------------------------------- … … 116 116 *----------------------------------------------------------------------------*/ 117 117 uint_fast16_t 118 softfloat_propagateNaNF16UI( uint_fast16_t uiA, uint_fast16_t uiB );118 softfloat_propagateNaNF16UI( uint_fast16_t uiA, uint_fast16_t uiB SOFTFLOAT_STATE_DECL_COMMA ); 119 119 120 120 /*---------------------------------------------------------------------------- … … 136 136 | exception is raised. 137 137 *----------------------------------------------------------------------------*/ 138 void softfloat_f32UIToCommonNaN( uint_fast32_t uiA, struct commonNaN *zPtr );138 void softfloat_f32UIToCommonNaN( uint_fast32_t uiA, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ); 139 139 140 140 /*---------------------------------------------------------------------------- … … 151 151 *----------------------------------------------------------------------------*/ 152 152 uint_fast32_t 153 softfloat_propagateNaNF32UI( uint_fast32_t uiA, uint_fast32_t uiB );153 softfloat_propagateNaNF32UI( uint_fast32_t uiA, uint_fast32_t uiB SOFTFLOAT_STATE_DECL_COMMA ); 154 154 155 155 /*---------------------------------------------------------------------------- … … 171 171 | exception is raised. 172 172 *----------------------------------------------------------------------------*/ 173 void softfloat_f64UIToCommonNaN( uint_fast64_t uiA, struct commonNaN *zPtr );173 void softfloat_f64UIToCommonNaN( uint_fast64_t uiA, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ); 174 174 175 175 /*---------------------------------------------------------------------------- … … 186 186 *----------------------------------------------------------------------------*/ 187 187 uint_fast64_t 188 softfloat_propagateNaNF64UI( uint_fast64_t uiA, uint_fast64_t uiB );188 softfloat_propagateNaNF64UI( uint_fast64_t uiA, uint_fast64_t uiB SOFTFLOAT_STATE_DECL_COMMA ); 189 189 190 190 /*---------------------------------------------------------------------------- … … 218 218 void 219 219 softfloat_extF80UIToCommonNaN( 220 uint_fast16_t uiA64, uint_fast64_t uiA0, struct commonNaN *zPtr );220 uint_fast16_t uiA64, uint_fast64_t uiA0, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ); 221 221 222 222 /*---------------------------------------------------------------------------- … … 242 242 uint_fast16_t uiB64, 243 243 uint_fast64_t uiB0 244 SOFTFLOAT_STATE_DECL_COMMA 244 245 ); 245 246 … … 267 268 void 268 269 softfloat_f128UIToCommonNaN( 269 uint_fast64_t uiA64, uint_fast64_t uiA0, struct commonNaN *zPtr );270 uint_fast64_t uiA64, uint_fast64_t uiA0, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ); 270 271 271 272 /*---------------------------------------------------------------------------- … … 290 291 uint_fast64_t uiB64, 291 292 uint_fast64_t uiB0 293 SOFTFLOAT_STATE_DECL_COMMA 292 294 ); 293 295 … … 307 309 void 308 310 softfloat_extF80MToCommonNaN( 309 const struct extFloat80M *aSPtr, struct commonNaN *zPtr );311 const struct extFloat80M *aSPtr, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ); 310 312 311 313 /*---------------------------------------------------------------------------- … … 329 331 const struct extFloat80M *bSPtr, 330 332 struct extFloat80M *zSPtr 333 SOFTFLOAT_STATE_DECL_COMMA 331 334 ); 332 335 … … 348 351 *----------------------------------------------------------------------------*/ 349 352 void 350 softfloat_f128MToCommonNaN( const uint32_t *aWPtr, struct commonNaN *zPtr );353 softfloat_f128MToCommonNaN( const uint32_t *aWPtr, struct commonNaN *zPtr SOFTFLOAT_STATE_DECL_COMMA ); 351 354 352 355 /*---------------------------------------------------------------------------- … … 369 372 void 370 373 softfloat_propagateNaNF128M( 371 const uint32_t *aWPtr, const uint32_t *bWPtr, uint32_t *zWPtr );374 const uint32_t *aWPtr, const uint32_t *bWPtr, uint32_t *zWPtr SOFTFLOAT_STATE_DECL_COMMA ); 372 375 373 376 #endif
Note:
See TracChangeset
for help on using the changeset viewer.