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