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

Function floatx80ToCommonNaN

src/softfloat/softfloat-specialize.h:286–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284*----------------------------------------------------------------------------*/
285
286static inline commonNaNT floatx80ToCommonNaN( floatx80 a, float_status *status )
287{
288 commonNaNT z;
289
290 if ( floatx80_is_signaling_nan( a ) ) float_raise( float_flag_signaling, status );
291 z.sign = a.high>>15;
292 z.low = 0;
293 z.high = a.low<<1;
294 return z;
295
296}
297
298/*----------------------------------------------------------------------------
299| Returns the result of converting the canonical NaN `a' to the extended

Callers 2

floatx80_to_float32Function · 0.85
floatx80_to_float64Function · 0.85

Calls 2

float_raiseFunction · 0.85

Tested by

no test coverage detected