Usermode/libm - Wrap builtin log
[tpg/acess2.git] / Usermode / Libraries / libm.so_src / pow.c
index f35d7c2..d968ca8 100644 (file)
@@ -16,3 +16,17 @@ double pow(double x, double y)
                return 1.0f;
        return __builtin_pow(x,y);
 }
+
+double exp(double y)
+{
+       if( y == 0.0f )
+               return 1.0f;
+       return __builtin_exp(y);
+}
+
+double log(double n)
+{
+       if(n == 1.0f)
+               return 0.0f;
+       return __builtin_log(n);
+}

UCC git Repository :: git.ucc.asn.au