about summary refs log tree commit diff
path: root/src/math/fabsf.c
blob: 516f11046ace4a27d3e093ce33253c7a6ca5f069 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include "libm.h"

float fabsf(float x)
{
	union fshape u;

	u.value = x;
	u.bits &= (uint32_t)-1 / 2;
	return u.value;
}