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