OSDN Git Service

- use existing __stringify macro
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 13 Feb 2009 14:10:35 +0000 (14:10 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 13 Feb 2009 14:10:35 +0000 (14:10 -0000)
libm/ldouble_wrappers.c

index a9324ce..5d18fe9 100644 (file)
@@ -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) \
        ); \