c_src: update with new intern methods
[nit.git] / c_src / math._ffi.c
diff --git a/c_src/math._ffi.c b/c_src/math._ffi.c
new file mode 100644 (file)
index 0000000..a33231e
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+       Extern implementation of Nit module math
+*/
+#include <stdlib.h>
+#include <stdio.h>
+#include "math._ffi.h"
+
+int math___Int_sqrt___impl( int recv )
+{
+#line 29 "lib/standard/math.nit"
+
+ return sqrt(recv); }
+
+double math___Float_abs___impl( double recv )
+{
+#line 40 "lib/standard/math.nit"
+
+ return fabs(recv); }