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