powerpc64: add single-instruction math functions
[musl.git] / src / math / powerpc64 / fmaxf.c
blob345a234a80bea094633c08100a49d944315b8303
1 #include <math.h>
3 #ifdef __VSX__
5 float fmaxf(float x, float y)
7 __asm__ ("xsmaxdp %x0, %x1, %x2" : "=ww"(x) : "ww"(x), "ww"(y));
8 return x;
11 #else
13 #include "../fmaxf.c"
15 #endif