1 diff -ur dietlibc-0.30/libm/fpmacros.c dietlibc-0.30-libm-i386/libm/fpmacros.c
2 --- dietlibc-0.30/libm/fpmacros.c 2006-06-28 20:15:02.000000000 +0200
3 +++ dietlibc-0.30-libm-i386/libm/fpmacros.c 2006-06-28 19:51:31.000000000 +0200
6 ***********************************************************************/
8 +#if ! defined (__i386__) && ! defined (__x86_64__)
12 #include <sys/types.h>
14 weak_alias (__isnanl, isnanl);
18 diff -ur dietlibc-0.30/libm/s_asinh.c dietlibc-0.30-libm-i386/libm/s_asinh.c
19 --- dietlibc-0.30/libm/s_asinh.c 2006-06-28 20:15:02.000000000 +0200
20 +++ dietlibc-0.30-libm-i386/libm/s_asinh.c 2006-06-28 20:03:38.000000000 +0200
22 huge= 1.00000000000000000000e+300;
25 - double asinh(double x)
26 + double __asinh(double x)
35 if(hx>0) return w; else return -w;
37 +weak_alias (__asinh, asinh)
38 diff -ur dietlibc-0.30/libm/s_atan.c dietlibc-0.30-libm-i386/libm/s_atan.c
39 --- dietlibc-0.30/libm/s_atan.c 2006-06-28 20:15:02.000000000 +0200
40 +++ dietlibc-0.30-libm-i386/libm/s_atan.c 2006-06-28 20:10:26.000000000 +0200
45 - double atan(double x)
46 + double __atan(double x)
57 +weak_alias (__atan, atan)
58 diff -ur dietlibc-0.30/libm/s_cbrt.c dietlibc-0.30-libm-i386/libm/s_cbrt.c
59 --- dietlibc-0.30/libm/s_cbrt.c 2006-06-28 20:15:02.000000000 +0200
60 +++ dietlibc-0.30-libm-i386/libm/s_cbrt.c 2006-06-28 20:05:18.000000000 +0200
62 G = 3.57142857142857150787e-01; /* 5/14 = 0x3FD6DB6D, 0xB6DB6DB7 */
65 - double cbrt(double x)
66 + double __cbrt(double x)
74 SET_HIGH_WORD(t,high|sign);
77 +weak_alias (__cbrt, cbrt)
78 diff -ur dietlibc-0.30/libm/s_copysign.c dietlibc-0.30-libm-i386/libm/s_copysign.c
79 --- dietlibc-0.30/libm/s_copysign.c 2006-06-28 20:15:02.000000000 +0200
80 +++ dietlibc-0.30-libm-i386/libm/s_copysign.c 2006-06-28 20:01:55.000000000 +0200
82 #include "math_private.h"
85 - double copysign(double x, double y)
86 + double __copysign(double x, double y)
88 - double copysign(x,y)
89 + double __copysign(x,y)
94 SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000));
98 +weak_alias(__copysign, copysign)
99 diff -ur dietlibc-0.30/libm/s_cos.c dietlibc-0.30-libm-i386/libm/s_cos.c
100 --- dietlibc-0.30/libm/s_cos.c 2006-06-28 20:15:02.000000000 +0200
101 +++ dietlibc-0.30-libm-i386/libm/s_cos.c 2006-06-28 20:10:03.000000000 +0200
103 #include "math_private.h"
106 - double cos(double x)
107 + double __cos(double x)
118 +weak_alias (__cos, cos)
119 diff -ur dietlibc-0.30/libm/s_expm1.c dietlibc-0.30-libm-i386/libm/s_expm1.c
120 --- dietlibc-0.30/libm/s_expm1.c 2006-06-28 20:15:02.000000000 +0200
121 +++ dietlibc-0.30-libm-i386/libm/s_expm1.c 2006-06-28 20:04:13.000000000 +0200
123 Q5 = -2.01099218183624371326e-07; /* BE8AFDB7 6E09C32D */
126 - double expm1(double x)
127 + double __expm1(double x)
138 +weak_alias (__expm1, expm1)
139 diff -ur dietlibc-0.30/libm/s_fabs.c dietlibc-0.30-libm-i386/libm/s_fabs.c
140 --- dietlibc-0.30/libm/s_fabs.c 2006-06-28 20:15:02.000000000 +0200
141 +++ dietlibc-0.30-libm-i386/libm/s_fabs.c 2006-06-28 20:09:37.000000000 +0200
143 #include "math_private.h"
146 - double fabs(double x)
147 + double __fabs(double x)
155 SET_HIGH_WORD(x,high&0x7fffffff);
158 +weak_alias (__fabs, fabs)
159 diff -ur dietlibc-0.30/libm/s_floor.c dietlibc-0.30-libm-i386/libm/s_floor.c
160 --- dietlibc-0.30/libm/s_floor.c 2006-06-28 20:15:02.000000000 +0200
161 +++ dietlibc-0.30-libm-i386/libm/s_floor.c 2006-06-28 20:09:19.000000000 +0200
166 - double floor(double x)
167 + double __floor(double x)
175 INSERT_WORDS(x,i0,i1);
178 +weak_alias (__floor, floor)
179 diff -ur dietlibc-0.30/libm/s_ilogb.c dietlibc-0.30-libm-i386/libm/s_ilogb.c
180 --- dietlibc-0.30/libm/s_ilogb.c 2006-06-28 20:15:02.000000000 +0200
181 +++ dietlibc-0.30-libm-i386/libm/s_ilogb.c 2006-06-28 19:58:36.000000000 +0200
183 #include "math_private.h"
186 - int ilogb(double x)
187 + int __ilogb(double x)
195 else if (hx<0x7ff00000) return (hx>>20)-1023;
196 else return 0x7fffffff;
198 +weak_alias (__ilogb, ilogb)
199 diff -ur dietlibc-0.30/libm/s_ldexp.c dietlibc-0.30-libm-i386/libm/s_ldexp.c
200 --- dietlibc-0.30/libm/s_ldexp.c 2006-06-28 20:15:02.000000000 +0200
201 +++ dietlibc-0.30-libm-i386/libm/s_ldexp.c 2006-06-28 20:06:45.000000000 +0200
206 - double ldexp(double value, int exp)
207 + double __ldexp(double value, int exp)
209 - double ldexp(value, exp)
210 + double __ldexp(value, exp)
211 double value; int exp;
215 if(!finite(value)||value==0.0) errno = ERANGE;
218 +weak_alias (__ldexp, ldexp)
219 diff -ur dietlibc-0.30/libm/s_log1p.c dietlibc-0.30-libm-i386/libm/s_log1p.c
220 --- dietlibc-0.30/libm/s_log1p.c 2006-06-28 20:15:02.000000000 +0200
221 +++ dietlibc-0.30-libm-i386/libm/s_log1p.c 2006-06-28 20:06:16.000000000 +0200
226 - double log1p(double x)
227 + double __log1p(double x)
235 if(k==0) return f-(hfsq-s*(hfsq+R)); else
236 return k*ln2_hi-((hfsq-(s*(hfsq+R)+(k*ln2_lo+c)))-f);
238 +weak_alias (__log1p, log1p)
239 diff -ur dietlibc-0.30/libm/s_logb.c dietlibc-0.30-libm-i386/libm/s_logb.c
240 --- dietlibc-0.30/libm/s_logb.c 2006-06-28 20:15:02.000000000 +0200
241 +++ dietlibc-0.30-libm-i386/libm/s_logb.c 2006-06-28 19:59:16.000000000 +0200
243 #include "math_private.h"
246 - double logb(double x)
247 + double __logb(double x)
256 return (double) (ix-1023);
258 +weak_alias (__logb, logb)
259 diff -ur dietlibc-0.30/libm/s_sin.c dietlibc-0.30-libm-i386/libm/s_sin.c
260 --- dietlibc-0.30/libm/s_sin.c 2006-06-28 20:15:02.000000000 +0200
261 +++ dietlibc-0.30-libm-i386/libm/s_sin.c 2006-06-28 20:07:36.000000000 +0200
263 #include "math_private.h"
266 - double sin(double x)
267 + double __sin(double x)
278 +weak_alias (__sin, sin)
279 diff -ur dietlibc-0.30/libm/s_tan.c dietlibc-0.30-libm-i386/libm/s_tan.c
280 --- dietlibc-0.30/libm/s_tan.c 2006-06-28 20:15:02.000000000 +0200
281 +++ dietlibc-0.30-libm-i386/libm/s_tan.c 2006-06-28 19:57:55.000000000 +0200
283 #include "math_private.h"
286 - double tan(double x)
287 + double __tan(double x)
298 +weak_alias (__tan, tan)
299 diff -ur dietlibc-0.30/libm/w_acos.c dietlibc-0.30-libm-i386/libm/w_acos.c
300 --- dietlibc-0.30/libm/w_acos.c 2006-06-28 20:15:02.000000000 +0200
301 +++ dietlibc-0.30-libm-i386/libm/w_acos.c 2006-06-28 20:10:58.000000000 +0200
306 - double acos(double x) /* wrapper acos */
307 + double __acos(double x) /* wrapper acos */
309 - double acos(x) /* wrapper acos */
310 + double __acos(x) /* wrapper acos */
318 +weak_alias (__acos, acos)
319 diff -ur dietlibc-0.30/libm/w_acosh.c dietlibc-0.30-libm-i386/libm/w_acosh.c
320 --- dietlibc-0.30/libm/w_acosh.c 2006-06-28 20:15:02.000000000 +0200
321 +++ dietlibc-0.30-libm-i386/libm/w_acosh.c 2006-06-28 20:02:44.000000000 +0200
323 #include "math_private.h"
326 - double acosh(double x) /* wrapper acosh */
327 + double __acosh(double x) /* wrapper acosh */
329 - double acosh(x) /* wrapper acosh */
330 + double __acosh(x) /* wrapper acosh */
338 +weak_alias (__acosh, acosh)
339 diff -ur dietlibc-0.30/libm/w_asin.c dietlibc-0.30-libm-i386/libm/w_asin.c
340 --- dietlibc-0.30/libm/w_asin.c 2006-06-28 20:15:02.000000000 +0200
341 +++ dietlibc-0.30-libm-i386/libm/w_asin.c 2006-06-28 20:03:08.000000000 +0200
346 - double asin(double x) /* wrapper asin */
347 + double __asin(double x) /* wrapper asin */
349 - double asin(x) /* wrapper asin */
350 + double __asin(x) /* wrapper asin */
358 +weak_alias (__asin, asin)
359 diff -ur dietlibc-0.30/libm/w_atan2.c dietlibc-0.30-libm-i386/libm/w_atan2.c
360 --- dietlibc-0.30/libm/w_atan2.c 2006-06-28 20:15:02.000000000 +0200
361 +++ dietlibc-0.30-libm-i386/libm/w_atan2.c 2006-06-28 19:57:11.000000000 +0200
366 - double atan2(double y, double x) /* wrapper atan2 */
367 + double __atan2(double y, double x) /* wrapper atan2 */
369 - double atan2(y,x) /* wrapper atan2 */
370 + double __atan2(y,x) /* wrapper atan2 */
378 +weak_alias (__atan2, atan2)
379 diff -ur dietlibc-0.30/libm/w_atanh.c dietlibc-0.30-libm-i386/libm/w_atanh.c
380 --- dietlibc-0.30/libm/w_atanh.c 2006-06-28 20:15:02.000000000 +0200
381 +++ dietlibc-0.30-libm-i386/libm/w_atanh.c 2006-06-28 20:02:23.000000000 +0200
386 - double atanh(double x) /* wrapper atanh */
387 + double __atanh(double x) /* wrapper atanh */
389 - double atanh(x) /* wrapper atanh */
390 + double __atanh(x) /* wrapper atanh */
398 +weak_alias (__atanh, atanh)
399 diff -ur dietlibc-0.30/libm/w_drem.c dietlibc-0.30-libm-i386/libm/w_drem.c
400 --- dietlibc-0.30/libm/w_drem.c 2006-06-28 20:15:02.000000000 +0200
401 +++ dietlibc-0.30-libm-i386/libm/w_drem.c 2006-06-28 20:01:26.000000000 +0200
406 +#include "math_private.h"
411 +double __drem(double x, double y)
413 return remainder(x, y);
415 +weak_alias (__drem, drem)
416 diff -ur dietlibc-0.30/libm/w_fmod.c dietlibc-0.30-libm-i386/libm/w_fmod.c
417 --- dietlibc-0.30/libm/w_fmod.c 2006-06-28 20:15:02.000000000 +0200
418 +++ dietlibc-0.30-libm-i386/libm/w_fmod.c 2006-06-28 20:05:43.000000000 +0200
423 - double fmod(double x, double y) /* wrapper fmod */
424 + double __fmod(double x, double y) /* wrapper fmod */
426 - double fmod(x,y) /* wrapper fmod */
427 + double __fmod(x,y) /* wrapper fmod */
435 +weak_alias (__fmod, fmod)
436 diff -ur dietlibc-0.30/libm/w_hypot.c dietlibc-0.30-libm-i386/libm/w_hypot.c
437 --- dietlibc-0.30/libm/w_hypot.c 2006-06-28 20:15:02.000000000 +0200
438 +++ dietlibc-0.30-libm-i386/libm/w_hypot.c 2006-06-28 20:08:54.000000000 +0200
443 - double hypot(double x, double y)/* wrapper hypot */
444 + double __hypot(double x, double y)/* wrapper hypot */
446 - double hypot(x,y) /* wrapper hypot */
447 + double __hypot(x,y) /* wrapper hypot */
455 +weak_alias (__hypot, hypot)
456 diff -ur dietlibc-0.30/libm/w_log.c dietlibc-0.30-libm-i386/libm/w_log.c
457 --- dietlibc-0.30/libm/w_log.c 2006-06-28 20:15:02.000000000 +0200
458 +++ dietlibc-0.30-libm-i386/libm/w_log.c 2006-06-28 20:08:32.000000000 +0200
463 - double log(double x) /* wrapper log */
464 + double __log(double x) /* wrapper log */
466 - double log(x) /* wrapper log */
467 + double __log(x) /* wrapper log */
472 return __kernel_standard(x,x,17); /* log(x<0) */
475 +weak_alias (__log, log)
476 diff -ur dietlibc-0.30/libm/w_log10.c dietlibc-0.30-libm-i386/libm/w_log10.c
477 --- dietlibc-0.30/libm/w_log10.c 2006-06-28 20:15:02.000000000 +0200
478 +++ dietlibc-0.30-libm-i386/libm/w_log10.c 2006-06-28 20:08:11.000000000 +0200
483 - double log10(double x) /* wrapper log10 */
484 + double __log10(double x) /* wrapper log10 */
486 - double log10(x) /* wrapper log10 */
487 + double __log10(x) /* wrapper log10 */
495 +weak_alias (__log10, log10)
496 diff -ur dietlibc-0.30/libm/w_sqrt.c dietlibc-0.30-libm-i386/libm/w_sqrt.c
497 --- dietlibc-0.30/libm/w_sqrt.c 2006-06-28 20:15:02.000000000 +0200
498 +++ dietlibc-0.30-libm-i386/libm/w_sqrt.c 2006-06-28 20:07:09.000000000 +0200
500 #include "math_private.h"
503 - double sqrt(double x) /* wrapper sqrt */
504 + double __sqrt(double x) /* wrapper sqrt */
506 - double sqrt(x) /* wrapper sqrt */
507 + double __sqrt(x) /* wrapper sqrt */
515 +weak_alias (__sqrt, sqrt)