summaryrefslogtreecommitdiff
path: root/libm/ldouble_wrappers.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-02-13 14:10:35 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-02-13 14:10:35 +0000
commit4348f28daaaa61327fd54c8296928f9cf7e79e9a (patch)
treedbae2283befd367135982e1f5d2965cdac35d713 /libm/ldouble_wrappers.c
parent0dcae49270555804589b519d6a6d13b22f45e70c (diff)
- use existing __stringify macro
Diffstat (limited to 'libm/ldouble_wrappers.c')
-rw-r--r--libm/ldouble_wrappers.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libm/ldouble_wrappers.c b/libm/ldouble_wrappers.c
index a9324cece..5d18fe911 100644
--- a/libm/ldouble_wrappers.c
+++ b/libm/ldouble_wrappers.c
@@ -16,8 +16,6 @@
#include "math.h"
#include <complex.h>
-#define STRINGIZE(s) #s
-
#define WRAPPER1(func) \
long double func##l(long double x) \
{ \
@@ -71,7 +69,7 @@ long double func##l(long double x) \
__asm ( \
" fldt %1\n" \
" fstpl %1\n" \
- " jmp " STRINGIZE(__GI_##func) "\n" \
+ " jmp " __stringify(__GI_##func) "\n" \
: "=t" (st_top) \
: "m" (x) \
); \
@@ -84,7 +82,7 @@ int func##l(long double x) \
__asm ( \
" fldt %1\n" \
" fstpl %1\n" \
- " jmp " STRINGIZE(__GI_##func) "\n" \
+ " jmp " __stringify(__GI_##func) "\n" \
: "=a" (ret) \
: "m" (x) \
); \
@@ -97,7 +95,7 @@ long func##l(long double x) \
__asm ( \
" fldt %1\n" \
" fstpl %1\n" \
- " jmp " STRINGIZE(__GI_##func) "\n" \
+ " jmp " __stringify(__GI_##func) "\n" \
: "=a" (ret) \
: "m" (x) \
); \
@@ -110,7 +108,7 @@ long long func##l(long double x) \
__asm ( \
" fldt %1\n" \
" fstpl %1\n" \
- " jmp " STRINGIZE(__GI_##func) "\n" \
+ " jmp " __stringify(__GI_##func) "\n" \
: "=A" (ret) \
: "m" (x) \
); \