--- /dev/null
+#
+# Acess2 C Library (Math)
+# - By John Hodge (thePowersGang)
+#
+
+-include ../Makefile.cfg
+
+CPPFLAGS +=
+CFLAGS += -Werror -Wextra
+ASFLAGS +=
+LDFLAGS +=
+
+OBJ = stub.o pow.o
+BIN := libm.so
+
+include ../Makefile.tpl
+
--- /dev/null
+/*
+ * Acess2 C Library (Maths)
+ * - By John Hodge (thePowersGang)
+ *
+ * math.h
+ * - C99 Header
+ */
+#ifndef _LIBM__MATH_H_
+#define _LIBM__MATH_H_
+
+extern double pow(double x, double y);
+
+#endif
--- /dev/null
+/*
+ * Acess2 C Library (Maths)
+ * - By John Hodge (thePowersGang)
+ *
+ * pow.c
+ * - pow(), powf() and powl()
+ */
+#include <math.h>
+
+// === 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);
+}
--- /dev/null
+/*
+ * Acess2 C Library (Maths)
+ * - By John Hodge (thePowersGang)
+ *
+ * stub.c
+ * - Provides SoMain (unused)
+ */
+
+// === CODE ===
+int SoMain(void)
+{
+ return 0;
+}
+