fabsf.c 122 字节
Newer Older
R
Rich Felker 已提交
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;
}