X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=Usermode%2FLibraries%2Flibm.so_src%2Fpow.c;fp=Usermode%2FLibraries%2Flibm.so_src%2Fpow.c;h=f35d7c25f5d0a819733325fa50b31f7cf80a31ce;hb=e5624832d0c6535be32fb0452c4ce8e8637b0ad4;hp=0000000000000000000000000000000000000000;hpb=b0472312d548efb716890c461bd21492a040ca8c;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libm.so_src/pow.c b/Usermode/Libraries/libm.so_src/pow.c new file mode 100644 index 00000000..f35d7c25 --- /dev/null +++ b/Usermode/Libraries/libm.so_src/pow.c @@ -0,0 +1,18 @@ +/* + * Acess2 C Library (Maths) + * - By John Hodge (thePowersGang) + * + * pow.c + * - pow(), powf() and powl() + */ +#include + +// === CODE === +double pow(double x, double y) +{ + if( x == 1.0f ) + return 1.0f; + if( y == 0.0f ) + return 1.0f; + return __builtin_pow(x,y); +}