diff options
author | Marcus Shawcroft <marcus.shawcroft@linaro.org> | 2012-11-20 23:06:26 +0000 |
---|---|---|
committer | Marcus Shawcroft <marcus.shawcroft@linaro.org> | 2012-11-21 08:16:00 +0000 |
commit | 5e543752f17c3c831a5728c745c3fccc990baba1 (patch) | |
tree | 771e54995fc39267154907f9e040ea10dc6ed6e2 /ports/sysdeps/aarch64/fpu | |
parent | e0ba0e189a65021e3ede971c7ad8447a561a099c (diff) | |
download | glibc-5e543752f17c3c831a5728c745c3fccc990baba1.tar.gz glibc-5e543752f17c3c831a5728c745c3fccc990baba1.tar.xz glibc-5e543752f17c3c831a5728c745c3fccc990baba1.zip |
aarch64: Don't use K&R C
Diffstat (limited to 'ports/sysdeps/aarch64/fpu')
-rw-r--r-- | ports/sysdeps/aarch64/fpu/s_fma.c | 5 | ||||
-rw-r--r-- | ports/sysdeps/aarch64/fpu/s_fmin.c | 4 | ||||
-rw-r--r-- | ports/sysdeps/aarch64/fpu/s_frint.x | 3 | ||||
-rw-r--r-- | ports/sysdeps/aarch64/fpu/s_lrint.c | 3 | ||||
-rw-r--r-- | ports/sysdeps/aarch64/fpu/s_lround.c | 3 |
5 files changed, 5 insertions, 13 deletions
diff --git a/ports/sysdeps/aarch64/fpu/s_fma.c b/ports/sysdeps/aarch64/fpu/s_fma.c index 7d8bd77aae..7dc70739ac 100644 --- a/ports/sysdeps/aarch64/fpu/s_fma.c +++ b/ports/sysdeps/aarch64/fpu/s_fma.c @@ -34,10 +34,7 @@ #define __CONCATX(a,b) __CONCAT(a,b) TYPE -__CONCATX(__,FUNC) (x, y, z) - TYPE x; - TYPE y; - TYPE z; +__CONCATX(__,FUNC) (TYPE x, TYPE y, TYPE z) { TYPE result; asm ( "fmadd" "\t%" REGS "0, %" REGS "1, %" REGS "2, %" REGS "3" diff --git a/ports/sysdeps/aarch64/fpu/s_fmin.c b/ports/sysdeps/aarch64/fpu/s_fmin.c index 3214aa80b4..63e1596e19 100644 --- a/ports/sysdeps/aarch64/fpu/s_fmin.c +++ b/ports/sysdeps/aarch64/fpu/s_fmin.c @@ -38,9 +38,7 @@ #define __CONCATX(a,b) __CONCAT(a,b) TYPE -__CONCATX(__,FUNC) (x, y) - TYPE x; - TYPE y; +__CONCATX(__,FUNC) (TYPE x, TYPE y) { TYPE result; asm ( INSN "\t%" REGS "0, %" REGS "1, %" REGS "2" diff --git a/ports/sysdeps/aarch64/fpu/s_frint.x b/ports/sysdeps/aarch64/fpu/s_frint.x index b3e21e13c1..3c24031deb 100644 --- a/ports/sysdeps/aarch64/fpu/s_frint.x +++ b/ports/sysdeps/aarch64/fpu/s_frint.x @@ -38,8 +38,7 @@ #define __CONCATX(a,b) __CONCAT(a,b) TYPE -__CONCATX(__,FUNC) (x) - TYPE x; +__CONCATX(__,FUNC) (TYPE x) { TYPE result; asm ( INSN "\t%" REGS "0, %" REGS "1" : diff --git a/ports/sysdeps/aarch64/fpu/s_lrint.c b/ports/sysdeps/aarch64/fpu/s_lrint.c index a5ad1eaebf..945428f414 100644 --- a/ports/sysdeps/aarch64/fpu/s_lrint.c +++ b/ports/sysdeps/aarch64/fpu/s_lrint.c @@ -40,8 +40,7 @@ #define __CONCATX(a,b) __CONCAT(a,b) OTYPE -__CONCATX(__,FUNC) (x) - ITYPE x; +__CONCATX(__,FUNC) (ITYPE x) { OTYPE result; ITYPE temp; diff --git a/ports/sysdeps/aarch64/fpu/s_lround.c b/ports/sysdeps/aarch64/fpu/s_lround.c index ca68bd76b5..472143d619 100644 --- a/ports/sysdeps/aarch64/fpu/s_lround.c +++ b/ports/sysdeps/aarch64/fpu/s_lround.c @@ -40,8 +40,7 @@ #define __CONCATX(a,b) __CONCAT(a,b) OTYPE -__CONCATX(__,FUNC) (x) - ITYPE x; +__CONCATX(__,FUNC) (ITYPE x) { OTYPE result; asm ( "fcvtas" "\t%" OREGS "0, %" IREGS "1" |