From 4a920e05bd4f1b3bdd6b85447fd2ca4e6d0c35f6 Mon Sep 17 00:00:00 2001 From: nsz Date: Sun, 4 Mar 2012 10:39:33 +0100 Subject: [PATCH 1/1] fix __invtrigl.o symbol names using '__' prefix --- src/math/__invtrigl.h | 32 ++++++++++++++++---------------- test/sanity/chk.sh | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/math/__invtrigl.h b/src/math/__invtrigl.h index 40b9e1e..5ffde70 100644 --- a/src/math/__invtrigl.h +++ b/src/math/__invtrigl.h @@ -42,22 +42,22 @@ #define THRESH ((0xe666666666666666ULL>>(64-(MANH_SIZE-1)))|LDBL_NBIT) /* Constants shared by the long double inverse trig functions. */ -#define pS0 _ItL_pS0 -#define pS1 _ItL_pS1 -#define pS2 _ItL_pS2 -#define pS3 _ItL_pS3 -#define pS4 _ItL_pS4 -#define pS5 _ItL_pS5 -#define pS6 _ItL_pS6 -#define qS1 _ItL_qS1 -#define qS2 _ItL_qS2 -#define qS3 _ItL_qS3 -#define qS4 _ItL_qS4 -#define qS5 _ItL_qS5 -#define atanhi _ItL_atanhi -#define atanlo _ItL_atanlo -#define aT _ItL_aT -#define pi_lo _ItL_pi_lo +#define pS0 __pS0 +#define pS1 __pS1 +#define pS2 __pS2 +#define pS3 __pS3 +#define pS4 __pS4 +#define pS5 __pS5 +#define pS6 __pS6 +#define qS1 __qS1 +#define qS2 __qS2 +#define qS3 __qS3 +#define qS4 __qS4 +#define qS5 __qS5 +#define atanhi __atanhi +#define atanlo __atanlo +#define aT __aT +#define pi_lo __pi_lo #define pio2_hi atanhi[3] #define pio2_lo atanlo[3] diff --git a/test/sanity/chk.sh b/test/sanity/chk.sh index cfe15d2..849ab10 100755 --- a/test/sanity/chk.sh +++ b/test/sanity/chk.sh @@ -1,7 +1,7 @@ #!/bin/sh export LC_ALL=C -nm ../../lib/libm.a |awk '/ [TW] / && !/__/ && !/ fe/{print $3}' |sort >f.sym +nm ../../lib/libm.a |awk '$2 ~ /^[A-Z]$/ && $3 !~ /^__/ && $3 !~ /^fe/{print $3}' |sort >f.sym awk '/^\t[PQ]/{ sub(/[^(]*\(/,""); sub(/^\([^(]*\)/,""); sub(/\(.*/,""); print}' t.c |sort >f.t diff f.t f.sym -- 2.20.1