From 63893d3ff1f9383ba3ce63a19b7de74ace319d77 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 16 Aug 2013 17:32:30 -0400 Subject: [PATCH] some initial math asm for armhf (fabs[f] and sqrt[f]) --- src/math/armebhf/fabs.sub | 1 + src/math/armebhf/fabsf.sub | 1 + src/math/armebhf/sqrt.sub | 1 + src/math/armebhf/sqrtf.sub | 1 + src/math/armhf/fabs.s | 6 ++++++ src/math/armhf/fabs.sub | 1 + src/math/armhf/fabsf.s | 6 ++++++ src/math/armhf/fabsf.sub | 1 + src/math/armhf/sqrt.s | 6 ++++++ src/math/armhf/sqrt.sub | 1 + src/math/armhf/sqrtf.s | 6 ++++++ src/math/armhf/sqrtf.sub | 1 + 12 files changed, 32 insertions(+) create mode 100644 src/math/armebhf/fabs.sub create mode 100644 src/math/armebhf/fabsf.sub create mode 100644 src/math/armebhf/sqrt.sub create mode 100644 src/math/armebhf/sqrtf.sub create mode 100644 src/math/armhf/fabs.s create mode 100644 src/math/armhf/fabs.sub create mode 100644 src/math/armhf/fabsf.s create mode 100644 src/math/armhf/fabsf.sub create mode 100644 src/math/armhf/sqrt.s create mode 100644 src/math/armhf/sqrt.sub create mode 100644 src/math/armhf/sqrtf.s create mode 100644 src/math/armhf/sqrtf.sub diff --git a/src/math/armebhf/fabs.sub b/src/math/armebhf/fabs.sub new file mode 100644 index 00000000..10d9fb7e --- /dev/null +++ b/src/math/armebhf/fabs.sub @@ -0,0 +1 @@ +../armhf/fabs.s diff --git a/src/math/armebhf/fabsf.sub b/src/math/armebhf/fabsf.sub new file mode 100644 index 00000000..940b20bd --- /dev/null +++ b/src/math/armebhf/fabsf.sub @@ -0,0 +1 @@ +../armhf/fabsf.s diff --git a/src/math/armebhf/sqrt.sub b/src/math/armebhf/sqrt.sub new file mode 100644 index 00000000..de2be116 --- /dev/null +++ b/src/math/armebhf/sqrt.sub @@ -0,0 +1 @@ +../armhf/sqrt.s diff --git a/src/math/armebhf/sqrtf.sub b/src/math/armebhf/sqrtf.sub new file mode 100644 index 00000000..150ab9cc --- /dev/null +++ b/src/math/armebhf/sqrtf.sub @@ -0,0 +1 @@ +../armhf/sqrtf.s diff --git a/src/math/armhf/fabs.s b/src/math/armhf/fabs.s new file mode 100644 index 00000000..2bdebff5 --- /dev/null +++ b/src/math/armhf/fabs.s @@ -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 index 00000000..99e87406 --- /dev/null +++ b/src/math/armhf/fabs.sub @@ -0,0 +1 @@ +fabs.s diff --git a/src/math/armhf/fabsf.s b/src/math/armhf/fabsf.s new file mode 100644 index 00000000..35c720fa --- /dev/null +++ b/src/math/armhf/fabsf.s @@ -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 index 00000000..c04638ae --- /dev/null +++ b/src/math/armhf/fabsf.sub @@ -0,0 +1 @@ +fabsf.s diff --git a/src/math/armhf/sqrt.s b/src/math/armhf/sqrt.s new file mode 100644 index 00000000..99fe64b9 --- /dev/null +++ b/src/math/armhf/sqrt.s @@ -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 index 00000000..25de7cfa --- /dev/null +++ b/src/math/armhf/sqrt.sub @@ -0,0 +1 @@ +sqrt.s diff --git a/src/math/armhf/sqrtf.s b/src/math/armhf/sqrtf.s new file mode 100644 index 00000000..9ea519f6 --- /dev/null +++ b/src/math/armhf/sqrtf.s @@ -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 index 00000000..3bcbac87 --- /dev/null +++ b/src/math/armhf/sqrtf.sub @@ -0,0 +1 @@ +sqrtf.s -- 2.25.1