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

#include <stdint.h> // for uint32_t

float __math_xflowf(uint32_t sign, float y)
{
	return eval_as_float(fp_barrierf(sign ? -y : y) * y);
}