some initial math asm for armhf (fabs[f] and sqrt[f])
authorRich Felker <dalias@aerifal.cx>
Fri, 16 Aug 2013 21:32:30 +0000 (17:32 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 16 Aug 2013 21:32:30 +0000 (17:32 -0400)
12 files changed:
src/math/armebhf/fabs.sub [new file with mode: 0644]
src/math/armebhf/fabsf.sub [new file with mode: 0644]
src/math/armebhf/sqrt.sub [new file with mode: 0644]
src/math/armebhf/sqrtf.sub [new file with mode: 0644]
src/math/armhf/fabs.s [new file with mode: 0644]
src/math/armhf/fabs.sub [new file with mode: 0644]
src/math/armhf/fabsf.s [new file with mode: 0644]
src/math/armhf/fabsf.sub [new file with mode: 0644]
src/math/armhf/sqrt.s [new file with mode: 0644]
src/math/armhf/sqrt.sub [new file with mode: 0644]
src/math/armhf/sqrtf.s [new file with mode: 0644]
src/math/armhf/sqrtf.sub [new file with mode: 0644]

diff --git a/src/math/armebhf/fabs.sub b/src/math/armebhf/fabs.sub
new file mode 100644 (file)
index 0000000..10d9fb7
--- /dev/null
@@ -0,0 +1 @@
+../armhf/fabs.s
diff --git a/src/math/armebhf/fabsf.sub b/src/math/armebhf/fabsf.sub
new file mode 100644 (file)
index 0000000..940b20b
--- /dev/null
@@ -0,0 +1 @@
+../armhf/fabsf.s
diff --git a/src/math/armebhf/sqrt.sub b/src/math/armebhf/sqrt.sub
new file mode 100644 (file)
index 0000000..de2be11
--- /dev/null
@@ -0,0 +1 @@
+../armhf/sqrt.s
diff --git a/src/math/armebhf/sqrtf.sub b/src/math/armebhf/sqrtf.sub
new file mode 100644 (file)
index 0000000..150ab9c
--- /dev/null
@@ -0,0 +1 @@
+../armhf/sqrtf.s
diff --git a/src/math/armhf/fabs.s b/src/math/armhf/fabs.s
new file mode 100644 (file)
index 0000000..2bdebff
--- /dev/null
@@ -0,0 +1,6 @@
+.text
+.global fabs
+.type   fabs,%function
+fabs:
+       vabs.f64 d0, d0
+       bx lr
diff --git a/src/math/armhf/fabs.sub b/src/math/armhf/fabs.sub
new file mode 100644 (file)
index 0000000..99e8740
--- /dev/null
@@ -0,0 +1 @@
+fabs.s
diff --git a/src/math/armhf/fabsf.s b/src/math/armhf/fabsf.s
new file mode 100644 (file)
index 0000000..35c720f
--- /dev/null
@@ -0,0 +1,6 @@
+.text
+.global fabsf
+.type   fabsf,%function
+fabsf:
+       vabs.f32 s0, s0
+       bx lr
diff --git a/src/math/armhf/fabsf.sub b/src/math/armhf/fabsf.sub
new file mode 100644 (file)
index 0000000..c04638a
--- /dev/null
@@ -0,0 +1 @@
+fabsf.s
diff --git a/src/math/armhf/sqrt.s b/src/math/armhf/sqrt.s
new file mode 100644 (file)
index 0000000..99fe64b
--- /dev/null
@@ -0,0 +1,6 @@
+.text
+.global sqrt
+.type   sqrt,%function
+sqrt:
+       vsqrt.f64 d0, d0
+       bx lr
diff --git a/src/math/armhf/sqrt.sub b/src/math/armhf/sqrt.sub
new file mode 100644 (file)
index 0000000..25de7cf
--- /dev/null
@@ -0,0 +1 @@
+sqrt.s
diff --git a/src/math/armhf/sqrtf.s b/src/math/armhf/sqrtf.s
new file mode 100644 (file)
index 0000000..9ea519f
--- /dev/null
@@ -0,0 +1,6 @@
+.text
+.global sqrtf
+.type   sqrtf,%function
+sqrtf:
+       vsqrt.f32 s0, s0
+       bx lr
diff --git a/src/math/armhf/sqrtf.sub b/src/math/armhf/sqrtf.sub
new file mode 100644 (file)
index 0000000..3bcbac8
--- /dev/null
@@ -0,0 +1 @@
+sqrtf.s