MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / float64_squash_input_denormal

Function float64_squash_input_denormal

src/softfloat/softfloat.cpp:865–874  ·  view source on GitHub ↗

---------------------------------------------------------------------------- | If `a' is denormal and we are in flush-to-zero mode then set the | input-denormal exception and return zero. Otherwise just return the value. *----------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

863| input-denormal exception and return zero. Otherwise just return the value.
864*----------------------------------------------------------------------------*/
865float64 float64_squash_input_denormal(float64 a, float_status *status)
866{
867 if (status->flush_inputs_to_zero) {
868 if (extractFloat64Exp(a) == 0 && extractFloat64Frac(a) != 0) {
869 //float_raise(float_flag_input_denormal, status);
870 return make_float64(float64_val(a) & (1ULL << 63));
871 }
872 }
873 return a;
874}
875
876/*----------------------------------------------------------------------------
877| Normalizes the subnormal double-precision floating-point value represented

Callers

nothing calls this directly

Calls 2

extractFloat64ExpFunction · 0.85
extractFloat64FracFunction · 0.85

Tested by

no test coverage detected