Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 0 additions & 58 deletions src/softfloat/i64_to_f64.c

This file was deleted.

14 changes: 2 additions & 12 deletions src/softfloat/s_roundPackToF32.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ float32_t
uint_fast8_t roundingMode;
bool roundNearEven;
uint_fast8_t roundIncrement, roundBits;
#if 0
bool isTiny;
#endif
uint_fast32_t uiZ;
union ui32_f32 uZ;

Expand All @@ -71,34 +69,27 @@ float32_t
if ( exp < 0 ) {
/*----------------------------------------------------------------
*----------------------------------------------------------------*/
#if 0
isTiny =
(softfloat_detectTininess == softfloat_tininess_beforeRounding)
|| (exp < -1) || (sig + roundIncrement < 0x80000000);
#endif
sig = softfloat_shiftRightJam32( sig, -exp );
exp = 0;
roundBits = sig & 0x7F;
#if 0
if ( isTiny && roundBits ) {
softfloat_raiseFlags( softfloat_flag_underflow );
}
#endif
} else if ( (0xFD < exp) || (0x80000000 <= sig + roundIncrement) ) {
/*----------------------------------------------------------------
*----------------------------------------------------------------*/
#if 0
softfloat_raiseFlags(
softfloat_flag_overflow | softfloat_flag_inexact );
#endif
uiZ = packToF32UI( sign, 0xFF, 0 ) - ! roundIncrement;
goto uiZ;
}
}
/*------------------------------------------------------------------------
*------------------------------------------------------------------------*/
sig = (sig + roundIncrement)>>7;
#if 0
if ( roundBits ) {
softfloat_exceptionFlags |= softfloat_flag_inexact;
#ifdef SOFTFLOAT_ROUND_ODD
Expand All @@ -108,14 +99,13 @@ float32_t
}
#endif
}
#endif
sig &= ~(uint_fast32_t) (! (roundBits ^ 0x40) & roundNearEven);
if ( ! sig ) exp = 0;
/*------------------------------------------------------------------------
*------------------------------------------------------------------------*/
#if 0
#if SOFTFLOAT_ROUND_ODD
packReturn:
#endif
#endif
uiZ = packToF32UI( sign, exp, sig );
uiZ:
uZ.ui = uiZ;
Expand Down
10 changes: 2 additions & 8 deletions src/softfloat/s_roundPackToF64.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ float64_t
uint_fast8_t roundingMode;
bool roundNearEven;
uint_fast16_t roundIncrement, roundBits;
#if 0
bool isTiny;
#endif
uint_fast64_t uiZ;
union ui64_f64 uZ;

Expand All @@ -71,20 +69,16 @@ float64_t
if ( exp < 0 ) {
/*----------------------------------------------------------------
*----------------------------------------------------------------*/
#if 0
isTiny =
(softfloat_detectTininess == softfloat_tininess_beforeRounding)
|| (exp < -1)
|| (sig + roundIncrement < UINT64_C( 0x8000000000000000 ));
#endif
sig = softfloat_shiftRightJam64( sig, -exp );
exp = 0;
roundBits = sig & 0x3FF;
#if 0
if ( isTiny && roundBits ) {
softfloat_raiseFlags( softfloat_flag_underflow );
}
#endif
} else if (
(0x7FD < exp)
|| (UINT64_C( 0x8000000000000000 ) <= sig + roundIncrement)
Expand Down Expand Up @@ -113,9 +107,9 @@ float64_t
if ( ! sig ) exp = 0;
/*------------------------------------------------------------------------
*------------------------------------------------------------------------*/
#if 0
#if SOFTFLOAT_ROUND_ODD
packReturn:
#endif
#endif
uiZ = packToF64UI( sign, exp, sig );
uiZ:
uZ.ui = uiZ;
Expand Down
59 changes: 0 additions & 59 deletions src/softfloat/ui64_to_f64.c

This file was deleted.

Loading