From 4348f28daaaa61327fd54c8296928f9cf7e79e9a Mon Sep 17 00:00:00 2001
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Date: Fri, 13 Feb 2009 14:10:35 +0000
Subject: - use existing __stringify macro

---
 libm/ldouble_wrappers.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

(limited to 'libm')

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) \
 	); \
-- 
cgit v1.2.3