summaryrefslogtreecommitdiff
path: root/src/math/s390x/fabsf.c
blob: 9fd96bc9d2aab5d7e6c56050d047f7cbf6f1a5f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <math.h>

#if defined(__HTM__) || __ARCH__ >= 9

float fabsf(float x)
{
	__asm__ ("lpebr %0, %1" : "=f"(x) : "f"(x));
	return x;
}

#else

#include "../fabsf.c"

#endif