summaryrefslogtreecommitdiff
path: root/lib/libm/__math_xflow.c
blob: c3626a2f7421bce8e484aa48074d5bd5258bfff5 (plain)
1
2
3
4
5
6
7
8
#include "libm.h" // for eval_as_double, __math_xflow, fp_barrier

#include <stdint.h> // for uint32_t

double __math_xflow(uint32_t sign, double y)
{
	return eval_as_double(fp_barrier(sign ? -y : y) * y);
}