Changeset 94558 in vbox for trunk/src/libs/softfloat-3e/source
- Timestamp:
- Apr 11, 2022 1:55:56 PM (3 years ago)
- Location:
- trunk/src/libs/softfloat-3e/source
- Files:
-
- 316 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 -
trunk/src/libs/softfloat-3e/source/8086/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/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/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/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/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/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/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/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/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/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; … … 62 62 ptr = aWPtr; 63 63 if ( ! bWPtr ) { 64 if ( isSigNaNA ) softfloat_raiseFlags( softfloat_flag_invalid );64 if ( isSigNaNA ) softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 65 65 goto copy; 66 66 } 67 67 isSigNaNB = f128M_isSignalingNaN( (const float128_t *) bWPtr ); 68 68 if ( isSigNaNA | isSigNaNB ) { 69 softfloat_raiseFlags( softfloat_flag_invalid );69 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 70 70 if ( isSigNaNA ) { 71 71 if ( isSigNaNB ) goto returnLargerUIMag; -
trunk/src/libs/softfloat-3e/source/8086/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 { … … 75 76 *------------------------------------------------------------------------*/ 76 77 if ( isSigNaNA | isSigNaNB ) { 77 softfloat_raiseFlags( softfloat_flag_invalid );78 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 78 79 if ( isSigNaNA ) { 79 80 if ( isSigNaNB ) goto returnLargerMag; -
trunk/src/libs/softfloat-3e/source/8086/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, isSigNaNB; … … 66 66 *------------------------------------------------------------------------*/ 67 67 if ( isSigNaNA | isSigNaNB ) { 68 softfloat_raiseFlags( softfloat_flag_invalid );68 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 69 69 if ( isSigNaNA ) { 70 70 if ( isSigNaNB ) goto returnLargerMag; -
trunk/src/libs/softfloat-3e/source/8086/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, isSigNaNB; … … 66 66 *------------------------------------------------------------------------*/ 67 67 if ( isSigNaNA | isSigNaNB ) { 68 softfloat_raiseFlags( softfloat_flag_invalid );68 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 69 69 if ( isSigNaNA ) { 70 70 if ( isSigNaNB ) goto returnLargerMag; -
trunk/src/libs/softfloat-3e/source/8086/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, isSigNaNB; … … 66 66 *------------------------------------------------------------------------*/ 67 67 if ( isSigNaNA | isSigNaNB ) { 68 softfloat_raiseFlags( softfloat_flag_invalid );68 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 69 69 if ( isSigNaNA ) { 70 70 if ( isSigNaNB ) goto returnLargerMag; -
trunk/src/libs/softfloat-3e/source/8086/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_DECL_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/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 -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2-defaultNaN/s_propagateNaNExtF80M.c
r94480 r94558 52 52 const struct extFloat80M *bSPtr, 53 53 struct extFloat80M *zSPtr 54 SOFTFLOAT_STATE_DECL_COMMA 54 55 ) 55 56 { … … 66 67 softfloat_isSigNaNExtF80UI( ui64, ui0 ))) 67 68 ) { 68 softfloat_raiseFlags( softfloat_flag_invalid );69 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 69 70 } 70 71 zSPtr->signExp = defaultNaNExtF80UI64; -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2-defaultNaN/s_propagateNaNExtF80UI.c
r94480 r94558 56 56 uint_fast16_t uiB64, 57 57 uint_fast64_t uiB0 58 SOFTFLOAT_STATE_DECL_COMMA 58 59 ) 59 60 { … … 64 65 || softfloat_isSigNaNExtF80UI( uiB64, uiB0 ) 65 66 ) { 66 softfloat_raiseFlags( softfloat_flag_invalid );67 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 67 68 } 68 69 uiZ.v64 = defaultNaNExtF80UI64; -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2-defaultNaN/s_propagateNaNF128M.c
r94480 r94558 51 51 void 52 52 softfloat_propagateNaNF128M( 53 const uint32_t *aWPtr, const uint32_t *bWPtr, uint32_t *zWPtr )53 const uint32_t *aWPtr, const uint32_t *bWPtr, uint32_t *zWPtr SOFTFLOAT_STATE_DECL_COMMA ) 54 54 { 55 55 … … 58 58 || (bWPtr && f128M_isSignalingNaN( (const float128_t *) bWPtr )) 59 59 ) { 60 softfloat_raiseFlags( softfloat_flag_invalid );60 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 61 61 } 62 62 zWPtr[indexWord( 4, 3 )] = defaultNaNF128UI96; -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2-defaultNaN/s_propagateNaNF128UI.c
r94480 r94558 56 56 uint_fast64_t uiB64, 57 57 uint_fast64_t uiB0 58 SOFTFLOAT_STATE_DECL_COMMA 58 59 ) 59 60 { … … 64 65 || softfloat_isSigNaNF128UI( uiB64, uiB0 ) 65 66 ) { 66 softfloat_raiseFlags( softfloat_flag_invalid );67 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 67 68 } 68 69 uiZ.v64 = defaultNaNF128UI64; -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2-defaultNaN/s_propagateNaNF16UI.c
r94480 r94558 47 47 *----------------------------------------------------------------------------*/ 48 48 uint_fast16_t 49 softfloat_propagateNaNF16UI( uint_fast16_t uiA, uint_fast16_t uiB )49 softfloat_propagateNaNF16UI( uint_fast16_t uiA, uint_fast16_t uiB SOFTFLOAT_STATE_DECL_COMMA ) 50 50 { 51 51 52 52 if ( softfloat_isSigNaNF16UI( uiA ) || softfloat_isSigNaNF16UI( uiB ) ) { 53 softfloat_raiseFlags( softfloat_flag_invalid );53 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 54 54 } 55 55 return defaultNaNF16UI; -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2-defaultNaN/s_propagateNaNF32UI.c
r94480 r94558 47 47 *----------------------------------------------------------------------------*/ 48 48 uint_fast32_t 49 softfloat_propagateNaNF32UI( uint_fast32_t uiA, uint_fast32_t uiB )49 softfloat_propagateNaNF32UI( uint_fast32_t uiA, uint_fast32_t uiB SOFTFLOAT_STATE_DECL_COMMA ) 50 50 { 51 51 52 52 if ( softfloat_isSigNaNF32UI( uiA ) || softfloat_isSigNaNF32UI( uiB ) ) { 53 softfloat_raiseFlags( softfloat_flag_invalid );53 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 54 54 } 55 55 return defaultNaNF32UI; -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2-defaultNaN/s_propagateNaNF64UI.c
r94480 r94558 47 47 *----------------------------------------------------------------------------*/ 48 48 uint_fast64_t 49 softfloat_propagateNaNF64UI( uint_fast64_t uiA, uint_fast64_t uiB )49 softfloat_propagateNaNF64UI( uint_fast64_t uiA, uint_fast64_t uiB SOFTFLOAT_STATE_DECL_COMMA ) 50 50 { 51 51 52 52 if ( softfloat_isSigNaNF64UI( uiA ) || softfloat_isSigNaNF64UI( uiB ) ) { 53 softfloat_raiseFlags( softfloat_flag_invalid );53 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 54 54 } 55 55 return defaultNaNF64UI; -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2-defaultNaN/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/ARM-VFPv2-defaultNaN/specialize.h
r94480 r94558 94 94 | exception is raised. 95 95 *----------------------------------------------------------------------------*/ 96 #ifdef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 96 97 #define softfloat_f16UIToCommonNaN( uiA, zPtr ) if ( ! ((uiA) & 0x0200) ) softfloat_raiseFlags( softfloat_flag_invalid ) 98 #else 99 # define softfloat_f16UIToCommonNaN( uiA, zPtr, pState ) if ( ! ((uiA) & 0x0200) ) softfloat_raiseFlags( softfloat_flag_invalid, pState ) 100 #endif 97 101 98 102 /*---------------------------------------------------------------------------- … … 109 113 *----------------------------------------------------------------------------*/ 110 114 uint_fast16_t 111 softfloat_propagateNaNF16UI( uint_fast16_t uiA, uint_fast16_t uiB );115 softfloat_propagateNaNF16UI( uint_fast16_t uiA, uint_fast16_t uiB SOFTFLOAT_STATE_DECL_COMMA ); 112 116 113 117 /*---------------------------------------------------------------------------- … … 129 133 | exception is raised. 130 134 *----------------------------------------------------------------------------*/ 135 #ifdef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 131 136 #define softfloat_f32UIToCommonNaN( uiA, zPtr ) if ( ! ((uiA) & 0x00400000) ) softfloat_raiseFlags( softfloat_flag_invalid ) 137 #else 138 # define softfloat_f32UIToCommonNaN( uiA, zPtr, pState ) if ( ! ((uiA) & 0x00400000) ) softfloat_raiseFlags( softfloat_flag_invalid, pState ) 139 #endif 132 140 133 141 /*---------------------------------------------------------------------------- … … 144 152 *----------------------------------------------------------------------------*/ 145 153 uint_fast32_t 146 softfloat_propagateNaNF32UI( uint_fast32_t uiA, uint_fast32_t uiB );154 softfloat_propagateNaNF32UI( uint_fast32_t uiA, uint_fast32_t uiB SOFTFLOAT_STATE_DECL_COMMA ); 147 155 148 156 /*---------------------------------------------------------------------------- … … 164 172 | exception is raised. 165 173 *----------------------------------------------------------------------------*/ 174 #ifdef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 166 175 #define softfloat_f64UIToCommonNaN( uiA, zPtr ) if ( ! ((uiA) & UINT64_C( 0x0008000000000000 )) ) softfloat_raiseFlags( softfloat_flag_invalid ) 176 #else 177 # define softfloat_f64UIToCommonNaN( uiA, zPtr, pState ) if ( ! ((uiA) & UINT64_C( 0x0008000000000000 )) ) softfloat_raiseFlags( softfloat_flag_invalid, pState ) 178 #endif 167 179 168 180 /*---------------------------------------------------------------------------- … … 179 191 *----------------------------------------------------------------------------*/ 180 192 uint_fast64_t 181 softfloat_propagateNaNF64UI( uint_fast64_t uiA, uint_fast64_t uiB );193 softfloat_propagateNaNF64UI( uint_fast64_t uiA, uint_fast64_t uiB SOFTFLOAT_STATE_DECL_COMMA ); 182 194 183 195 /*---------------------------------------------------------------------------- … … 209 221 | exception is raised. 210 222 *----------------------------------------------------------------------------*/ 223 #ifdef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 211 224 #define softfloat_extF80UIToCommonNaN( uiA64, uiA0, zPtr ) if ( ! ((uiA0) & UINT64_C( 0x4000000000000000 )) ) softfloat_raiseFlags( softfloat_flag_invalid ) 225 #else 226 # define softfloat_extF80UIToCommonNaN( uiA64, uiA0, zPtr, pState ) if ( ! ((uiA0) & UINT64_C( 0x4000000000000000 )) ) softfloat_raiseFlags( softfloat_flag_invalid, pState ) 227 #endif 212 228 213 229 /*---------------------------------------------------------------------------- … … 244 260 uint_fast16_t uiB64, 245 261 uint_fast64_t uiB0 262 SOFTFLOAT_STATE_DECL_COMMA 246 263 ); 247 264 … … 267 284 | is raised. 268 285 *----------------------------------------------------------------------------*/ 286 #ifdef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 269 287 #define softfloat_f128UIToCommonNaN( uiA64, uiA0, zPtr ) if ( ! ((uiA64) & UINT64_C( 0x0000800000000000 )) ) softfloat_raiseFlags( softfloat_flag_invalid ) 288 #else 289 # define softfloat_f128UIToCommonNaN( uiA64, uiA0, zPtr, pState ) if ( ! ((uiA64) & UINT64_C( 0x0000800000000000 )) ) softfloat_raiseFlags( softfloat_flag_invalid, pState) 290 #endif 270 291 271 292 /*---------------------------------------------------------------------------- … … 301 322 uint_fast64_t uiB64, 302 323 uint_fast64_t uiB0 324 SOFTFLOAT_STATE_DECL_COMMA 303 325 ); 304 326 … … 316 338 | NaN, the invalid exception is raised. 317 339 *----------------------------------------------------------------------------*/ 340 #ifdef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 318 341 #define softfloat_extF80MToCommonNaN( aSPtr, zPtr ) if ( ! ((aSPtr)->signif & UINT64_C( 0x4000000000000000 )) ) softfloat_raiseFlags( softfloat_flag_invalid ) 342 #else 343 # define softfloat_extF80MToCommonNaN( aSPtr, zPtr, pState ) if ( ! ((aSPtr)->signif & UINT64_C( 0x4000000000000000 )) ) softfloat_raiseFlags( softfloat_flag_invalid, pState ) 344 #endif 319 345 320 346 /*---------------------------------------------------------------------------- … … 349 375 const struct extFloat80M *bSPtr, 350 376 struct extFloat80M *zSPtr 377 SOFTFLOAT_STATE_DECL_COMMA 351 378 ); 352 379 … … 367 394 | to form a 128-bit floating-point value. 368 395 *----------------------------------------------------------------------------*/ 396 #ifdef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 369 397 #define softfloat_f128MToCommonNaN( aWPtr, zPtr ) if ( ! ((aWPtr)[indexWordHi( 4 )] & UINT64_C( 0x0000800000000000 )) ) softfloat_raiseFlags( softfloat_flag_invalid ) 398 #else 399 # define softfloat_f128MToCommonNaN( aWPtr, zPtr ) if ( ! ((aWPtr)[indexWordHi( 4 )] & UINT64_C( 0x0000800000000000 )) ) softfloat_raiseFlags( softfloat_flag_invalid, pState ) 400 #endif 370 401 371 402 /*---------------------------------------------------------------------------- … … 400 431 void 401 432 softfloat_propagateNaNF128M( 402 const uint32_t *aWPtr, const uint32_t *bWPtr, uint32_t *zWPtr );403 404 #endif 405 406 #endif 407 433 const uint32_t *aWPtr, const uint32_t *bWPtr, uint32_t *zWPtr SOFTFLOAT_STATE_DECL_COMMA ); 434 435 #endif 436 437 #endif 438 -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2/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/ARM-VFPv2/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/ARM-VFPv2/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/ARM-VFPv2/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/ARM-VFPv2/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/ARM-VFPv2/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/ARM-VFPv2/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/ARM-VFPv2/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 && extF80M_isSignalingNaN( (const extFloat80_t *) bSPtr )) 68 69 ) { 69 softfloat_raiseFlags( softfloat_flag_invalid );70 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 70 71 if ( isSigNaNA ) goto copyNonsig; 71 72 goto copyNonsigB; -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2/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 { … … 64 65 isSigNaNA = softfloat_isSigNaNExtF80UI( uiA64, uiA0 ); 65 66 if ( isSigNaNA || softfloat_isSigNaNExtF80UI( 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 goto returnNonsigB; -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2/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 const uint32_t *ptr; … … 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 ) ptr = bWPtr; 67 67 goto copyNonsig; -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2/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 goto returnNonsigB; -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2/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 return (isSigNaNA ? uiA : uiB) | 0x0200; 59 59 } -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2/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 return (isSigNaNA ? uiA : uiB) | 0x00400000; 59 59 } -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2/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 return (isSigNaNA ? uiA : uiB) | UINT64_C( 0x0008000000000000 ); 59 59 } -
trunk/src/libs/softfloat-3e/source/ARM-VFPv2/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/ARM-VFPv2/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 -
trunk/src/libs/softfloat-3e/source/extF80M_add.c
r94480 r94558 44 44 void 45 45 extF80M_add( 46 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr )46 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 const struct extFloat80M *aSPtr, *bSPtr; … … 56 56 extFloat80_t 57 57 (*magsFuncPtr)( 58 uint_fast16_t, uint_fast64_t, uint_fast16_t, uint_fast64_t, bool );58 uint_fast16_t, uint_fast64_t, uint_fast16_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 59 59 #endif 60 60 … … 69 69 #if defined INLINE_LEVEL && (2 <= INLINE_LEVEL) 70 70 if ( signA == signB ) { 71 *zPtr = softfloat_addMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA );71 *zPtr = softfloat_addMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 72 72 } else { 73 *zPtr = softfloat_subMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA );73 *zPtr = softfloat_subMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 74 74 } 75 75 #else 76 76 magsFuncPtr = 77 77 (signA == signB) ? softfloat_addMagsExtF80 : softfloat_subMagsExtF80; 78 *zPtr = (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA );78 *zPtr = (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 79 79 #endif 80 80 … … 85 85 void 86 86 extF80M_add( 87 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr )87 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 88 88 { 89 89 … … 93 93 (struct extFloat80M *) zPtr, 94 94 false 95 SOFTFLOAT_STATE_ARG_COMMA 95 96 ); 96 97 -
trunk/src/libs/softfloat-3e/source/extF80M_div.c
r94480 r94558 46 46 void 47 47 extF80M_div( 48 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr )48 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 49 49 { 50 50 51 *zPtr = extF80_div( *aPtr, *bPtr );51 *zPtr = extF80_div( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 52 52 53 53 } … … 57 57 void 58 58 extF80M_div( 59 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr )59 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 60 60 { 61 61 const struct extFloat80M *aSPtr, *bSPtr; … … 90 90 *------------------------------------------------------------------------*/ 91 91 if ( (expA == 0x7FFF) || (expB == 0x7FFF) ) { 92 if ( softfloat_tryPropagateNaNExtF80M( aSPtr, bSPtr, zSPtr ) ) return;92 if ( softfloat_tryPropagateNaNExtF80M( aSPtr, bSPtr, zSPtr SOFTFLOAT_STATE_ARG_COMMA ) ) return; 93 93 if ( expA == 0x7FFF ) { 94 94 if ( expB == 0x7FFF ) goto invalid; … … 105 105 if ( ! x64 ) { 106 106 if ( ! sigA ) goto invalid; 107 softfloat_raiseFlags( softfloat_flag_infinite );107 softfloat_raiseFlags( softfloat_flag_infinite SOFTFLOAT_STATE_ARG_COMMA ); 108 108 goto infinity; 109 109 } … … 167 167 y[indexWord( 3, 2 )] = (qs[1]<<3) + (x64>>32); 168 168 softfloat_roundPackMToExtF80M( 169 signZ, expZ, y, extF80_roundingPrecision, zSPtr );169 signZ, expZ, y, extF80_roundingPrecision, zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 170 170 return; 171 171 /*------------------------------------------------------------------------ 172 172 *------------------------------------------------------------------------*/ 173 173 invalid: 174 softfloat_invalidExtF80M( zSPtr );174 softfloat_invalidExtF80M( zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 175 175 return; 176 176 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/extF80M_eq.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 bool extF80M_eq( const extFloat80_t *aPtr, const extFloat80_t *bPtr )46 bool extF80M_eq( const extFloat80_t *aPtr, const extFloat80_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return extF80_eq( *aPtr, *bPtr );49 return extF80_eq( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 bool extF80M_eq( const extFloat80_t *aPtr, const extFloat80_t *bPtr )55 bool extF80M_eq( const extFloat80_t *aPtr, const extFloat80_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const struct extFloat80M *aSPtr, *bSPtr; … … 78 78 || softfloat_isSigNaNExtF80UI( uiB64, uiB0 ) 79 79 ) { 80 softfloat_raiseFlags( softfloat_flag_invalid );80 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 81 81 } 82 82 return false; -
trunk/src/libs/softfloat-3e/source/extF80M_eq_signaling.c
r94480 r94558 43 43 #ifdef SOFTFLOAT_FAST_INT64 44 44 45 bool extF80M_eq_signaling( const extFloat80_t *aPtr, const extFloat80_t *bPtr )45 bool extF80M_eq_signaling( const extFloat80_t *aPtr, const extFloat80_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 48 return extF80_eq_signaling( *aPtr, *bPtr );48 return extF80_eq_signaling( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 49 49 50 50 } … … 52 52 #else 53 53 54 bool extF80M_eq_signaling( const extFloat80_t *aPtr, const extFloat80_t *bPtr )54 bool extF80M_eq_signaling( const extFloat80_t *aPtr, const extFloat80_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 55 55 { 56 56 const struct extFloat80M *aSPtr, *bSPtr; … … 73 73 *------------------------------------------------------------------------*/ 74 74 if ( isNaNExtF80UI( uiA64, uiA0 ) || isNaNExtF80UI( uiB64, uiB0 ) ) { 75 softfloat_raiseFlags( softfloat_flag_invalid );75 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 76 76 return false; 77 77 } -
trunk/src/libs/softfloat-3e/source/extF80M_le.c
r94480 r94558 43 43 #ifdef SOFTFLOAT_FAST_INT64 44 44 45 bool extF80M_le( const extFloat80_t *aPtr, const extFloat80_t *bPtr )45 bool extF80M_le( const extFloat80_t *aPtr, const extFloat80_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 48 return extF80_le( *aPtr, *bPtr );48 return extF80_le( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 49 49 50 50 } … … 52 52 #else 53 53 54 bool extF80M_le( const extFloat80_t *aPtr, const extFloat80_t *bPtr )54 bool extF80M_le( const extFloat80_t *aPtr, const extFloat80_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 55 55 { 56 56 const struct extFloat80M *aSPtr, *bSPtr; … … 74 74 *------------------------------------------------------------------------*/ 75 75 if ( isNaNExtF80UI( uiA64, uiA0 ) || isNaNExtF80UI( uiB64, uiB0 ) ) { 76 softfloat_raiseFlags( softfloat_flag_invalid );76 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 77 77 return false; 78 78 } -
trunk/src/libs/softfloat-3e/source/extF80M_le_quiet.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 bool extF80M_le_quiet( const extFloat80_t *aPtr, const extFloat80_t *bPtr )46 bool extF80M_le_quiet( const extFloat80_t *aPtr, const extFloat80_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return extF80_le_quiet( *aPtr, *bPtr );49 return extF80_le_quiet( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 bool extF80M_le_quiet( const extFloat80_t *aPtr, const extFloat80_t *bPtr )55 bool extF80M_le_quiet( const extFloat80_t *aPtr, const extFloat80_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const struct extFloat80M *aSPtr, *bSPtr; … … 79 79 || softfloat_isSigNaNExtF80UI( uiB64, uiB0 ) 80 80 ) { 81 softfloat_raiseFlags( softfloat_flag_invalid );81 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 82 82 } 83 83 return false; -
trunk/src/libs/softfloat-3e/source/extF80M_lt.c
r94480 r94558 43 43 #ifdef SOFTFLOAT_FAST_INT64 44 44 45 bool extF80M_lt( const extFloat80_t *aPtr, const extFloat80_t *bPtr )45 bool extF80M_lt( const extFloat80_t *aPtr, const extFloat80_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 48 return extF80_lt( *aPtr, *bPtr );48 return extF80_lt( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 49 49 50 50 } … … 52 52 #else 53 53 54 bool extF80M_lt( const extFloat80_t *aPtr, const extFloat80_t *bPtr )54 bool extF80M_lt( const extFloat80_t *aPtr, const extFloat80_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 55 55 { 56 56 const struct extFloat80M *aSPtr, *bSPtr; … … 74 74 *------------------------------------------------------------------------*/ 75 75 if ( isNaNExtF80UI( uiA64, uiA0 ) || isNaNExtF80UI( uiB64, uiB0 ) ) { 76 softfloat_raiseFlags( softfloat_flag_invalid );76 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 77 77 return false; 78 78 } -
trunk/src/libs/softfloat-3e/source/extF80M_lt_quiet.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 bool extF80M_lt_quiet( const extFloat80_t *aPtr, const extFloat80_t *bPtr )46 bool extF80M_lt_quiet( const extFloat80_t *aPtr, const extFloat80_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return extF80_lt_quiet( *aPtr, *bPtr );49 return extF80_lt_quiet( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 bool extF80M_lt_quiet( const extFloat80_t *aPtr, const extFloat80_t *bPtr )55 bool extF80M_lt_quiet( const extFloat80_t *aPtr, const extFloat80_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const struct extFloat80M *aSPtr, *bSPtr; … … 79 79 || softfloat_isSigNaNExtF80UI( uiB64, uiB0 ) 80 80 ) { 81 softfloat_raiseFlags( softfloat_flag_invalid );81 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 82 82 } 83 83 return false; -
trunk/src/libs/softfloat-3e/source/extF80M_mul.c
r94480 r94558 46 46 void 47 47 extF80M_mul( 48 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr )48 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 49 49 { 50 50 51 *zPtr = extF80_mul( *aPtr, *bPtr );51 *zPtr = extF80_mul( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 52 52 53 53 } … … 57 57 void 58 58 extF80M_mul( 59 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr )59 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 60 60 { 61 61 const struct extFloat80M *aSPtr, *bSPtr; … … 86 86 *------------------------------------------------------------------------*/ 87 87 if ( (expA == 0x7FFF) || (expB == 0x7FFF) ) { 88 if ( softfloat_tryPropagateNaNExtF80M( aSPtr, bSPtr, zSPtr ) ) return;88 if ( softfloat_tryPropagateNaNExtF80M( aSPtr, bSPtr, zSPtr SOFTFLOAT_STATE_ARG_COMMA ) ) return; 89 89 if ( 90 90 (! aSPtr->signif && (expA != 0x7FFF)) 91 91 || (! bSPtr->signif && (expB != 0x7FFF)) 92 92 ) { 93 softfloat_invalidExtF80M( zSPtr );93 softfloat_invalidExtF80M( zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 94 94 return; 95 95 } … … 123 123 } 124 124 softfloat_roundPackMToExtF80M( 125 signZ, expZ, extSigZPtr, extF80_roundingPrecision, zSPtr );125 signZ, expZ, extSigZPtr, extF80_roundingPrecision, zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 126 126 return; 127 127 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/extF80M_rem.c
r94480 r94558 46 46 void 47 47 extF80M_rem( 48 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr )48 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 49 49 { 50 50 51 *zPtr = extF80_rem( *aPtr, *bPtr );51 *zPtr = extF80_rem( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 52 52 53 53 } … … 57 57 void 58 58 extF80M_rem( 59 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr )59 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 60 60 { 61 61 const struct extFloat80M *aSPtr, *bSPtr; … … 83 83 *------------------------------------------------------------------------*/ 84 84 if ( (expA == 0x7FFF) || (expB == 0x7FFF) ) { 85 if ( softfloat_tryPropagateNaNExtF80M( aSPtr, bSPtr, zSPtr ) ) return;85 if ( softfloat_tryPropagateNaNExtF80M( aSPtr, bSPtr, zSPtr SOFTFLOAT_STATE_ARG_COMMA ) ) return; 86 86 if ( expA == 0x7FFF ) goto invalid; 87 87 /*-------------------------------------------------------------------- … … 182 182 softfloat_negX96M( remPtr ); 183 183 } 184 softfloat_normRoundPackMToExtF80M( signRem, expB + 2, remPtr, 80, zSPtr );184 softfloat_normRoundPackMToExtF80M( signRem, expB + 2, remPtr, 80, zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 185 185 return; 186 186 /*------------------------------------------------------------------------ 187 187 *------------------------------------------------------------------------*/ 188 188 invalid: 189 softfloat_invalidExtF80M( zSPtr );189 softfloat_invalidExtF80M( zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 190 190 return; 191 191 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/extF80M_roundToInt.c
r94480 r94558 50 50 bool exact, 51 51 extFloat80_t *zPtr 52 SOFTFLOAT_STATE_DECL_COMMA 52 53 ) 53 54 { 54 55 55 *zPtr = extF80_roundToInt( *aPtr, roundingMode, exact );56 *zPtr = extF80_roundToInt( *aPtr, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 56 57 57 58 } … … 65 66 bool exact, 66 67 extFloat80_t *zPtr 68 SOFTFLOAT_STATE_DECL_COMMA 67 69 ) 68 70 { … … 129 131 if ( exp == 0x7FFF ) { 130 132 if ( sigA & UINT64_C( 0x7FFFFFFFFFFFFFFF ) ) { 131 softfloat_propagateNaNExtF80M( aSPtr, 0, zSPtr );133 softfloat_propagateNaNExtF80M( aSPtr, 0, zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 132 134 return; 133 135 } -
trunk/src/libs/softfloat-3e/source/extF80M_sqrt.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 void extF80M_sqrt( const extFloat80_t *aPtr, extFloat80_t *zPtr )46 void extF80M_sqrt( const extFloat80_t *aPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 *zPtr = extF80_sqrt( *aPtr );49 *zPtr = extF80_sqrt( *aPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 void extF80M_sqrt( const extFloat80_t *aPtr, extFloat80_t *zPtr )55 void extF80M_sqrt( const extFloat80_t *aPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const struct extFloat80M *aSPtr; … … 79 79 if ( expA == 0x7FFF ) { 80 80 if ( rem64 & UINT64_C( 0x7FFFFFFFFFFFFFFF ) ) { 81 softfloat_propagateNaNExtF80M( aSPtr, 0, zSPtr );81 softfloat_propagateNaNExtF80M( aSPtr, 0, zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 82 82 return; 83 83 } … … 162 162 } 163 163 softfloat_roundPackMToExtF80M( 164 0, expZ, extSigZ, extF80_roundingPrecision, zSPtr );164 0, expZ, extSigZ, extF80_roundingPrecision, zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 165 165 return; 166 166 /*------------------------------------------------------------------------ 167 167 *------------------------------------------------------------------------*/ 168 168 invalid: 169 softfloat_invalidExtF80M( zSPtr );169 softfloat_invalidExtF80M( zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 170 170 return; 171 171 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/extF80M_sub.c
r94480 r94558 44 44 void 45 45 extF80M_sub( 46 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr )46 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 const struct extFloat80M *aSPtr, *bSPtr; … … 56 56 extFloat80_t 57 57 (*magsFuncPtr)( 58 uint_fast16_t, uint_fast64_t, uint_fast16_t, uint_fast64_t, bool );58 uint_fast16_t, uint_fast64_t, uint_fast16_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 59 59 #endif 60 60 … … 69 69 #if defined INLINE_LEVEL && (2 <= INLINE_LEVEL) 70 70 if ( signA == signB ) { 71 *zPtr = softfloat_subMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA );71 *zPtr = softfloat_subMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 72 72 } else { 73 *zPtr = softfloat_addMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA );73 *zPtr = softfloat_addMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 74 74 } 75 75 #else 76 76 magsFuncPtr = 77 77 (signA == signB) ? softfloat_subMagsExtF80 : softfloat_addMagsExtF80; 78 *zPtr = (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA );78 *zPtr = (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 79 79 #endif 80 80 … … 85 85 void 86 86 extF80M_sub( 87 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr )87 const extFloat80_t *aPtr, const extFloat80_t *bPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 88 88 { 89 89 … … 93 93 (struct extFloat80M *) zPtr, 94 94 true 95 SOFTFLOAT_STATE_ARG_COMMA 95 96 ); 96 97 -
trunk/src/libs/softfloat-3e/source/extF80M_to_f128M.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 void extF80M_to_f128M( const extFloat80_t *aPtr, float128_t *zPtr )46 void extF80M_to_f128M( const extFloat80_t *aPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 *zPtr = extF80_to_f128( *aPtr );49 *zPtr = extF80_to_f128( *aPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 void extF80M_to_f128M( const extFloat80_t *aPtr, float128_t *zPtr )55 void extF80M_to_f128M( const extFloat80_t *aPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const struct extFloat80M *aSPtr; … … 79 79 if ( exp == 0x7FFF ) { 80 80 if ( sig & UINT64_C( 0x7FFFFFFFFFFFFFFF ) ) { 81 softfloat_extF80MToCommonNaN( aSPtr, &commonNaN );81 softfloat_extF80MToCommonNaN( aSPtr, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 82 82 softfloat_commonNaNToF128M( &commonNaN, zWPtr ); 83 83 return; -
trunk/src/libs/softfloat-3e/source/extF80M_to_f16.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 float16_t extF80M_to_f16( const extFloat80_t *aPtr )46 float16_t extF80M_to_f16( const extFloat80_t *aPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return extF80_to_f16( *aPtr );49 return extF80_to_f16( *aPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 float16_t extF80M_to_f16( const extFloat80_t *aPtr )55 float16_t extF80M_to_f16( const extFloat80_t *aPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const struct extFloat80M *aSPtr; … … 77 77 if ( exp == 0x7FFF ) { 78 78 if ( sig & UINT64_C( 0x7FFFFFFFFFFFFFFF ) ) { 79 softfloat_extF80MToCommonNaN( aSPtr, &commonNaN );79 softfloat_extF80MToCommonNaN( aSPtr, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 80 80 uiZ = softfloat_commonNaNToF16UI( &commonNaN ); 81 81 } else { … … 100 100 if ( exp < -0x40 ) exp = -0x40; 101 101 } 102 return softfloat_roundPackToF16( sign, exp, sig16 );102 return softfloat_roundPackToF16( sign, exp, sig16 SOFTFLOAT_STATE_ARG_COMMA ); 103 103 /*------------------------------------------------------------------------ 104 104 *------------------------------------------------------------------------*/ -
trunk/src/libs/softfloat-3e/source/extF80M_to_f32.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 float32_t extF80M_to_f32( const extFloat80_t *aPtr )46 float32_t extF80M_to_f32( const extFloat80_t *aPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return extF80_to_f32( *aPtr );49 return extF80_to_f32( *aPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 float32_t extF80M_to_f32( const extFloat80_t *aPtr )55 float32_t extF80M_to_f32( const extFloat80_t *aPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const struct extFloat80M *aSPtr; … … 77 77 if ( exp == 0x7FFF ) { 78 78 if ( sig & UINT64_C( 0x7FFFFFFFFFFFFFFF ) ) { 79 softfloat_extF80MToCommonNaN( aSPtr, &commonNaN );79 softfloat_extF80MToCommonNaN( aSPtr, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 80 80 uiZ = softfloat_commonNaNToF32UI( &commonNaN ); 81 81 } else { … … 100 100 if ( exp < -0x1000 ) exp = -0x1000; 101 101 } 102 return softfloat_roundPackToF32( sign, exp, sig32 );102 return softfloat_roundPackToF32( sign, exp, sig32 SOFTFLOAT_STATE_ARG_COMMA ); 103 103 /*------------------------------------------------------------------------ 104 104 *------------------------------------------------------------------------*/ -
trunk/src/libs/softfloat-3e/source/extF80M_to_f64.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 float64_t extF80M_to_f64( const extFloat80_t *aPtr )46 float64_t extF80M_to_f64( const extFloat80_t *aPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return extF80_to_f64( *aPtr );49 return extF80_to_f64( *aPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 float64_t extF80M_to_f64( const extFloat80_t *aPtr )55 float64_t extF80M_to_f64( const extFloat80_t *aPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const struct extFloat80M *aSPtr; … … 77 77 if ( exp == 0x7FFF ) { 78 78 if ( sig & UINT64_C( 0x7FFFFFFFFFFFFFFF ) ) { 79 softfloat_extF80MToCommonNaN( aSPtr, &commonNaN );79 softfloat_extF80MToCommonNaN( aSPtr, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 80 80 uiZ = softfloat_commonNaNToF64UI( &commonNaN ); 81 81 } else { … … 100 100 if ( exp < -0x1000 ) exp = -0x1000; 101 101 } 102 return softfloat_roundPackToF64( sign, exp, sig );102 return softfloat_roundPackToF64( sign, exp, sig SOFTFLOAT_STATE_ARG_COMMA ); 103 103 /*------------------------------------------------------------------------ 104 104 *------------------------------------------------------------------------*/ -
trunk/src/libs/softfloat-3e/source/extF80M_to_i32.c
r94480 r94558 46 46 int_fast32_t 47 47 extF80M_to_i32( 48 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact )48 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 49 49 { 50 50 51 return extF80_to_i32( *aPtr, roundingMode, exact );51 return extF80_to_i32( *aPtr, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 52 52 53 53 } … … 57 57 int_fast32_t 58 58 extF80M_to_i32( 59 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact )59 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 60 60 { 61 61 const struct extFloat80M *aSPtr; … … 86 86 sig = softfloat_shiftRightJam64( sig, shiftDist ); 87 87 } 88 return softfloat_roundToI32( sign, sig, roundingMode, exact );88 return softfloat_roundToI32( sign, sig, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 89 89 /*------------------------------------------------------------------------ 90 90 *------------------------------------------------------------------------*/ 91 91 invalid: 92 softfloat_raiseFlags( softfloat_flag_invalid );92 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 93 93 return 94 94 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) ? i32_fromNaN -
trunk/src/libs/softfloat-3e/source/extF80M_to_i32_r_minMag.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 int_fast32_t extF80M_to_i32_r_minMag( const extFloat80_t *aPtr, bool exact )46 int_fast32_t extF80M_to_i32_r_minMag( const extFloat80_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return extF80_to_i32_r_minMag( *aPtr, exact );49 return extF80_to_i32_r_minMag( *aPtr, exact SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 int_fast32_t extF80M_to_i32_r_minMag( const extFloat80_t *aPtr, bool exact )55 int_fast32_t extF80M_to_i32_r_minMag( const extFloat80_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const struct extFloat80M *aSPtr; … … 110 110 *------------------------------------------------------------------------*/ 111 111 invalid: 112 softfloat_raiseFlags( softfloat_flag_invalid );112 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 113 113 return 114 114 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) ? i32_fromNaN -
trunk/src/libs/softfloat-3e/source/extF80M_to_i64.c
r94480 r94558 46 46 int_fast64_t 47 47 extF80M_to_i64( 48 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact )48 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 49 49 { 50 50 51 return extF80_to_i64( *aPtr, roundingMode, exact );51 return extF80_to_i64( *aPtr, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 52 52 53 53 } … … 57 57 int_fast64_t 58 58 extF80M_to_i64( 59 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact )59 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 60 60 { 61 61 const struct extFloat80M *aSPtr; … … 78 78 shiftDist = 0x403E - exp; 79 79 if ( shiftDist < 0 ) { 80 softfloat_raiseFlags( softfloat_flag_invalid );80 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 81 81 return 82 82 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) … … 90 90 extSig[indexWord( 3, 0 )] = 0; 91 91 if ( shiftDist ) softfloat_shiftRightJam96M( extSig, shiftDist, extSig ); 92 return softfloat_roundMToI64( sign, extSig, roundingMode, exact );92 return softfloat_roundMToI64( sign, extSig, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 93 93 94 94 } -
trunk/src/libs/softfloat-3e/source/extF80M_to_i64_r_minMag.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 int_fast64_t extF80M_to_i64_r_minMag( const extFloat80_t *aPtr, bool exact )46 int_fast64_t extF80M_to_i64_r_minMag( const extFloat80_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return extF80_to_i64_r_minMag( *aPtr, exact );49 return extF80_to_i64_r_minMag( *aPtr, exact SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 int_fast64_t extF80M_to_i64_r_minMag( const extFloat80_t *aPtr, bool exact )55 int_fast64_t extF80M_to_i64_r_minMag( const extFloat80_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const struct extFloat80M *aSPtr; … … 105 105 *------------------------------------------------------------------------*/ 106 106 invalid: 107 softfloat_raiseFlags( softfloat_flag_invalid );107 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 108 108 return 109 109 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) ? i64_fromNaN -
trunk/src/libs/softfloat-3e/source/extF80M_to_ui32.c
r94480 r94558 46 46 uint_fast32_t 47 47 extF80M_to_ui32( 48 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact )48 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 49 49 { 50 50 51 return extF80_to_ui32( *aPtr, roundingMode, exact );51 return extF80_to_ui32( *aPtr, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 52 52 53 53 } … … 57 57 uint_fast32_t 58 58 extF80M_to_ui32( 59 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact )59 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 60 60 { 61 61 const struct extFloat80M *aSPtr; … … 86 86 sig = softfloat_shiftRightJam64( sig, shiftDist ); 87 87 } 88 return softfloat_roundToUI32( sign, sig, roundingMode, exact );88 return softfloat_roundToUI32( sign, sig, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 89 89 /*------------------------------------------------------------------------ 90 90 *------------------------------------------------------------------------*/ 91 91 invalid: 92 softfloat_raiseFlags( softfloat_flag_invalid );92 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 93 93 return 94 94 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) -
trunk/src/libs/softfloat-3e/source/extF80M_to_ui32_r_minMag.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 uint_fast32_t extF80M_to_ui32_r_minMag( const extFloat80_t *aPtr, bool exact )46 uint_fast32_t extF80M_to_ui32_r_minMag( const extFloat80_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return extF80_to_ui32_r_minMag( *aPtr, exact );49 return extF80_to_ui32_r_minMag( *aPtr, exact SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 uint_fast32_t extF80M_to_ui32_r_minMag( const extFloat80_t *aPtr, bool exact )55 uint_fast32_t extF80M_to_ui32_r_minMag( const extFloat80_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const struct extFloat80M *aSPtr; … … 100 100 *------------------------------------------------------------------------*/ 101 101 invalid: 102 softfloat_raiseFlags( softfloat_flag_invalid );102 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 103 103 return 104 104 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) -
trunk/src/libs/softfloat-3e/source/extF80M_to_ui64.c
r94480 r94558 46 46 uint_fast64_t 47 47 extF80M_to_ui64( 48 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact )48 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 49 49 { 50 50 51 return extF80_to_ui64( *aPtr, roundingMode, exact );51 return extF80_to_ui64( *aPtr, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 52 52 53 53 } … … 57 57 uint_fast64_t 58 58 extF80M_to_ui64( 59 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact )59 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 60 60 { 61 61 const struct extFloat80M *aSPtr; … … 78 78 shiftDist = 0x403E - exp; 79 79 if ( shiftDist < 0 ) { 80 softfloat_raiseFlags( softfloat_flag_invalid );80 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 81 81 return 82 82 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) … … 90 90 extSig[indexWord( 3, 0 )] = 0; 91 91 if ( shiftDist ) softfloat_shiftRightJam96M( extSig, shiftDist, extSig ); 92 return softfloat_roundMToUI64( sign, extSig, roundingMode, exact );92 return softfloat_roundMToUI64( sign, extSig, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA); 93 93 94 94 } -
trunk/src/libs/softfloat-3e/source/extF80M_to_ui64_r_minMag.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 uint_fast64_t extF80M_to_ui64_r_minMag( const extFloat80_t *aPtr, bool exact )46 uint_fast64_t extF80M_to_ui64_r_minMag( const extFloat80_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return extF80_to_ui64_r_minMag( *aPtr, exact );49 return extF80_to_ui64_r_minMag( *aPtr, exact SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 uint_fast64_t extF80M_to_ui64_r_minMag( const extFloat80_t *aPtr, bool exact )55 uint_fast64_t extF80M_to_ui64_r_minMag( const extFloat80_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const struct extFloat80M *aSPtr; … … 97 97 *------------------------------------------------------------------------*/ 98 98 invalid: 99 softfloat_raiseFlags( softfloat_flag_invalid );99 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 100 100 return 101 101 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) -
trunk/src/libs/softfloat-3e/source/extF80_add.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 extFloat80_t extF80_add( extFloat80_t a, extFloat80_t b )43 extFloat80_t extF80_add( extFloat80_t a, extFloat80_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union { struct extFloat80M s; extFloat80_t f; } uA; … … 54 54 extFloat80_t 55 55 (*magsFuncPtr)( 56 uint_fast16_t, uint_fast64_t, uint_fast16_t, uint_fast64_t, bool );56 uint_fast16_t, uint_fast64_t, uint_fast16_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 57 57 #endif 58 58 … … 67 67 #if defined INLINE_LEVEL && (2 <= INLINE_LEVEL) 68 68 if ( signA == signB ) { 69 return softfloat_addMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA );69 return softfloat_addMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 70 70 } else { 71 return softfloat_subMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA );71 return softfloat_subMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 72 72 } 73 73 #else 74 74 magsFuncPtr = 75 75 (signA == signB) ? softfloat_addMagsExtF80 : softfloat_subMagsExtF80; 76 return (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA );76 return (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 77 77 #endif 78 78 -
trunk/src/libs/softfloat-3e/source/extF80_div.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 extFloat80_t extF80_div( extFloat80_t a, extFloat80_t b )44 extFloat80_t extF80_div( extFloat80_t a, extFloat80_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 107 107 if ( ! sigB ) { 108 108 if ( ! sigA ) goto invalid; 109 softfloat_raiseFlags( softfloat_flag_infinite );109 softfloat_raiseFlags( softfloat_flag_infinite SOFTFLOAT_STATE_ARG_COMMA ); 110 110 goto infinity; 111 111 } … … 169 169 return 170 170 softfloat_roundPackToExtF80( 171 signZ, expZ, sigZ, sigZExtra, extF80_roundingPrecision );171 signZ, expZ, sigZ, sigZExtra, extF80_roundingPrecision SOFTFLOAT_STATE_ARG_COMMA ); 172 172 /*------------------------------------------------------------------------ 173 173 *------------------------------------------------------------------------*/ 174 174 propagateNaN: 175 uiZ = softfloat_propagateNaNExtF80UI( uiA64, uiA0, uiB64, uiB0 );175 uiZ = softfloat_propagateNaNExtF80UI( uiA64, uiA0, uiB64, uiB0 SOFTFLOAT_STATE_ARG_COMMA ); 176 176 uiZ64 = uiZ.v64; 177 177 uiZ0 = uiZ.v0; … … 180 180 *------------------------------------------------------------------------*/ 181 181 invalid: 182 softfloat_raiseFlags( softfloat_flag_invalid );182 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 183 183 uiZ64 = defaultNaNExtF80UI64; 184 184 uiZ0 = defaultNaNExtF80UI0; -
trunk/src/libs/softfloat-3e/source/extF80_eq.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool extF80_eq( extFloat80_t a, extFloat80_t b )44 bool extF80_eq( extFloat80_t a, extFloat80_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 62 62 || softfloat_isSigNaNExtF80UI( uiB64, uiB0 ) 63 63 ) { 64 softfloat_raiseFlags( softfloat_flag_invalid );64 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 65 65 } 66 66 return false; -
trunk/src/libs/softfloat-3e/source/extF80_eq_signaling.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 bool extF80_eq_signaling( extFloat80_t a, extFloat80_t b )43 bool extF80_eq_signaling( extFloat80_t a, extFloat80_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union { struct extFloat80M s; extFloat80_t f; } uA; … … 57 57 uiB0 = uB.s.signif; 58 58 if ( isNaNExtF80UI( uiA64, uiA0 ) || isNaNExtF80UI( uiB64, uiB0 ) ) { 59 softfloat_raiseFlags( softfloat_flag_invalid );59 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 60 60 return false; 61 61 } -
trunk/src/libs/softfloat-3e/source/extF80_le.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool extF80_le( extFloat80_t a, extFloat80_t b )44 bool extF80_le( extFloat80_t a, extFloat80_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 59 59 uiB0 = uB.s.signif; 60 60 if ( isNaNExtF80UI( uiA64, uiA0 ) || isNaNExtF80UI( uiB64, uiB0 ) ) { 61 softfloat_raiseFlags( softfloat_flag_invalid );61 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 62 62 return false; 63 63 } -
trunk/src/libs/softfloat-3e/source/extF80_le_quiet.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool extF80_le_quiet( extFloat80_t a, extFloat80_t b )44 bool extF80_le_quiet( extFloat80_t a, extFloat80_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 63 63 || softfloat_isSigNaNExtF80UI( uiB64, uiB0 ) 64 64 ) { 65 softfloat_raiseFlags( softfloat_flag_invalid );65 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 66 66 } 67 67 return false; -
trunk/src/libs/softfloat-3e/source/extF80_lt.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool extF80_lt( extFloat80_t a, extFloat80_t b )44 bool extF80_lt( extFloat80_t a, extFloat80_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 59 59 uiB0 = uB.s.signif; 60 60 if ( isNaNExtF80UI( uiA64, uiA0 ) || isNaNExtF80UI( uiB64, uiB0 ) ) { 61 softfloat_raiseFlags( softfloat_flag_invalid );61 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 62 62 return false; 63 63 } -
trunk/src/libs/softfloat-3e/source/extF80_lt_quiet.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool extF80_lt_quiet( extFloat80_t a, extFloat80_t b )44 bool extF80_lt_quiet( extFloat80_t a, extFloat80_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 63 63 || softfloat_isSigNaNExtF80UI( uiB64, uiB0 ) 64 64 ) { 65 softfloat_raiseFlags( softfloat_flag_invalid );65 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 66 66 } 67 67 return false; -
trunk/src/libs/softfloat-3e/source/extF80_mul.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 extFloat80_t extF80_mul( extFloat80_t a, extFloat80_t b )44 extFloat80_t extF80_mul( extFloat80_t a, extFloat80_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 125 125 return 126 126 softfloat_roundPackToExtF80( 127 signZ, expZ, sig128Z.v64, sig128Z.v0, extF80_roundingPrecision );127 signZ, expZ, sig128Z.v64, sig128Z.v0, extF80_roundingPrecision SOFTFLOAT_STATE_ARG_COMMA ); 128 128 /*------------------------------------------------------------------------ 129 129 *------------------------------------------------------------------------*/ 130 130 propagateNaN: 131 uiZ = softfloat_propagateNaNExtF80UI( uiA64, uiA0, uiB64, uiB0 );131 uiZ = softfloat_propagateNaNExtF80UI( uiA64, uiA0, uiB64, uiB0 SOFTFLOAT_STATE_ARG_COMMA ); 132 132 uiZ64 = uiZ.v64; 133 133 uiZ0 = uiZ.v0; … … 137 137 infArg: 138 138 if ( ! magBits ) { 139 softfloat_raiseFlags( softfloat_flag_invalid );139 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 140 140 uiZ64 = defaultNaNExtF80UI64; 141 141 uiZ0 = defaultNaNExtF80UI0; -
trunk/src/libs/softfloat-3e/source/extF80_rem.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 extFloat80_t extF80_rem( extFloat80_t a, extFloat80_t b )44 extFloat80_t extF80_rem( extFloat80_t a, extFloat80_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 193 193 return 194 194 softfloat_normRoundPackToExtF80( 195 signRem, rem.v64 | rem.v0 ? expB + 32 : 0, rem.v64, rem.v0, 80 );195 signRem, rem.v64 | rem.v0 ? expB + 32 : 0, rem.v64, rem.v0, 80 SOFTFLOAT_STATE_ARG_COMMA ); 196 196 /*------------------------------------------------------------------------ 197 197 *------------------------------------------------------------------------*/ 198 198 propagateNaN: 199 uiZ = softfloat_propagateNaNExtF80UI( uiA64, uiA0, uiB64, uiB0 );199 uiZ = softfloat_propagateNaNExtF80UI( uiA64, uiA0, uiB64, uiB0 SOFTFLOAT_STATE_ARG_COMMA ); 200 200 uiZ64 = uiZ.v64; 201 201 uiZ0 = uiZ.v0; … … 204 204 *------------------------------------------------------------------------*/ 205 205 invalid: 206 softfloat_raiseFlags( softfloat_flag_invalid );206 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 207 207 uiZ64 = defaultNaNExtF80UI64; 208 208 uiZ0 = defaultNaNExtF80UI0; -
trunk/src/libs/softfloat-3e/source/extF80_roundToInt.c
r94548 r94558 44 44 45 45 extFloat80_t 46 extF80_roundToInt( extFloat80_t a, uint_fast8_t roundingMode, bool exact )46 extF80_roundToInt( extFloat80_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 union { struct extFloat80M s; extFloat80_t f; } uA; … … 81 81 if ( exp == 0x7FFF ) { 82 82 if ( sigA & UINT64_C( 0x7FFFFFFFFFFFFFFF ) ) { 83 uiZ = softfloat_propagateNaNExtF80UI( uiA64, sigA, 0, 0 );83 uiZ = softfloat_propagateNaNExtF80UI( uiA64, sigA, 0, 0 SOFTFLOAT_STATE_ARG_COMMA ); 84 84 uiZ64 = uiZ.v64; 85 85 sigZ = uiZ.v0; -
trunk/src/libs/softfloat-3e/source/extF80_sqrt.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 extFloat80_t extF80_sqrt( extFloat80_t a )44 extFloat80_t extF80_sqrt( extFloat80_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 74 74 if ( expA == 0x7FFF ) { 75 75 if ( sigA & UINT64_C( 0x7FFFFFFFFFFFFFFF ) ) { 76 uiZ = softfloat_propagateNaNExtF80UI( uiA64, uiA0, 0, 0 );76 uiZ = softfloat_propagateNaNExtF80UI( uiA64, uiA0, 0, 0 SOFTFLOAT_STATE_ARG_COMMA ); 77 77 uiZ64 = uiZ.v64; 78 78 uiZ0 = uiZ.v0; … … 155 155 return 156 156 softfloat_roundPackToExtF80( 157 0, expZ, sigZ, sigZExtra, extF80_roundingPrecision );157 0, expZ, sigZ, sigZExtra, extF80_roundingPrecision SOFTFLOAT_STATE_ARG_COMMA ); 158 158 /*------------------------------------------------------------------------ 159 159 *------------------------------------------------------------------------*/ 160 160 invalid: 161 softfloat_raiseFlags( softfloat_flag_invalid );161 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 162 162 uiZ64 = defaultNaNExtF80UI64; 163 163 uiZ0 = defaultNaNExtF80UI0; -
trunk/src/libs/softfloat-3e/source/extF80_sub.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 extFloat80_t extF80_sub( extFloat80_t a, extFloat80_t b )43 extFloat80_t extF80_sub( extFloat80_t a, extFloat80_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union { struct extFloat80M s; extFloat80_t f; } uA; … … 54 54 extFloat80_t 55 55 (*magsFuncPtr)( 56 uint_fast16_t, uint_fast64_t, uint_fast16_t, uint_fast64_t, bool );56 uint_fast16_t, uint_fast64_t, uint_fast16_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 57 57 #endif 58 58 … … 67 67 #if defined INLINE_LEVEL && (2 <= INLINE_LEVEL) 68 68 if ( signA == signB ) { 69 return softfloat_subMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA );69 return softfloat_subMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 70 70 } else { 71 return softfloat_addMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA );71 return softfloat_addMagsExtF80( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 72 72 } 73 73 #else 74 74 magsFuncPtr = 75 75 (signA == signB) ? softfloat_subMagsExtF80 : softfloat_addMagsExtF80; 76 return (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA );76 return (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 77 77 #endif 78 78 -
trunk/src/libs/softfloat-3e/source/extF80_to_f128.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float128_t extF80_to_f128( extFloat80_t a )44 float128_t extF80_to_f128( extFloat80_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 61 61 frac = uiA0 & UINT64_C( 0x7FFFFFFFFFFFFFFF ); 62 62 if ( (exp == 0x7FFF) && frac ) { 63 softfloat_extF80UIToCommonNaN( uiA64, uiA0, &commonNaN );63 softfloat_extF80UIToCommonNaN( uiA64, uiA0, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 64 64 uiZ = softfloat_commonNaNToF128UI( &commonNaN ); 65 65 } else { -
trunk/src/libs/softfloat-3e/source/extF80_to_f16.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float16_t extF80_to_f16( extFloat80_t a )44 float16_t extF80_to_f16( extFloat80_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 66 66 if ( exp == 0x7FFF ) { 67 67 if ( sig & UINT64_C( 0x7FFFFFFFFFFFFFFF ) ) { 68 softfloat_extF80UIToCommonNaN( uiA64, uiA0, &commonNaN );68 softfloat_extF80UIToCommonNaN( uiA64, uiA0, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 69 69 uiZ = softfloat_commonNaNToF16UI( &commonNaN ); 70 70 } else { … … 86 86 if ( exp < -0x40 ) exp = -0x40; 87 87 } 88 return softfloat_roundPackToF16( sign, exp, sig16 );88 return softfloat_roundPackToF16( sign, exp, sig16 SOFTFLOAT_STATE_ARG_COMMA ); 89 89 /*------------------------------------------------------------------------ 90 90 *------------------------------------------------------------------------*/ -
trunk/src/libs/softfloat-3e/source/extF80_to_f32.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float32_t extF80_to_f32( extFloat80_t a )44 float32_t extF80_to_f32( extFloat80_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 66 66 if ( exp == 0x7FFF ) { 67 67 if ( sig & UINT64_C( 0x7FFFFFFFFFFFFFFF ) ) { 68 softfloat_extF80UIToCommonNaN( uiA64, uiA0, &commonNaN );68 softfloat_extF80UIToCommonNaN( uiA64, uiA0, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 69 69 uiZ = softfloat_commonNaNToF32UI( &commonNaN ); 70 70 } else { … … 86 86 if ( exp < -0x1000 ) exp = -0x1000; 87 87 } 88 return softfloat_roundPackToF32( sign, exp, sig32 );88 return softfloat_roundPackToF32( sign, exp, sig32 SOFTFLOAT_STATE_ARG_COMMA ); 89 89 /*------------------------------------------------------------------------ 90 90 *------------------------------------------------------------------------*/ -
trunk/src/libs/softfloat-3e/source/extF80_to_f64.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float64_t extF80_to_f64( extFloat80_t a )44 float64_t extF80_to_f64( extFloat80_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 72 72 if ( exp == 0x7FFF ) { 73 73 if ( sig & UINT64_C( 0x7FFFFFFFFFFFFFFF ) ) { 74 softfloat_extF80UIToCommonNaN( uiA64, uiA0, &commonNaN );74 softfloat_extF80UIToCommonNaN( uiA64, uiA0, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 75 75 uiZ = softfloat_commonNaNToF64UI( &commonNaN ); 76 76 } else { … … 86 86 if ( exp < -0x1000 ) exp = -0x1000; 87 87 } 88 return softfloat_roundPackToF64( sign, exp, sig );88 return softfloat_roundPackToF64( sign, exp, sig SOFTFLOAT_STATE_ARG_COMMA ); 89 89 /*------------------------------------------------------------------------ 90 90 *------------------------------------------------------------------------*/ -
trunk/src/libs/softfloat-3e/source/extF80_to_i32.c
r94480 r94558 43 43 44 44 int_fast32_t 45 extF80_to_i32( extFloat80_t a, uint_fast8_t roundingMode, bool exact )45 extF80_to_i32( extFloat80_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 union { struct extFloat80M s; extFloat80_t f; } uA; … … 68 68 sign = 1; 69 69 #else 70 softfloat_raiseFlags( softfloat_flag_invalid );70 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 71 71 return i32_fromNaN; 72 72 #endif … … 78 78 if ( shiftDist <= 0 ) shiftDist = 1; 79 79 sig = softfloat_shiftRightJam64( sig, shiftDist ); 80 return softfloat_roundToI32( sign, sig, roundingMode, exact );80 return softfloat_roundToI32( sign, sig, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 81 81 82 82 } -
trunk/src/libs/softfloat-3e/source/extF80_to_i32_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast32_t extF80_to_i32_r_minMag( extFloat80_t a, bool exact )44 int_fast32_t extF80_to_i32_r_minMag( extFloat80_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 80 80 return -0x7FFFFFFF - 1; 81 81 } 82 softfloat_raiseFlags( softfloat_flag_invalid );82 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 83 83 return 84 84 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) -
trunk/src/libs/softfloat-3e/source/extF80_to_i64.c
r94480 r94558 43 43 44 44 int_fast64_t 45 extF80_to_i64( extFloat80_t a, uint_fast8_t roundingMode, bool exact )45 extF80_to_i64( extFloat80_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 union { struct extFloat80M s; extFloat80_t f; } uA; … … 68 68 *--------------------------------------------------------------------*/ 69 69 if ( shiftDist ) { 70 softfloat_raiseFlags( softfloat_flag_invalid );70 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 71 71 return 72 72 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) … … 84 84 sigExtra = sig64Extra.extra; 85 85 } 86 return softfloat_roundToI64( sign, sig, sigExtra, roundingMode, exact );86 return softfloat_roundToI64( sign, sig, sigExtra, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 87 87 88 88 } -
trunk/src/libs/softfloat-3e/source/extF80_to_i64_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast64_t extF80_to_i64_r_minMag( extFloat80_t a, bool exact )44 int_fast64_t extF80_to_i64_r_minMag( extFloat80_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 77 77 return -INT64_C( 0x7FFFFFFFFFFFFFFF ) - 1; 78 78 } 79 softfloat_raiseFlags( softfloat_flag_invalid );79 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 80 80 return 81 81 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) -
trunk/src/libs/softfloat-3e/source/extF80_to_ui32.c
r94480 r94558 43 43 44 44 uint_fast32_t 45 extF80_to_ui32( extFloat80_t a, uint_fast8_t roundingMode, bool exact )45 extF80_to_ui32( extFloat80_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 union { struct extFloat80M s; extFloat80_t f; } uA; … … 68 68 sign = 1; 69 69 #else 70 softfloat_raiseFlags( softfloat_flag_invalid );70 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 71 71 return ui32_fromNaN; 72 72 #endif … … 78 78 if ( shiftDist <= 0 ) shiftDist = 1; 79 79 sig = softfloat_shiftRightJam64( sig, shiftDist ); 80 return softfloat_roundToUI32( sign, sig, roundingMode, exact );80 return softfloat_roundToUI32( sign, sig, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 81 81 82 82 } -
trunk/src/libs/softfloat-3e/source/extF80_to_ui32_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast32_t extF80_to_ui32_r_minMag( extFloat80_t a, bool exact )44 uint_fast32_t extF80_to_ui32_r_minMag( extFloat80_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 71 71 sign = signExtF80UI64( uiA64 ); 72 72 if ( sign || (shiftDist < 32) ) { 73 softfloat_raiseFlags( softfloat_flag_invalid );73 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 74 74 return 75 75 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) -
trunk/src/libs/softfloat-3e/source/extF80_to_ui64.c
r94480 r94558 43 43 44 44 uint_fast64_t 45 extF80_to_ui64( extFloat80_t a, uint_fast8_t roundingMode, bool exact )45 extF80_to_ui64( extFloat80_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 union { struct extFloat80M s; extFloat80_t f; } uA; … … 65 65 shiftDist = 0x403E - exp; 66 66 if ( shiftDist < 0 ) { 67 softfloat_raiseFlags( softfloat_flag_invalid );67 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 68 68 return 69 69 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) … … 79 79 sigExtra = sig64Extra.extra; 80 80 } 81 return softfloat_roundToUI64( sign, sig, sigExtra, roundingMode, exact );81 return softfloat_roundToUI64( sign, sig, sigExtra, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 82 82 83 83 } -
trunk/src/libs/softfloat-3e/source/extF80_to_ui64_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast64_t extF80_to_ui64_r_minMag( extFloat80_t a, bool exact )44 uint_fast64_t extF80_to_ui64_r_minMag( extFloat80_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union { struct extFloat80M s; extFloat80_t f; } uA; … … 71 71 sign = signExtF80UI64( uiA64 ); 72 72 if ( sign || (shiftDist < 0) ) { 73 softfloat_raiseFlags( softfloat_flag_invalid );73 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 74 74 return 75 75 (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) -
trunk/src/libs/softfloat-3e/source/f128M_add.c
r94480 r94558 44 44 45 45 void 46 f128M_add( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr )46 f128M_add( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 const uint64_t *aWPtr, *bWPtr; … … 54 54 float128_t 55 55 (*magsFuncPtr)( 56 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast64_t, bool );56 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 57 57 #endif 58 58 … … 67 67 #if defined INLINE_LEVEL && (2 <= INLINE_LEVEL) 68 68 if ( signA == signB ) { 69 *zPtr = softfloat_addMagsF128( uiA64, uiA0, uiB64, uiB0, signA );69 *zPtr = softfloat_addMagsF128( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 70 70 } else { 71 *zPtr = softfloat_subMagsF128( uiA64, uiA0, uiB64, uiB0, signA );71 *zPtr = softfloat_subMagsF128( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 72 72 } 73 73 #else 74 74 magsFuncPtr = 75 75 (signA == signB) ? softfloat_addMagsF128 : softfloat_subMagsF128; 76 *zPtr = (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA );76 *zPtr = (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 77 77 #endif 78 78 … … 82 82 83 83 void 84 f128M_add( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr )84 f128M_add( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 85 85 { 86 86 … … 90 90 (uint32_t *) zPtr, 91 91 false 92 SOFTFLOAT_STATE_ARG_COMMA 92 93 ); 93 94 -
trunk/src/libs/softfloat-3e/source/f128M_div.c
r94480 r94558 45 45 46 46 void 47 f128M_div( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr )47 f128M_div( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 48 48 { 49 49 50 *zPtr = f128_div( *aPtr, *bPtr );50 *zPtr = f128_div( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 51 51 52 52 } … … 55 55 56 56 void 57 f128M_div( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr )57 f128M_div( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 58 58 { 59 59 const uint32_t *aWPtr, *bWPtr; … … 89 89 *------------------------------------------------------------------------*/ 90 90 if ( (expA == 0x7FFF) || (expB == 0x7FFF) ) { 91 if ( softfloat_tryPropagateNaNF128M( aWPtr, bWPtr, zWPtr ) ) return;91 if ( softfloat_tryPropagateNaNF128M( aWPtr, bWPtr, zWPtr SOFTFLOAT_STATE_ARG_COMMA ) ) return; 92 92 if ( expA == 0x7FFF ) { 93 93 if ( expB == 0x7FFF ) goto invalid; … … 105 105 } 106 106 if ( expB == -128 ) { 107 softfloat_raiseFlags( softfloat_flag_infinite );107 softfloat_raiseFlags( softfloat_flag_infinite SOFTFLOAT_STATE_ARG_COMMA ); 108 108 goto infinity; 109 109 } … … 162 162 y[indexWord( 5, 3 )] = q64; 163 163 y[indexWord( 5, 4 )] = q64>>32; 164 softfloat_roundPackMToF128M( signZ, expZ, y, zWPtr );164 softfloat_roundPackMToF128M( signZ, expZ, y, zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 165 165 return; 166 166 /*------------------------------------------------------------------------ 167 167 *------------------------------------------------------------------------*/ 168 168 invalid: 169 softfloat_invalidF128M( zWPtr );169 softfloat_invalidF128M( zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 170 170 return; 171 171 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/f128M_eq.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 bool f128M_eq( const float128_t *aPtr, const float128_t *bPtr )46 bool f128M_eq( const float128_t *aPtr, const float128_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return f128_eq( *aPtr, *bPtr );49 return f128_eq( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 bool f128M_eq( const float128_t *aPtr, const float128_t *bPtr )55 bool f128M_eq( const float128_t *aPtr, const float128_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const uint32_t *aWPtr, *bWPtr; … … 91 91 || f128M_isSignalingNaN( (const float128_t *) bWPtr ) 92 92 ) { 93 softfloat_raiseFlags( softfloat_flag_invalid );93 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 94 94 } 95 95 return false; -
trunk/src/libs/softfloat-3e/source/f128M_eq_signaling.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 bool f128M_eq_signaling( const float128_t *aPtr, const float128_t *bPtr )46 bool f128M_eq_signaling( const float128_t *aPtr, const float128_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return f128_eq_signaling( *aPtr, *bPtr );49 return f128_eq_signaling( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 bool f128M_eq_signaling( const float128_t *aPtr, const float128_t *bPtr )55 bool f128M_eq_signaling( const float128_t *aPtr, const float128_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const uint32_t *aWPtr, *bWPtr; … … 63 63 bWPtr = (const uint32_t *) bPtr; 64 64 if ( softfloat_isNaNF128M( aWPtr ) || softfloat_isNaNF128M( bWPtr ) ) { 65 softfloat_raiseFlags( softfloat_flag_invalid );65 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 66 66 return false; 67 67 } -
trunk/src/libs/softfloat-3e/source/f128M_le.c
r94480 r94558 43 43 #ifdef SOFTFLOAT_FAST_INT64 44 44 45 bool f128M_le( const float128_t *aPtr, const float128_t *bPtr )45 bool f128M_le( const float128_t *aPtr, const float128_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 48 return f128_le( *aPtr, *bPtr );48 return f128_le( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 49 49 50 50 } … … 52 52 #else 53 53 54 bool f128M_le( const float128_t *aPtr, const float128_t *bPtr )54 bool f128M_le( const float128_t *aPtr, const float128_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 55 55 { 56 56 const uint32_t *aWPtr, *bWPtr; … … 62 62 bWPtr = (const uint32_t *) bPtr; 63 63 if ( softfloat_isNaNF128M( aWPtr ) || softfloat_isNaNF128M( bWPtr ) ) { 64 softfloat_raiseFlags( softfloat_flag_invalid );64 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 65 65 return false; 66 66 } -
trunk/src/libs/softfloat-3e/source/f128M_le_quiet.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 bool f128M_le_quiet( const float128_t *aPtr, const float128_t *bPtr )46 bool f128M_le_quiet( const float128_t *aPtr, const float128_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return f128_le_quiet( *aPtr, *bPtr );49 return f128_le_quiet( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 bool f128M_le_quiet( const float128_t *aPtr, const float128_t *bPtr )55 bool f128M_le_quiet( const float128_t *aPtr, const float128_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const uint32_t *aWPtr, *bWPtr; … … 64 64 if ( softfloat_isNaNF128M( aWPtr ) || softfloat_isNaNF128M( bWPtr ) ) { 65 65 if ( f128M_isSignalingNaN( aPtr ) || f128M_isSignalingNaN( bPtr ) ) { 66 softfloat_raiseFlags( softfloat_flag_invalid );66 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 67 67 } 68 68 return false; -
trunk/src/libs/softfloat-3e/source/f128M_lt.c
r94480 r94558 43 43 #ifdef SOFTFLOAT_FAST_INT64 44 44 45 bool f128M_lt( const float128_t *aPtr, const float128_t *bPtr )45 bool f128M_lt( const float128_t *aPtr, const float128_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 48 return f128_lt( *aPtr, *bPtr );48 return f128_lt( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 49 49 50 50 } … … 52 52 #else 53 53 54 bool f128M_lt( const float128_t *aPtr, const float128_t *bPtr )54 bool f128M_lt( const float128_t *aPtr, const float128_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 55 55 { 56 56 const uint32_t *aWPtr, *bWPtr; … … 62 62 bWPtr = (const uint32_t *) bPtr; 63 63 if ( softfloat_isNaNF128M( aWPtr ) || softfloat_isNaNF128M( bWPtr ) ) { 64 softfloat_raiseFlags( softfloat_flag_invalid );64 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 65 65 return false; 66 66 } -
trunk/src/libs/softfloat-3e/source/f128M_lt_quiet.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 bool f128M_lt_quiet( const float128_t *aPtr, const float128_t *bPtr )46 bool f128M_lt_quiet( const float128_t *aPtr, const float128_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return f128_lt_quiet( *aPtr, *bPtr );49 return f128_lt_quiet( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 bool f128M_lt_quiet( const float128_t *aPtr, const float128_t *bPtr )55 bool f128M_lt_quiet( const float128_t *aPtr, const float128_t *bPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const uint32_t *aWPtr, *bWPtr; … … 64 64 if ( softfloat_isNaNF128M( aWPtr ) || softfloat_isNaNF128M( bWPtr ) ) { 65 65 if ( f128M_isSignalingNaN( aPtr ) || f128M_isSignalingNaN( bPtr ) ) { 66 softfloat_raiseFlags( softfloat_flag_invalid );66 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 67 67 } 68 68 return false; -
trunk/src/libs/softfloat-3e/source/f128M_mul.c
r94480 r94558 45 45 46 46 void 47 f128M_mul( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr )47 f128M_mul( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 48 48 { 49 49 50 *zPtr = f128_mul( *aPtr, *bPtr );50 *zPtr = f128_mul( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 51 51 52 52 } … … 55 55 56 56 void 57 f128M_mul( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr )57 f128M_mul( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 58 58 { 59 59 const uint32_t *aWPtr, *bWPtr; … … 86 86 *------------------------------------------------------------------------*/ 87 87 if ( (expA == 0x7FFF) || (expB == 0x7FFF) ) { 88 if ( softfloat_tryPropagateNaNF128M( aWPtr, bWPtr, zWPtr ) ) return;88 if ( softfloat_tryPropagateNaNF128M( aWPtr, bWPtr, zWPtr SOFTFLOAT_STATE_ARG_COMMA ) ) return; 89 89 ptr = aWPtr; 90 90 if ( ! expA ) goto possiblyInvalid; … … 97 97 | ptr[indexWord( 4, 0 )]) 98 98 ) { 99 softfloat_invalidF128M( zWPtr );99 softfloat_invalidF128M( zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 100 100 return; 101 101 } … … 141 141 } 142 142 softfloat_shortShiftLeft160M( extSigZPtr, shiftDist, extSigZPtr ); 143 softfloat_roundPackMToF128M( signZ, expZ, extSigZPtr, zWPtr );143 softfloat_roundPackMToF128M( signZ, expZ, extSigZPtr, zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 144 144 return; 145 145 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/f128M_mulAdd.c
r94480 r94558 48 48 const float128_t *cPtr, 49 49 float128_t *zPtr 50 SOFTFLOAT_STATE_DECL_COMMA 50 51 ) 51 52 { … … 64 65 uiC64 = cWPtr[indexWord( 2, 1 )]; 65 66 uiC0 = cWPtr[indexWord( 2, 0 )]; 66 *zPtr = softfloat_mulAddF128( uiA64, uiA0, uiB64, uiB0, uiC64, uiC0, 0 );67 *zPtr = softfloat_mulAddF128( uiA64, uiA0, uiB64, uiB0, uiC64, uiC0, 0 SOFTFLOAT_STATE_ARG_COMMA ); 67 68 68 69 } … … 76 77 const float128_t *cPtr, 77 78 float128_t *zPtr 79 SOFTFLOAT_STATE_DECL_COMMA 78 80 ) 79 81 { … … 85 87 (uint32_t *) zPtr, 86 88 0 89 SOFTFLOAT_STATE_ARG_COMMA 87 90 ); 88 91 -
trunk/src/libs/softfloat-3e/source/f128M_rem.c
r94480 r94558 45 45 46 46 void 47 f128M_rem( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr )47 f128M_rem( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 48 48 { 49 49 50 *zPtr = f128_rem( *aPtr, *bPtr );50 *zPtr = f128_rem( *aPtr, *bPtr SOFTFLOAT_STATE_ARG_COMMA ); 51 51 52 52 } … … 55 55 56 56 void 57 f128M_rem( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr )57 f128M_rem( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 58 58 { 59 59 const uint32_t *aWPtr, *bWPtr; … … 80 80 *------------------------------------------------------------------------*/ 81 81 if ( (expA == 0x7FFF) || (expB == 0x7FFF) ) { 82 if ( softfloat_tryPropagateNaNF128M( aWPtr, bWPtr, zWPtr ) ) return;82 if ( softfloat_tryPropagateNaNF128M( aWPtr, bWPtr, zWPtr SOFTFLOAT_STATE_ARG_COMMA ) ) return; 83 83 if ( expA == 0x7FFF ) goto invalid; 84 84 goto copyA; … … 162 162 remPtr -= indexMultiwordLo( 5, 4 ); 163 163 remPtr[indexWordHi( 5 )] = 0; 164 softfloat_normRoundPackMToF128M( signRem, expB + 18, remPtr, zWPtr );164 softfloat_normRoundPackMToF128M( signRem, expB + 18, remPtr, zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 165 165 return; 166 166 /*------------------------------------------------------------------------ 167 167 *------------------------------------------------------------------------*/ 168 168 invalid: 169 softfloat_invalidF128M( zWPtr );169 softfloat_invalidF128M( zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 170 170 return; 171 171 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/f128M_roundToInt.c
r94480 r94558 50 50 bool exact, 51 51 float128_t *zPtr 52 SOFTFLOAT_STATE_DECL_COMMA 52 53 ) 53 54 { 54 55 55 *zPtr = f128_roundToInt( *aPtr, roundingMode, exact );56 *zPtr = f128_roundToInt( *aPtr, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 56 57 57 58 } … … 65 66 bool exact, 66 67 float128_t *zPtr 68 SOFTFLOAT_STATE_DECL_COMMA 67 69 ) 68 70 { … … 134 136 | aWPtr[indexWord( 4, 0 )])) 135 137 ) { 136 softfloat_propagateNaNF128M( aWPtr, 0, zWPtr );138 softfloat_propagateNaNF128M( aWPtr, 0, zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 137 139 return; 138 140 } -
trunk/src/libs/softfloat-3e/source/f128M_sqrt.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 void f128M_sqrt( const float128_t *aPtr, float128_t *zPtr )46 void f128M_sqrt( const float128_t *aPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 *zPtr = f128_sqrt( *aPtr );49 *zPtr = f128_sqrt( *aPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 void f128M_sqrt( const float128_t *aPtr, float128_t *zPtr )55 void f128M_sqrt( const float128_t *aPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const uint32_t *aWPtr; … … 86 86 | aWPtr[indexWord( 4, 0 )]) 87 87 ) { 88 softfloat_propagateNaNF128M( aWPtr, 0, zWPtr );88 softfloat_propagateNaNF128M( aWPtr, 0, zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 89 89 return; 90 90 } … … 208 208 } 209 209 } 210 softfloat_roundPackMToF128M( 0, expZ, y, zWPtr );210 softfloat_roundPackMToF128M( 0, expZ, y, zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 211 211 return; 212 212 /*------------------------------------------------------------------------ 213 213 *------------------------------------------------------------------------*/ 214 214 invalid: 215 softfloat_invalidF128M( zWPtr );215 softfloat_invalidF128M( zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 216 216 return; 217 217 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/f128M_sub.c
r94480 r94558 44 44 45 45 void 46 f128M_sub( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr )46 f128M_sub( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 const uint64_t *aWPtr, *bWPtr; … … 54 54 float128_t 55 55 (*magsFuncPtr)( 56 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast64_t, bool );56 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 57 57 #endif 58 58 … … 67 67 #if defined INLINE_LEVEL && (2 <= INLINE_LEVEL) 68 68 if ( signA == signB ) { 69 *zPtr = softfloat_subMagsF128( uiA64, uiA0, uiB64, uiB0, signA );69 *zPtr = softfloat_subMagsF128( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 70 70 } else { 71 *zPtr = softfloat_addMagsF128( uiA64, uiA0, uiB64, uiB0, signA );71 *zPtr = softfloat_addMagsF128( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 72 72 } 73 73 #else 74 74 magsFuncPtr = 75 75 (signA == signB) ? softfloat_subMagsF128 : softfloat_addMagsF128; 76 *zPtr = (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA );76 *zPtr = (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 77 77 #endif 78 78 … … 82 82 83 83 void 84 f128M_sub( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr )84 f128M_sub( const float128_t *aPtr, const float128_t *bPtr, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 85 85 { 86 86 … … 90 90 (uint32_t *) zPtr, 91 91 true 92 SOFTFLOAT_STATE_ARG_COMMA 92 93 ); 93 94 -
trunk/src/libs/softfloat-3e/source/f128M_to_extF80M.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 void f128M_to_extF80M( const float128_t *aPtr, extFloat80_t *zPtr )46 void f128M_to_extF80M( const float128_t *aPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 *zPtr = f128_to_extF80( *aPtr );49 *zPtr = f128_to_extF80( *aPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 void f128M_to_extF80M( const float128_t *aPtr, extFloat80_t *zPtr )55 void f128M_to_extF80M( const float128_t *aPtr, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const uint32_t *aWPtr; … … 76 76 if ( exp == 0x7FFF ) { 77 77 if ( softfloat_isNaNF128M( aWPtr ) ) { 78 softfloat_f128MToCommonNaN( aWPtr, &commonNaN );78 softfloat_f128MToCommonNaN( aWPtr, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 79 79 softfloat_commonNaNToExtF80M( &commonNaN, zSPtr ); 80 80 return; … … 94 94 if ( sig[indexWord( 4, 0 )] ) sig[indexWord( 4, 1 )] |= 1; 95 95 softfloat_roundPackMToExtF80M( 96 sign, exp, &sig[indexMultiwordHi( 4, 3 )], 80, zSPtr );96 sign, exp, &sig[indexMultiwordHi( 4, 3 )], 80, zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 97 97 98 98 } -
trunk/src/libs/softfloat-3e/source/f128M_to_f16.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 float16_t f128M_to_f16( const float128_t *aPtr )46 float16_t f128M_to_f16( const float128_t *aPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return f128_to_f16( *aPtr );49 return f128_to_f16( *aPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 float16_t f128M_to_f16( const float128_t *aPtr )55 float16_t f128M_to_f16( const float128_t *aPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const uint32_t *aWPtr; … … 81 81 if ( exp == 0x7FFF ) { 82 82 if ( frac32 ) { 83 softfloat_f128MToCommonNaN( aWPtr, &commonNaN );83 softfloat_f128MToCommonNaN( aWPtr, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 84 84 uiZ = softfloat_commonNaNToF16UI( &commonNaN ); 85 85 } else { … … 101 101 if ( exp < -0x40 ) exp = -0x40; 102 102 } 103 return softfloat_roundPackToF16( sign, exp, frac16 | 0x4000 );103 return softfloat_roundPackToF16( sign, exp, frac16 | 0x4000 SOFTFLOAT_STATE_ARG_COMMA ); 104 104 /*------------------------------------------------------------------------ 105 105 *------------------------------------------------------------------------*/ -
trunk/src/libs/softfloat-3e/source/f128M_to_f32.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 float32_t f128M_to_f32( const float128_t *aPtr )46 float32_t f128M_to_f32( const float128_t *aPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return f128_to_f32( *aPtr );49 return f128_to_f32( *aPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 float32_t f128M_to_f32( const float128_t *aPtr )55 float32_t f128M_to_f32( const float128_t *aPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const uint32_t *aWPtr; … … 77 77 if ( exp == 0x7FFF ) { 78 78 if ( frac64 ) { 79 softfloat_f128MToCommonNaN( aWPtr, &commonNaN );79 softfloat_f128MToCommonNaN( aWPtr, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 80 80 uiZ = softfloat_commonNaNToF32UI( &commonNaN ); 81 81 } else { … … 97 97 if ( exp < -0x1000 ) exp = -0x1000; 98 98 } 99 return softfloat_roundPackToF32( sign, exp, frac32 | 0x40000000 );99 return softfloat_roundPackToF32( sign, exp, frac32 | 0x40000000 SOFTFLOAT_STATE_ARG_COMMA ); 100 100 /*------------------------------------------------------------------------ 101 101 *------------------------------------------------------------------------*/ -
trunk/src/libs/softfloat-3e/source/f128M_to_f64.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 float64_t f128M_to_f64( const float128_t *aPtr )46 float64_t f128M_to_f64( const float128_t *aPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return f128_to_f64( *aPtr );49 return f128_to_f64( *aPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 float64_t f128M_to_f64( const float128_t *aPtr )55 float64_t f128M_to_f64( const float128_t *aPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const uint32_t *aWPtr; … … 76 76 if ( exp == 0x7FFF ) { 77 77 if ( frac64 || aWPtr[indexWord( 4, 1 )] | aWPtr[indexWord( 4, 0 )] ) { 78 softfloat_f128MToCommonNaN( aWPtr, &commonNaN );78 softfloat_f128MToCommonNaN( aWPtr, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 79 79 uiZ = softfloat_commonNaNToF64UI( &commonNaN ); 80 80 } else { … … 100 100 return 101 101 softfloat_roundPackToF64( 102 sign, exp, frac64 | UINT64_C( 0x4000000000000000 ) );102 sign, exp, frac64 | UINT64_C( 0x4000000000000000 ) SOFTFLOAT_STATE_ARG_COMMA ); 103 103 /*------------------------------------------------------------------------ 104 104 *------------------------------------------------------------------------*/ -
trunk/src/libs/softfloat-3e/source/f128M_to_i32.c
r94480 r94558 45 45 46 46 int_fast32_t 47 f128M_to_i32( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact )47 f128M_to_i32( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 48 48 { 49 49 50 return f128_to_i32( *aPtr, roundingMode, exact );50 return f128_to_i32( *aPtr, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 51 51 52 52 } … … 55 55 56 56 int_fast32_t 57 f128M_to_i32( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact )57 f128M_to_i32( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 58 58 { 59 59 const uint32_t *aWPtr; … … 81 81 sign = 1; 82 82 #else 83 softfloat_raiseFlags( softfloat_flag_invalid );83 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 84 84 return i32_fromNaN; 85 85 #endif … … 91 91 shiftDist = 0x4023 - exp; 92 92 if ( 0 < shiftDist ) sig64 = softfloat_shiftRightJam64( sig64, shiftDist ); 93 return softfloat_roundToI32( sign, sig64, roundingMode, exact );93 return softfloat_roundToI32( sign, sig64, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 94 94 95 95 } -
trunk/src/libs/softfloat-3e/source/f128M_to_i32_r_minMag.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 int_fast32_t f128M_to_i32_r_minMag( const float128_t *aPtr, bool exact )46 int_fast32_t f128M_to_i32_r_minMag( const float128_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return f128_to_i32_r_minMag( *aPtr, exact );49 return f128_to_i32_r_minMag( *aPtr, exact SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 int_fast32_t f128M_to_i32_r_minMag( const float128_t *aPtr, bool exact )55 int_fast32_t f128M_to_i32_r_minMag( const float128_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const uint32_t *aWPtr; … … 96 96 *------------------------------------------------------------------------*/ 97 97 invalid: 98 softfloat_raiseFlags( softfloat_flag_invalid );98 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 99 99 return 100 100 (exp == 0x7FFF) && sig64 ? i32_fromNaN -
trunk/src/libs/softfloat-3e/source/f128M_to_i64.c
r94480 r94558 45 45 46 46 int_fast64_t 47 f128M_to_i64( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact )47 f128M_to_i64( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 48 48 { 49 49 50 return f128_to_i64( *aPtr, roundingMode, exact );50 return f128_to_i64( *aPtr, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 51 51 52 52 } … … 55 55 56 56 int_fast64_t 57 f128M_to_i64( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact )57 f128M_to_i64( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 58 58 { 59 59 const uint32_t *aWPtr; … … 76 76 shiftDist = 0x404F - exp; 77 77 if ( shiftDist < 17 ) { 78 softfloat_raiseFlags( softfloat_flag_invalid );78 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 79 79 return 80 80 (exp == 0x7FFF) … … 95 95 return 96 96 softfloat_roundMToI64( 97 sign, sig + indexMultiwordLo( 4, 3 ), roundingMode, exact );97 sign, sig + indexMultiwordLo( 4, 3 ), roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 98 98 99 99 } -
trunk/src/libs/softfloat-3e/source/f128M_to_i64_r_minMag.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 int_fast64_t f128M_to_i64_r_minMag( const float128_t *aPtr, bool exact )46 int_fast64_t f128M_to_i64_r_minMag( const float128_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return f128_to_i64_r_minMag( *aPtr, exact );49 return f128_to_i64_r_minMag( *aPtr, exact SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 int_fast64_t f128M_to_i64_r_minMag( const float128_t *aPtr, bool exact )55 int_fast64_t f128M_to_i64_r_minMag( const float128_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const uint32_t *aWPtr; … … 110 110 *------------------------------------------------------------------------*/ 111 111 invalid: 112 softfloat_raiseFlags( softfloat_flag_invalid );112 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 113 113 return 114 114 (exp == 0x7FFF) -
trunk/src/libs/softfloat-3e/source/f128M_to_ui32.c
r94480 r94558 45 45 46 46 uint_fast32_t 47 f128M_to_ui32( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact )47 f128M_to_ui32( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 48 48 { 49 49 50 return f128_to_ui32( *aPtr, roundingMode, exact );50 return f128_to_ui32( *aPtr, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 51 51 52 52 } … … 55 55 56 56 uint_fast32_t 57 f128M_to_ui32( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact )57 f128M_to_ui32( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 58 58 { 59 59 const uint32_t *aWPtr; … … 81 81 sign = 1; 82 82 #else 83 softfloat_raiseFlags( softfloat_flag_invalid );83 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 84 84 return ui32_fromNaN; 85 85 #endif … … 91 91 shiftDist = 0x4023 - exp; 92 92 if ( 0 < shiftDist ) sig64 = softfloat_shiftRightJam64( sig64, shiftDist ); 93 return softfloat_roundToUI32( sign, sig64, roundingMode, exact );93 return softfloat_roundToUI32( sign, sig64, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 94 94 95 95 } -
trunk/src/libs/softfloat-3e/source/f128M_to_ui32_r_minMag.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 uint_fast32_t f128M_to_ui32_r_minMag( const float128_t *aPtr, bool exact )46 uint_fast32_t f128M_to_ui32_r_minMag( const float128_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return f128_to_ui32_r_minMag( *aPtr, exact );49 return f128_to_ui32_r_minMag( *aPtr, exact SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 uint_fast32_t f128M_to_ui32_r_minMag( const float128_t *aPtr, bool exact )55 uint_fast32_t f128M_to_ui32_r_minMag( const float128_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const uint32_t *aWPtr; … … 83 83 sign = signF128UI96( uiA96 ); 84 84 if ( sign || (shiftDist < 17) ) { 85 softfloat_raiseFlags( softfloat_flag_invalid );85 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 86 86 return 87 87 (exp == 0x7FFF) && sig64 ? ui32_fromNaN -
trunk/src/libs/softfloat-3e/source/f128M_to_ui64.c
r94480 r94558 45 45 46 46 uint_fast64_t 47 f128M_to_ui64( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact )47 f128M_to_ui64( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 48 48 { 49 49 50 return f128_to_ui64( *aPtr, roundingMode, exact );50 return f128_to_ui64( *aPtr, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 51 51 52 52 } … … 55 55 56 56 uint_fast64_t 57 f128M_to_ui64( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact )57 f128M_to_ui64( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 58 58 { 59 59 const uint32_t *aWPtr; … … 76 76 shiftDist = 0x404F - exp; 77 77 if ( shiftDist < 17 ) { 78 softfloat_raiseFlags( softfloat_flag_invalid );78 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 79 79 return 80 80 (exp == 0x7FFF) … … 95 95 return 96 96 softfloat_roundMToUI64( 97 sign, sig + indexMultiwordLo( 4, 3 ), roundingMode, exact );97 sign, sig + indexMultiwordLo( 4, 3 ), roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA); 98 98 99 99 } -
trunk/src/libs/softfloat-3e/source/f128M_to_ui64_r_minMag.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 uint_fast64_t f128M_to_ui64_r_minMag( const float128_t *aPtr, bool exact )46 uint_fast64_t f128M_to_ui64_r_minMag( const float128_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 return f128_to_ui64_r_minMag( *aPtr, exact );49 return f128_to_ui64_r_minMag( *aPtr, exact SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 uint_fast64_t f128M_to_ui64_r_minMag( const float128_t *aPtr, bool exact )55 uint_fast64_t f128M_to_ui64_r_minMag( const float128_t *aPtr, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 const uint32_t *aWPtr; … … 100 100 *------------------------------------------------------------------------*/ 101 101 invalid: 102 softfloat_raiseFlags( softfloat_flag_invalid );102 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 103 103 return 104 104 (exp == 0x7FFF) -
trunk/src/libs/softfloat-3e/source/f128_add.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float128_t f128_add( float128_t a, float128_t b )43 float128_t f128_add( float128_t a, float128_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui128_f128 uA; … … 52 52 float128_t 53 53 (*magsFuncPtr)( 54 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast64_t, bool );54 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 55 55 #endif 56 56 … … 65 65 #if defined INLINE_LEVEL && (2 <= INLINE_LEVEL) 66 66 if ( signA == signB ) { 67 return softfloat_addMagsF128( uiA64, uiA0, uiB64, uiB0, signA );67 return softfloat_addMagsF128( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 68 68 } else { 69 return softfloat_subMagsF128( uiA64, uiA0, uiB64, uiB0, signA );69 return softfloat_subMagsF128( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 70 70 } 71 71 #else 72 72 magsFuncPtr = 73 73 (signA == signB) ? softfloat_addMagsF128 : softfloat_subMagsF128; 74 return (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA );74 return (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 75 75 #endif 76 76 -
trunk/src/libs/softfloat-3e/source/f128_div.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float128_t f128_div( float128_t a, float128_t b )44 float128_t f128_div( float128_t a, float128_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 104 104 if ( ! (sigB.v64 | sigB.v0) ) { 105 105 if ( ! (expA | sigA.v64 | sigA.v0) ) goto invalid; 106 softfloat_raiseFlags( softfloat_flag_infinite );106 softfloat_raiseFlags( softfloat_flag_infinite SOFTFLOAT_STATE_ARG_COMMA ); 107 107 goto infinity; 108 108 } … … 168 168 ); 169 169 return 170 softfloat_roundPackToF128( signZ, expZ, sigZ.v64, sigZ.v0, sigZExtra );170 softfloat_roundPackToF128( signZ, expZ, sigZ.v64, sigZ.v0, sigZExtra SOFTFLOAT_STATE_ARG_COMMA ); 171 171 /*------------------------------------------------------------------------ 172 172 *------------------------------------------------------------------------*/ 173 173 propagateNaN: 174 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, uiB64, uiB0 );174 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, uiB64, uiB0 SOFTFLOAT_STATE_ARG_COMMA ); 175 175 goto uiZ; 176 176 /*------------------------------------------------------------------------ 177 177 *------------------------------------------------------------------------*/ 178 178 invalid: 179 softfloat_raiseFlags( softfloat_flag_invalid );179 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 180 180 uiZ.v64 = defaultNaNF128UI64; 181 181 uiZ.v0 = defaultNaNF128UI0; -
trunk/src/libs/softfloat-3e/source/f128_eq.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool f128_eq( float128_t a, float128_t b )44 bool f128_eq( float128_t a, float128_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 60 60 || softfloat_isSigNaNF128UI( uiB64, uiB0 ) 61 61 ) { 62 softfloat_raiseFlags( softfloat_flag_invalid );62 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 63 63 } 64 64 return false; -
trunk/src/libs/softfloat-3e/source/f128_eq_signaling.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 bool f128_eq_signaling( float128_t a, float128_t b )43 bool f128_eq_signaling( float128_t a, float128_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui128_f128 uA; … … 55 55 uiB0 = uB.ui.v0; 56 56 if ( isNaNF128UI( uiA64, uiA0 ) || isNaNF128UI( uiB64, uiB0 ) ) { 57 softfloat_raiseFlags( softfloat_flag_invalid );57 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 58 58 return false; 59 59 } -
trunk/src/libs/softfloat-3e/source/f128_le.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 bool f128_le( float128_t a, float128_t b )43 bool f128_le( float128_t a, float128_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui128_f128 uA; … … 56 56 uiB0 = uB.ui.v0; 57 57 if ( isNaNF128UI( uiA64, uiA0 ) || isNaNF128UI( uiB64, uiB0 ) ) { 58 softfloat_raiseFlags( softfloat_flag_invalid );58 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 59 59 return false; 60 60 } -
trunk/src/libs/softfloat-3e/source/f128_le_quiet.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool f128_le_quiet( float128_t a, float128_t b )44 bool f128_le_quiet( float128_t a, float128_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 61 61 || softfloat_isSigNaNF128UI( uiB64, uiB0 ) 62 62 ) { 63 softfloat_raiseFlags( softfloat_flag_invalid );63 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 64 64 } 65 65 return false; -
trunk/src/libs/softfloat-3e/source/f128_lt.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 bool f128_lt( float128_t a, float128_t b )43 bool f128_lt( float128_t a, float128_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui128_f128 uA; … … 56 56 uiB0 = uB.ui.v0; 57 57 if ( isNaNF128UI( uiA64, uiA0 ) || isNaNF128UI( uiB64, uiB0 ) ) { 58 softfloat_raiseFlags( softfloat_flag_invalid );58 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 59 59 return false; 60 60 } -
trunk/src/libs/softfloat-3e/source/f128_lt_quiet.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool f128_lt_quiet( float128_t a, float128_t b )44 bool f128_lt_quiet( float128_t a, float128_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 61 61 || softfloat_isSigNaNF128UI( uiB64, uiB0 ) 62 62 ) { 63 softfloat_raiseFlags( softfloat_flag_invalid );63 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 64 64 } 65 65 return false; -
trunk/src/libs/softfloat-3e/source/f128_mul.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float128_t f128_mul( float128_t a, float128_t b )44 float128_t f128_mul( float128_t a, float128_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 133 133 } 134 134 return 135 softfloat_roundPackToF128( signZ, expZ, sigZ.v64, sigZ.v0, sigZExtra );135 softfloat_roundPackToF128( signZ, expZ, sigZ.v64, sigZ.v0, sigZExtra SOFTFLOAT_STATE_ARG_COMMA ); 136 136 /*------------------------------------------------------------------------ 137 137 *------------------------------------------------------------------------*/ 138 138 propagateNaN: 139 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, uiB64, uiB0 );139 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, uiB64, uiB0 SOFTFLOAT_STATE_ARG_COMMA ); 140 140 goto uiZ; 141 141 /*------------------------------------------------------------------------ … … 143 143 infArg: 144 144 if ( ! magBits ) { 145 softfloat_raiseFlags( softfloat_flag_invalid );145 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 146 146 uiZ.v64 = defaultNaNF128UI64; 147 147 uiZ.v0 = defaultNaNF128UI0; -
trunk/src/libs/softfloat-3e/source/f128_mulAdd.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float128_t f128_mulAdd( float128_t a, float128_t b, float128_t c )42 float128_t f128_mulAdd( float128_t a, float128_t b, float128_t c SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 union ui128_f128 uA; … … 58 58 uiC64 = uC.ui.v64; 59 59 uiC0 = uC.ui.v0; 60 return softfloat_mulAddF128( uiA64, uiA0, uiB64, uiB0, uiC64, uiC0, 0 );60 return softfloat_mulAddF128( uiA64, uiA0, uiB64, uiB0, uiC64, uiC0, 0 SOFTFLOAT_STATE_ARG_COMMA ); 61 61 62 62 } -
trunk/src/libs/softfloat-3e/source/f128_rem.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float128_t f128_rem( float128_t a, float128_t b )44 float128_t f128_rem( float128_t a, float128_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 171 171 rem = softfloat_sub128( 0, 0, rem.v64, rem.v0 ); 172 172 } 173 return softfloat_normRoundPackToF128( signRem, expB - 1, rem.v64, rem.v0 );173 return softfloat_normRoundPackToF128( signRem, expB - 1, rem.v64, rem.v0 SOFTFLOAT_STATE_ARG_COMMA ); 174 174 /*------------------------------------------------------------------------ 175 175 *------------------------------------------------------------------------*/ 176 176 propagateNaN: 177 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, uiB64, uiB0 );177 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, uiB64, uiB0 SOFTFLOAT_STATE_ARG_COMMA ); 178 178 goto uiZ; 179 179 /*------------------------------------------------------------------------ 180 180 *------------------------------------------------------------------------*/ 181 181 invalid: 182 softfloat_raiseFlags( softfloat_flag_invalid );182 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 183 183 uiZ.v64 = defaultNaNF128UI64; 184 184 uiZ.v0 = defaultNaNF128UI0; -
trunk/src/libs/softfloat-3e/source/f128_roundToInt.c
r94548 r94558 44 44 45 45 float128_t 46 f128_roundToInt( float128_t a, uint_fast8_t roundingMode, bool exact )46 f128_roundToInt( float128_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 union ui128_f128 uA; … … 68 68 if ( 0x406F <= exp ) { 69 69 if ( (exp == 0x7FFF) && (fracF128UI64( uiA64 ) | uiA0) ) { 70 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, 0, 0 );70 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, 0, 0 SOFTFLOAT_STATE_ARG_COMMA ); 71 71 goto uiZ; 72 72 } -
trunk/src/libs/softfloat-3e/source/f128_sqrt.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float128_t f128_sqrt( float128_t a )44 float128_t f128_sqrt( float128_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 74 74 if ( expA == 0x7FFF ) { 75 75 if ( sigA.v64 | sigA.v0 ) { 76 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, 0, 0 );76 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, 0, 0 SOFTFLOAT_STATE_ARG_COMMA ); 77 77 goto uiZ; 78 78 } … … 187 187 } 188 188 } 189 return softfloat_roundPackToF128( 0, expZ, sigZ.v64, sigZ.v0, sigZExtra );189 return softfloat_roundPackToF128( 0, expZ, sigZ.v64, sigZ.v0, sigZExtra SOFTFLOAT_STATE_ARG_COMMA ); 190 190 /*------------------------------------------------------------------------ 191 191 *------------------------------------------------------------------------*/ 192 192 invalid: 193 softfloat_raiseFlags( softfloat_flag_invalid );193 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 194 194 uiZ.v64 = defaultNaNF128UI64; 195 195 uiZ.v0 = defaultNaNF128UI0; -
trunk/src/libs/softfloat-3e/source/f128_sub.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float128_t f128_sub( float128_t a, float128_t b )43 float128_t f128_sub( float128_t a, float128_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui128_f128 uA; … … 52 52 float128_t 53 53 (*magsFuncPtr)( 54 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast64_t, bool );54 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 55 55 #endif 56 56 … … 65 65 #if defined INLINE_LEVEL && (2 <= INLINE_LEVEL) 66 66 if ( signA == signB ) { 67 return softfloat_subMagsF128( uiA64, uiA0, uiB64, uiB0, signA );67 return softfloat_subMagsF128( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 68 68 } else { 69 return softfloat_addMagsF128( uiA64, uiA0, uiB64, uiB0, signA );69 return softfloat_addMagsF128( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 70 70 } 71 71 #else 72 72 magsFuncPtr = 73 73 (signA == signB) ? softfloat_subMagsF128 : softfloat_addMagsF128; 74 return (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA );74 return (*magsFuncPtr)( uiA64, uiA0, uiB64, uiB0, signA SOFTFLOAT_STATE_ARG_COMMA ); 75 75 #endif 76 76 -
trunk/src/libs/softfloat-3e/source/f128_to_extF80.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 extFloat80_t f128_to_extF80( float128_t a )44 extFloat80_t f128_to_extF80( float128_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 70 70 if ( exp == 0x7FFF ) { 71 71 if ( frac64 | frac0 ) { 72 softfloat_f128UIToCommonNaN( uiA64, uiA0, &commonNaN );72 softfloat_f128UIToCommonNaN( uiA64, uiA0, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 73 73 uiZ = softfloat_commonNaNToExtF80UI( &commonNaN ); 74 74 uiZ64 = uiZ.v64; … … 98 98 softfloat_shortShiftLeft128( 99 99 frac64 | UINT64_C( 0x0001000000000000 ), frac0, 15 ); 100 return softfloat_roundPackToExtF80( sign, exp, sig128.v64, sig128.v0, 80 );100 return softfloat_roundPackToExtF80( sign, exp, sig128.v64, sig128.v0, 80 SOFTFLOAT_STATE_ARG_COMMA ); 101 101 /*------------------------------------------------------------------------ 102 102 *------------------------------------------------------------------------*/ -
trunk/src/libs/softfloat-3e/source/f128_to_f16.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float16_t f128_to_f16( float128_t a )44 float16_t f128_to_f16( float128_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 65 65 if ( exp == 0x7FFF ) { 66 66 if ( frac64 ) { 67 softfloat_f128UIToCommonNaN( uiA64, uiA0, &commonNaN );67 softfloat_f128UIToCommonNaN( uiA64, uiA0, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 68 68 uiZ = softfloat_commonNaNToF16UI( &commonNaN ); 69 69 } else { … … 85 85 if ( exp < -0x40 ) exp = -0x40; 86 86 } 87 return softfloat_roundPackToF16( sign, exp, frac16 | 0x4000 );87 return softfloat_roundPackToF16( sign, exp, frac16 | 0x4000 SOFTFLOAT_STATE_ARG_COMMA ); 88 88 /*------------------------------------------------------------------------ 89 89 *------------------------------------------------------------------------*/ -
trunk/src/libs/softfloat-3e/source/f128_to_f32.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float32_t f128_to_f32( float128_t a )44 float32_t f128_to_f32( float128_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 65 65 if ( exp == 0x7FFF ) { 66 66 if ( frac64 ) { 67 softfloat_f128UIToCommonNaN( uiA64, uiA0, &commonNaN );67 softfloat_f128UIToCommonNaN( uiA64, uiA0, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 68 68 uiZ = softfloat_commonNaNToF32UI( &commonNaN ); 69 69 } else { … … 85 85 if ( exp < -0x1000 ) exp = -0x1000; 86 86 } 87 return softfloat_roundPackToF32( sign, exp, frac32 | 0x40000000 );87 return softfloat_roundPackToF32( sign, exp, frac32 | 0x40000000 SOFTFLOAT_STATE_ARG_COMMA ); 88 88 /*------------------------------------------------------------------------ 89 89 *------------------------------------------------------------------------*/ -
trunk/src/libs/softfloat-3e/source/f128_to_f64.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float64_t f128_to_f64( float128_t a )44 float64_t f128_to_f64( float128_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 67 67 if ( exp == 0x7FFF ) { 68 68 if ( frac64 | frac0 ) { 69 softfloat_f128UIToCommonNaN( uiA64, uiA0, &commonNaN );69 softfloat_f128UIToCommonNaN( uiA64, uiA0, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 70 70 uiZ = softfloat_commonNaNToF64UI( &commonNaN ); 71 71 } else { … … 90 90 return 91 91 softfloat_roundPackToF64( 92 sign, exp, frac64 | UINT64_C( 0x4000000000000000 ) );92 sign, exp, frac64 | UINT64_C( 0x4000000000000000 ) SOFTFLOAT_STATE_ARG_COMMA ); 93 93 /*------------------------------------------------------------------------ 94 94 *------------------------------------------------------------------------*/ -
trunk/src/libs/softfloat-3e/source/f128_to_i32.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast32_t f128_to_i32( float128_t a, uint_fast8_t roundingMode, bool exact )44 int_fast32_t f128_to_i32( float128_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 69 69 sign = 1; 70 70 #else 71 softfloat_raiseFlags( softfloat_flag_invalid );71 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 72 72 return i32_fromNaN; 73 73 #endif … … 80 80 shiftDist = 0x4023 - exp; 81 81 if ( 0 < shiftDist ) sig64 = softfloat_shiftRightJam64( sig64, shiftDist ); 82 return softfloat_roundToI32( sign, sig64, roundingMode, exact );82 return softfloat_roundToI32( sign, sig64, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 83 83 84 84 } -
trunk/src/libs/softfloat-3e/source/f128_to_i32_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast32_t f128_to_i32_r_minMag( float128_t a, bool exact )44 int_fast32_t f128_to_i32_r_minMag( float128_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 81 81 return -0x7FFFFFFF - 1; 82 82 } 83 softfloat_raiseFlags( softfloat_flag_invalid );83 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 84 84 return 85 85 (exp == 0x7FFF) && sig64 ? i32_fromNaN -
trunk/src/libs/softfloat-3e/source/f128_to_i64.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast64_t f128_to_i64( float128_t a, uint_fast8_t roundingMode, bool exact )44 int_fast64_t f128_to_i64( float128_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 69 69 *--------------------------------------------------------------------*/ 70 70 if ( shiftDist < -15 ) { 71 softfloat_raiseFlags( softfloat_flag_invalid );71 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 72 72 return 73 73 (exp == 0x7FFF) && (sig64 | sig0) ? i64_fromNaN … … 90 90 sig0 = sigExtra.extra; 91 91 } 92 return softfloat_roundToI64( sign, sig64, sig0, roundingMode, exact );92 return softfloat_roundToI64( sign, sig64, sig0, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 93 93 94 94 } -
trunk/src/libs/softfloat-3e/source/f128_to_i64_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast64_t f128_to_i64_r_minMag( float128_t a, bool exact )44 int_fast64_t f128_to_i64_r_minMag( float128_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 78 78 return -INT64_C( 0x7FFFFFFFFFFFFFFF ) - 1; 79 79 } 80 softfloat_raiseFlags( softfloat_flag_invalid );80 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 81 81 return 82 82 (exp == 0x7FFF) && (sig64 | sig0) ? i64_fromNaN -
trunk/src/libs/softfloat-3e/source/f128_to_ui32.c
r94480 r94558 43 43 44 44 uint_fast32_t 45 f128_to_ui32( float128_t a, uint_fast8_t roundingMode, bool exact )45 f128_to_ui32( float128_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 union ui128_f128 uA; … … 69 69 sign = 1; 70 70 #else 71 softfloat_raiseFlags( softfloat_flag_invalid );71 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 72 72 return ui32_fromNaN; 73 73 #endif … … 81 81 sig64 = softfloat_shiftRightJam64( sig64, shiftDist ); 82 82 } 83 return softfloat_roundToUI32( sign, sig64, roundingMode, exact );83 return softfloat_roundToUI32( sign, sig64, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 84 84 85 85 } -
trunk/src/libs/softfloat-3e/source/f128_to_ui32_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast32_t f128_to_ui32_r_minMag( float128_t a, bool exact )44 uint_fast32_t f128_to_ui32_r_minMag( float128_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 72 72 sign = signF128UI64( uiA64 ); 73 73 if ( sign || (shiftDist < 17) ) { 74 softfloat_raiseFlags( softfloat_flag_invalid );74 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 75 75 return 76 76 (exp == 0x7FFF) && sig64 ? ui32_fromNaN -
trunk/src/libs/softfloat-3e/source/f128_to_ui64.c
r94480 r94558 43 43 44 44 uint_fast64_t 45 f128_to_ui64( float128_t a, uint_fast8_t roundingMode, bool exact )45 f128_to_ui64( float128_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 union ui128_f128 uA; … … 70 70 *--------------------------------------------------------------------*/ 71 71 if ( shiftDist < -15 ) { 72 softfloat_raiseFlags( softfloat_flag_invalid );72 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 73 73 return 74 74 (exp == 0x7FFF) && (sig64 | sig0) ? ui64_fromNaN … … 91 91 sig0 = sigExtra.extra; 92 92 } 93 return softfloat_roundToUI64( sign, sig64, sig0, roundingMode, exact );93 return softfloat_roundToUI64( sign, sig64, sig0, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 94 94 95 95 } -
trunk/src/libs/softfloat-3e/source/f128_to_ui64_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast64_t f128_to_ui64_r_minMag( float128_t a, bool exact )44 uint_fast64_t f128_to_ui64_r_minMag( float128_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui128_f128 uA; … … 97 97 *------------------------------------------------------------------------*/ 98 98 invalid: 99 softfloat_raiseFlags( softfloat_flag_invalid );99 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 100 100 return 101 101 (exp == 0x7FFF) && (sig64 | sig0) ? ui64_fromNaN -
trunk/src/libs/softfloat-3e/source/f16_add.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float16_t f16_add( float16_t a, float16_t b )43 float16_t f16_add( float16_t a, float16_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui16_f16 uA; … … 48 48 uint_fast16_t uiB; 49 49 #if ! defined INLINE_LEVEL || (INLINE_LEVEL < 1) 50 float16_t (*magsFuncPtr)( uint_fast16_t, uint_fast16_t );50 float16_t (*magsFuncPtr)( uint_fast16_t, uint_fast16_t SOFTFLOAT_STATE_DECL_COMMA ); 51 51 #endif 52 52 … … 57 57 #if defined INLINE_LEVEL && (1 <= INLINE_LEVEL) 58 58 if ( signF16UI( uiA ^ uiB ) ) { 59 return softfloat_subMagsF16( uiA, uiB );59 return softfloat_subMagsF16( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 60 60 } else { 61 return softfloat_addMagsF16( uiA, uiB );61 return softfloat_addMagsF16( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 62 62 } 63 63 #else 64 64 magsFuncPtr = 65 65 signF16UI( uiA ^ uiB ) ? softfloat_subMagsF16 : softfloat_addMagsF16; 66 return (*magsFuncPtr)( uiA, uiB );66 return (*magsFuncPtr)( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 67 67 #endif 68 68 -
trunk/src/libs/softfloat-3e/source/f16_div.c
r94480 r94558 45 45 extern const uint16_t softfloat_approxRecip_1k1s[]; 46 46 47 float16_t f16_div( float16_t a, float16_t b )47 float16_t f16_div( float16_t a, float16_t b SOFTFLOAT_STATE_DECL_COMMA ) 48 48 { 49 49 union ui16_f16 uA; … … 103 103 if ( ! sigB ) { 104 104 if ( ! (expA | sigA) ) goto invalid; 105 softfloat_raiseFlags( softfloat_flag_infinite );105 softfloat_raiseFlags( softfloat_flag_infinite SOFTFLOAT_STATE_ARG_COMMA ); 106 106 goto infinity; 107 107 } … … 158 158 } 159 159 #endif 160 return softfloat_roundPackToF16( signZ, expZ, sigZ );160 return softfloat_roundPackToF16( signZ, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 161 161 /*------------------------------------------------------------------------ 162 162 *------------------------------------------------------------------------*/ 163 163 propagateNaN: 164 uiZ = softfloat_propagateNaNF16UI( uiA, uiB );164 uiZ = softfloat_propagateNaNF16UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 165 165 goto uiZ; 166 166 /*------------------------------------------------------------------------ 167 167 *------------------------------------------------------------------------*/ 168 168 invalid: 169 softfloat_raiseFlags( softfloat_flag_invalid );169 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 170 170 uiZ = defaultNaNF16UI; 171 171 goto uiZ; -
trunk/src/libs/softfloat-3e/source/f16_eq.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool f16_eq( float16_t a, float16_t b )44 bool f16_eq( float16_t a, float16_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 57 57 softfloat_isSigNaNF16UI( uiA ) || softfloat_isSigNaNF16UI( uiB ) 58 58 ) { 59 softfloat_raiseFlags( softfloat_flag_invalid );59 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 60 60 } 61 61 return false; -
trunk/src/libs/softfloat-3e/source/f16_eq_signaling.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 bool f16_eq_signaling( float16_t a, float16_t b )43 bool f16_eq_signaling( float16_t a, float16_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui16_f16 uA; … … 53 53 uiB = uB.ui; 54 54 if ( isNaNF16UI( uiA ) || isNaNF16UI( uiB ) ) { 55 softfloat_raiseFlags( softfloat_flag_invalid );55 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 56 56 return false; 57 57 } -
trunk/src/libs/softfloat-3e/source/f16_le.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 bool f16_le( float16_t a, float16_t b )43 bool f16_le( float16_t a, float16_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui16_f16 uA; … … 54 54 uiB = uB.ui; 55 55 if ( isNaNF16UI( uiA ) || isNaNF16UI( uiB ) ) { 56 softfloat_raiseFlags( softfloat_flag_invalid );56 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 57 57 return false; 58 58 } -
trunk/src/libs/softfloat-3e/source/f16_le_quiet.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool f16_le_quiet( float16_t a, float16_t b )44 bool f16_le_quiet( float16_t a, float16_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 58 58 softfloat_isSigNaNF16UI( uiA ) || softfloat_isSigNaNF16UI( uiB ) 59 59 ) { 60 softfloat_raiseFlags( softfloat_flag_invalid );60 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 61 61 } 62 62 return false; -
trunk/src/libs/softfloat-3e/source/f16_lt.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 bool f16_lt( float16_t a, float16_t b )43 bool f16_lt( float16_t a, float16_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui16_f16 uA; … … 54 54 uiB = uB.ui; 55 55 if ( isNaNF16UI( uiA ) || isNaNF16UI( uiB ) ) { 56 softfloat_raiseFlags( softfloat_flag_invalid );56 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 57 57 return false; 58 58 } -
trunk/src/libs/softfloat-3e/source/f16_lt_quiet.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool f16_lt_quiet( float16_t a, float16_t b )44 bool f16_lt_quiet( float16_t a, float16_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 58 58 softfloat_isSigNaNF16UI( uiA ) || softfloat_isSigNaNF16UI( uiB ) 59 59 ) { 60 softfloat_raiseFlags( softfloat_flag_invalid );60 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 61 61 } 62 62 return false; -
trunk/src/libs/softfloat-3e/source/f16_mul.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float16_t f16_mul( float16_t a, float16_t b )44 float16_t f16_mul( float16_t a, float16_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 113 113 sigZ <<= 1; 114 114 } 115 return softfloat_roundPackToF16( signZ, expZ, sigZ );115 return softfloat_roundPackToF16( signZ, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 116 116 /*------------------------------------------------------------------------ 117 117 *------------------------------------------------------------------------*/ 118 118 propagateNaN: 119 uiZ = softfloat_propagateNaNF16UI( uiA, uiB );119 uiZ = softfloat_propagateNaNF16UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 120 120 goto uiZ; 121 121 /*------------------------------------------------------------------------ … … 123 123 infArg: 124 124 if ( ! magBits ) { 125 softfloat_raiseFlags( softfloat_flag_invalid );125 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 126 126 uiZ = defaultNaNF16UI; 127 127 } else { -
trunk/src/libs/softfloat-3e/source/f16_mulAdd.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float16_t f16_mulAdd( float16_t a, float16_t b, float16_t c )42 float16_t f16_mulAdd( float16_t a, float16_t b, float16_t c SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 union ui16_f16 uA; … … 55 55 uC.f = c; 56 56 uiC = uC.ui; 57 return softfloat_mulAddF16( uiA, uiB, uiC, 0 );57 return softfloat_mulAddF16( uiA, uiB, uiC, 0 SOFTFLOAT_STATE_ARG_COMMA ); 58 58 59 59 } -
trunk/src/libs/softfloat-3e/source/f16_rem.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float16_t f16_rem( float16_t a, float16_t b )44 float16_t f16_rem( float16_t a, float16_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 155 155 rem = -rem; 156 156 } 157 return softfloat_normRoundPackToF16( signRem, expB, rem );157 return softfloat_normRoundPackToF16( signRem, expB, rem SOFTFLOAT_STATE_ARG_COMMA ); 158 158 /*------------------------------------------------------------------------ 159 159 *------------------------------------------------------------------------*/ 160 160 propagateNaN: 161 uiZ = softfloat_propagateNaNF16UI( uiA, uiB );161 uiZ = softfloat_propagateNaNF16UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 162 162 goto uiZ; 163 163 invalid: 164 softfloat_raiseFlags( softfloat_flag_invalid );164 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 165 165 uiZ = defaultNaNF16UI; 166 166 uiZ: -
trunk/src/libs/softfloat-3e/source/f16_roundToInt.c
r94548 r94558 43 43 #include <iprt/cdefs.h> /* VBox: for RT_FALL_THROUGH */ 44 44 45 float16_t f16_roundToInt( float16_t a, uint_fast8_t roundingMode, bool exact )45 float16_t f16_roundToInt( float16_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 union ui16_f16 uA; … … 87 87 if ( 0x19 <= exp ) { 88 88 if ( (exp == 0x1F) && fracF16UI( uiA ) ) { 89 uiZ = softfloat_propagateNaNF16UI( uiA, 0 );89 uiZ = softfloat_propagateNaNF16UI( uiA, 0 SOFTFLOAT_STATE_ARG_COMMA ); 90 90 goto uiZ; 91 91 } -
trunk/src/libs/softfloat-3e/source/f16_sqrt.c
r94480 r94558 45 45 extern const uint16_t softfloat_approxRecipSqrt_1k1s[]; 46 46 47 float16_t f16_sqrt( float16_t a )47 float16_t f16_sqrt( float16_t a SOFTFLOAT_STATE_DECL_COMMA ) 48 48 { 49 49 union ui16_f16 uA; … … 73 73 if ( expA == 0x1F ) { 74 74 if ( sigA ) { 75 uiZ = softfloat_propagateNaNF16UI( uiA, 0 );75 uiZ = softfloat_propagateNaNF16UI( uiA, 0 SOFTFLOAT_STATE_ARG_COMMA ); 76 76 goto uiZ; 77 77 } … … 123 123 } 124 124 } 125 return softfloat_roundPackToF16( 0, expZ, sigZ );125 return softfloat_roundPackToF16( 0, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 126 126 /*------------------------------------------------------------------------ 127 127 *------------------------------------------------------------------------*/ 128 128 invalid: 129 softfloat_raiseFlags( softfloat_flag_invalid );129 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 130 130 uiZ = defaultNaNF16UI; 131 131 uiZ: -
trunk/src/libs/softfloat-3e/source/f16_sub.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float16_t f16_sub( float16_t a, float16_t b )43 float16_t f16_sub( float16_t a, float16_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui16_f16 uA; … … 48 48 uint_fast16_t uiB; 49 49 #if ! defined INLINE_LEVEL || (INLINE_LEVEL < 1) 50 float16_t (*magsFuncPtr)( uint_fast16_t, uint_fast16_t );50 float16_t (*magsFuncPtr)( uint_fast16_t, uint_fast16_t SOFTFLOAT_STATE_DECL_COMMA ); 51 51 #endif 52 52 … … 57 57 #if defined INLINE_LEVEL && (1 <= INLINE_LEVEL) 58 58 if ( signF16UI( uiA ^ uiB ) ) { 59 return softfloat_addMagsF16( uiA, uiB );59 return softfloat_addMagsF16( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 60 60 } else { 61 return softfloat_subMagsF16( uiA, uiB );61 return softfloat_subMagsF16( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 62 62 } 63 63 #else 64 64 magsFuncPtr = 65 65 signF16UI( uiA ^ uiB ) ? softfloat_addMagsF16 : softfloat_subMagsF16; 66 return (*magsFuncPtr)( uiA, uiB );66 return (*magsFuncPtr)( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 67 67 #endif 68 68 -
trunk/src/libs/softfloat-3e/source/f16_to_extF80.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 extFloat80_t f16_to_extF80( float16_t a )44 extFloat80_t f16_to_extF80( float16_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 67 67 if ( exp == 0x1F ) { 68 68 if ( frac ) { 69 softfloat_f16UIToCommonNaN( uiA, &commonNaN );69 softfloat_f16UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 70 70 uiZ = softfloat_commonNaNToExtF80UI( &commonNaN ); 71 71 uiZ64 = uiZ.v64; -
trunk/src/libs/softfloat-3e/source/f16_to_extF80M.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 void f16_to_extF80M( float16_t a, extFloat80_t *zPtr )46 void f16_to_extF80M( float16_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 *zPtr = f16_to_extF80( a );49 *zPtr = f16_to_extF80( a SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 void f16_to_extF80M( float16_t a, extFloat80_t *zPtr )55 void f16_to_extF80M( float16_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 struct extFloat80M *zSPtr; … … 78 78 if ( exp == 0x1F ) { 79 79 if ( frac ) { 80 softfloat_f16UIToCommonNaN( uiA, &commonNaN );80 softfloat_f16UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 81 81 softfloat_commonNaNToExtF80M( &commonNaN, zSPtr ); 82 82 return; -
trunk/src/libs/softfloat-3e/source/f16_to_f128.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float128_t f16_to_f128( float16_t a )44 float128_t f16_to_f128( float16_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 65 65 if ( exp == 0x1F ) { 66 66 if ( frac ) { 67 softfloat_f16UIToCommonNaN( uiA, &commonNaN );67 softfloat_f16UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 68 68 uiZ = softfloat_commonNaNToF128UI( &commonNaN ); 69 69 } else { -
trunk/src/libs/softfloat-3e/source/f16_to_f128M.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 void f16_to_f128M( float16_t a, float128_t *zPtr )46 void f16_to_f128M( float16_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 *zPtr = f16_to_f128( a );49 *zPtr = f16_to_f128( a SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 void f16_to_f128M( float16_t a, float128_t *zPtr )55 void f16_to_f128M( float16_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 uint32_t *zWPtr; … … 79 79 if ( exp == 0x1F ) { 80 80 if ( frac ) { 81 softfloat_f16UIToCommonNaN( uiA, &commonNaN );81 softfloat_f16UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 82 82 softfloat_commonNaNToF128M( &commonNaN, zWPtr ); 83 83 return; -
trunk/src/libs/softfloat-3e/source/f16_to_f32.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float32_t f16_to_f32( float16_t a )44 float32_t f16_to_f32( float16_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 65 65 if ( exp == 0x1F ) { 66 66 if ( frac ) { 67 softfloat_f16UIToCommonNaN( uiA, &commonNaN );67 softfloat_f16UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 68 68 uiZ = softfloat_commonNaNToF32UI( &commonNaN ); 69 69 } else { -
trunk/src/libs/softfloat-3e/source/f16_to_f64.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float64_t f16_to_f64( float16_t a )44 float64_t f16_to_f64( float16_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 65 65 if ( exp == 0x1F ) { 66 66 if ( frac ) { 67 softfloat_f16UIToCommonNaN( uiA, &commonNaN );67 softfloat_f16UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 68 68 uiZ = softfloat_commonNaNToF64UI( &commonNaN ); 69 69 } else { -
trunk/src/libs/softfloat-3e/source/f16_to_i32.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast32_t f16_to_i32( float16_t a, uint_fast8_t roundingMode, bool exact )44 int_fast32_t f16_to_i32( float16_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 62 62 *------------------------------------------------------------------------*/ 63 63 if ( exp == 0x1F ) { 64 softfloat_raiseFlags( softfloat_flag_invalid );64 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 65 65 return 66 66 frac ? i32_fromNaN … … 82 82 return 83 83 softfloat_roundToI32( 84 sign, (uint_fast32_t) sig32, roundingMode, exact );84 sign, (uint_fast32_t) sig32, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 85 85 86 86 } -
trunk/src/libs/softfloat-3e/source/f16_to_i32_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast32_t f16_to_i32_r_minMag( float16_t a, bool exact )44 int_fast32_t f16_to_i32_r_minMag( float16_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 71 71 sign = signF16UI( uiA ); 72 72 if ( exp == 0x1F ) { 73 softfloat_raiseFlags( softfloat_flag_invalid );73 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 74 74 return 75 75 (exp == 0x1F) && frac ? i32_fromNaN -
trunk/src/libs/softfloat-3e/source/f16_to_i64.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast64_t f16_to_i64( float16_t a, uint_fast8_t roundingMode, bool exact )44 int_fast64_t f16_to_i64( float16_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 62 62 *------------------------------------------------------------------------*/ 63 63 if ( exp == 0x1F ) { 64 softfloat_raiseFlags( softfloat_flag_invalid );64 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 65 65 return 66 66 frac ? i64_fromNaN … … 82 82 return 83 83 softfloat_roundToI32( 84 sign, (uint_fast32_t) sig32, roundingMode, exact );84 sign, (uint_fast32_t) sig32, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 85 85 86 86 } -
trunk/src/libs/softfloat-3e/source/f16_to_i64_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast64_t f16_to_i64_r_minMag( float16_t a, bool exact )44 int_fast64_t f16_to_i64_r_minMag( float16_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 71 71 sign = signF16UI( uiA ); 72 72 if ( exp == 0x1F ) { 73 softfloat_raiseFlags( softfloat_flag_invalid );73 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 74 74 return 75 75 (exp == 0x1F) && frac ? i64_fromNaN -
trunk/src/libs/softfloat-3e/source/f16_to_ui32.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast32_t f16_to_ui32( float16_t a, uint_fast8_t roundingMode, bool exact )44 uint_fast32_t f16_to_ui32( float16_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 62 62 *------------------------------------------------------------------------*/ 63 63 if ( exp == 0x1F ) { 64 softfloat_raiseFlags( softfloat_flag_invalid );64 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 65 65 return 66 66 frac ? ui32_fromNaN … … 79 79 if ( 0 < shiftDist ) sig32 <<= shiftDist; 80 80 } 81 return softfloat_roundToUI32( sign, sig32, roundingMode, exact );81 return softfloat_roundToUI32( sign, sig32, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 82 82 83 83 } -
trunk/src/libs/softfloat-3e/source/f16_to_ui32_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast32_t f16_to_ui32_r_minMag( float16_t a, bool exact )44 uint_fast32_t f16_to_ui32_r_minMag( float16_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 71 71 sign = signF16UI( uiA ); 72 72 if ( sign || (exp == 0x1F) ) { 73 softfloat_raiseFlags( softfloat_flag_invalid );73 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 74 74 return 75 75 (exp == 0x1F) && frac ? ui32_fromNaN -
trunk/src/libs/softfloat-3e/source/f16_to_ui64.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast64_t f16_to_ui64( float16_t a, uint_fast8_t roundingMode, bool exact )44 uint_fast64_t f16_to_ui64( float16_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 65 65 *------------------------------------------------------------------------*/ 66 66 if ( exp == 0x1F ) { 67 softfloat_raiseFlags( softfloat_flag_invalid );67 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 68 68 return 69 69 frac ? ui64_fromNaN … … 85 85 return 86 86 softfloat_roundToUI64( 87 sign, sig32>>12, (uint_fast64_t) sig32<<52, roundingMode, exact );87 sign, sig32>>12, (uint_fast64_t) sig32<<52, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 88 88 #else 89 89 extSig[indexWord( 3, 2 )] = 0; 90 90 extSig[indexWord( 3, 1 )] = sig32>>12; 91 91 extSig[indexWord( 3, 0 )] = sig32<<20; 92 return softfloat_roundMToUI64( sign, extSig, roundingMode, exact );92 return softfloat_roundMToUI64( sign, extSig, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA); 93 93 #endif 94 94 -
trunk/src/libs/softfloat-3e/source/f16_to_ui64_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast64_t f16_to_ui64_r_minMag( float16_t a, bool exact )44 uint_fast64_t f16_to_ui64_r_minMag( float16_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui16_f16 uA; … … 71 71 sign = signF16UI( uiA ); 72 72 if ( sign || (exp == 0x1F) ) { 73 softfloat_raiseFlags( softfloat_flag_invalid );73 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 74 74 return 75 75 (exp == 0x1F) && frac ? ui64_fromNaN -
trunk/src/libs/softfloat-3e/source/f32_add.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float32_t f32_add( float32_t a, float32_t b )43 float32_t f32_add( float32_t a, float32_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui32_f32 uA; … … 48 48 uint_fast32_t uiB; 49 49 #if ! defined INLINE_LEVEL || (INLINE_LEVEL < 1) 50 float32_t (*magsFuncPtr)( uint_fast32_t, uint_fast32_t );50 float32_t (*magsFuncPtr)( uint_fast32_t, uint_fast32_t SOFTFLOAT_STATE_DECL_COMMA ); 51 51 #endif 52 52 … … 57 57 #if defined INLINE_LEVEL && (1 <= INLINE_LEVEL) 58 58 if ( signF32UI( uiA ^ uiB ) ) { 59 return softfloat_subMagsF32( uiA, uiB );59 return softfloat_subMagsF32( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 60 60 } else { 61 return softfloat_addMagsF32( uiA, uiB );61 return softfloat_addMagsF32( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 62 62 } 63 63 #else 64 64 magsFuncPtr = 65 65 signF32UI( uiA ^ uiB ) ? softfloat_subMagsF32 : softfloat_addMagsF32; 66 return (*magsFuncPtr)( uiA, uiB );66 return (*magsFuncPtr)( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 67 67 #endif 68 68 -
trunk/src/libs/softfloat-3e/source/f32_div.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float32_t f32_div( float32_t a, float32_t b )44 float32_t f32_div( float32_t a, float32_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 99 99 if ( ! sigB ) { 100 100 if ( ! (expA | sigA) ) goto invalid; 101 softfloat_raiseFlags( softfloat_flag_infinite );101 softfloat_raiseFlags( softfloat_flag_infinite SOFTFLOAT_STATE_ARG_COMMA ); 102 102 goto infinity; 103 103 } … … 152 152 } 153 153 #endif 154 return softfloat_roundPackToF32( signZ, expZ, sigZ );154 return softfloat_roundPackToF32( signZ, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 155 155 /*------------------------------------------------------------------------ 156 156 *------------------------------------------------------------------------*/ 157 157 propagateNaN: 158 uiZ = softfloat_propagateNaNF32UI( uiA, uiB );158 uiZ = softfloat_propagateNaNF32UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 159 159 goto uiZ; 160 160 /*------------------------------------------------------------------------ 161 161 *------------------------------------------------------------------------*/ 162 162 invalid: 163 softfloat_raiseFlags( softfloat_flag_invalid );163 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 164 164 uiZ = defaultNaNF32UI; 165 165 goto uiZ; -
trunk/src/libs/softfloat-3e/source/f32_eq.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool f32_eq( float32_t a, float32_t b )44 bool f32_eq( float32_t a, float32_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 57 57 softfloat_isSigNaNF32UI( uiA ) || softfloat_isSigNaNF32UI( uiB ) 58 58 ) { 59 softfloat_raiseFlags( softfloat_flag_invalid );59 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 60 60 } 61 61 return false; -
trunk/src/libs/softfloat-3e/source/f32_eq_signaling.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 bool f32_eq_signaling( float32_t a, float32_t b )43 bool f32_eq_signaling( float32_t a, float32_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui32_f32 uA; … … 53 53 uiB = uB.ui; 54 54 if ( isNaNF32UI( uiA ) || isNaNF32UI( uiB ) ) { 55 softfloat_raiseFlags( softfloat_flag_invalid );55 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 56 56 return false; 57 57 } -
trunk/src/libs/softfloat-3e/source/f32_le.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 bool f32_le( float32_t a, float32_t b )43 bool f32_le( float32_t a, float32_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui32_f32 uA; … … 54 54 uiB = uB.ui; 55 55 if ( isNaNF32UI( uiA ) || isNaNF32UI( uiB ) ) { 56 softfloat_raiseFlags( softfloat_flag_invalid );56 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 57 57 return false; 58 58 } -
trunk/src/libs/softfloat-3e/source/f32_le_quiet.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool f32_le_quiet( float32_t a, float32_t b )44 bool f32_le_quiet( float32_t a, float32_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 58 58 softfloat_isSigNaNF32UI( uiA ) || softfloat_isSigNaNF32UI( uiB ) 59 59 ) { 60 softfloat_raiseFlags( softfloat_flag_invalid );60 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 61 61 } 62 62 return false; -
trunk/src/libs/softfloat-3e/source/f32_lt.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 bool f32_lt( float32_t a, float32_t b )43 bool f32_lt( float32_t a, float32_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui32_f32 uA; … … 54 54 uiB = uB.ui; 55 55 if ( isNaNF32UI( uiA ) || isNaNF32UI( uiB ) ) { 56 softfloat_raiseFlags( softfloat_flag_invalid );56 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 57 57 return false; 58 58 } -
trunk/src/libs/softfloat-3e/source/f32_lt_quiet.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool f32_lt_quiet( float32_t a, float32_t b )44 bool f32_lt_quiet( float32_t a, float32_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 58 58 softfloat_isSigNaNF32UI( uiA ) || softfloat_isSigNaNF32UI( uiB ) 59 59 ) { 60 softfloat_raiseFlags( softfloat_flag_invalid );60 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 61 61 } 62 62 return false; -
trunk/src/libs/softfloat-3e/source/f32_mul.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float32_t f32_mul( float32_t a, float32_t b )44 float32_t f32_mul( float32_t a, float32_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 110 110 sigZ <<= 1; 111 111 } 112 return softfloat_roundPackToF32( signZ, expZ, sigZ );112 return softfloat_roundPackToF32( signZ, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 113 113 /*------------------------------------------------------------------------ 114 114 *------------------------------------------------------------------------*/ 115 115 propagateNaN: 116 uiZ = softfloat_propagateNaNF32UI( uiA, uiB );116 uiZ = softfloat_propagateNaNF32UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 117 117 goto uiZ; 118 118 /*------------------------------------------------------------------------ … … 120 120 infArg: 121 121 if ( ! magBits ) { 122 softfloat_raiseFlags( softfloat_flag_invalid );122 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 123 123 uiZ = defaultNaNF32UI; 124 124 } else { -
trunk/src/libs/softfloat-3e/source/f32_mulAdd.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float32_t f32_mulAdd( float32_t a, float32_t b, float32_t c )42 float32_t f32_mulAdd( float32_t a, float32_t b, float32_t c SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 union ui32_f32 uA; … … 55 55 uC.f = c; 56 56 uiC = uC.ui; 57 return softfloat_mulAddF32( uiA, uiB, uiC, 0 );57 return softfloat_mulAddF32( uiA, uiB, uiC, 0 SOFTFLOAT_STATE_ARG_COMMA ); 58 58 59 59 } -
trunk/src/libs/softfloat-3e/source/f32_rem.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float32_t f32_rem( float32_t a, float32_t b )44 float32_t f32_rem( float32_t a, float32_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 152 152 rem = -rem; 153 153 } 154 return softfloat_normRoundPackToF32( signRem, expB, rem );154 return softfloat_normRoundPackToF32( signRem, expB, rem SOFTFLOAT_STATE_ARG_COMMA ); 155 155 /*------------------------------------------------------------------------ 156 156 *------------------------------------------------------------------------*/ 157 157 propagateNaN: 158 uiZ = softfloat_propagateNaNF32UI( uiA, uiB );158 uiZ = softfloat_propagateNaNF32UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 159 159 goto uiZ; 160 160 invalid: 161 softfloat_raiseFlags( softfloat_flag_invalid );161 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 162 162 uiZ = defaultNaNF32UI; 163 163 uiZ: -
trunk/src/libs/softfloat-3e/source/f32_roundToInt.c
r94548 r94558 43 43 #include <iprt/cdefs.h> /* VBox: for RT_FALL_THROUGH */ 44 44 45 float32_t f32_roundToInt( float32_t a, uint_fast8_t roundingMode, bool exact )45 float32_t f32_roundToInt( float32_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 union ui32_f32 uA; … … 87 87 if ( 0x96 <= exp ) { 88 88 if ( (exp == 0xFF) && fracF32UI( uiA ) ) { 89 uiZ = softfloat_propagateNaNF32UI( uiA, 0 );89 uiZ = softfloat_propagateNaNF32UI( uiA, 0 SOFTFLOAT_STATE_ARG_COMMA ); 90 90 goto uiZ; 91 91 } -
trunk/src/libs/softfloat-3e/source/f32_sqrt.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float32_t f32_sqrt( float32_t a )44 float32_t f32_sqrt( float32_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 66 66 if ( expA == 0xFF ) { 67 67 if ( sigA ) { 68 uiZ = softfloat_propagateNaNF32UI( uiA, 0 );68 uiZ = softfloat_propagateNaNF32UI( uiA, 0 SOFTFLOAT_STATE_ARG_COMMA ); 69 69 goto uiZ; 70 70 } … … 108 108 } 109 109 } 110 return softfloat_roundPackToF32( 0, expZ, sigZ );110 return softfloat_roundPackToF32( 0, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 111 111 /*------------------------------------------------------------------------ 112 112 *------------------------------------------------------------------------*/ 113 113 invalid: 114 softfloat_raiseFlags( softfloat_flag_invalid );114 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 115 115 uiZ = defaultNaNF32UI; 116 116 uiZ: -
trunk/src/libs/softfloat-3e/source/f32_sub.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float32_t f32_sub( float32_t a, float32_t b )43 float32_t f32_sub( float32_t a, float32_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui32_f32 uA; … … 48 48 uint_fast32_t uiB; 49 49 #if ! defined INLINE_LEVEL || (INLINE_LEVEL < 1) 50 float32_t (*magsFuncPtr)( uint_fast32_t, uint_fast32_t );50 float32_t (*magsFuncPtr)( uint_fast32_t, uint_fast32_t SOFTFLOAT_STATE_DECL_COMMA ); 51 51 #endif 52 52 … … 57 57 #if defined INLINE_LEVEL && (1 <= INLINE_LEVEL) 58 58 if ( signF32UI( uiA ^ uiB ) ) { 59 return softfloat_addMagsF32( uiA, uiB );59 return softfloat_addMagsF32( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 60 60 } else { 61 return softfloat_subMagsF32( uiA, uiB );61 return softfloat_subMagsF32( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 62 62 } 63 63 #else 64 64 magsFuncPtr = 65 65 signF32UI( uiA ^ uiB ) ? softfloat_addMagsF32 : softfloat_subMagsF32; 66 return (*magsFuncPtr)( uiA, uiB );66 return (*magsFuncPtr)( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 67 67 #endif 68 68 -
trunk/src/libs/softfloat-3e/source/f32_to_extF80.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 extFloat80_t f32_to_extF80( float32_t a )44 extFloat80_t f32_to_extF80( float32_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 67 67 if ( exp == 0xFF ) { 68 68 if ( frac ) { 69 softfloat_f32UIToCommonNaN( uiA, &commonNaN );69 softfloat_f32UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 70 70 uiZ = softfloat_commonNaNToExtF80UI( &commonNaN ); 71 71 uiZ64 = uiZ.v64; -
trunk/src/libs/softfloat-3e/source/f32_to_extF80M.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 void f32_to_extF80M( float32_t a, extFloat80_t *zPtr )46 void f32_to_extF80M( float32_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 *zPtr = f32_to_extF80( a );49 *zPtr = f32_to_extF80( a SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 void f32_to_extF80M( float32_t a, extFloat80_t *zPtr )55 void f32_to_extF80M( float32_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 struct extFloat80M *zSPtr; … … 78 78 if ( exp == 0xFF ) { 79 79 if ( frac ) { 80 softfloat_f32UIToCommonNaN( uiA, &commonNaN );80 softfloat_f32UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 81 81 softfloat_commonNaNToExtF80M( &commonNaN, zSPtr ); 82 82 return; -
trunk/src/libs/softfloat-3e/source/f32_to_f128.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float128_t f32_to_f128( float32_t a )44 float128_t f32_to_f128( float32_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 65 65 if ( exp == 0xFF ) { 66 66 if ( frac ) { 67 softfloat_f32UIToCommonNaN( uiA, &commonNaN );67 softfloat_f32UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 68 68 uiZ = softfloat_commonNaNToF128UI( &commonNaN ); 69 69 } else { -
trunk/src/libs/softfloat-3e/source/f32_to_f128M.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 void f32_to_f128M( float32_t a, float128_t *zPtr )46 void f32_to_f128M( float32_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 *zPtr = f32_to_f128( a );49 *zPtr = f32_to_f128( a SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 void f32_to_f128M( float32_t a, float128_t *zPtr )55 void f32_to_f128M( float32_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 uint32_t *zWPtr; … … 81 81 if ( exp == 0xFF ) { 82 82 if ( frac ) { 83 softfloat_f32UIToCommonNaN( uiA, &commonNaN );83 softfloat_f32UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 84 84 softfloat_commonNaNToF128M( &commonNaN, zWPtr ); 85 85 return; -
trunk/src/libs/softfloat-3e/source/f32_to_f16.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float16_t f32_to_f16( float32_t a )44 float16_t f32_to_f16( float32_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 64 64 if ( exp == 0xFF ) { 65 65 if ( frac ) { 66 softfloat_f32UIToCommonNaN( uiA, &commonNaN );66 softfloat_f32UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 67 67 uiZ = softfloat_commonNaNToF16UI( &commonNaN ); 68 68 } else { … … 80 80 /*------------------------------------------------------------------------ 81 81 *------------------------------------------------------------------------*/ 82 return softfloat_roundPackToF16( sign, exp - 0x71, frac16 | 0x4000 );82 return softfloat_roundPackToF16( sign, exp - 0x71, frac16 | 0x4000 SOFTFLOAT_STATE_ARG_COMMA ); 83 83 uiZ: 84 84 uZ.ui = uiZ; -
trunk/src/libs/softfloat-3e/source/f32_to_f64.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float64_t f32_to_f64( float32_t a )44 float64_t f32_to_f64( float32_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 65 65 if ( exp == 0xFF ) { 66 66 if ( frac ) { 67 softfloat_f32UIToCommonNaN( uiA, &commonNaN );67 softfloat_f32UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 68 68 uiZ = softfloat_commonNaNToF64UI( &commonNaN ); 69 69 } else { -
trunk/src/libs/softfloat-3e/source/f32_to_i32.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast32_t f32_to_i32( float32_t a, uint_fast8_t roundingMode, bool exact )44 int_fast32_t f32_to_i32( float32_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 68 68 sign = 1; 69 69 #else 70 softfloat_raiseFlags( softfloat_flag_invalid );70 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 71 71 return i32_fromNaN; 72 72 #endif … … 79 79 shiftDist = 0xAA - exp; 80 80 if ( 0 < shiftDist ) sig64 = softfloat_shiftRightJam64( sig64, shiftDist ); 81 return softfloat_roundToI32( sign, sig64, roundingMode, exact );81 return softfloat_roundToI32( sign, sig64, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 82 82 83 83 } -
trunk/src/libs/softfloat-3e/source/f32_to_i32_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast32_t f32_to_i32_r_minMag( float32_t a, bool exact )44 int_fast32_t f32_to_i32_r_minMag( float32_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 72 72 if ( shiftDist <= 0 ) { 73 73 if ( uiA == packToF32UI( 1, 0x9E, 0 ) ) return -0x7FFFFFFF - 1; 74 softfloat_raiseFlags( softfloat_flag_invalid );74 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 75 75 return 76 76 (exp == 0xFF) && sig ? i32_fromNaN -
trunk/src/libs/softfloat-3e/source/f32_to_i64.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast64_t f32_to_i64( float32_t a, uint_fast8_t roundingMode, bool exact )44 int_fast64_t f32_to_i64( float32_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 68 68 shiftDist = 0xBE - exp; 69 69 if ( shiftDist < 0 ) { 70 softfloat_raiseFlags( softfloat_flag_invalid );70 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 71 71 return 72 72 (exp == 0xFF) && sig ? i64_fromNaN … … 84 84 extra = sig64Extra.extra; 85 85 } 86 return softfloat_roundToI64( sign, sig64, extra, roundingMode, exact );86 return softfloat_roundToI64( sign, sig64, extra, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 87 87 #else 88 88 extSig[indexWord( 3, 2 )] = sig<<8; … … 90 90 extSig[indexWord( 3, 0 )] = 0; 91 91 if ( shiftDist ) softfloat_shiftRightJam96M( extSig, shiftDist, extSig ); 92 return softfloat_roundMToI64( sign, extSig, roundingMode, exact );92 return softfloat_roundMToI64( sign, extSig, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 93 93 #endif 94 94 -
trunk/src/libs/softfloat-3e/source/f32_to_i64_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast64_t f32_to_i64_r_minMag( float32_t a, bool exact )44 int_fast64_t f32_to_i64_r_minMag( float32_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 75 75 return -INT64_C( 0x7FFFFFFFFFFFFFFF ) - 1; 76 76 } 77 softfloat_raiseFlags( softfloat_flag_invalid );77 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 78 78 return 79 79 (exp == 0xFF) && sig ? i64_fromNaN -
trunk/src/libs/softfloat-3e/source/f32_to_ui32.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast32_t f32_to_ui32( float32_t a, uint_fast8_t roundingMode, bool exact )44 uint_fast32_t f32_to_ui32( float32_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 68 68 sign = 1; 69 69 #else 70 softfloat_raiseFlags( softfloat_flag_invalid );70 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 71 71 return ui32_fromNaN; 72 72 #endif … … 79 79 shiftDist = 0xAA - exp; 80 80 if ( 0 < shiftDist ) sig64 = softfloat_shiftRightJam64( sig64, shiftDist ); 81 return softfloat_roundToUI32( sign, sig64, roundingMode, exact );81 return softfloat_roundToUI32( sign, sig64, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 82 82 83 83 } -
trunk/src/libs/softfloat-3e/source/f32_to_ui32_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast32_t f32_to_ui32_r_minMag( float32_t a, bool exact )44 uint_fast32_t f32_to_ui32_r_minMag( float32_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 71 71 sign = signF32UI( uiA ); 72 72 if ( sign || (shiftDist < 0) ) { 73 softfloat_raiseFlags( softfloat_flag_invalid );73 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 74 74 return 75 75 (exp == 0xFF) && sig ? ui32_fromNaN -
trunk/src/libs/softfloat-3e/source/f32_to_ui64.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast64_t f32_to_ui64( float32_t a, uint_fast8_t roundingMode, bool exact )44 uint_fast64_t f32_to_ui64( float32_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 68 68 shiftDist = 0xBE - exp; 69 69 if ( shiftDist < 0 ) { 70 softfloat_raiseFlags( softfloat_flag_invalid );70 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 71 71 return 72 72 (exp == 0xFF) && sig ? ui64_fromNaN … … 84 84 extra = sig64Extra.extra; 85 85 } 86 return softfloat_roundToUI64( sign, sig64, extra, roundingMode, exact );86 return softfloat_roundToUI64( sign, sig64, extra, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 87 87 #else 88 88 extSig[indexWord( 3, 2 )] = sig<<8; … … 90 90 extSig[indexWord( 3, 0 )] = 0; 91 91 if ( shiftDist ) softfloat_shiftRightJam96M( extSig, shiftDist, extSig ); 92 return softfloat_roundMToUI64( sign, extSig, roundingMode, exact );92 return softfloat_roundMToUI64( sign, extSig, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA); 93 93 #endif 94 94 -
trunk/src/libs/softfloat-3e/source/f32_to_ui64_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast64_t f32_to_ui64_r_minMag( float32_t a, bool exact )44 uint_fast64_t f32_to_ui64_r_minMag( float32_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui32_f32 uA; … … 71 71 sign = signF32UI( uiA ); 72 72 if ( sign || (shiftDist < 0) ) { 73 softfloat_raiseFlags( softfloat_flag_invalid );73 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 74 74 return 75 75 (exp == 0xFF) && sig ? ui64_fromNaN -
trunk/src/libs/softfloat-3e/source/f64_add.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float64_t f64_add( float64_t a, float64_t b )43 float64_t f64_add( float64_t a, float64_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui64_f64 uA; … … 50 50 bool signB; 51 51 #if ! defined INLINE_LEVEL || (INLINE_LEVEL < 2) 52 float64_t (*magsFuncPtr)( uint_fast64_t, uint_fast64_t, bool );52 float64_t (*magsFuncPtr)( uint_fast64_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 53 53 #endif 54 54 … … 61 61 #if defined INLINE_LEVEL && (2 <= INLINE_LEVEL) 62 62 if ( signA == signB ) { 63 return softfloat_addMagsF64( uiA, uiB, signA );63 return softfloat_addMagsF64( uiA, uiB, signA SOFTFLOAT_STATE_ARG_COMMA ); 64 64 } else { 65 return softfloat_subMagsF64( uiA, uiB, signA );65 return softfloat_subMagsF64( uiA, uiB, signA SOFTFLOAT_STATE_ARG_COMMA ); 66 66 } 67 67 #else 68 68 magsFuncPtr = 69 69 (signA == signB) ? softfloat_addMagsF64 : softfloat_subMagsF64; 70 return (*magsFuncPtr)( uiA, uiB, signA );70 return (*magsFuncPtr)( uiA, uiB, signA SOFTFLOAT_STATE_ARG_COMMA ); 71 71 #endif 72 72 -
trunk/src/libs/softfloat-3e/source/f64_div.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float64_t f64_div( float64_t a, float64_t b )44 float64_t f64_div( float64_t a, float64_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 96 96 if ( ! sigB ) { 97 97 if ( ! (expA | sigA) ) goto invalid; 98 softfloat_raiseFlags( softfloat_flag_infinite );98 softfloat_raiseFlags( softfloat_flag_infinite SOFTFLOAT_STATE_ARG_COMMA ); 99 99 goto infinity; 100 100 } … … 144 144 } 145 145 } 146 return softfloat_roundPackToF64( signZ, expZ, sigZ );146 return softfloat_roundPackToF64( signZ, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 147 147 /*------------------------------------------------------------------------ 148 148 *------------------------------------------------------------------------*/ 149 149 propagateNaN: 150 uiZ = softfloat_propagateNaNF64UI( uiA, uiB );150 uiZ = softfloat_propagateNaNF64UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 151 151 goto uiZ; 152 152 /*------------------------------------------------------------------------ 153 153 *------------------------------------------------------------------------*/ 154 154 invalid: 155 softfloat_raiseFlags( softfloat_flag_invalid );155 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 156 156 uiZ = defaultNaNF64UI; 157 157 goto uiZ; -
trunk/src/libs/softfloat-3e/source/f64_eq.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool f64_eq( float64_t a, float64_t b )44 bool f64_eq( float64_t a, float64_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 57 57 softfloat_isSigNaNF64UI( uiA ) || softfloat_isSigNaNF64UI( uiB ) 58 58 ) { 59 softfloat_raiseFlags( softfloat_flag_invalid );59 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 60 60 } 61 61 return false; -
trunk/src/libs/softfloat-3e/source/f64_eq_signaling.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 bool f64_eq_signaling( float64_t a, float64_t b )43 bool f64_eq_signaling( float64_t a, float64_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui64_f64 uA; … … 53 53 uiB = uB.ui; 54 54 if ( isNaNF64UI( uiA ) || isNaNF64UI( uiB ) ) { 55 softfloat_raiseFlags( softfloat_flag_invalid );55 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 56 56 return false; 57 57 } -
trunk/src/libs/softfloat-3e/source/f64_le.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 bool f64_le( float64_t a, float64_t b )43 bool f64_le( float64_t a, float64_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui64_f64 uA; … … 54 54 uiB = uB.ui; 55 55 if ( isNaNF64UI( uiA ) || isNaNF64UI( uiB ) ) { 56 softfloat_raiseFlags( softfloat_flag_invalid );56 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 57 57 return false; 58 58 } -
trunk/src/libs/softfloat-3e/source/f64_le_quiet.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool f64_le_quiet( float64_t a, float64_t b )44 bool f64_le_quiet( float64_t a, float64_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 58 58 softfloat_isSigNaNF64UI( uiA ) || softfloat_isSigNaNF64UI( uiB ) 59 59 ) { 60 softfloat_raiseFlags( softfloat_flag_invalid );60 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 61 61 } 62 62 return false; -
trunk/src/libs/softfloat-3e/source/f64_lt.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 bool f64_lt( float64_t a, float64_t b )43 bool f64_lt( float64_t a, float64_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui64_f64 uA; … … 54 54 uiB = uB.ui; 55 55 if ( isNaNF64UI( uiA ) || isNaNF64UI( uiB ) ) { 56 softfloat_raiseFlags( softfloat_flag_invalid );56 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 57 57 return false; 58 58 } -
trunk/src/libs/softfloat-3e/source/f64_lt_quiet.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 bool f64_lt_quiet( float64_t a, float64_t b )44 bool f64_lt_quiet( float64_t a, float64_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 58 58 softfloat_isSigNaNF64UI( uiA ) || softfloat_isSigNaNF64UI( uiB ) 59 59 ) { 60 softfloat_raiseFlags( softfloat_flag_invalid );60 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 61 61 } 62 62 return false; -
trunk/src/libs/softfloat-3e/source/f64_mul.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float64_t f64_mul( float64_t a, float64_t b )44 float64_t f64_mul( float64_t a, float64_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 123 123 sigZ <<= 1; 124 124 } 125 return softfloat_roundPackToF64( signZ, expZ, sigZ );125 return softfloat_roundPackToF64( signZ, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 126 126 /*------------------------------------------------------------------------ 127 127 *------------------------------------------------------------------------*/ 128 128 propagateNaN: 129 uiZ = softfloat_propagateNaNF64UI( uiA, uiB );129 uiZ = softfloat_propagateNaNF64UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 130 130 goto uiZ; 131 131 /*------------------------------------------------------------------------ … … 133 133 infArg: 134 134 if ( ! magBits ) { 135 softfloat_raiseFlags( softfloat_flag_invalid );135 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 136 136 uiZ = defaultNaNF64UI; 137 137 } else { -
trunk/src/libs/softfloat-3e/source/f64_mulAdd.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float64_t f64_mulAdd( float64_t a, float64_t b, float64_t c )42 float64_t f64_mulAdd( float64_t a, float64_t b, float64_t c SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 union ui64_f64 uA; … … 55 55 uC.f = c; 56 56 uiC = uC.ui; 57 return softfloat_mulAddF64( uiA, uiB, uiC, 0 );57 return softfloat_mulAddF64( uiA, uiB, uiC, 0 SOFTFLOAT_STATE_ARG_COMMA ); 58 58 59 59 } -
trunk/src/libs/softfloat-3e/source/f64_rem.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float64_t f64_rem( float64_t a, float64_t b )44 float64_t f64_rem( float64_t a, float64_t b SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 173 173 rem = -rem; 174 174 } 175 return softfloat_normRoundPackToF64( signRem, expB, rem );175 return softfloat_normRoundPackToF64( signRem, expB, rem SOFTFLOAT_STATE_ARG_COMMA ); 176 176 /*------------------------------------------------------------------------ 177 177 *------------------------------------------------------------------------*/ 178 178 propagateNaN: 179 uiZ = softfloat_propagateNaNF64UI( uiA, uiB );179 uiZ = softfloat_propagateNaNF64UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 180 180 goto uiZ; 181 181 invalid: 182 softfloat_raiseFlags( softfloat_flag_invalid );182 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 183 183 uiZ = defaultNaNF64UI; 184 184 uiZ: -
trunk/src/libs/softfloat-3e/source/f64_roundToInt.c
r94548 r94558 43 43 #include <iprt/cdefs.h> /* VBox: for RT_FALL_THROUGH */ 44 44 45 float64_t f64_roundToInt( float64_t a, uint_fast8_t roundingMode, bool exact )45 float64_t f64_roundToInt( float64_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 union ui64_f64 uA; … … 87 87 if ( 0x433 <= exp ) { 88 88 if ( (exp == 0x7FF) && fracF64UI( uiA ) ) { 89 uiZ = softfloat_propagateNaNF64UI( uiA, 0 );89 uiZ = softfloat_propagateNaNF64UI( uiA, 0 SOFTFLOAT_STATE_ARG_COMMA ); 90 90 goto uiZ; 91 91 } -
trunk/src/libs/softfloat-3e/source/f64_sqrt.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float64_t f64_sqrt( float64_t a )44 float64_t f64_sqrt( float64_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 68 68 if ( expA == 0x7FF ) { 69 69 if ( sigA ) { 70 uiZ = softfloat_propagateNaNF64UI( uiA, 0 );70 uiZ = softfloat_propagateNaNF64UI( uiA, 0 SOFTFLOAT_STATE_ARG_COMMA ); 71 71 goto uiZ; 72 72 } … … 120 120 } 121 121 } 122 return softfloat_roundPackToF64( 0, expZ, sigZ );122 return softfloat_roundPackToF64( 0, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 123 123 /*------------------------------------------------------------------------ 124 124 *------------------------------------------------------------------------*/ 125 125 invalid: 126 softfloat_raiseFlags( softfloat_flag_invalid );126 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 127 127 uiZ = defaultNaNF64UI; 128 128 uiZ: -
trunk/src/libs/softfloat-3e/source/f64_sub.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float64_t f64_sub( float64_t a, float64_t b )43 float64_t f64_sub( float64_t a, float64_t b SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 union ui64_f64 uA; … … 50 50 bool signB; 51 51 #if ! defined INLINE_LEVEL || (INLINE_LEVEL < 2) 52 float64_t (*magsFuncPtr)( uint_fast64_t, uint_fast64_t, bool );52 float64_t (*magsFuncPtr)( uint_fast64_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 53 53 #endif 54 54 … … 61 61 #if defined INLINE_LEVEL && (2 <= INLINE_LEVEL) 62 62 if ( signA == signB ) { 63 return softfloat_subMagsF64( uiA, uiB, signA );63 return softfloat_subMagsF64( uiA, uiB, signA SOFTFLOAT_STATE_ARG_COMMA ); 64 64 } else { 65 return softfloat_addMagsF64( uiA, uiB, signA );65 return softfloat_addMagsF64( uiA, uiB, signA SOFTFLOAT_STATE_ARG_COMMA ); 66 66 } 67 67 #else 68 68 magsFuncPtr = 69 69 (signA == signB) ? softfloat_subMagsF64 : softfloat_addMagsF64; 70 return (*magsFuncPtr)( uiA, uiB, signA );70 return (*magsFuncPtr)( uiA, uiB, signA SOFTFLOAT_STATE_ARG_COMMA ); 71 71 #endif 72 72 -
trunk/src/libs/softfloat-3e/source/f64_to_extF80.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 extFloat80_t f64_to_extF80( float64_t a )44 extFloat80_t f64_to_extF80( float64_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 67 67 if ( exp == 0x7FF ) { 68 68 if ( frac ) { 69 softfloat_f64UIToCommonNaN( uiA, &commonNaN );69 softfloat_f64UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 70 70 uiZ = softfloat_commonNaNToExtF80UI( &commonNaN ); 71 71 uiZ64 = uiZ.v64; -
trunk/src/libs/softfloat-3e/source/f64_to_extF80M.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 void f64_to_extF80M( float64_t a, extFloat80_t *zPtr )46 void f64_to_extF80M( float64_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 *zPtr = f64_to_extF80( a );49 *zPtr = f64_to_extF80( a SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 void f64_to_extF80M( float64_t a, extFloat80_t *zPtr )55 void f64_to_extF80M( float64_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 struct extFloat80M *zSPtr; … … 78 78 if ( exp == 0x7FF ) { 79 79 if ( frac ) { 80 softfloat_f64UIToCommonNaN( uiA, &commonNaN );80 softfloat_f64UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 81 81 softfloat_commonNaNToExtF80M( &commonNaN, zSPtr ); 82 82 return; -
trunk/src/libs/softfloat-3e/source/f64_to_f128.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float128_t f64_to_f128( float64_t a )44 float128_t f64_to_f128( float64_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 66 66 if ( exp == 0x7FF ) { 67 67 if ( frac ) { 68 softfloat_f64UIToCommonNaN( uiA, &commonNaN );68 softfloat_f64UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 69 69 uiZ = softfloat_commonNaNToF128UI( &commonNaN ); 70 70 } else { -
trunk/src/libs/softfloat-3e/source/f64_to_f128M.c
r94480 r94558 44 44 #ifdef SOFTFLOAT_FAST_INT64 45 45 46 void f64_to_f128M( float64_t a, float128_t *zPtr )46 void f64_to_f128M( float64_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 49 *zPtr = f64_to_f128( a );49 *zPtr = f64_to_f128( a SOFTFLOAT_STATE_ARG_COMMA ); 50 50 51 51 } … … 53 53 #else 54 54 55 void f64_to_f128M( float64_t a, float128_t *zPtr )55 void f64_to_f128M( float64_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 56 56 { 57 57 uint32_t *zWPtr; … … 80 80 if ( exp == 0x7FF ) { 81 81 if ( frac ) { 82 softfloat_f64UIToCommonNaN( uiA, &commonNaN );82 softfloat_f64UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 83 83 softfloat_commonNaNToF128M( &commonNaN, zWPtr ); 84 84 return; -
trunk/src/libs/softfloat-3e/source/f64_to_f16.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float16_t f64_to_f16( float64_t a )44 float16_t f64_to_f16( float64_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 64 64 if ( exp == 0x7FF ) { 65 65 if ( frac ) { 66 softfloat_f64UIToCommonNaN( uiA, &commonNaN );66 softfloat_f64UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 67 67 uiZ = softfloat_commonNaNToF16UI( &commonNaN ); 68 68 } else { … … 80 80 /*------------------------------------------------------------------------ 81 81 *------------------------------------------------------------------------*/ 82 return softfloat_roundPackToF16( sign, exp - 0x3F1, frac16 | 0x4000 );82 return softfloat_roundPackToF16( sign, exp - 0x3F1, frac16 | 0x4000 SOFTFLOAT_STATE_ARG_COMMA ); 83 83 uiZ: 84 84 uZ.ui = uiZ; -
trunk/src/libs/softfloat-3e/source/f64_to_f32.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float32_t f64_to_f32( float64_t a )44 float32_t f64_to_f32( float64_t a SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 64 64 if ( exp == 0x7FF ) { 65 65 if ( frac ) { 66 softfloat_f64UIToCommonNaN( uiA, &commonNaN );66 softfloat_f64UIToCommonNaN( uiA, &commonNaN SOFTFLOAT_STATE_ARG_COMMA ); 67 67 uiZ = softfloat_commonNaNToF32UI( &commonNaN ); 68 68 } else { … … 80 80 /*------------------------------------------------------------------------ 81 81 *------------------------------------------------------------------------*/ 82 return softfloat_roundPackToF32( sign, exp - 0x381, frac32 | 0x40000000 );82 return softfloat_roundPackToF32( sign, exp - 0x381, frac32 | 0x40000000 SOFTFLOAT_STATE_ARG_COMMA ); 83 83 uiZ: 84 84 uZ.ui = uiZ; -
trunk/src/libs/softfloat-3e/source/f64_to_i32.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast32_t f64_to_i32( float64_t a, uint_fast8_t roundingMode, bool exact )44 int_fast32_t f64_to_i32( float64_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 67 67 sign = 1; 68 68 #else 69 softfloat_raiseFlags( softfloat_flag_invalid );69 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 70 70 return i32_fromNaN; 71 71 #endif … … 77 77 shiftDist = 0x427 - exp; 78 78 if ( 0 < shiftDist ) sig = softfloat_shiftRightJam64( sig, shiftDist ); 79 return softfloat_roundToI32( sign, sig, roundingMode, exact );79 return softfloat_roundToI32( sign, sig, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 80 80 81 81 } -
trunk/src/libs/softfloat-3e/source/f64_to_i32_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast32_t f64_to_i32_r_minMag( float64_t a, bool exact )44 int_fast32_t f64_to_i32_r_minMag( float64_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 79 79 return -0x7FFFFFFF - 1; 80 80 } 81 softfloat_raiseFlags( softfloat_flag_invalid );81 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 82 82 return 83 83 (exp == 0x7FF) && sig ? i32_fromNaN -
trunk/src/libs/softfloat-3e/source/f64_to_i64.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast64_t f64_to_i64( float64_t a, uint_fast8_t roundingMode, bool exact )44 int_fast64_t f64_to_i64( float64_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 77 77 return 78 78 softfloat_roundToI64( 79 sign, sigExtra.v, sigExtra.extra, roundingMode, exact );79 sign, sigExtra.v, sigExtra.extra, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 80 80 #else 81 81 extSig[indexWord( 3, 0 )] = 0; … … 90 90 softfloat_shiftRightJam96M( extSig, shiftDist, extSig ); 91 91 } 92 return softfloat_roundMToI64( sign, extSig, roundingMode, exact );92 return softfloat_roundMToI64( sign, extSig, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 93 93 #endif 94 94 /*------------------------------------------------------------------------ 95 95 *------------------------------------------------------------------------*/ 96 96 invalid: 97 softfloat_raiseFlags( softfloat_flag_invalid );97 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 98 98 return 99 99 (exp == 0x7FF) && fracF64UI( uiA ) ? i64_fromNaN -
trunk/src/libs/softfloat-3e/source/f64_to_i64_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 int_fast64_t f64_to_i64_r_minMag( float64_t a, bool exact )44 int_fast64_t f64_to_i64_r_minMag( float64_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 69 69 return -INT64_C( 0x7FFFFFFFFFFFFFFF ) - 1; 70 70 } 71 softfloat_raiseFlags( softfloat_flag_invalid );71 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 72 72 return 73 73 (exp == 0x7FF) && sig ? i64_fromNaN -
trunk/src/libs/softfloat-3e/source/f64_to_ui32.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast32_t f64_to_ui32( float64_t a, uint_fast8_t roundingMode, bool exact )44 uint_fast32_t f64_to_ui32( float64_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 67 67 sign = 1; 68 68 #else 69 softfloat_raiseFlags( softfloat_flag_invalid );69 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 70 70 return ui32_fromNaN; 71 71 #endif … … 77 77 shiftDist = 0x427 - exp; 78 78 if ( 0 < shiftDist ) sig = softfloat_shiftRightJam64( sig, shiftDist ); 79 return softfloat_roundToUI32( sign, sig, roundingMode, exact );79 return softfloat_roundToUI32( sign, sig, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 80 80 81 81 } -
trunk/src/libs/softfloat-3e/source/f64_to_ui32_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast32_t f64_to_ui32_r_minMag( float64_t a, bool exact )44 uint_fast32_t f64_to_ui32_r_minMag( float64_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 71 71 sign = signF64UI( uiA ); 72 72 if ( sign || (shiftDist < 21) ) { 73 softfloat_raiseFlags( softfloat_flag_invalid );73 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 74 74 return 75 75 (exp == 0x7FF) && sig ? ui32_fromNaN -
trunk/src/libs/softfloat-3e/source/f64_to_ui64.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast64_t f64_to_ui64( float64_t a, uint_fast8_t roundingMode, bool exact )44 uint_fast64_t f64_to_ui64( float64_t a, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 77 77 return 78 78 softfloat_roundToUI64( 79 sign, sigExtra.v, sigExtra.extra, roundingMode, exact );79 sign, sigExtra.v, sigExtra.extra, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA ); 80 80 #else 81 81 extSig[indexWord( 3, 0 )] = 0; … … 90 90 softfloat_shiftRightJam96M( extSig, shiftDist, extSig ); 91 91 } 92 return softfloat_roundMToUI64( sign, extSig, roundingMode, exact );92 return softfloat_roundMToUI64( sign, extSig, roundingMode, exact SOFTFLOAT_STATE_ARG_COMMA); 93 93 #endif 94 94 /*------------------------------------------------------------------------ 95 95 *------------------------------------------------------------------------*/ 96 96 invalid: 97 softfloat_raiseFlags( softfloat_flag_invalid );97 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 98 98 return 99 99 (exp == 0x7FF) && fracF64UI( uiA ) ? ui64_fromNaN -
trunk/src/libs/softfloat-3e/source/f64_to_ui64_r_minMag.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 uint_fast64_t f64_to_ui64_r_minMag( float64_t a, bool exact )44 uint_fast64_t f64_to_ui64_r_minMag( float64_t a, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 union ui64_f64 uA; … … 85 85 *------------------------------------------------------------------------*/ 86 86 invalid: 87 softfloat_raiseFlags( softfloat_flag_invalid );87 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 88 88 return 89 89 (exp == 0x7FF) && sig ? ui64_fromNaN -
trunk/src/libs/softfloat-3e/source/i32_to_extF80.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 extFloat80_t i32_to_extF80( int32_t a )43 extFloat80_t i32_to_extF80( int32_t a SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 uint_fast16_t uiZ64; … … 48 48 int_fast8_t shiftDist; 49 49 union { struct extFloat80M s; extFloat80_t f; } uZ; 50 SOFTFLOAT_STATE_NOREF(); 50 51 51 52 uiZ64 = 0; -
trunk/src/libs/softfloat-3e/source/i32_to_extF80M.c
r94480 r94558 42 42 #ifdef SOFTFLOAT_FAST_INT64 43 43 44 void i32_to_extF80M( int32_t a, extFloat80_t *zPtr )44 void i32_to_extF80M( int32_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 47 *zPtr = i32_to_extF80( a );47 *zPtr = i32_to_extF80( a SOFTFLOAT_STATE_ARG_COMMA ); 48 48 49 49 } … … 51 51 #else 52 52 53 void i32_to_extF80M( int32_t a, extFloat80_t *zPtr )53 void i32_to_extF80M( int32_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 54 54 { 55 55 struct extFloat80M *zSPtr; … … 59 59 uint32_t absA; 60 60 int_fast8_t shiftDist; 61 SOFTFLOAT_STATE_NOREF(); 61 62 62 63 zSPtr = (struct extFloat80M *) zPtr; -
trunk/src/libs/softfloat-3e/source/i32_to_f128.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float128_t i32_to_f128( int32_t a )42 float128_t i32_to_f128( int32_t a SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 uint_fast64_t uiZ64; … … 47 47 int_fast8_t shiftDist; 48 48 union ui128_f128 uZ; 49 SOFTFLOAT_STATE_NOREF(); 49 50 50 51 uiZ64 = 0; -
trunk/src/libs/softfloat-3e/source/i32_to_f128M.c
r94480 r94558 42 42 #ifdef SOFTFLOAT_FAST_INT64 43 43 44 void i32_to_f128M( int32_t a, float128_t *zPtr )44 void i32_to_f128M( int32_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 47 *zPtr = i32_to_f128( a );47 *zPtr = i32_to_f128( a SOFTFLOAT_STATE_ARG_COMMA ); 48 48 49 49 } … … 51 51 #else 52 52 53 void i32_to_f128M( int32_t a, float128_t *zPtr )53 void i32_to_f128M( int32_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 54 54 { 55 55 uint32_t *zWPtr; … … 59 59 int_fast8_t shiftDist; 60 60 uint64_t normAbsA; 61 SOFTFLOAT_STATE_NOREF(); 61 62 62 63 zWPtr = (uint32_t *) zPtr; -
trunk/src/libs/softfloat-3e/source/i32_to_f16.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float16_t i32_to_f16( int32_t a )43 float16_t i32_to_f16( int32_t a SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 bool sign; … … 65 65 | ((uint32_t) (absA<<(shiftDist & 31)) != 0) 66 66 : (uint_fast16_t) absA<<shiftDist; 67 return softfloat_roundPackToF16( sign, 0x1C - shiftDist, sig );67 return softfloat_roundPackToF16( sign, 0x1C - shiftDist, sig SOFTFLOAT_STATE_ARG_COMMA ); 68 68 } 69 69 -
trunk/src/libs/softfloat-3e/source/i32_to_f32.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float32_t i32_to_f32( int32_t a )43 float32_t i32_to_f32( int32_t a SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 bool sign; … … 53 53 } 54 54 absA = sign ? -(uint_fast32_t) a : (uint_fast32_t) a; 55 return softfloat_normRoundPackToF32( sign, 0x9C, absA );55 return softfloat_normRoundPackToF32( sign, 0x9C, absA SOFTFLOAT_STATE_ARG_COMMA ); 56 56 57 57 } -
trunk/src/libs/softfloat-3e/source/i32_to_f64.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float64_t i32_to_f64( int32_t a )43 float64_t i32_to_f64( int32_t a SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 uint_fast64_t uiZ; … … 48 48 int_fast8_t shiftDist; 49 49 union ui64_f64 uZ; 50 SOFTFLOAT_STATE_NOREF(); 50 51 51 52 if ( ! a ) { -
trunk/src/libs/softfloat-3e/source/i64_to_extF80.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 extFloat80_t i64_to_extF80( int64_t a )43 extFloat80_t i64_to_extF80( int64_t a SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 uint_fast16_t uiZ64; … … 48 48 int_fast8_t shiftDist; 49 49 union { struct extFloat80M s; extFloat80_t f; } uZ; 50 SOFTFLOAT_STATE_NOREF(); 50 51 51 52 uiZ64 = 0; -
trunk/src/libs/softfloat-3e/source/i64_to_extF80M.c
r94480 r94558 42 42 #ifdef SOFTFLOAT_FAST_INT64 43 43 44 void i64_to_extF80M( int64_t a, extFloat80_t *zPtr )44 void i64_to_extF80M( int64_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 47 *zPtr = i64_to_extF80( a );47 *zPtr = i64_to_extF80( a SOFTFLOAT_STATE_ARG_COMMA ); 48 48 49 49 } … … 51 51 #else 52 52 53 void i64_to_extF80M( int64_t a, extFloat80_t *zPtr )53 void i64_to_extF80M( int64_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 54 54 { 55 55 struct extFloat80M *zSPtr; … … 59 59 uint64_t absA; 60 60 int_fast8_t shiftDist; 61 SOFTFLOAT_STATE_NOREF(); 61 62 62 63 zSPtr = (struct extFloat80M *) zPtr; -
trunk/src/libs/softfloat-3e/source/i64_to_f128.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float128_t i64_to_f128( int64_t a )42 float128_t i64_to_f128( int64_t a SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 uint_fast64_t uiZ64, uiZ0; … … 48 48 struct uint128 zSig; 49 49 union ui128_f128 uZ; 50 SOFTFLOAT_STATE_NOREF(); 50 51 51 52 if ( ! a ) { -
trunk/src/libs/softfloat-3e/source/i64_to_f128M.c
r94480 r94558 42 42 #ifdef SOFTFLOAT_FAST_INT64 43 43 44 void i64_to_f128M( int64_t a, float128_t *zPtr )44 void i64_to_f128M( int64_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 47 *zPtr = i64_to_f128( a );47 *zPtr = i64_to_f128( a SOFTFLOAT_STATE_ARG_COMMA ); 48 48 49 49 } … … 51 51 #else 52 52 53 void i64_to_f128M( int64_t a, float128_t *zPtr )53 void i64_to_f128M( int64_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 54 54 { 55 55 uint32_t *zWPtr; … … 59 59 uint_fast8_t shiftDist; 60 60 uint32_t *ptr; 61 SOFTFLOAT_STATE_NOREF(); 61 62 62 63 zWPtr = (uint32_t *) zPtr; -
trunk/src/libs/softfloat-3e/source/i64_to_f16.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float16_t i64_to_f16( int64_t a )43 float16_t i64_to_f16( int64_t a SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 bool sign; … … 64 64 ? softfloat_shortShiftRightJam64( absA, -shiftDist ) 65 65 : (uint_fast16_t) absA<<shiftDist; 66 return softfloat_roundPackToF16( sign, 0x1C - shiftDist, sig );66 return softfloat_roundPackToF16( sign, 0x1C - shiftDist, sig SOFTFLOAT_STATE_ARG_COMMA ); 67 67 } 68 68 -
trunk/src/libs/softfloat-3e/source/i64_to_f32.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float32_t i64_to_f32( int64_t a )43 float32_t i64_to_f32( int64_t a SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 bool sign; … … 64 64 ? softfloat_shortShiftRightJam64( absA, -shiftDist ) 65 65 : (uint_fast32_t) absA<<shiftDist; 66 return softfloat_roundPackToF32( sign, 0x9C - shiftDist, sig );66 return softfloat_roundPackToF32( sign, 0x9C - shiftDist, sig SOFTFLOAT_STATE_ARG_COMMA ); 67 67 } 68 68 -
trunk/src/libs/softfloat-3e/source/i64_to_f64.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 float64_t i64_to_f64( int64_t a )43 float64_t i64_to_f64( int64_t a SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 bool sign; … … 53 53 } 54 54 absA = sign ? -(uint_fast64_t) a : (uint_fast64_t) a; 55 return softfloat_normRoundPackToF64( sign, 0x43C, absA );55 return softfloat_normRoundPackToF64( sign, 0x43C, absA SOFTFLOAT_STATE_ARG_COMMA ); 56 56 57 57 } -
trunk/src/libs/softfloat-3e/source/include/internals.h
r94480 r94558 59 59 /*---------------------------------------------------------------------------- 60 60 *----------------------------------------------------------------------------*/ 61 uint_fast32_t softfloat_roundToUI32( bool, uint_fast64_t, uint_fast8_t, bool );61 uint_fast32_t softfloat_roundToUI32( bool, uint_fast64_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 62 62 63 63 #ifdef SOFTFLOAT_FAST_INT64 64 64 uint_fast64_t 65 65 softfloat_roundToUI64( 66 bool, uint_fast64_t, uint_fast64_t, uint_fast8_t, bool );66 bool, uint_fast64_t, uint_fast64_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 67 67 #else 68 uint_fast64_t softfloat_roundMToUI64( bool, uint32_t *, uint_fast8_t, bool );69 #endif 70 71 int_fast32_t softfloat_roundToI32( bool, uint_fast64_t, uint_fast8_t, bool );68 uint_fast64_t softfloat_roundMToUI64( bool, uint32_t *, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 69 #endif 70 71 int_fast32_t softfloat_roundToI32( bool, uint_fast64_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 72 72 73 73 #ifdef SOFTFLOAT_FAST_INT64 74 74 int_fast64_t 75 75 softfloat_roundToI64( 76 bool, uint_fast64_t, uint_fast64_t, uint_fast8_t, bool );76 bool, uint_fast64_t, uint_fast64_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 77 77 #else 78 int_fast64_t softfloat_roundMToI64( bool, uint32_t *, uint_fast8_t, bool );78 int_fast64_t softfloat_roundMToI64( bool, uint32_t *, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 79 79 #endif 80 80 … … 91 91 struct exp8_sig16 softfloat_normSubnormalF16Sig( uint_fast16_t ); 92 92 93 float16_t softfloat_roundPackToF16( bool, int_fast16_t, uint_fast16_t );94 float16_t softfloat_normRoundPackToF16( bool, int_fast16_t, uint_fast16_t );95 96 float16_t softfloat_addMagsF16( uint_fast16_t, uint_fast16_t );97 float16_t softfloat_subMagsF16( uint_fast16_t, uint_fast16_t );93 float16_t softfloat_roundPackToF16( bool, int_fast16_t, uint_fast16_t SOFTFLOAT_STATE_DECL_COMMA ); 94 float16_t softfloat_normRoundPackToF16( bool, int_fast16_t, uint_fast16_t SOFTFLOAT_STATE_DECL_COMMA ); 95 96 float16_t softfloat_addMagsF16( uint_fast16_t, uint_fast16_t SOFTFLOAT_STATE_DECL_COMMA ); 97 float16_t softfloat_subMagsF16( uint_fast16_t, uint_fast16_t SOFTFLOAT_STATE_DECL_COMMA ); 98 98 float16_t 99 99 softfloat_mulAddF16( 100 uint_fast16_t, uint_fast16_t, uint_fast16_t, uint_fast8_t );100 uint_fast16_t, uint_fast16_t, uint_fast16_t, uint_fast8_t SOFTFLOAT_STATE_DECL_COMMA ); 101 101 102 102 /*---------------------------------------------------------------------------- … … 112 112 struct exp16_sig32 softfloat_normSubnormalF32Sig( uint_fast32_t ); 113 113 114 float32_t softfloat_roundPackToF32( bool, int_fast16_t, uint_fast32_t );115 float32_t softfloat_normRoundPackToF32( bool, int_fast16_t, uint_fast32_t );116 117 float32_t softfloat_addMagsF32( uint_fast32_t, uint_fast32_t );118 float32_t softfloat_subMagsF32( uint_fast32_t, uint_fast32_t );114 float32_t softfloat_roundPackToF32( bool, int_fast16_t, uint_fast32_t SOFTFLOAT_STATE_DECL_COMMA ); 115 float32_t softfloat_normRoundPackToF32( bool, int_fast16_t, uint_fast32_t SOFTFLOAT_STATE_DECL_COMMA ); 116 117 float32_t softfloat_addMagsF32( uint_fast32_t, uint_fast32_t SOFTFLOAT_STATE_DECL_COMMA ); 118 float32_t softfloat_subMagsF32( uint_fast32_t, uint_fast32_t SOFTFLOAT_STATE_DECL_COMMA ); 119 119 float32_t 120 120 softfloat_mulAddF32( 121 uint_fast32_t, uint_fast32_t, uint_fast32_t, uint_fast8_t );121 uint_fast32_t, uint_fast32_t, uint_fast32_t, uint_fast8_t SOFTFLOAT_STATE_DECL_COMMA ); 122 122 123 123 /*---------------------------------------------------------------------------- … … 133 133 struct exp16_sig64 softfloat_normSubnormalF64Sig( uint_fast64_t ); 134 134 135 float64_t softfloat_roundPackToF64( bool, int_fast16_t, uint_fast64_t );136 float64_t softfloat_normRoundPackToF64( bool, int_fast16_t, uint_fast64_t );137 138 float64_t softfloat_addMagsF64( uint_fast64_t, uint_fast64_t, bool );139 float64_t softfloat_subMagsF64( uint_fast64_t, uint_fast64_t, bool );135 float64_t softfloat_roundPackToF64( bool, int_fast16_t, uint_fast64_t SOFTFLOAT_STATE_DECL_COMMA ); 136 float64_t softfloat_normRoundPackToF64( bool, int_fast16_t, uint_fast64_t SOFTFLOAT_STATE_DECL_COMMA ); 137 138 float64_t softfloat_addMagsF64( uint_fast64_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 139 float64_t softfloat_subMagsF64( uint_fast64_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 140 140 float64_t 141 141 softfloat_mulAddF64( 142 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast8_t );142 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast8_t SOFTFLOAT_STATE_DECL_COMMA ); 143 143 144 144 /*---------------------------------------------------------------------------- … … 160 160 extFloat80_t 161 161 softfloat_roundPackToExtF80( 162 bool, int_fast32_t, uint_fast64_t, uint_fast64_t, uint_fast8_t );162 bool, int_fast32_t, uint_fast64_t, uint_fast64_t, uint_fast8_t SOFTFLOAT_STATE_DECL_COMMA ); 163 163 extFloat80_t 164 164 softfloat_normRoundPackToExtF80( 165 bool, int_fast32_t, uint_fast64_t, uint_fast64_t, uint_fast8_t );165 bool, int_fast32_t, uint_fast64_t, uint_fast64_t, uint_fast8_t SOFTFLOAT_STATE_DECL_COMMA ); 166 166 167 167 extFloat80_t 168 168 softfloat_addMagsExtF80( 169 uint_fast16_t, uint_fast64_t, uint_fast16_t, uint_fast64_t, bool );169 uint_fast16_t, uint_fast64_t, uint_fast16_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 170 170 extFloat80_t 171 171 softfloat_subMagsExtF80( 172 uint_fast16_t, uint_fast64_t, uint_fast16_t, uint_fast64_t, bool );172 uint_fast16_t, uint_fast64_t, uint_fast16_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 173 173 174 174 /*---------------------------------------------------------------------------- … … 187 187 float128_t 188 188 softfloat_roundPackToF128( 189 bool, int_fast32_t, uint_fast64_t, uint_fast64_t, uint_fast64_t );189 bool, int_fast32_t, uint_fast64_t, uint_fast64_t, uint_fast64_t SOFTFLOAT_STATE_DECL_COMMA ); 190 190 float128_t 191 191 softfloat_normRoundPackToF128( 192 bool, int_fast32_t, uint_fast64_t, uint_fast64_t );192 bool, int_fast32_t, uint_fast64_t, uint_fast64_t SOFTFLOAT_STATE_DECL_COMMA ); 193 193 194 194 float128_t 195 195 softfloat_addMagsF128( 196 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast64_t, bool );196 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 197 197 float128_t 198 198 softfloat_subMagsF128( 199 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast64_t, bool );199 uint_fast64_t, uint_fast64_t, uint_fast64_t, uint_fast64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 200 200 float128_t 201 201 softfloat_mulAddF128( … … 207 207 uint_fast64_t, 208 208 uint_fast8_t 209 SOFTFLOAT_STATE_DECL_COMMA 209 210 ); 210 211 … … 219 220 const struct extFloat80M *, 220 221 struct extFloat80M * 221 ); 222 void softfloat_invalidExtF80M( struct extFloat80M * ); 222 SOFTFLOAT_STATE_DECL_COMMA 223 ); 224 void softfloat_invalidExtF80M( struct extFloat80M * SOFTFLOAT_STATE_DECL_COMMA ); 223 225 224 226 int softfloat_normExtF80SigM( uint64_t * ); … … 226 228 void 227 229 softfloat_roundPackMToExtF80M( 228 bool, int32_t, uint32_t *, uint_fast8_t, struct extFloat80M * );230 bool, int32_t, uint32_t *, uint_fast8_t, struct extFloat80M * SOFTFLOAT_STATE_DECL_COMMA ); 229 231 void 230 232 softfloat_normRoundPackMToExtF80M( 231 bool, int32_t, uint32_t *, uint_fast8_t, struct extFloat80M * );233 bool, int32_t, uint32_t *, uint_fast8_t, struct extFloat80M * SOFTFLOAT_STATE_DECL_COMMA ); 232 234 233 235 void … … 237 239 struct extFloat80M *, 238 240 bool 241 SOFTFLOAT_STATE_DECL_COMMA 239 242 ); 240 243 241 244 int 242 245 softfloat_compareNonnormExtF80M( 243 const struct extFloat80M *, const struct extFloat80M * );246 const struct extFloat80M *, const struct extFloat80M * SOFTFLOAT_STATE_DECL_COMMA ); 244 247 245 248 /*---------------------------------------------------------------------------- … … 254 257 bool 255 258 softfloat_tryPropagateNaNF128M( 256 const uint32_t *, const uint32_t *, uint32_t * );257 void softfloat_invalidF128M( uint32_t * );259 const uint32_t *, const uint32_t *, uint32_t * SOFTFLOAT_STATE_DECL_COMMA ); 260 void softfloat_invalidF128M( uint32_t * SOFTFLOAT_STATE_DECL_COMMA ); 258 261 259 262 int softfloat_shiftNormSigF128M( const uint32_t *, uint_fast8_t, uint32_t * ); 260 263 261 void softfloat_roundPackMToF128M( bool, int32_t, uint32_t *, uint32_t * );262 void softfloat_normRoundPackMToF128M( bool, int32_t, uint32_t *, uint32_t * );263 264 void 265 softfloat_addF128M( const uint32_t *, const uint32_t *, uint32_t *, bool );264 void softfloat_roundPackMToF128M( bool, int32_t, uint32_t *, uint32_t * SOFTFLOAT_STATE_DECL_COMMA ); 265 void softfloat_normRoundPackMToF128M( bool, int32_t, uint32_t *, uint32_t * SOFTFLOAT_STATE_DECL_COMMA ); 266 267 void 268 softfloat_addF128M( const uint32_t *, const uint32_t *, uint32_t *, bool SOFTFLOAT_STATE_DECL_COMMA ); 266 269 void 267 270 softfloat_mulAddF128M( … … 271 274 uint32_t *, 272 275 uint_fast8_t 273 ); 274 275 #endif 276 277 #endif 278 276 SOFTFLOAT_STATE_DECL_COMMA 277 ); 278 279 #endif 280 281 #endif 282 -
trunk/src/libs/softfloat-3e/source/include/softfloat.h
r94480 r94558 47 47 #define softfloat_h 1 48 48 49 #include <iprt/cdefs.h> 49 50 #include <stdbool.h> 50 51 #include <stdint.h> … … 55 56 #endif 56 57 58 RT_C_DECLS_BEGIN 59 57 60 /*---------------------------------------------------------------------------- 58 61 | Software floating-point underflow tininess-detection mode. 59 62 *----------------------------------------------------------------------------*/ 63 #ifndef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 60 64 extern THREAD_LOCAL uint_fast8_t softfloat_detectTininess; 65 #else 66 # define softfloat_detectTininess (pState->detectTininess) 67 #endif 61 68 enum { 62 69 softfloat_tininess_beforeRounding = 0, … … 68 75 | SoftFloat is compiled with macro 'SOFTFLOAT_ROUND_ODD' defined.) 69 76 *----------------------------------------------------------------------------*/ 77 #ifndef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 70 78 extern THREAD_LOCAL uint_fast8_t softfloat_roundingMode; 79 #else 80 # define softfloat_roundingMode (pState->roundingMode) 81 #endif 71 82 enum { 72 83 softfloat_round_near_even = 0, … … 81 92 | Software floating-point exception flags. 82 93 *----------------------------------------------------------------------------*/ 94 #ifndef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 83 95 extern THREAD_LOCAL uint_fast8_t softfloat_exceptionFlags; 96 #else 97 # define softfloat_exceptionFlags (pState->exceptionFlags) 98 #endif 84 99 enum { 100 #ifndef VBOX 85 101 softfloat_flag_inexact = 1, 86 102 softfloat_flag_underflow = 2, … … 88 104 softfloat_flag_infinite = 8, 89 105 softfloat_flag_invalid = 16 106 #else /* VBox: Match X86_FSW_?E */ 107 softfloat_flag_invalid = 1<<0 /**< X86_FSW_IE */, 108 //softfloat_flag_ X86_FSW_DE RT_BIT_32(1) 109 softfloat_flag_infinite = 1<<2 /**< X86_FSW_ZE */, 110 softfloat_flag_overflow = 1<<3 /**< X86_FSW_OE */, 111 softfloat_flag_underflow = 1<<4 /**< X86_FSW_UE */, 112 softfloat_flag_inexact = 1<<5 /**< X86_FSW_PE */, 113 softfloat_flag_c1 = 1<<7 /**< X86_FSW_C1 - round up indicator. wrong place. */ 114 #endif 90 115 }; 91 116 … … 93 118 | Routine to raise any or all of the software floating-point exception flags. 94 119 *----------------------------------------------------------------------------*/ 95 void softfloat_raiseFlags( uint_fast8_t );120 void softfloat_raiseFlags( uint_fast8_t SOFTFLOAT_STATE_DECL_COMMA ); 96 121 97 122 /*---------------------------------------------------------------------------- 98 123 | Integer-to-floating-point conversion routines. 99 124 *----------------------------------------------------------------------------*/ 100 float16_t ui32_to_f16( uint32_t );101 float32_t ui32_to_f32( uint32_t );102 float64_t ui32_to_f64( uint32_t );103 #ifdef SOFTFLOAT_FAST_INT64 104 extFloat80_t ui32_to_extF80( uint32_t );105 float128_t ui32_to_f128( uint32_t );106 #endif 107 void ui32_to_extF80M( uint32_t, extFloat80_t * );108 void ui32_to_f128M( uint32_t, float128_t * );109 float16_t ui64_to_f16( uint64_t );110 float32_t ui64_to_f32( uint64_t );111 float64_t ui64_to_f64( uint64_t );112 #ifdef SOFTFLOAT_FAST_INT64 113 extFloat80_t ui64_to_extF80( uint64_t );114 float128_t ui64_to_f128( uint64_t );115 #endif 116 void ui64_to_extF80M( uint64_t, extFloat80_t * );117 void ui64_to_f128M( uint64_t, float128_t * );118 float16_t i32_to_f16( int32_t );119 float32_t i32_to_f32( int32_t );120 float64_t i32_to_f64( int32_t );121 #ifdef SOFTFLOAT_FAST_INT64 122 extFloat80_t i32_to_extF80( int32_t );123 float128_t i32_to_f128( int32_t );124 #endif 125 void i32_to_extF80M( int32_t, extFloat80_t * );126 void i32_to_f128M( int32_t, float128_t * );127 float16_t i64_to_f16( int64_t );128 float32_t i64_to_f32( int64_t );129 float64_t i64_to_f64( int64_t );130 #ifdef SOFTFLOAT_FAST_INT64 131 extFloat80_t i64_to_extF80( int64_t );132 float128_t i64_to_f128( int64_t );133 #endif 134 void i64_to_extF80M( int64_t, extFloat80_t * );135 void i64_to_f128M( int64_t, float128_t * );125 float16_t ui32_to_f16( uint32_t SOFTFLOAT_STATE_DECL_COMMA ); 126 float32_t ui32_to_f32( uint32_t SOFTFLOAT_STATE_DECL_COMMA ); 127 float64_t ui32_to_f64( uint32_t SOFTFLOAT_STATE_DECL_COMMA ); 128 #ifdef SOFTFLOAT_FAST_INT64 129 extFloat80_t ui32_to_extF80( uint32_t SOFTFLOAT_STATE_DECL_COMMA ); 130 float128_t ui32_to_f128( uint32_t SOFTFLOAT_STATE_DECL_COMMA ); 131 #endif 132 void ui32_to_extF80M( uint32_t, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 133 void ui32_to_f128M( uint32_t, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 134 float16_t ui64_to_f16( uint64_t SOFTFLOAT_STATE_DECL_COMMA ); 135 float32_t ui64_to_f32( uint64_t SOFTFLOAT_STATE_DECL_COMMA ); 136 float64_t ui64_to_f64( uint64_t SOFTFLOAT_STATE_DECL_COMMA ); 137 #ifdef SOFTFLOAT_FAST_INT64 138 extFloat80_t ui64_to_extF80( uint64_t SOFTFLOAT_STATE_DECL_COMMA ); 139 float128_t ui64_to_f128( uint64_t SOFTFLOAT_STATE_DECL_COMMA ); 140 #endif 141 void ui64_to_extF80M( uint64_t, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 142 void ui64_to_f128M( uint64_t, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 143 float16_t i32_to_f16( int32_t SOFTFLOAT_STATE_DECL_COMMA ); 144 float32_t i32_to_f32( int32_t SOFTFLOAT_STATE_DECL_COMMA ); 145 float64_t i32_to_f64( int32_t SOFTFLOAT_STATE_DECL_COMMA ); 146 #ifdef SOFTFLOAT_FAST_INT64 147 extFloat80_t i32_to_extF80( int32_t SOFTFLOAT_STATE_DECL_COMMA ); 148 float128_t i32_to_f128( int32_t SOFTFLOAT_STATE_DECL_COMMA ); 149 #endif 150 void i32_to_extF80M( int32_t, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 151 void i32_to_f128M( int32_t, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 152 float16_t i64_to_f16( int64_t SOFTFLOAT_STATE_DECL_COMMA ); 153 float32_t i64_to_f32( int64_t SOFTFLOAT_STATE_DECL_COMMA ); 154 float64_t i64_to_f64( int64_t SOFTFLOAT_STATE_DECL_COMMA ); 155 #ifdef SOFTFLOAT_FAST_INT64 156 extFloat80_t i64_to_extF80( int64_t SOFTFLOAT_STATE_DECL_COMMA ); 157 float128_t i64_to_f128( int64_t SOFTFLOAT_STATE_DECL_COMMA ); 158 #endif 159 void i64_to_extF80M( int64_t, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 160 void i64_to_f128M( int64_t, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 136 161 137 162 /*---------------------------------------------------------------------------- 138 163 | 16-bit (half-precision) floating-point operations. 139 164 *----------------------------------------------------------------------------*/ 140 uint_fast32_t f16_to_ui32( float16_t, uint_fast8_t, bool );141 uint_fast64_t f16_to_ui64( float16_t, uint_fast8_t, bool );142 int_fast32_t f16_to_i32( float16_t, uint_fast8_t, bool );143 int_fast64_t f16_to_i64( float16_t, uint_fast8_t, bool );144 uint_fast32_t f16_to_ui32_r_minMag( float16_t, bool );145 uint_fast64_t f16_to_ui64_r_minMag( float16_t, bool );146 int_fast32_t f16_to_i32_r_minMag( float16_t, bool );147 int_fast64_t f16_to_i64_r_minMag( float16_t, bool );148 float32_t f16_to_f32( float16_t );149 float64_t f16_to_f64( float16_t );150 #ifdef SOFTFLOAT_FAST_INT64 151 extFloat80_t f16_to_extF80( float16_t );152 float128_t f16_to_f128( float16_t );153 #endif 154 void f16_to_extF80M( float16_t, extFloat80_t * );155 void f16_to_f128M( float16_t, float128_t * );156 float16_t f16_roundToInt( float16_t, uint_fast8_t, bool );157 float16_t f16_add( float16_t, float16_t );158 float16_t f16_sub( float16_t, float16_t );159 float16_t f16_mul( float16_t, float16_t );160 float16_t f16_mulAdd( float16_t, float16_t, float16_t );161 float16_t f16_div( float16_t, float16_t );162 float16_t f16_rem( float16_t, float16_t );163 float16_t f16_sqrt( float16_t );164 bool f16_eq( float16_t, float16_t );165 bool f16_le( float16_t, float16_t );166 bool f16_lt( float16_t, float16_t );167 bool f16_eq_signaling( float16_t, float16_t );168 bool f16_le_quiet( float16_t, float16_t );169 bool f16_lt_quiet( float16_t, float16_t );165 uint_fast32_t f16_to_ui32( float16_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 166 uint_fast64_t f16_to_ui64( float16_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 167 int_fast32_t f16_to_i32( float16_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 168 int_fast64_t f16_to_i64( float16_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 169 uint_fast32_t f16_to_ui32_r_minMag( float16_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 170 uint_fast64_t f16_to_ui64_r_minMag( float16_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 171 int_fast32_t f16_to_i32_r_minMag( float16_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 172 int_fast64_t f16_to_i64_r_minMag( float16_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 173 float32_t f16_to_f32( float16_t SOFTFLOAT_STATE_DECL_COMMA ); 174 float64_t f16_to_f64( float16_t SOFTFLOAT_STATE_DECL_COMMA ); 175 #ifdef SOFTFLOAT_FAST_INT64 176 extFloat80_t f16_to_extF80( float16_t SOFTFLOAT_STATE_DECL_COMMA ); 177 float128_t f16_to_f128( float16_t SOFTFLOAT_STATE_DECL_COMMA ); 178 #endif 179 void f16_to_extF80M( float16_t, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 180 void f16_to_f128M( float16_t, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 181 float16_t f16_roundToInt( float16_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 182 float16_t f16_add( float16_t, float16_t SOFTFLOAT_STATE_DECL_COMMA ); 183 float16_t f16_sub( float16_t, float16_t SOFTFLOAT_STATE_DECL_COMMA ); 184 float16_t f16_mul( float16_t, float16_t SOFTFLOAT_STATE_DECL_COMMA ); 185 float16_t f16_mulAdd( float16_t, float16_t, float16_t SOFTFLOAT_STATE_DECL_COMMA ); 186 float16_t f16_div( float16_t, float16_t SOFTFLOAT_STATE_DECL_COMMA ); 187 float16_t f16_rem( float16_t, float16_t SOFTFLOAT_STATE_DECL_COMMA ); 188 float16_t f16_sqrt( float16_t SOFTFLOAT_STATE_DECL_COMMA ); 189 bool f16_eq( float16_t, float16_t SOFTFLOAT_STATE_DECL_COMMA ); 190 bool f16_le( float16_t, float16_t SOFTFLOAT_STATE_DECL_COMMA ); 191 bool f16_lt( float16_t, float16_t SOFTFLOAT_STATE_DECL_COMMA ); 192 bool f16_eq_signaling( float16_t, float16_t SOFTFLOAT_STATE_DECL_COMMA ); 193 bool f16_le_quiet( float16_t, float16_t SOFTFLOAT_STATE_DECL_COMMA ); 194 bool f16_lt_quiet( float16_t, float16_t SOFTFLOAT_STATE_DECL_COMMA ); 170 195 bool f16_isSignalingNaN( float16_t ); 171 196 … … 173 198 | 32-bit (single-precision) floating-point operations. 174 199 *----------------------------------------------------------------------------*/ 175 uint_fast32_t f32_to_ui32( float32_t, uint_fast8_t, bool );176 uint_fast64_t f32_to_ui64( float32_t, uint_fast8_t, bool );177 int_fast32_t f32_to_i32( float32_t, uint_fast8_t, bool );178 int_fast64_t f32_to_i64( float32_t, uint_fast8_t, bool );179 uint_fast32_t f32_to_ui32_r_minMag( float32_t, bool );180 uint_fast64_t f32_to_ui64_r_minMag( float32_t, bool );181 int_fast32_t f32_to_i32_r_minMag( float32_t, bool );182 int_fast64_t f32_to_i64_r_minMag( float32_t, bool );183 float16_t f32_to_f16( float32_t );184 float64_t f32_to_f64( float32_t );185 #ifdef SOFTFLOAT_FAST_INT64 186 extFloat80_t f32_to_extF80( float32_t );187 float128_t f32_to_f128( float32_t );188 #endif 189 void f32_to_extF80M( float32_t, extFloat80_t * );190 void f32_to_f128M( float32_t, float128_t * );191 float32_t f32_roundToInt( float32_t, uint_fast8_t, bool );192 float32_t f32_add( float32_t, float32_t );193 float32_t f32_sub( float32_t, float32_t );194 float32_t f32_mul( float32_t, float32_t );195 float32_t f32_mulAdd( float32_t, float32_t, float32_t );196 float32_t f32_div( float32_t, float32_t );197 float32_t f32_rem( float32_t, float32_t );198 float32_t f32_sqrt( float32_t );199 bool f32_eq( float32_t, float32_t );200 bool f32_le( float32_t, float32_t );201 bool f32_lt( float32_t, float32_t );202 bool f32_eq_signaling( float32_t, float32_t );203 bool f32_le_quiet( float32_t, float32_t );204 bool f32_lt_quiet( float32_t, float32_t );200 uint_fast32_t f32_to_ui32( float32_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 201 uint_fast64_t f32_to_ui64( float32_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 202 int_fast32_t f32_to_i32( float32_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 203 int_fast64_t f32_to_i64( float32_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 204 uint_fast32_t f32_to_ui32_r_minMag( float32_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 205 uint_fast64_t f32_to_ui64_r_minMag( float32_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 206 int_fast32_t f32_to_i32_r_minMag( float32_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 207 int_fast64_t f32_to_i64_r_minMag( float32_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 208 float16_t f32_to_f16( float32_t SOFTFLOAT_STATE_DECL_COMMA ); 209 float64_t f32_to_f64( float32_t SOFTFLOAT_STATE_DECL_COMMA ); 210 #ifdef SOFTFLOAT_FAST_INT64 211 extFloat80_t f32_to_extF80( float32_t SOFTFLOAT_STATE_DECL_COMMA ); 212 float128_t f32_to_f128( float32_t SOFTFLOAT_STATE_DECL_COMMA ); 213 #endif 214 void f32_to_extF80M( float32_t, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 215 void f32_to_f128M( float32_t, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 216 float32_t f32_roundToInt( float32_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 217 float32_t f32_add( float32_t, float32_t SOFTFLOAT_STATE_DECL_COMMA ); 218 float32_t f32_sub( float32_t, float32_t SOFTFLOAT_STATE_DECL_COMMA ); 219 float32_t f32_mul( float32_t, float32_t SOFTFLOAT_STATE_DECL_COMMA ); 220 float32_t f32_mulAdd( float32_t, float32_t, float32_t SOFTFLOAT_STATE_DECL_COMMA ); 221 float32_t f32_div( float32_t, float32_t SOFTFLOAT_STATE_DECL_COMMA ); 222 float32_t f32_rem( float32_t, float32_t SOFTFLOAT_STATE_DECL_COMMA ); 223 float32_t f32_sqrt( float32_t SOFTFLOAT_STATE_DECL_COMMA ); 224 bool f32_eq( float32_t, float32_t SOFTFLOAT_STATE_DECL_COMMA ); 225 bool f32_le( float32_t, float32_t SOFTFLOAT_STATE_DECL_COMMA ); 226 bool f32_lt( float32_t, float32_t SOFTFLOAT_STATE_DECL_COMMA ); 227 bool f32_eq_signaling( float32_t, float32_t SOFTFLOAT_STATE_DECL_COMMA ); 228 bool f32_le_quiet( float32_t, float32_t SOFTFLOAT_STATE_DECL_COMMA ); 229 bool f32_lt_quiet( float32_t, float32_t SOFTFLOAT_STATE_DECL_COMMA ); 205 230 bool f32_isSignalingNaN( float32_t ); 206 231 … … 208 233 | 64-bit (double-precision) floating-point operations. 209 234 *----------------------------------------------------------------------------*/ 210 uint_fast32_t f64_to_ui32( float64_t, uint_fast8_t, bool );211 uint_fast64_t f64_to_ui64( float64_t, uint_fast8_t, bool );212 int_fast32_t f64_to_i32( float64_t, uint_fast8_t, bool );213 int_fast64_t f64_to_i64( float64_t, uint_fast8_t, bool );214 uint_fast32_t f64_to_ui32_r_minMag( float64_t, bool );215 uint_fast64_t f64_to_ui64_r_minMag( float64_t, bool );216 int_fast32_t f64_to_i32_r_minMag( float64_t, bool );217 int_fast64_t f64_to_i64_r_minMag( float64_t, bool );218 float16_t f64_to_f16( float64_t );219 float32_t f64_to_f32( float64_t );220 #ifdef SOFTFLOAT_FAST_INT64 221 extFloat80_t f64_to_extF80( float64_t );222 float128_t f64_to_f128( float64_t );223 #endif 224 void f64_to_extF80M( float64_t, extFloat80_t * );225 void f64_to_f128M( float64_t, float128_t * );226 float64_t f64_roundToInt( float64_t, uint_fast8_t, bool );227 float64_t f64_add( float64_t, float64_t );228 float64_t f64_sub( float64_t, float64_t );229 float64_t f64_mul( float64_t, float64_t );230 float64_t f64_mulAdd( float64_t, float64_t, float64_t );231 float64_t f64_div( float64_t, float64_t );232 float64_t f64_rem( float64_t, float64_t );233 float64_t f64_sqrt( float64_t );234 bool f64_eq( float64_t, float64_t );235 bool f64_le( float64_t, float64_t );236 bool f64_lt( float64_t, float64_t );237 bool f64_eq_signaling( float64_t, float64_t );238 bool f64_le_quiet( float64_t, float64_t );239 bool f64_lt_quiet( float64_t, float64_t );235 uint_fast32_t f64_to_ui32( float64_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 236 uint_fast64_t f64_to_ui64( float64_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 237 int_fast32_t f64_to_i32( float64_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 238 int_fast64_t f64_to_i64( float64_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 239 uint_fast32_t f64_to_ui32_r_minMag( float64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 240 uint_fast64_t f64_to_ui64_r_minMag( float64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 241 int_fast32_t f64_to_i32_r_minMag( float64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 242 int_fast64_t f64_to_i64_r_minMag( float64_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 243 float16_t f64_to_f16( float64_t SOFTFLOAT_STATE_DECL_COMMA ); 244 float32_t f64_to_f32( float64_t SOFTFLOAT_STATE_DECL_COMMA ); 245 #ifdef SOFTFLOAT_FAST_INT64 246 extFloat80_t f64_to_extF80( float64_t SOFTFLOAT_STATE_DECL_COMMA ); 247 float128_t f64_to_f128( float64_t SOFTFLOAT_STATE_DECL_COMMA ); 248 #endif 249 void f64_to_extF80M( float64_t, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 250 void f64_to_f128M( float64_t, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 251 float64_t f64_roundToInt( float64_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 252 float64_t f64_add( float64_t, float64_t SOFTFLOAT_STATE_DECL_COMMA ); 253 float64_t f64_sub( float64_t, float64_t SOFTFLOAT_STATE_DECL_COMMA ); 254 float64_t f64_mul( float64_t, float64_t SOFTFLOAT_STATE_DECL_COMMA ); 255 float64_t f64_mulAdd( float64_t, float64_t, float64_t SOFTFLOAT_STATE_DECL_COMMA ); 256 float64_t f64_div( float64_t, float64_t SOFTFLOAT_STATE_DECL_COMMA ); 257 float64_t f64_rem( float64_t, float64_t SOFTFLOAT_STATE_DECL_COMMA ); 258 float64_t f64_sqrt( float64_t SOFTFLOAT_STATE_DECL_COMMA ); 259 bool f64_eq( float64_t, float64_t SOFTFLOAT_STATE_DECL_COMMA ); 260 bool f64_le( float64_t, float64_t SOFTFLOAT_STATE_DECL_COMMA ); 261 bool f64_lt( float64_t, float64_t SOFTFLOAT_STATE_DECL_COMMA ); 262 bool f64_eq_signaling( float64_t, float64_t SOFTFLOAT_STATE_DECL_COMMA ); 263 bool f64_le_quiet( float64_t, float64_t SOFTFLOAT_STATE_DECL_COMMA ); 264 bool f64_lt_quiet( float64_t, float64_t SOFTFLOAT_STATE_DECL_COMMA ); 240 265 bool f64_isSignalingNaN( float64_t ); 241 266 … … 244 269 | Valid values are 32, 64, and 80. 245 270 *----------------------------------------------------------------------------*/ 271 #ifndef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 246 272 extern THREAD_LOCAL uint_fast8_t extF80_roundingPrecision; 273 #else 274 # define extF80_roundingPrecision (pState->roundingPrecision) 275 #endif 247 276 248 277 /*---------------------------------------------------------------------------- … … 250 279 *----------------------------------------------------------------------------*/ 251 280 #ifdef SOFTFLOAT_FAST_INT64 252 uint_fast32_t extF80_to_ui32( extFloat80_t, uint_fast8_t, bool );253 uint_fast64_t extF80_to_ui64( extFloat80_t, uint_fast8_t, bool );254 int_fast32_t extF80_to_i32( extFloat80_t, uint_fast8_t, bool );255 int_fast64_t extF80_to_i64( extFloat80_t, uint_fast8_t, bool );256 uint_fast32_t extF80_to_ui32_r_minMag( extFloat80_t, bool );257 uint_fast64_t extF80_to_ui64_r_minMag( extFloat80_t, bool );258 int_fast32_t extF80_to_i32_r_minMag( extFloat80_t, bool );259 int_fast64_t extF80_to_i64_r_minMag( extFloat80_t, bool );260 float16_t extF80_to_f16( extFloat80_t );261 float32_t extF80_to_f32( extFloat80_t );262 float64_t extF80_to_f64( extFloat80_t );263 float128_t extF80_to_f128( extFloat80_t );264 extFloat80_t extF80_roundToInt( extFloat80_t, uint_fast8_t, bool );265 extFloat80_t extF80_add( extFloat80_t, extFloat80_t );266 extFloat80_t extF80_sub( extFloat80_t, extFloat80_t );267 extFloat80_t extF80_mul( extFloat80_t, extFloat80_t );268 extFloat80_t extF80_div( extFloat80_t, extFloat80_t );269 extFloat80_t extF80_rem( extFloat80_t, extFloat80_t );270 extFloat80_t extF80_sqrt( extFloat80_t );271 bool extF80_eq( extFloat80_t, extFloat80_t );272 bool extF80_le( extFloat80_t, extFloat80_t );273 bool extF80_lt( extFloat80_t, extFloat80_t );274 bool extF80_eq_signaling( extFloat80_t, extFloat80_t );275 bool extF80_le_quiet( extFloat80_t, extFloat80_t );276 bool extF80_lt_quiet( extFloat80_t, extFloat80_t );281 uint_fast32_t extF80_to_ui32( extFloat80_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 282 uint_fast64_t extF80_to_ui64( extFloat80_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 283 int_fast32_t extF80_to_i32( extFloat80_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 284 int_fast64_t extF80_to_i64( extFloat80_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 285 uint_fast32_t extF80_to_ui32_r_minMag( extFloat80_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 286 uint_fast64_t extF80_to_ui64_r_minMag( extFloat80_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 287 int_fast32_t extF80_to_i32_r_minMag( extFloat80_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 288 int_fast64_t extF80_to_i64_r_minMag( extFloat80_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 289 float16_t extF80_to_f16( extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 290 float32_t extF80_to_f32( extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 291 float64_t extF80_to_f64( extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 292 float128_t extF80_to_f128( extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 293 extFloat80_t extF80_roundToInt( extFloat80_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 294 extFloat80_t extF80_add( extFloat80_t, extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 295 extFloat80_t extF80_sub( extFloat80_t, extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 296 extFloat80_t extF80_mul( extFloat80_t, extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 297 extFloat80_t extF80_div( extFloat80_t, extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 298 extFloat80_t extF80_rem( extFloat80_t, extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 299 extFloat80_t extF80_sqrt( extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 300 bool extF80_eq( extFloat80_t, extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 301 bool extF80_le( extFloat80_t, extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 302 bool extF80_lt( extFloat80_t, extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 303 bool extF80_eq_signaling( extFloat80_t, extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 304 bool extF80_le_quiet( extFloat80_t, extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 305 bool extF80_lt_quiet( extFloat80_t, extFloat80_t SOFTFLOAT_STATE_DECL_COMMA ); 277 306 bool extF80_isSignalingNaN( extFloat80_t ); 278 307 #endif 279 uint_fast32_t extF80M_to_ui32( const extFloat80_t *, uint_fast8_t, bool );280 uint_fast64_t extF80M_to_ui64( const extFloat80_t *, uint_fast8_t, bool );281 int_fast32_t extF80M_to_i32( const extFloat80_t *, uint_fast8_t, bool );282 int_fast64_t extF80M_to_i64( const extFloat80_t *, uint_fast8_t, bool );283 uint_fast32_t extF80M_to_ui32_r_minMag( const extFloat80_t *, bool );284 uint_fast64_t extF80M_to_ui64_r_minMag( const extFloat80_t *, bool );285 int_fast32_t extF80M_to_i32_r_minMag( const extFloat80_t *, bool );286 int_fast64_t extF80M_to_i64_r_minMag( const extFloat80_t *, bool );287 float16_t extF80M_to_f16( const extFloat80_t * );288 float32_t extF80M_to_f32( const extFloat80_t * );289 float64_t extF80M_to_f64( const extFloat80_t * );290 void extF80M_to_f128M( const extFloat80_t *, float128_t * );308 uint_fast32_t extF80M_to_ui32( const extFloat80_t *, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 309 uint_fast64_t extF80M_to_ui64( const extFloat80_t *, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 310 int_fast32_t extF80M_to_i32( const extFloat80_t *, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 311 int_fast64_t extF80M_to_i64( const extFloat80_t *, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 312 uint_fast32_t extF80M_to_ui32_r_minMag( const extFloat80_t *, bool SOFTFLOAT_STATE_DECL_COMMA ); 313 uint_fast64_t extF80M_to_ui64_r_minMag( const extFloat80_t *, bool SOFTFLOAT_STATE_DECL_COMMA ); 314 int_fast32_t extF80M_to_i32_r_minMag( const extFloat80_t *, bool SOFTFLOAT_STATE_DECL_COMMA ); 315 int_fast64_t extF80M_to_i64_r_minMag( const extFloat80_t *, bool SOFTFLOAT_STATE_DECL_COMMA ); 316 float16_t extF80M_to_f16( const extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 317 float32_t extF80M_to_f32( const extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 318 float64_t extF80M_to_f64( const extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 319 void extF80M_to_f128M( const extFloat80_t *, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 291 320 void 292 321 extF80M_roundToInt( 293 const extFloat80_t *, uint_fast8_t, bool, extFloat80_t * );294 void extF80M_add( const extFloat80_t *, const extFloat80_t *, extFloat80_t * );295 void extF80M_sub( const extFloat80_t *, const extFloat80_t *, extFloat80_t * );296 void extF80M_mul( const extFloat80_t *, const extFloat80_t *, extFloat80_t * );297 void extF80M_div( const extFloat80_t *, const extFloat80_t *, extFloat80_t * );298 void extF80M_rem( const extFloat80_t *, const extFloat80_t *, extFloat80_t * );299 void extF80M_sqrt( const extFloat80_t *, extFloat80_t * );300 bool extF80M_eq( const extFloat80_t *, const extFloat80_t * );301 bool extF80M_le( const extFloat80_t *, const extFloat80_t * );302 bool extF80M_lt( const extFloat80_t *, const extFloat80_t * );303 bool extF80M_eq_signaling( const extFloat80_t *, const extFloat80_t * );304 bool extF80M_le_quiet( const extFloat80_t *, const extFloat80_t * );305 bool extF80M_lt_quiet( const extFloat80_t *, const extFloat80_t * );322 const extFloat80_t *, uint_fast8_t, bool, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 323 void extF80M_add( const extFloat80_t *, const extFloat80_t *, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 324 void extF80M_sub( const extFloat80_t *, const extFloat80_t *, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 325 void extF80M_mul( const extFloat80_t *, const extFloat80_t *, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 326 void extF80M_div( const extFloat80_t *, const extFloat80_t *, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 327 void extF80M_rem( const extFloat80_t *, const extFloat80_t *, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 328 void extF80M_sqrt( const extFloat80_t *, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 329 bool extF80M_eq( const extFloat80_t *, const extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 330 bool extF80M_le( const extFloat80_t *, const extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 331 bool extF80M_lt( const extFloat80_t *, const extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 332 bool extF80M_eq_signaling( const extFloat80_t *, const extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 333 bool extF80M_le_quiet( const extFloat80_t *, const extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 334 bool extF80M_lt_quiet( const extFloat80_t *, const extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 306 335 bool extF80M_isSignalingNaN( const extFloat80_t * ); 307 336 … … 310 339 *----------------------------------------------------------------------------*/ 311 340 #ifdef SOFTFLOAT_FAST_INT64 312 uint_fast32_t f128_to_ui32( float128_t, uint_fast8_t, bool );313 uint_fast64_t f128_to_ui64( float128_t, uint_fast8_t, bool );314 int_fast32_t f128_to_i32( float128_t, uint_fast8_t, bool );315 int_fast64_t f128_to_i64( float128_t, uint_fast8_t, bool );316 uint_fast32_t f128_to_ui32_r_minMag( float128_t, bool );317 uint_fast64_t f128_to_ui64_r_minMag( float128_t, bool );318 int_fast32_t f128_to_i32_r_minMag( float128_t, bool );319 int_fast64_t f128_to_i64_r_minMag( float128_t, bool );320 float16_t f128_to_f16( float128_t );321 float32_t f128_to_f32( float128_t );322 float64_t f128_to_f64( float128_t );323 extFloat80_t f128_to_extF80( float128_t );324 float128_t f128_roundToInt( float128_t, uint_fast8_t, bool );325 float128_t f128_add( float128_t, float128_t );326 float128_t f128_sub( float128_t, float128_t );327 float128_t f128_mul( float128_t, float128_t );328 float128_t f128_mulAdd( float128_t, float128_t, float128_t );329 float128_t f128_div( float128_t, float128_t );330 float128_t f128_rem( float128_t, float128_t );331 float128_t f128_sqrt( float128_t );332 bool f128_eq( float128_t, float128_t );333 bool f128_le( float128_t, float128_t );334 bool f128_lt( float128_t, float128_t );335 bool f128_eq_signaling( float128_t, float128_t );336 bool f128_le_quiet( float128_t, float128_t );337 bool f128_lt_quiet( float128_t, float128_t );341 uint_fast32_t f128_to_ui32( float128_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 342 uint_fast64_t f128_to_ui64( float128_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 343 int_fast32_t f128_to_i32( float128_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 344 int_fast64_t f128_to_i64( float128_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 345 uint_fast32_t f128_to_ui32_r_minMag( float128_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 346 uint_fast64_t f128_to_ui64_r_minMag( float128_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 347 int_fast32_t f128_to_i32_r_minMag( float128_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 348 int_fast64_t f128_to_i64_r_minMag( float128_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 349 float16_t f128_to_f16( float128_t SOFTFLOAT_STATE_DECL_COMMA ); 350 float32_t f128_to_f32( float128_t SOFTFLOAT_STATE_DECL_COMMA ); 351 float64_t f128_to_f64( float128_t SOFTFLOAT_STATE_DECL_COMMA ); 352 extFloat80_t f128_to_extF80( float128_t SOFTFLOAT_STATE_DECL_COMMA ); 353 float128_t f128_roundToInt( float128_t, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 354 float128_t f128_add( float128_t, float128_t SOFTFLOAT_STATE_DECL_COMMA ); 355 float128_t f128_sub( float128_t, float128_t SOFTFLOAT_STATE_DECL_COMMA ); 356 float128_t f128_mul( float128_t, float128_t SOFTFLOAT_STATE_DECL_COMMA ); 357 float128_t f128_mulAdd( float128_t, float128_t, float128_t SOFTFLOAT_STATE_DECL_COMMA ); 358 float128_t f128_div( float128_t, float128_t SOFTFLOAT_STATE_DECL_COMMA ); 359 float128_t f128_rem( float128_t, float128_t SOFTFLOAT_STATE_DECL_COMMA ); 360 float128_t f128_sqrt( float128_t SOFTFLOAT_STATE_DECL_COMMA ); 361 bool f128_eq( float128_t, float128_t SOFTFLOAT_STATE_DECL_COMMA ); 362 bool f128_le( float128_t, float128_t SOFTFLOAT_STATE_DECL_COMMA ); 363 bool f128_lt( float128_t, float128_t SOFTFLOAT_STATE_DECL_COMMA ); 364 bool f128_eq_signaling( float128_t, float128_t SOFTFLOAT_STATE_DECL_COMMA ); 365 bool f128_le_quiet( float128_t, float128_t SOFTFLOAT_STATE_DECL_COMMA ); 366 bool f128_lt_quiet( float128_t, float128_t SOFTFLOAT_STATE_DECL_COMMA ); 338 367 bool f128_isSignalingNaN( float128_t ); 339 368 #endif 340 uint_fast32_t f128M_to_ui32( const float128_t *, uint_fast8_t, bool );341 uint_fast64_t f128M_to_ui64( const float128_t *, uint_fast8_t, bool );342 int_fast32_t f128M_to_i32( const float128_t *, uint_fast8_t, bool );343 int_fast64_t f128M_to_i64( const float128_t *, uint_fast8_t, bool );344 uint_fast32_t f128M_to_ui32_r_minMag( const float128_t *, bool );345 uint_fast64_t f128M_to_ui64_r_minMag( const float128_t *, bool );346 int_fast32_t f128M_to_i32_r_minMag( const float128_t *, bool );347 int_fast64_t f128M_to_i64_r_minMag( const float128_t *, bool );348 float16_t f128M_to_f16( const float128_t * );349 float32_t f128M_to_f32( const float128_t * );350 float64_t f128M_to_f64( const float128_t * );351 void f128M_to_extF80M( const float128_t *, extFloat80_t * );352 void f128M_roundToInt( const float128_t *, uint_fast8_t, bool, float128_t * );353 void f128M_add( const float128_t *, const float128_t *, float128_t * );354 void f128M_sub( const float128_t *, const float128_t *, float128_t * );355 void f128M_mul( const float128_t *, const float128_t *, float128_t * );369 uint_fast32_t f128M_to_ui32( const float128_t *, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 370 uint_fast64_t f128M_to_ui64( const float128_t *, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 371 int_fast32_t f128M_to_i32( const float128_t *, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 372 int_fast64_t f128M_to_i64( const float128_t *, uint_fast8_t, bool SOFTFLOAT_STATE_DECL_COMMA ); 373 uint_fast32_t f128M_to_ui32_r_minMag( const float128_t *, bool SOFTFLOAT_STATE_DECL_COMMA ); 374 uint_fast64_t f128M_to_ui64_r_minMag( const float128_t *, bool SOFTFLOAT_STATE_DECL_COMMA ); 375 int_fast32_t f128M_to_i32_r_minMag( const float128_t *, bool SOFTFLOAT_STATE_DECL_COMMA ); 376 int_fast64_t f128M_to_i64_r_minMag( const float128_t *, bool SOFTFLOAT_STATE_DECL_COMMA ); 377 float16_t f128M_to_f16( const float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 378 float32_t f128M_to_f32( const float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 379 float64_t f128M_to_f64( const float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 380 void f128M_to_extF80M( const float128_t *, extFloat80_t * SOFTFLOAT_STATE_DECL_COMMA ); 381 void f128M_roundToInt( const float128_t *, uint_fast8_t, bool, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 382 void f128M_add( const float128_t *, const float128_t *, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 383 void f128M_sub( const float128_t *, const float128_t *, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 384 void f128M_mul( const float128_t *, const float128_t *, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 356 385 void 357 386 f128M_mulAdd( 358 const float128_t *, const float128_t *, const float128_t *, float128_t * 387 const float128_t *, const float128_t *, const float128_t *, float128_t * SOFTFLOAT_STATE_DECL_COMMA 359 388 ); 360 void f128M_div( const float128_t *, const float128_t *, float128_t * );361 void f128M_rem( const float128_t *, const float128_t *, float128_t * );362 void f128M_sqrt( const float128_t *, float128_t * );363 bool f128M_eq( const float128_t *, const float128_t * );364 bool f128M_le( const float128_t *, const float128_t * );365 bool f128M_lt( const float128_t *, const float128_t * );366 bool f128M_eq_signaling( const float128_t *, const float128_t * );367 bool f128M_le_quiet( const float128_t *, const float128_t * );368 bool f128M_lt_quiet( const float128_t *, const float128_t * );389 void f128M_div( const float128_t *, const float128_t *, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 390 void f128M_rem( const float128_t *, const float128_t *, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 391 void f128M_sqrt( const float128_t *, float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 392 bool f128M_eq( const float128_t *, const float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 393 bool f128M_le( const float128_t *, const float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 394 bool f128M_lt( const float128_t *, const float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 395 bool f128M_eq_signaling( const float128_t *, const float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 396 bool f128M_le_quiet( const float128_t *, const float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 397 bool f128M_lt_quiet( const float128_t *, const float128_t * SOFTFLOAT_STATE_DECL_COMMA ); 369 398 bool f128M_isSignalingNaN( const float128_t * ); 370 399 371 #endif 372 400 RT_C_DECLS_END 401 402 #endif 403 -
trunk/src/libs/softfloat-3e/source/include/softfloat_types.h
r94480 r94558 78 78 typedef struct extFloat80M extFloat80_t; 79 79 80 /*---------------------------------------------------------------------------- 81 | VBox: The four globals as non-globals. 82 *----------------------------------------------------------------------------*/ 83 #ifndef VBOX_WITH_SOFTFLOAT_GLOBALS 84 # define VBOX_WITHOUT_SOFTFLOAT_GLOBALS 85 # define SOFTFLOAT_STATE_ARG pState 86 # define SOFTFLOAT_STATE_ARG_COMMA , pState 87 # define SOFTFLOAT_STATE_DECL softfloat_state_t *pState 88 # define SOFTFLOAT_STATE_DECL_COMMA , softfloat_state_t *pState 89 # define SOFTFLOAT_STATE_NOREF() (void)pState 90 typedef struct softfloat_state 91 { 92 /* softfloat_tininess_beforeRounding or softfloat_tininess_afterRounding */ 93 uint8_t detectTininess; 94 /* softfloat_round_near_even and friends. */ 95 uint8_t roundingMode; 96 /* softfloat_flag_inexact and friends. */ 97 uint8_t exceptionFlags; 98 /* extF80: rounding precsision: 32, 64 or 80 */ 99 uint8_t roundingPrecision; 100 } softfloat_state_t; 101 # define SOFTFLOAT_STATE_INIT_DEFAULTS() { softfloat_round_near_even, softfloat_tininess_afterRounding, 0, 80 } 102 #else 103 # undef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 104 # define SOFTFLOAT_STATE_ARG 105 # define SOFTFLOAT_STATE_ARG_COMMA 106 # define SOFTFLOAT_STATE_DECL 107 # define SOFTFLOAT_STATE_DECL_COMMA 108 # define SOFTFLOAT_STATE_NOREF() (void)0 80 109 #endif 81 110 111 #endif 112 -
trunk/src/libs/softfloat-3e/source/s_addExtF80M.c
r94480 r94558 48 48 struct extFloat80M *zSPtr, 49 49 bool negateB 50 SOFTFLOAT_STATE_DECL_COMMA 50 51 ) 51 52 { … … 60 61 void 61 62 (*roundPackRoutinePtr)( 62 bool, int32_t, uint32_t *, uint_fast8_t, struct extFloat80M * );63 bool, int32_t, uint32_t *, uint_fast8_t, struct extFloat80M * SOFTFLOAT_STATE_DECL_COMMA ); 63 64 int32_t expDiff; 64 65 uint32_t extSigX[3], sigZExtra; … … 73 74 *------------------------------------------------------------------------*/ 74 75 if ( (expA == 0x7FFF) || (expB == 0x7FFF) ) { 75 if ( softfloat_tryPropagateNaNExtF80M( aSPtr, bSPtr, zSPtr ) ) return;76 if ( softfloat_tryPropagateNaNExtF80M( aSPtr, bSPtr, zSPtr SOFTFLOAT_STATE_ARG_COMMA ) ) return; 76 77 uiZ64 = uiA64; 77 78 if ( expB == 0x7FFF ) { 78 79 uiZ64 = uiB64 ^ packToExtF80UI64( negateB, 0 ); 79 80 if ( (expA == 0x7FFF) && (uiZ64 != uiA64) ) { 80 softfloat_invalidExtF80M( zSPtr );81 softfloat_invalidExtF80M( zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 81 82 return; 82 83 } … … 181 182 roundPack: 182 183 (*roundPackRoutinePtr)( 183 signZ, expA, extSigX, extF80_roundingPrecision, zSPtr );184 signZ, expA, extSigX, extF80_roundingPrecision, zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 184 185 185 186 } -
trunk/src/libs/softfloat-3e/source/s_addF128M.c
r94480 r94558 48 48 uint32_t *zWPtr, 49 49 bool negateB 50 SOFTFLOAT_STATE_DECL_COMMA 50 51 ) 51 52 { … … 69 70 uint32_t extSigZ[5], wordSigZ; 70 71 uint_fast8_t carry; 71 void (*roundPackRoutinePtr)( bool, int32_t, uint32_t *, uint32_t * );72 void (*roundPackRoutinePtr)( bool, int32_t, uint32_t *, uint32_t * SOFTFLOAT_STATE_DECL_COMMA ); 72 73 73 74 /*------------------------------------------------------------------------ … … 80 81 *------------------------------------------------------------------------*/ 81 82 if ( (expA == 0x7FFF) || (expB == 0x7FFF) ) { 82 if ( softfloat_tryPropagateNaNF128M( aWPtr, bWPtr, zWPtr ) ) return;83 if ( softfloat_tryPropagateNaNF128M( aWPtr, bWPtr, zWPtr SOFTFLOAT_STATE_ARG_COMMA ) ) return; 83 84 uiZ96 = uiA96; 84 85 if ( expB == 0x7FFF ) { 85 86 uiZ96 = uiB96 ^ packToF128UI96( negateB, 0, 0 ); 86 87 if ( (expA == 0x7FFF) && (uiZ96 != uiA96) ) { 87 softfloat_invalidF128M( zWPtr );88 softfloat_invalidF128M( zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 88 89 return; 89 90 } … … 206 207 roundPackRoutinePtr = softfloat_roundPackMToF128M; 207 208 } 208 (*roundPackRoutinePtr)( signZ, expA, extSigZ, zWPtr );209 (*roundPackRoutinePtr)( signZ, expA, extSigZ, zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 209 210 210 211 } -
trunk/src/libs/softfloat-3e/source/s_addMagsExtF80.c
r94480 r94558 49 49 uint_fast64_t uiB0, 50 50 bool signZ 51 SOFTFLOAT_STATE_DECL_COMMA 51 52 ) 52 53 { … … 141 142 return 142 143 softfloat_roundPackToExtF80( 143 signZ, expZ, sigZ, sigZExtra, extF80_roundingPrecision );144 signZ, expZ, sigZ, sigZExtra, extF80_roundingPrecision SOFTFLOAT_STATE_ARG_COMMA ); 144 145 /*------------------------------------------------------------------------ 145 146 *------------------------------------------------------------------------*/ 146 147 propagateNaN: 147 uiZ = softfloat_propagateNaNExtF80UI( uiA64, uiA0, uiB64, uiB0 );148 uiZ = softfloat_propagateNaNExtF80UI( uiA64, uiA0, uiB64, uiB0 SOFTFLOAT_STATE_ARG_COMMA ); 148 149 uiZ64 = uiZ.v64; 149 150 uiZ0 = uiZ.v0; -
trunk/src/libs/softfloat-3e/source/s_addMagsF128.c
r94480 r94558 48 48 uint_fast64_t uiB0, 49 49 bool signZ 50 SOFTFLOAT_STATE_DECL_COMMA 50 51 ) 51 52 { … … 144 145 roundAndPack: 145 146 return 146 softfloat_roundPackToF128( signZ, expZ, sigZ.v64, sigZ.v0, sigZExtra );147 softfloat_roundPackToF128( signZ, expZ, sigZ.v64, sigZ.v0, sigZExtra SOFTFLOAT_STATE_ARG_COMMA ); 147 148 propagateNaN: 148 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, uiB64, uiB0 );149 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, uiB64, uiB0 SOFTFLOAT_STATE_ARG_COMMA ); 149 150 uiZ: 150 151 uZ.ui = uiZ; -
trunk/src/libs/softfloat-3e/source/s_addMagsF16.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float16_t softfloat_addMagsF16( uint_fast16_t uiA, uint_fast16_t uiB )44 float16_t softfloat_addMagsF16( uint_fast16_t uiA, uint_fast16_t uiB SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 int_fast8_t expA; … … 142 142 } 143 143 } 144 return softfloat_roundPackToF16( signZ, expZ, sigZ );144 return softfloat_roundPackToF16( signZ, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 145 145 /*------------------------------------------------------------------------ 146 146 *------------------------------------------------------------------------*/ 147 147 propagateNaN: 148 uiZ = softfloat_propagateNaNF16UI( uiA, uiB );148 uiZ = softfloat_propagateNaNF16UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 149 149 goto uiZ; 150 150 /*------------------------------------------------------------------------ … … 161 161 if ( (uint16_t) (uiZ<<1) == 0xF800 ) { 162 162 softfloat_raiseFlags( 163 softfloat_flag_overflow | softfloat_flag_inexact ); 163 softfloat_flag_overflow | softfloat_flag_inexact 164 SOFTFLOAT_STATE_ARG_COMMA ); 164 165 } 165 166 } -
trunk/src/libs/softfloat-3e/source/s_addMagsF32.c
r94480 r94558 41 41 #include "specialize.h" 42 42 43 float32_t softfloat_addMagsF32( uint_fast32_t uiA, uint_fast32_t uiB )43 float32_t softfloat_addMagsF32( uint_fast32_t uiA, uint_fast32_t uiB SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 int_fast16_t expA; … … 114 114 } 115 115 } 116 return softfloat_roundPackToF32( signZ, expZ, sigZ );116 return softfloat_roundPackToF32( signZ, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 117 117 /*------------------------------------------------------------------------ 118 118 *------------------------------------------------------------------------*/ 119 119 propagateNaN: 120 uiZ = softfloat_propagateNaNF32UI( uiA, uiB );120 uiZ = softfloat_propagateNaNF32UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 121 121 uiZ: 122 122 uZ.ui = uiZ; -
trunk/src/libs/softfloat-3e/source/s_addMagsF64.c
r94480 r94558 42 42 43 43 float64_t 44 softfloat_addMagsF64( uint_fast64_t uiA, uint_fast64_t uiB, bool signZ )44 softfloat_addMagsF64( uint_fast64_t uiA, uint_fast64_t uiB, bool signZ SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 int_fast16_t expA; … … 116 116 } 117 117 } 118 return softfloat_roundPackToF64( signZ, expZ, sigZ );118 return softfloat_roundPackToF64( signZ, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 119 119 /*------------------------------------------------------------------------ 120 120 *------------------------------------------------------------------------*/ 121 121 propagateNaN: 122 uiZ = softfloat_propagateNaNF64UI( uiA, uiB );122 uiZ = softfloat_propagateNaNF64UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 123 123 uiZ: 124 124 uZ.ui = uiZ; -
trunk/src/libs/softfloat-3e/source/s_invalidExtF80M.c
r94480 r94558 39 39 #include "softfloat.h" 40 40 41 void softfloat_invalidExtF80M( struct extFloat80M *zSPtr )41 void softfloat_invalidExtF80M( struct extFloat80M *zSPtr SOFTFLOAT_STATE_DECL_COMMA ) 42 42 { 43 43 44 softfloat_raiseFlags( softfloat_flag_invalid );44 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 45 45 zSPtr->signExp = defaultNaNExtF80UI64; 46 46 zSPtr->signif = defaultNaNExtF80UI0; -
trunk/src/libs/softfloat-3e/source/s_invalidF128M.c
r94480 r94558 41 41 #include "softfloat.h" 42 42 43 void softfloat_invalidF128M( uint32_t *zWPtr )43 void softfloat_invalidF128M( uint32_t *zWPtr SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 46 softfloat_raiseFlags( softfloat_flag_invalid );46 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 47 47 zWPtr[indexWord( 4, 3 )] = defaultNaNF128UI96; 48 48 zWPtr[indexWord( 4, 2 )] = defaultNaNF128UI64; -
trunk/src/libs/softfloat-3e/source/s_mulAddF128.c
r94480 r94558 51 51 uint_fast64_t uiC0, 52 52 uint_fast8_t op 53 SOFTFLOAT_STATE_DECL_COMMA 53 54 ) 54 55 { … … 309 310 return 310 311 softfloat_roundPackToF128( 311 signZ, expZ - 1, sigZ.v64, sigZ.v0, sigZExtra );312 signZ, expZ - 1, sigZ.v64, sigZ.v0, sigZExtra SOFTFLOAT_STATE_ARG_COMMA ); 312 313 /*------------------------------------------------------------------------ 313 314 *------------------------------------------------------------------------*/ 314 315 propagateNaN_ABC: 315 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, uiB64, uiB0 );316 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, uiB64, uiB0 SOFTFLOAT_STATE_ARG_COMMA ); 316 317 goto propagateNaN_ZC; 317 318 /*------------------------------------------------------------------------ … … 325 326 if ( signZ == signC ) goto uiZ; 326 327 } 327 softfloat_raiseFlags( softfloat_flag_invalid );328 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 328 329 uiZ.v64 = defaultNaNF128UI64; 329 330 uiZ.v0 = defaultNaNF128UI0; 330 331 propagateNaN_ZC: 331 uiZ = softfloat_propagateNaNF128UI( uiZ.v64, uiZ.v0, uiC64, uiC0 );332 uiZ = softfloat_propagateNaNF128UI( uiZ.v64, uiZ.v0, uiC64, uiC0 SOFTFLOAT_STATE_ARG_COMMA ); 332 333 goto uiZ; 333 334 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/s_mulAddF128M.c
r94480 r94558 49 49 uint32_t *zWPtr, 50 50 uint_fast8_t op 51 SOFTFLOAT_STATE_DECL_COMMA 51 52 ) 52 53 { … … 78 79 uint32_t *extSigPtr; 79 80 uint_fast8_t carry; 80 void (*roundPackRoutinePtr)( bool, int32_t, uint32_t *, uint32_t * );81 void (*roundPackRoutinePtr)( bool, int32_t, uint32_t *, uint32_t * SOFTFLOAT_STATE_DECL_COMMA ); 81 82 82 83 /*------------------------------------------------------------------------ … … 96 97 prodIsInfinite = false; 97 98 if ( (expA == 0x7FFF) || (expB == 0x7FFF) ) { 98 if ( softfloat_tryPropagateNaNF128M( aWPtr, bWPtr, zWPtr ) ) {99 if ( softfloat_tryPropagateNaNF128M( aWPtr, bWPtr, zWPtr SOFTFLOAT_STATE_ARG_COMMA ) ) { 99 100 goto propagateNaN_ZC; 100 101 } … … 334 335 roundPackRoutinePtr = softfloat_roundPackMToF128M; 335 336 doRoundPack: 336 (*roundPackRoutinePtr)( signZ, expZ, extSigPtr, zWPtr );337 (*roundPackRoutinePtr)( signZ, expZ, extSigPtr, zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 337 338 return; 338 339 /*------------------------------------------------------------------------ 339 340 *------------------------------------------------------------------------*/ 340 341 invalid: 341 softfloat_invalidF128M( zWPtr );342 softfloat_invalidF128M( zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 342 343 propagateNaN_ZC: 343 softfloat_propagateNaNF128M( zWPtr, cWPtr, zWPtr );344 softfloat_propagateNaNF128M( zWPtr, cWPtr, zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 344 345 return; 345 346 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/s_mulAddF16.c
r94480 r94558 44 44 float16_t 45 45 softfloat_mulAddF16( 46 uint_fast16_t uiA, uint_fast16_t uiB, uint_fast16_t uiC, uint_fast8_t op )46 uint_fast16_t uiA, uint_fast16_t uiB, uint_fast16_t uiC, uint_fast8_t op SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 bool signA; … … 189 189 } 190 190 roundPack: 191 return softfloat_roundPackToF16( signZ, expZ, sigZ );191 return softfloat_roundPackToF16( signZ, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 192 192 /*------------------------------------------------------------------------ 193 193 *------------------------------------------------------------------------*/ 194 194 propagateNaN_ABC: 195 uiZ = softfloat_propagateNaNF16UI( uiA, uiB );195 uiZ = softfloat_propagateNaNF16UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 196 196 goto propagateNaN_ZC; 197 197 /*------------------------------------------------------------------------ … … 204 204 if ( signProd == signC ) goto uiZ; 205 205 } 206 softfloat_raiseFlags( softfloat_flag_invalid );206 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 207 207 uiZ = defaultNaNF16UI; 208 208 propagateNaN_ZC: 209 uiZ = softfloat_propagateNaNF16UI( uiZ, uiC );209 uiZ = softfloat_propagateNaNF16UI( uiZ, uiC SOFTFLOAT_STATE_ARG_COMMA ); 210 210 goto uiZ; 211 211 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/s_mulAddF32.c
r94480 r94558 44 44 float32_t 45 45 softfloat_mulAddF32( 46 uint_fast32_t uiA, uint_fast32_t uiB, uint_fast32_t uiC, uint_fast8_t op )46 uint_fast32_t uiA, uint_fast32_t uiB, uint_fast32_t uiC, uint_fast8_t op SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 bool signA; … … 187 187 } 188 188 roundPack: 189 return softfloat_roundPackToF32( signZ, expZ, sigZ );189 return softfloat_roundPackToF32( signZ, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 190 190 /*------------------------------------------------------------------------ 191 191 *------------------------------------------------------------------------*/ 192 192 propagateNaN_ABC: 193 uiZ = softfloat_propagateNaNF32UI( uiA, uiB );193 uiZ = softfloat_propagateNaNF32UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 194 194 goto propagateNaN_ZC; 195 195 /*------------------------------------------------------------------------ … … 202 202 if ( signProd == signC ) goto uiZ; 203 203 } 204 softfloat_raiseFlags( softfloat_flag_invalid );204 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 205 205 uiZ = defaultNaNF32UI; 206 206 propagateNaN_ZC: 207 uiZ = softfloat_propagateNaNF32UI( uiZ, uiC );207 uiZ = softfloat_propagateNaNF32UI( uiZ, uiC SOFTFLOAT_STATE_ARG_COMMA ); 208 208 goto uiZ; 209 209 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/s_mulAddF64.c
r94483 r94558 46 46 float64_t 47 47 softfloat_mulAddF64( 48 uint_fast64_t uiA, uint_fast64_t uiB, uint_fast64_t uiC, uint_fast8_t op )48 uint_fast64_t uiA, uint_fast64_t uiB, uint_fast64_t uiC, uint_fast8_t op SOFTFLOAT_STATE_DECL_COMMA ) 49 49 { 50 50 bool signA; … … 206 206 } 207 207 roundPack: 208 return softfloat_roundPackToF64( signZ, expZ, sigZ );208 return softfloat_roundPackToF64( signZ, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 209 209 /*------------------------------------------------------------------------ 210 210 *------------------------------------------------------------------------*/ 211 211 propagateNaN_ABC: 212 uiZ = softfloat_propagateNaNF64UI( uiA, uiB );212 uiZ = softfloat_propagateNaNF64UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 213 213 goto propagateNaN_ZC; 214 214 /*------------------------------------------------------------------------ … … 221 221 if ( signZ == signC ) goto uiZ; 222 222 } 223 softfloat_raiseFlags( softfloat_flag_invalid );223 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 224 224 uiZ = defaultNaNF64UI; 225 225 propagateNaN_ZC: 226 uiZ = softfloat_propagateNaNF64UI( uiZ, uiC );226 uiZ = softfloat_propagateNaNF64UI( uiZ, uiC SOFTFLOAT_STATE_ARG_COMMA ); 227 227 goto uiZ; 228 228 /*------------------------------------------------------------------------ … … 246 246 float64_t 247 247 softfloat_mulAddF64( 248 uint_fast64_t uiA, uint_fast64_t uiB, uint_fast64_t uiC, uint_fast8_t op )248 uint_fast64_t uiA, uint_fast64_t uiB, uint_fast64_t uiC, uint_fast8_t op SOFTFLOAT_STATE_DECL_COMMA ) 249 249 { 250 250 bool signA; … … 457 457 if ( sig128Z[indexWord( 4, 1 )] || sig128Z[indexWord( 4, 0 )] ) sigZ |= 1; 458 458 roundPack: 459 return softfloat_roundPackToF64( signZ, expZ - 1, sigZ );459 return softfloat_roundPackToF64( signZ, expZ - 1, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 460 460 /*------------------------------------------------------------------------ 461 461 *------------------------------------------------------------------------*/ 462 462 propagateNaN_ABC: 463 uiZ = softfloat_propagateNaNF64UI( uiA, uiB );463 uiZ = softfloat_propagateNaNF64UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 464 464 goto propagateNaN_ZC; 465 465 /*------------------------------------------------------------------------ … … 472 472 if ( signZ == signC ) goto uiZ; 473 473 } 474 softfloat_raiseFlags( softfloat_flag_invalid );474 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 475 475 uiZ = defaultNaNF64UI; 476 476 propagateNaN_ZC: 477 uiZ = softfloat_propagateNaNF64UI( uiZ, uiC );477 uiZ = softfloat_propagateNaNF64UI( uiZ, uiC SOFTFLOAT_STATE_ARG_COMMA ); 478 478 goto uiZ; 479 479 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/s_normRoundPackMToExtF80M.c
r94480 r94558 47 47 uint_fast8_t roundingPrecision, 48 48 struct extFloat80M *zSPtr 49 SOFTFLOAT_STATE_DECL_COMMA 49 50 ) 50 51 { … … 73 74 } 74 75 softfloat_roundPackMToExtF80M( 75 sign, exp, extSigPtr, roundingPrecision, zSPtr );76 sign, exp, extSigPtr, roundingPrecision, zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 76 77 77 78 } -
trunk/src/libs/softfloat-3e/source/s_normRoundPackMToF128M.c
r94480 r94558 42 42 void 43 43 softfloat_normRoundPackMToF128M( 44 bool sign, int32_t exp, uint32_t *extSigPtr, uint32_t *zWPtr )44 bool sign, int32_t exp, uint32_t *extSigPtr, uint32_t *zWPtr SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 const uint32_t *ptr; … … 68 68 softfloat_shiftLeft160M( extSigPtr, shiftDist, extSigPtr ); 69 69 } 70 softfloat_roundPackMToF128M( sign, exp, extSigPtr, zWPtr );70 softfloat_roundPackMToF128M( sign, exp, extSigPtr, zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 71 71 72 72 } -
trunk/src/libs/softfloat-3e/source/s_normRoundPackToExtF80.c
r94480 r94558 47 47 uint_fast64_t sigExtra, 48 48 uint_fast8_t roundingPrecision 49 SOFTFLOAT_STATE_DECL_COMMA 49 50 ) 50 51 { … … 66 67 return 67 68 softfloat_roundPackToExtF80( 68 sign, exp, sig, sigExtra, roundingPrecision );69 sign, exp, sig, sigExtra, roundingPrecision SOFTFLOAT_STATE_ARG_COMMA ); 69 70 70 71 } -
trunk/src/libs/softfloat-3e/source/s_normRoundPackToF128.c
r94480 r94558 42 42 float128_t 43 43 softfloat_normRoundPackToF128( 44 bool sign, int_fast32_t exp, uint_fast64_t sig64, uint_fast64_t sig0 )44 bool sign, int_fast32_t exp, uint_fast64_t sig64, uint_fast64_t sig0 SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 int_fast8_t shiftDist; … … 76 76 sigExtra = sig128Extra.extra; 77 77 } 78 return softfloat_roundPackToF128( sign, exp, sig64, sig0, sigExtra );78 return softfloat_roundPackToF128( sign, exp, sig64, sig0, sigExtra SOFTFLOAT_STATE_ARG_COMMA ); 79 79 80 80 } -
trunk/src/libs/softfloat-3e/source/s_normRoundPackToF16.c
r94480 r94558 41 41 42 42 float16_t 43 softfloat_normRoundPackToF16( bool sign, int_fast16_t exp, uint_fast16_t sig )43 softfloat_normRoundPackToF16( bool sign, int_fast16_t exp, uint_fast16_t sig SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 int_fast8_t shiftDist; … … 52 52 return uZ.f; 53 53 } else { 54 return softfloat_roundPackToF16( sign, exp, sig<<shiftDist );54 return softfloat_roundPackToF16( sign, exp, sig<<shiftDist SOFTFLOAT_STATE_ARG_COMMA ); 55 55 } 56 56 -
trunk/src/libs/softfloat-3e/source/s_normRoundPackToF32.c
r94480 r94558 41 41 42 42 float32_t 43 softfloat_normRoundPackToF32( bool sign, int_fast16_t exp, uint_fast32_t sig )43 softfloat_normRoundPackToF32( bool sign, int_fast16_t exp, uint_fast32_t sig SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 int_fast8_t shiftDist; … … 52 52 return uZ.f; 53 53 } else { 54 return softfloat_roundPackToF32( sign, exp, sig<<shiftDist );54 return softfloat_roundPackToF32( sign, exp, sig<<shiftDist SOFTFLOAT_STATE_ARG_COMMA ); 55 55 } 56 56 -
trunk/src/libs/softfloat-3e/source/s_normRoundPackToF64.c
r94480 r94558 41 41 42 42 float64_t 43 softfloat_normRoundPackToF64( bool sign, int_fast16_t exp, uint_fast64_t sig )43 softfloat_normRoundPackToF64( bool sign, int_fast16_t exp, uint_fast64_t sig SOFTFLOAT_STATE_DECL_COMMA ) 44 44 { 45 45 int_fast8_t shiftDist; … … 52 52 return uZ.f; 53 53 } else { 54 return softfloat_roundPackToF64( sign, exp, sig<<shiftDist );54 return softfloat_roundPackToF64( sign, exp, sig<<shiftDist SOFTFLOAT_STATE_ARG_COMMA ); 55 55 } 56 56 -
trunk/src/libs/softfloat-3e/source/s_roundMToI64.c
r94480 r94558 44 44 int_fast64_t 45 45 softfloat_roundMToI64( 46 bool sign, uint32_t *extSigPtr, uint_fast8_t roundingMode, bool exact )46 bool sign, uint32_t *extSigPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 uint64_t sig; … … 96 96 *------------------------------------------------------------------------*/ 97 97 invalid: 98 softfloat_raiseFlags( softfloat_flag_invalid );98 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 99 99 return sign ? i64_fromNegOverflow : i64_fromPosOverflow; 100 100 -
trunk/src/libs/softfloat-3e/source/s_roundMToUI64.c
r94480 r94558 44 44 uint_fast64_t 45 45 softfloat_roundMToUI64( 46 bool sign, uint32_t *extSigPtr, uint_fast8_t roundingMode, bool exact )46 bool sign, uint32_t *extSigPtr, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA) 47 47 { 48 48 uint64_t sig; … … 92 92 *------------------------------------------------------------------------*/ 93 93 invalid: 94 softfloat_raiseFlags( softfloat_flag_invalid );94 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 95 95 return sign ? ui64_fromNegOverflow : ui64_fromPosOverflow; 96 96 -
trunk/src/libs/softfloat-3e/source/s_roundPackMToExtF80M.c
r94480 r94558 48 48 uint_fast8_t roundingPrecision, 49 49 struct extFloat80M *zSPtr 50 SOFTFLOAT_STATE_DECL_COMMA 50 51 ) 51 52 { … … 99 100 roundBits = sig & roundMask; 100 101 if ( roundBits ) { 101 if ( isTiny ) softfloat_raiseFlags( softfloat_flag_underflow );102 if ( isTiny ) softfloat_raiseFlags( softfloat_flag_underflow SOFTFLOAT_STATE_ARG_COMMA ); 102 103 softfloat_exceptionFlags |= softfloat_flag_inexact; 103 104 #ifdef SOFTFLOAT_ROUND_ODD … … 175 176 sigExtra = extSigPtr[indexWordLo( 3 )]; 176 177 if ( sigExtra ) { 177 if ( isTiny ) softfloat_raiseFlags( softfloat_flag_underflow );178 if ( isTiny ) softfloat_raiseFlags( softfloat_flag_underflow SOFTFLOAT_STATE_ARG_COMMA ); 178 179 softfloat_exceptionFlags |= softfloat_flag_inexact; 179 180 #ifdef SOFTFLOAT_ROUND_ODD … … 211 212 overflow: 212 213 softfloat_raiseFlags( 213 softfloat_flag_overflow | softfloat_flag_inexact ); 214 softfloat_flag_overflow | softfloat_flag_inexact 215 SOFTFLOAT_STATE_ARG_COMMA ); 214 216 if ( 215 217 roundNearEven -
trunk/src/libs/softfloat-3e/source/s_roundPackMToF128M.c
r94480 r94558 43 43 void 44 44 softfloat_roundPackMToF128M( 45 bool sign, int32_t exp, uint32_t *extSigPtr, uint32_t *zWPtr )45 bool sign, int32_t exp, uint32_t *extSigPtr, uint32_t *zWPtr SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 uint_fast8_t roundingMode; … … 83 83 sigExtra = extSigPtr[indexWordLo( 5 )]; 84 84 if ( isTiny && sigExtra ) { 85 softfloat_raiseFlags( softfloat_flag_underflow );85 softfloat_raiseFlags( softfloat_flag_underflow SOFTFLOAT_STATE_ARG_COMMA ); 86 86 } 87 87 doIncrement = (0x80000000 <= sigExtra); … … 105 105 *----------------------------------------------------------------*/ 106 106 softfloat_raiseFlags( 107 softfloat_flag_overflow | softfloat_flag_inexact ); 107 softfloat_flag_overflow | softfloat_flag_inexact 108 SOFTFLOAT_STATE_ARG_COMMA ); 108 109 if ( 109 110 roundNearEven -
trunk/src/libs/softfloat-3e/source/s_roundPackToExtF80.c
r94480 r94558 48 48 uint_fast64_t sigExtra, 49 49 uint_fast8_t roundingPrecision 50 SOFTFLOAT_STATE_DECL_COMMA 50 51 ) 51 52 { … … 94 95 roundBits = sig & roundMask; 95 96 if ( roundBits ) { 96 if ( isTiny ) softfloat_raiseFlags( softfloat_flag_underflow );97 if ( isTiny ) softfloat_raiseFlags( softfloat_flag_underflow SOFTFLOAT_STATE_ARG_COMMA ); 97 98 softfloat_exceptionFlags |= softfloat_flag_inexact; 99 if ( roundIncrement ) softfloat_exceptionFlags |= softfloat_flag_c1; /* VBox */ 98 100 #ifdef SOFTFLOAT_ROUND_ODD 99 101 if ( roundingMode == softfloat_round_odd ) { … … 122 124 if ( roundBits ) { 123 125 softfloat_exceptionFlags |= softfloat_flag_inexact; 126 if ( roundIncrement ) softfloat_exceptionFlags |= softfloat_flag_c1; /* VBox */ 124 127 #ifdef SOFTFLOAT_ROUND_ODD 125 128 if ( roundingMode == softfloat_round_odd ) { … … 168 171 sigExtra = sig64Extra.extra; 169 172 if ( sigExtra ) { 170 if ( isTiny ) softfloat_raiseFlags( softfloat_flag_underflow ); 171 softfloat_exceptionFlags |= softfloat_flag_inexact; 173 if ( isTiny ) softfloat_raiseFlags( softfloat_flag_underflow SOFTFLOAT_STATE_ARG_COMMA ); 172 174 #ifdef SOFTFLOAT_ROUND_ODD 173 175 if ( roundingMode == softfloat_round_odd ) { … … 188 190 } 189 191 if ( doIncrement ) { 192 softfloat_exceptionFlags |= softfloat_flag_c1; /* VBox */ 190 193 ++sig; 191 194 sig &= … … 207 210 overflow: 208 211 softfloat_raiseFlags( 209 softfloat_flag_overflow | softfloat_flag_inexact ); 212 softfloat_flag_overflow | softfloat_flag_inexact 213 SOFTFLOAT_STATE_ARG_COMMA ); 210 214 if ( 211 215 roundNearEven … … 235 239 } 236 240 if ( doIncrement ) { 241 softfloat_exceptionFlags |= softfloat_flag_c1; /* VBox */ 237 242 ++sig; 238 243 if ( ! sig ) { -
trunk/src/libs/softfloat-3e/source/s_roundPackToF128.c
r94480 r94558 48 48 uint_fast64_t sig0, 49 49 uint_fast64_t sigExtra 50 SOFTFLOAT_STATE_DECL_COMMA 50 51 ) 51 52 { … … 92 93 exp = 0; 93 94 if ( isTiny && sigExtra ) { 94 softfloat_raiseFlags( softfloat_flag_underflow );95 softfloat_raiseFlags( softfloat_flag_underflow SOFTFLOAT_STATE_ARG_COMMA ); 95 96 } 96 97 doIncrement = (UINT64_C( 0x8000000000000000 ) <= sigExtra); … … 118 119 *----------------------------------------------------------------*/ 119 120 softfloat_raiseFlags( 120 softfloat_flag_overflow | softfloat_flag_inexact ); 121 softfloat_flag_overflow | softfloat_flag_inexact 122 SOFTFLOAT_STATE_ARG_COMMA ); 121 123 if ( 122 124 roundNearEven -
trunk/src/libs/softfloat-3e/source/s_roundPackToF16.c
r94480 r94558 42 42 43 43 float16_t 44 softfloat_roundPackToF16( bool sign, int_fast16_t exp, uint_fast16_t sig )44 softfloat_roundPackToF16( bool sign, int_fast16_t exp, uint_fast16_t sig SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 uint_fast8_t roundingMode; … … 77 77 roundBits = sig & 0xF; 78 78 if ( isTiny && roundBits ) { 79 softfloat_raiseFlags( softfloat_flag_underflow );79 softfloat_raiseFlags( softfloat_flag_underflow SOFTFLOAT_STATE_ARG_COMMA ); 80 80 } 81 81 } else if ( (0x1D < exp) || (0x8000 <= sig + roundIncrement) ) { … … 83 83 *----------------------------------------------------------------*/ 84 84 softfloat_raiseFlags( 85 softfloat_flag_overflow | softfloat_flag_inexact ); 85 softfloat_flag_overflow | softfloat_flag_inexact 86 SOFTFLOAT_STATE_ARG_COMMA ); 86 87 uiZ = packToF16UI( sign, 0x1F, 0 ) - ! roundIncrement; 87 88 goto uiZ; -
trunk/src/libs/softfloat-3e/source/s_roundPackToF32.c
r94480 r94558 42 42 43 43 float32_t 44 softfloat_roundPackToF32( bool sign, int_fast16_t exp, uint_fast32_t sig )44 softfloat_roundPackToF32( bool sign, int_fast16_t exp, uint_fast32_t sig SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 uint_fast8_t roundingMode; … … 77 77 roundBits = sig & 0x7F; 78 78 if ( isTiny && roundBits ) { 79 softfloat_raiseFlags( softfloat_flag_underflow );79 softfloat_raiseFlags( softfloat_flag_underflow SOFTFLOAT_STATE_ARG_COMMA ); 80 80 } 81 81 } else if ( (0xFD < exp) || (0x80000000 <= sig + roundIncrement) ) { … … 83 83 *----------------------------------------------------------------*/ 84 84 softfloat_raiseFlags( 85 softfloat_flag_overflow | softfloat_flag_inexact ); 85 softfloat_flag_overflow | softfloat_flag_inexact 86 SOFTFLOAT_STATE_ARG_COMMA ); 86 87 uiZ = packToF32UI( sign, 0xFF, 0 ) - ! roundIncrement; 87 88 goto uiZ; -
trunk/src/libs/softfloat-3e/source/s_roundPackToF64.c
r94480 r94558 42 42 43 43 float64_t 44 softfloat_roundPackToF64( bool sign, int_fast16_t exp, uint_fast64_t sig )44 softfloat_roundPackToF64( bool sign, int_fast16_t exp, uint_fast64_t sig SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 uint_fast8_t roundingMode; … … 78 78 roundBits = sig & 0x3FF; 79 79 if ( isTiny && roundBits ) { 80 softfloat_raiseFlags( softfloat_flag_underflow );80 softfloat_raiseFlags( softfloat_flag_underflow SOFTFLOAT_STATE_ARG_COMMA ); 81 81 } 82 82 } else if ( … … 87 87 *----------------------------------------------------------------*/ 88 88 softfloat_raiseFlags( 89 softfloat_flag_overflow | softfloat_flag_inexact ); 89 softfloat_flag_overflow | softfloat_flag_inexact 90 SOFTFLOAT_STATE_ARG_COMMA ); 90 91 uiZ = packToF64UI( sign, 0x7FF, 0 ) - ! roundIncrement; 91 92 goto uiZ; -
trunk/src/libs/softfloat-3e/source/s_roundToI32.c
r94480 r94558 44 44 int_fast32_t 45 45 softfloat_roundToI32( 46 bool sign, uint_fast64_t sig, uint_fast8_t roundingMode, bool exact )46 bool sign, uint_fast64_t sig, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA ) 47 47 { 48 48 uint_fast16_t roundIncrement, roundBits; … … 92 92 *------------------------------------------------------------------------*/ 93 93 invalid: 94 softfloat_raiseFlags( softfloat_flag_invalid );94 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 95 95 return sign ? i32_fromNegOverflow : i32_fromPosOverflow; 96 96 -
trunk/src/libs/softfloat-3e/source/s_roundToI64.c
r94480 r94558 49 49 uint_fast8_t roundingMode, 50 50 bool exact 51 SOFTFLOAT_STATE_DECL_COMMA 51 52 ) 52 53 { … … 95 96 *------------------------------------------------------------------------*/ 96 97 invalid: 97 softfloat_raiseFlags( softfloat_flag_invalid );98 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 98 99 return sign ? i64_fromNegOverflow : i64_fromPosOverflow; 99 100 -
trunk/src/libs/softfloat-3e/source/s_roundToUI32.c
r94480 r94558 44 44 uint_fast32_t 45 45 softfloat_roundToUI32( 46 bool sign, uint_fast64_t sig, uint_fast8_t roundingMode, bool exact )46 bool sign, uint_fast64_t sig, uint_fast8_t roundingMode, bool exact SOFTFLOAT_STATE_DECL_COMMA) 47 47 { 48 48 uint_fast16_t roundIncrement, roundBits; … … 87 87 *------------------------------------------------------------------------*/ 88 88 invalid: 89 softfloat_raiseFlags( softfloat_flag_invalid );89 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 90 90 return sign ? ui32_fromNegOverflow : ui32_fromPosOverflow; 91 91 -
trunk/src/libs/softfloat-3e/source/s_roundToUI64.c
r94480 r94558 49 49 uint_fast8_t roundingMode, 50 50 bool exact 51 SOFTFLOAT_STATE_DECL_COMMA 51 52 ) 52 53 { … … 91 92 *------------------------------------------------------------------------*/ 92 93 invalid: 93 softfloat_raiseFlags( softfloat_flag_invalid );94 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 94 95 return sign ? ui64_fromNegOverflow : ui64_fromPosOverflow; 95 96 -
trunk/src/libs/softfloat-3e/source/s_subMagsExtF80.c
r94480 r94558 49 49 uint_fast64_t uiB0, 50 50 bool signZ 51 SOFTFLOAT_STATE_DECL_COMMA 51 52 ) 52 53 { … … 78 79 goto propagateNaN; 79 80 } 80 softfloat_raiseFlags( softfloat_flag_invalid );81 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 81 82 uiZ64 = defaultNaNExtF80UI64; 82 83 uiZ0 = defaultNaNExtF80UI0; … … 143 144 return 144 145 softfloat_normRoundPackToExtF80( 145 signZ, expZ, sig128.v64, sig128.v0, extF80_roundingPrecision );146 signZ, expZ, sig128.v64, sig128.v0, extF80_roundingPrecision SOFTFLOAT_STATE_ARG_COMMA ); 146 147 /*------------------------------------------------------------------------ 147 148 *------------------------------------------------------------------------*/ 148 149 propagateNaN: 149 uiZ = softfloat_propagateNaNExtF80UI( uiA64, uiA0, uiB64, uiB0 );150 uiZ = softfloat_propagateNaNExtF80UI( uiA64, uiA0, uiB64, uiB0 SOFTFLOAT_STATE_ARG_COMMA ); 150 151 uiZ64 = uiZ.v64; 151 152 uiZ0 = uiZ.v0; -
trunk/src/libs/softfloat-3e/source/s_subMagsF128.c
r94480 r94558 49 49 uint_fast64_t uiB0, 50 50 bool signZ 51 SOFTFLOAT_STATE_DECL_COMMA 51 52 ) 52 53 { … … 72 73 if ( expA == 0x7FFF ) { 73 74 if ( sigA.v64 | sigA.v0 | sigB.v64 | sigB.v0 ) goto propagateNaN; 74 softfloat_raiseFlags( softfloat_flag_invalid );75 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 75 76 uiZ.v64 = defaultNaNF128UI64; 76 77 uiZ.v0 = defaultNaNF128UI0; … … 129 130 sigZ = softfloat_sub128( sigA.v64, sigA.v0, sigB.v64, sigB.v0 ); 130 131 normRoundPack: 131 return softfloat_normRoundPackToF128( signZ, expZ - 5, sigZ.v64, sigZ.v0 );132 return softfloat_normRoundPackToF128( signZ, expZ - 5, sigZ.v64, sigZ.v0 SOFTFLOAT_STATE_ARG_COMMA ); 132 133 propagateNaN: 133 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, uiB64, uiB0 );134 uiZ = softfloat_propagateNaNF128UI( uiA64, uiA0, uiB64, uiB0 SOFTFLOAT_STATE_ARG_COMMA ); 134 135 uiZ: 135 136 uZ.ui = uiZ; -
trunk/src/libs/softfloat-3e/source/s_subMagsF16.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float16_t softfloat_subMagsF16( uint_fast16_t uiA, uint_fast16_t uiB )44 float16_t softfloat_subMagsF16( uint_fast16_t uiA, uint_fast16_t uiB SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 int_fast8_t expA; … … 72 72 if ( expA == 0x1F ) { 73 73 if ( sigA | sigB ) goto propagateNaN; 74 softfloat_raiseFlags( softfloat_flag_invalid );74 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 75 75 uiZ = defaultNaNF16UI; 76 76 goto uiZ; … … 148 148 } 149 149 } 150 return softfloat_roundPackToF16( signZ, expZ, sigZ );150 return softfloat_roundPackToF16( signZ, expZ, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 151 151 } 152 152 /*------------------------------------------------------------------------ 153 153 *------------------------------------------------------------------------*/ 154 154 propagateNaN: 155 uiZ = softfloat_propagateNaNF16UI( uiA, uiB );155 uiZ = softfloat_propagateNaNF16UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 156 156 goto uiZ; 157 157 /*------------------------------------------------------------------------ -
trunk/src/libs/softfloat-3e/source/s_subMagsF32.c
r94480 r94558 42 42 #include "softfloat.h" 43 43 44 float32_t softfloat_subMagsF32( uint_fast32_t uiA, uint_fast32_t uiB )44 float32_t softfloat_subMagsF32( uint_fast32_t uiA, uint_fast32_t uiB SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 int_fast16_t expA; … … 71 71 if ( expA == 0xFF ) { 72 72 if ( sigA | sigB ) goto propagateNaN; 73 softfloat_raiseFlags( softfloat_flag_invalid );73 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 74 74 uiZ = defaultNaNF32UI; 75 75 goto uiZ; … … 129 129 return 130 130 softfloat_normRoundPackToF32( 131 signZ, expZ, sigX - softfloat_shiftRightJam32( sigY, expDiff ) 131 signZ, expZ, sigX - softfloat_shiftRightJam32( sigY, expDiff ) SOFTFLOAT_STATE_ARG_COMMA 132 132 ); 133 133 } … … 135 135 *------------------------------------------------------------------------*/ 136 136 propagateNaN: 137 uiZ = softfloat_propagateNaNF32UI( uiA, uiB );137 uiZ = softfloat_propagateNaNF32UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 138 138 uiZ: 139 139 uZ.ui = uiZ; -
trunk/src/libs/softfloat-3e/source/s_subMagsF64.c
r94480 r94558 43 43 44 44 float64_t 45 softfloat_subMagsF64( uint_fast64_t uiA, uint_fast64_t uiB, bool signZ )45 softfloat_subMagsF64( uint_fast64_t uiA, uint_fast64_t uiB, bool signZ SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 int_fast16_t expA; … … 71 71 if ( expA == 0x7FF ) { 72 72 if ( sigA | sigB ) goto propagateNaN; 73 softfloat_raiseFlags( softfloat_flag_invalid );73 softfloat_raiseFlags( softfloat_flag_invalid SOFTFLOAT_STATE_ARG_COMMA ); 74 74 uiZ = defaultNaNF64UI; 75 75 goto uiZ; … … 128 128 sigZ = sigA - sigB; 129 129 } 130 return softfloat_normRoundPackToF64( signZ, expZ - 1, sigZ );130 return softfloat_normRoundPackToF64( signZ, expZ - 1, sigZ SOFTFLOAT_STATE_ARG_COMMA ); 131 131 } 132 132 /*------------------------------------------------------------------------ 133 133 *------------------------------------------------------------------------*/ 134 134 propagateNaN: 135 uiZ = softfloat_propagateNaNF64UI( uiA, uiB );135 uiZ = softfloat_propagateNaNF64UI( uiA, uiB SOFTFLOAT_STATE_ARG_COMMA ); 136 136 uiZ: 137 137 uZ.ui = uiZ; -
trunk/src/libs/softfloat-3e/source/s_tryPropagateNaNExtF80M.c
r94480 r94558 45 45 const struct extFloat80M *bSPtr, 46 46 struct extFloat80M *zSPtr 47 SOFTFLOAT_STATE_DECL_COMMA 47 48 ) 48 49 { … … 58 59 return false; 59 60 propagateNaN: 60 softfloat_propagateNaNExtF80M( aSPtr, bSPtr, zSPtr );61 softfloat_propagateNaNExtF80M( aSPtr, bSPtr, zSPtr SOFTFLOAT_STATE_ARG_COMMA ); 61 62 return true; 62 63 -
trunk/src/libs/softfloat-3e/source/s_tryPropagateNaNF128M.c
r94480 r94558 43 43 bool 44 44 softfloat_tryPropagateNaNF128M( 45 const uint32_t *aWPtr, const uint32_t *bWPtr, uint32_t *zWPtr )45 const uint32_t *aWPtr, const uint32_t *bWPtr, uint32_t *zWPtr SOFTFLOAT_STATE_DECL_COMMA ) 46 46 { 47 47 48 48 if ( softfloat_isNaNF128M( aWPtr ) || softfloat_isNaNF128M( bWPtr ) ) { 49 softfloat_propagateNaNF128M( aWPtr, bWPtr, zWPtr );49 softfloat_propagateNaNF128M( aWPtr, bWPtr, zWPtr SOFTFLOAT_STATE_ARG_COMMA ); 50 50 return true; 51 51 } -
trunk/src/libs/softfloat-3e/source/softfloat_state.c
r94480 r94558 45 45 #endif 46 46 47 #ifndef VBOX_WITHOUT_SOFTFLOAT_GLOBALS 47 48 THREAD_LOCAL uint_fast8_t softfloat_roundingMode = softfloat_round_near_even; 48 49 THREAD_LOCAL uint_fast8_t softfloat_detectTininess = init_detectTininess; … … 50 51 51 52 THREAD_LOCAL uint_fast8_t extF80_roundingPrecision = 80; 52 53 #endif -
trunk/src/libs/softfloat-3e/source/ui32_to_extF80.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 extFloat80_t ui32_to_extF80( uint32_t a )42 extFloat80_t ui32_to_extF80( uint32_t a SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 uint_fast16_t uiZ64; 45 45 int_fast8_t shiftDist; 46 46 union { struct extFloat80M s; extFloat80_t f; } uZ; 47 SOFTFLOAT_STATE_NOREF(); 47 48 48 49 uiZ64 = 0; -
trunk/src/libs/softfloat-3e/source/ui32_to_extF80M.c
r94480 r94558 42 42 #ifdef SOFTFLOAT_FAST_INT64 43 43 44 void ui32_to_extF80M( uint32_t a, extFloat80_t *zPtr )44 void ui32_to_extF80M( uint32_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 47 *zPtr = ui32_to_extF80( a );47 *zPtr = ui32_to_extF80( a SOFTFLOAT_STATE_ARG_COMMA ); 48 48 49 49 } … … 51 51 #else 52 52 53 void ui32_to_extF80M( uint32_t a, extFloat80_t *zPtr )53 void ui32_to_extF80M( uint32_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 54 54 { 55 55 struct extFloat80M *zSPtr; … … 57 57 uint64_t sigZ; 58 58 int_fast8_t shiftDist; 59 SOFTFLOAT_STATE_NOREF(); 59 60 60 61 zSPtr = (struct extFloat80M *) zPtr; -
trunk/src/libs/softfloat-3e/source/ui32_to_f128.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float128_t ui32_to_f128( uint32_t a )42 float128_t ui32_to_f128( uint32_t a SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 uint_fast64_t uiZ64; 45 45 int_fast8_t shiftDist; 46 46 union ui128_f128 uZ; 47 SOFTFLOAT_STATE_NOREF(); 47 48 48 49 uiZ64 = 0; -
trunk/src/libs/softfloat-3e/source/ui32_to_f128M.c
r94480 r94558 42 42 #ifdef SOFTFLOAT_FAST_INT64 43 43 44 void ui32_to_f128M( uint32_t a, float128_t *zPtr )44 void ui32_to_f128M( uint32_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 47 *zPtr = ui32_to_f128( a );47 *zPtr = ui32_to_f128( a SOFTFLOAT_STATE_ARG_COMMA ); 48 48 49 49 } … … 51 51 #else 52 52 53 void ui32_to_f128M( uint32_t a, float128_t *zPtr )53 void ui32_to_f128M( uint32_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 54 54 { 55 55 uint32_t *zWPtr, uiZ96, uiZ64; 56 56 int_fast8_t shiftDist; 57 57 uint64_t normA; 58 SOFTFLOAT_STATE_NOREF(); 58 59 59 60 zWPtr = (uint32_t *) zPtr; -
trunk/src/libs/softfloat-3e/source/ui32_to_f16.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float16_t ui32_to_f16( uint32_t a )42 float16_t ui32_to_f16( uint32_t a SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 int_fast8_t shiftDist; … … 59 59 ? a>>(-shiftDist) | ((uint32_t) (a<<(shiftDist & 31)) != 0) 60 60 : (uint_fast16_t) a<<shiftDist; 61 return softfloat_roundPackToF16( 0, 0x1C - shiftDist, sig );61 return softfloat_roundPackToF16( 0, 0x1C - shiftDist, sig SOFTFLOAT_STATE_ARG_COMMA ); 62 62 } 63 63 -
trunk/src/libs/softfloat-3e/source/ui32_to_f32.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float32_t ui32_to_f32( uint32_t a )42 float32_t ui32_to_f32( uint32_t a SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 union ui32_f32 uZ; … … 49 49 } 50 50 if ( a & 0x80000000 ) { 51 return softfloat_roundPackToF32( 0, 0x9D, a>>1 | (a & 1) );51 return softfloat_roundPackToF32( 0, 0x9D, a>>1 | (a & 1) SOFTFLOAT_STATE_ARG_COMMA ); 52 52 } else { 53 return softfloat_normRoundPackToF32( 0, 0x9C, a );53 return softfloat_normRoundPackToF32( 0, 0x9C, a SOFTFLOAT_STATE_ARG_COMMA ); 54 54 } 55 55 -
trunk/src/libs/softfloat-3e/source/ui32_to_f64.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float64_t ui32_to_f64( uint32_t a )42 float64_t ui32_to_f64( uint32_t a SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 uint_fast64_t uiZ; 45 45 int_fast8_t shiftDist; 46 46 union ui64_f64 uZ; 47 SOFTFLOAT_STATE_NOREF(); 47 48 48 49 if ( ! a ) { -
trunk/src/libs/softfloat-3e/source/ui64_to_extF80.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 extFloat80_t ui64_to_extF80( uint64_t a )42 extFloat80_t ui64_to_extF80( uint64_t a SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 uint_fast16_t uiZ64; 45 45 int_fast8_t shiftDist; 46 46 union { struct extFloat80M s; extFloat80_t f; } uZ; 47 SOFTFLOAT_STATE_NOREF(); 47 48 48 49 uiZ64 = 0; -
trunk/src/libs/softfloat-3e/source/ui64_to_extF80M.c
r94480 r94558 42 42 #ifdef SOFTFLOAT_FAST_INT64 43 43 44 void ui64_to_extF80M( uint64_t a, extFloat80_t *zPtr )44 void ui64_to_extF80M( uint64_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 47 *zPtr = ui64_to_extF80( a );47 *zPtr = ui64_to_extF80( a SOFTFLOAT_STATE_ARG_COMMA ); 48 48 49 49 } … … 51 51 #else 52 52 53 void ui64_to_extF80M( uint64_t a, extFloat80_t *zPtr )53 void ui64_to_extF80M( uint64_t a, extFloat80_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 54 54 { 55 55 struct extFloat80M *zSPtr; … … 57 57 uint64_t sigZ; 58 58 int_fast8_t shiftDist; 59 SOFTFLOAT_STATE_NOREF(); 59 60 60 61 zSPtr = (struct extFloat80M *) zPtr; -
trunk/src/libs/softfloat-3e/source/ui64_to_f128.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float128_t ui64_to_f128( uint64_t a )42 float128_t ui64_to_f128( uint64_t a SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 uint_fast64_t uiZ64, uiZ0; … … 46 46 struct uint128 zSig; 47 47 union ui128_f128 uZ; 48 SOFTFLOAT_STATE_NOREF(); 48 49 49 50 if ( ! a ) { -
trunk/src/libs/softfloat-3e/source/ui64_to_f128M.c
r94480 r94558 42 42 #ifdef SOFTFLOAT_FAST_INT64 43 43 44 void ui64_to_f128M( uint64_t a, float128_t *zPtr )44 void ui64_to_f128M( uint64_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 45 45 { 46 46 47 *zPtr = ui64_to_f128( a );47 *zPtr = ui64_to_f128( a SOFTFLOAT_STATE_ARG_COMMA ); 48 48 49 49 } … … 51 51 #else 52 52 53 void ui64_to_f128M( uint64_t a, float128_t *zPtr )53 void ui64_to_f128M( uint64_t a, float128_t *zPtr SOFTFLOAT_STATE_DECL_COMMA ) 54 54 { 55 55 uint32_t *zWPtr, uiZ96, uiZ64; 56 56 uint_fast8_t shiftDist; 57 57 uint32_t *ptr; 58 SOFTFLOAT_STATE_NOREF(); 58 59 59 60 zWPtr = (uint32_t *) zPtr; -
trunk/src/libs/softfloat-3e/source/ui64_to_f16.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float16_t ui64_to_f16( uint64_t a )42 float16_t ui64_to_f16( uint64_t a SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 int_fast8_t shiftDist; … … 58 58 (shiftDist < 0) ? softfloat_shortShiftRightJam64( a, -shiftDist ) 59 59 : (uint_fast16_t) a<<shiftDist; 60 return softfloat_roundPackToF16( 0, 0x1C - shiftDist, sig );60 return softfloat_roundPackToF16( 0, 0x1C - shiftDist, sig SOFTFLOAT_STATE_ARG_COMMA ); 61 61 } 62 62 -
trunk/src/libs/softfloat-3e/source/ui64_to_f32.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float32_t ui64_to_f32( uint64_t a )42 float32_t ui64_to_f32( uint64_t a SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 int_fast8_t shiftDist; … … 58 58 (shiftDist < 0) ? softfloat_shortShiftRightJam64( a, -shiftDist ) 59 59 : (uint_fast32_t) a<<shiftDist; 60 return softfloat_roundPackToF32( 0, 0x9C - shiftDist, sig );60 return softfloat_roundPackToF32( 0, 0x9C - shiftDist, sig SOFTFLOAT_STATE_ARG_COMMA ); 61 61 } 62 62 -
trunk/src/libs/softfloat-3e/source/ui64_to_f64.c
r94480 r94558 40 40 #include "softfloat.h" 41 41 42 float64_t ui64_to_f64( uint64_t a )42 float64_t ui64_to_f64( uint64_t a SOFTFLOAT_STATE_DECL_COMMA ) 43 43 { 44 44 union ui64_f64 uZ; … … 51 51 return 52 52 softfloat_roundPackToF64( 53 0, 0x43D, softfloat_shortShiftRightJam64( a, 1 ) );53 0, 0x43D, softfloat_shortShiftRightJam64( a, 1 ) SOFTFLOAT_STATE_ARG_COMMA ); 54 54 } else { 55 return softfloat_normRoundPackToF64( 0, 0x43C, a );55 return softfloat_normRoundPackToF64( 0, 0x43C, a SOFTFLOAT_STATE_ARG_COMMA ); 56 56 } 57 57
Note:
See TracChangeset
for help on using the changeset viewer.