summaryrefslogtreecommitdiff
path: root/lib/libm/__math_divzerof.c
blob: 33caf40032d6f3d77c678989b7e7769c5d5ad98c (plain)
1
2
3
4
5
6
7
8
#include "libm.h" // for __math_divzerof, fp_barrierf

#include <stdint.h> // for uint32_t

float __math_divzerof(uint32_t sign)
{
	return fp_barrierf(sign ? -1.0f : 1.0f) / 0.0f;
}