s390x: add single-instruction math functions
[musl.git] / src / math / s390x / fabs.c
blob9bb51cb5ffa523c7510d77d7c9d7de8d269f853b
1 #include <math.h>
3 #if defined(__HTM__) || __ARCH__ >= 9
5 double fabs(double x)
7 __asm__ ("lpdbr %0, %1" : "=f"(x) : "f"(x));
8 return x;
11 #else
13 #include "../fabs.c"
15 #endif