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.
7 lines
109 B
C
7 lines
109 B
C
#include "libm.h"
|
|
|
|
float __math_divzerof(uint32_t sign)
|
|
{
|
|
return fp_barrierf(sign ? -1.0f : 1.0f) / 0.0f;
|
|
}
|