powerpc64: add single-instruction math functions
[musl.git] / src / math / powerpc64 / ceilf.c
blob59ba39617f5849a51cc9832449754a89ca7303b0
1 #include <math.h>
3 #ifdef _ARCH_PWR5X
5 float ceilf(float x)
7 __asm__ ("frip %0, %1" : "=f"(x) : "f"(x));
8 return x;
11 #else
13 #include "../ceilf.c"
15 #endif