Files
semi-libc/src/math/__math_invalidf.c
T
Szabolcs NagyandRich Felker 9ef6ca4235 math: add single precision error handling functions
These are supposed to be used in tail call positions when handling
special cases in new code. (fp exceptions may be raised "naturally"
by the common code path if special casing is more effort.)

This implements the error handling apis used in
https://github.com/ARM-software/optimized-routines
without errno setting.
2019-04-17 13:08:42 -04:00

7 lines
81 B
C

#include "libm.h"
float __math_invalidf(float x)
{
return (x - x) / (x - x);
}