cosmopolitan/libc/math/__math_divzerof.c

7 lines
119 B
C
Raw Normal View History

2020-06-15 14:18:57 +00:00
#include "libc/math/libm.h"
float __math_divzerof(uint32_t sign)
{
return fp_barrierf(sign ? -1.0f : 1.0f) / 0.0f;
}