OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

531 lines
14 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../dietlibc/libm-i386.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. diff -ur dietlibc-0.30/libm/fpmacros.c dietlibc-0.30-libm-i386/libm/fpmacros.c
  17. --- dietlibc-0.30/libm/fpmacros.c 2006-06-28 20:15:02.000000000 +0200
  18. +++ dietlibc-0.30-libm-i386/libm/fpmacros.c 2006-06-28 19:51:31.000000000 +0200
  19. @@ -20,6 +20,8 @@
  20. **
  21. ***********************************************************************/
  22. +#if ! defined (__i386__) && ! defined (__x86_64__)
  23. +
  24. #include <features.h>
  25. #define _GNU_SOURCE
  26. #include <sys/types.h>
  27. @@ -289,3 +291,4 @@
  28. weak_alias (__isnanl, isnanl);
  29. #endif
  30. +#endif
  31. diff -ur dietlibc-0.30/libm/s_asinh.c dietlibc-0.30-libm-i386/libm/s_asinh.c
  32. --- dietlibc-0.30/libm/s_asinh.c 2006-06-28 20:15:02.000000000 +0200
  33. +++ dietlibc-0.30-libm-i386/libm/s_asinh.c 2006-06-28 20:03:38.000000000 +0200
  34. @@ -38,9 +38,9 @@
  35. huge= 1.00000000000000000000e+300;
  36. #ifdef __STDC__
  37. - double asinh(double x)
  38. + double __asinh(double x)
  39. #else
  40. - double asinh(x)
  41. + double __asinh(x)
  42. double x;
  43. #endif
  44. {
  45. @@ -63,3 +63,4 @@
  46. }
  47. if(hx>0) return w; else return -w;
  48. }
  49. +weak_alias (__asinh, asinh)
  50. diff -ur dietlibc-0.30/libm/s_atan.c dietlibc-0.30-libm-i386/libm/s_atan.c
  51. --- dietlibc-0.30/libm/s_atan.c 2006-06-28 20:15:02.000000000 +0200
  52. +++ dietlibc-0.30-libm-i386/libm/s_atan.c 2006-06-28 20:10:26.000000000 +0200
  53. @@ -86,9 +86,9 @@
  54. huge = 1.0e300;
  55. #ifdef __STDC__
  56. - double atan(double x)
  57. + double __atan(double x)
  58. #else
  59. - double atan(x)
  60. + double __atan(x)
  61. double x;
  62. #endif
  63. {
  64. @@ -137,3 +137,4 @@
  65. return (hx<0)? -z:z;
  66. }
  67. }
  68. +weak_alias (__atan, atan)
  69. diff -ur dietlibc-0.30/libm/s_cbrt.c dietlibc-0.30-libm-i386/libm/s_cbrt.c
  70. --- dietlibc-0.30/libm/s_cbrt.c 2006-06-28 20:15:02.000000000 +0200
  71. +++ dietlibc-0.30-libm-i386/libm/s_cbrt.c 2006-06-28 20:05:18.000000000 +0200
  72. @@ -40,9 +40,9 @@
  73. G = 3.57142857142857150787e-01; /* 5/14 = 0x3FD6DB6D, 0xB6DB6DB7 */
  74. #ifdef __STDC__
  75. - double cbrt(double x)
  76. + double __cbrt(double x)
  77. #else
  78. - double cbrt(x)
  79. + double __cbrt(x)
  80. double x;
  81. #endif
  82. {
  83. @@ -91,3 +91,4 @@
  84. SET_HIGH_WORD(t,high|sign);
  85. return(t);
  86. }
  87. +weak_alias (__cbrt, cbrt)
  88. diff -ur dietlibc-0.30/libm/s_copysign.c dietlibc-0.30-libm-i386/libm/s_copysign.c
  89. --- dietlibc-0.30/libm/s_copysign.c 2006-06-28 20:15:02.000000000 +0200
  90. +++ dietlibc-0.30-libm-i386/libm/s_copysign.c 2006-06-28 20:01:55.000000000 +0200
  91. @@ -24,9 +24,9 @@
  92. #include "math_private.h"
  93. #ifdef __STDC__
  94. - double copysign(double x, double y)
  95. + double __copysign(double x, double y)
  96. #else
  97. - double copysign(x,y)
  98. + double __copysign(x,y)
  99. double x,y;
  100. #endif
  101. {
  102. @@ -36,4 +36,4 @@
  103. SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000));
  104. return x;
  105. }
  106. -
  107. +weak_alias(__copysign, copysign)
  108. diff -ur dietlibc-0.30/libm/s_cos.c dietlibc-0.30-libm-i386/libm/s_cos.c
  109. --- dietlibc-0.30/libm/s_cos.c 2006-06-28 20:15:02.000000000 +0200
  110. +++ dietlibc-0.30-libm-i386/libm/s_cos.c 2006-06-28 20:10:03.000000000 +0200
  111. @@ -49,9 +49,9 @@
  112. #include "math_private.h"
  113. #ifdef __STDC__
  114. - double cos(double x)
  115. + double __cos(double x)
  116. #else
  117. - double cos(x)
  118. + double __cos(x)
  119. double x;
  120. #endif
  121. {
  122. @@ -80,3 +80,4 @@
  123. }
  124. }
  125. }
  126. +weak_alias (__cos, cos)
  127. diff -ur dietlibc-0.30/libm/s_expm1.c dietlibc-0.30-libm-i386/libm/s_expm1.c
  128. --- dietlibc-0.30/libm/s_expm1.c 2006-06-28 20:15:02.000000000 +0200
  129. +++ dietlibc-0.30-libm-i386/libm/s_expm1.c 2006-06-28 20:04:13.000000000 +0200
  130. @@ -132,9 +132,9 @@
  131. Q5 = -2.01099218183624371326e-07; /* BE8AFDB7 6E09C32D */
  132. #ifdef __STDC__
  133. - double expm1(double x)
  134. + double __expm1(double x)
  135. #else
  136. - double expm1(x)
  137. + double __expm1(x)
  138. double x;
  139. #endif
  140. {
  141. @@ -227,3 +227,4 @@
  142. }
  143. return y;
  144. }
  145. +weak_alias (__expm1, expm1)
  146. diff -ur dietlibc-0.30/libm/s_fabs.c dietlibc-0.30-libm-i386/libm/s_fabs.c
  147. --- dietlibc-0.30/libm/s_fabs.c 2006-06-28 20:15:02.000000000 +0200
  148. +++ dietlibc-0.30-libm-i386/libm/s_fabs.c 2006-06-28 20:09:37.000000000 +0200
  149. @@ -22,9 +22,9 @@
  150. #include "math_private.h"
  151. #ifdef __STDC__
  152. - double fabs(double x)
  153. + double __fabs(double x)
  154. #else
  155. - double fabs(x)
  156. + double __fabs(x)
  157. double x;
  158. #endif
  159. {
  160. @@ -33,3 +33,4 @@
  161. SET_HIGH_WORD(x,high&0x7fffffff);
  162. return x;
  163. }
  164. +weak_alias (__fabs, fabs)
  165. diff -ur dietlibc-0.30/libm/s_floor.c dietlibc-0.30-libm-i386/libm/s_floor.c
  166. --- dietlibc-0.30/libm/s_floor.c 2006-06-28 20:15:02.000000000 +0200
  167. +++ dietlibc-0.30-libm-i386/libm/s_floor.c 2006-06-28 20:09:19.000000000 +0200
  168. @@ -33,9 +33,9 @@
  169. #endif
  170. #ifdef __STDC__
  171. - double floor(double x)
  172. + double __floor(double x)
  173. #else
  174. - double floor(x)
  175. + double __floor(x)
  176. double x;
  177. #endif
  178. {
  179. @@ -79,3 +79,4 @@
  180. INSERT_WORDS(x,i0,i1);
  181. return x;
  182. }
  183. +weak_alias (__floor, floor)
  184. diff -ur dietlibc-0.30/libm/s_ilogb.c dietlibc-0.30-libm-i386/libm/s_ilogb.c
  185. --- dietlibc-0.30/libm/s_ilogb.c 2006-06-28 20:15:02.000000000 +0200
  186. +++ dietlibc-0.30-libm-i386/libm/s_ilogb.c 2006-06-28 19:58:36.000000000 +0200
  187. @@ -24,9 +24,9 @@
  188. #include "math_private.h"
  189. #ifdef __STDC__
  190. - int ilogb(double x)
  191. + int __ilogb(double x)
  192. #else
  193. - int ilogb(x)
  194. + int __ilogb(x)
  195. double x;
  196. #endif
  197. {
  198. @@ -49,3 +49,4 @@
  199. else if (hx<0x7ff00000) return (hx>>20)-1023;
  200. else return 0x7fffffff;
  201. }
  202. +weak_alias (__ilogb, ilogb)
  203. diff -ur dietlibc-0.30/libm/s_ldexp.c dietlibc-0.30-libm-i386/libm/s_ldexp.c
  204. --- dietlibc-0.30/libm/s_ldexp.c 2006-06-28 20:15:02.000000000 +0200
  205. +++ dietlibc-0.30-libm-i386/libm/s_ldexp.c 2006-06-28 20:06:45.000000000 +0200
  206. @@ -19,9 +19,9 @@
  207. #include <errno.h>
  208. #ifdef __STDC__
  209. - double ldexp(double value, int exp)
  210. + double __ldexp(double value, int exp)
  211. #else
  212. - double ldexp(value, exp)
  213. + double __ldexp(value, exp)
  214. double value; int exp;
  215. #endif
  216. {
  217. @@ -30,3 +30,4 @@
  218. if(!finite(value)||value==0.0) errno = ERANGE;
  219. return value;
  220. }
  221. +weak_alias (__ldexp, ldexp)
  222. diff -ur dietlibc-0.30/libm/s_log1p.c dietlibc-0.30-libm-i386/libm/s_log1p.c
  223. --- dietlibc-0.30/libm/s_log1p.c 2006-06-28 20:15:02.000000000 +0200
  224. +++ dietlibc-0.30-libm-i386/libm/s_log1p.c 2006-06-28 20:06:16.000000000 +0200
  225. @@ -105,9 +105,9 @@
  226. #endif
  227. #ifdef __STDC__
  228. - double log1p(double x)
  229. + double __log1p(double x)
  230. #else
  231. - double log1p(x)
  232. + double __log1p(x)
  233. double x;
  234. #endif
  235. {
  236. @@ -172,3 +172,4 @@
  237. if(k==0) return f-(hfsq-s*(hfsq+R)); else
  238. return k*ln2_hi-((hfsq-(s*(hfsq+R)+(k*ln2_lo+c)))-f);
  239. }
  240. +weak_alias (__log1p, log1p)
  241. diff -ur dietlibc-0.30/libm/s_logb.c dietlibc-0.30-libm-i386/libm/s_logb.c
  242. --- dietlibc-0.30/libm/s_logb.c 2006-06-28 20:15:02.000000000 +0200
  243. +++ dietlibc-0.30-libm-i386/libm/s_logb.c 2006-06-28 19:59:16.000000000 +0200
  244. @@ -24,9 +24,9 @@
  245. #include "math_private.h"
  246. #ifdef __STDC__
  247. - double logb(double x)
  248. + double __logb(double x)
  249. #else
  250. - double logb(x)
  251. + double __logb(x)
  252. double x;
  253. #endif
  254. {
  255. @@ -40,3 +40,4 @@
  256. else
  257. return (double) (ix-1023);
  258. }
  259. +weak_alias (__logb, logb)
  260. diff -ur dietlibc-0.30/libm/s_sin.c dietlibc-0.30-libm-i386/libm/s_sin.c
  261. --- dietlibc-0.30/libm/s_sin.c 2006-06-28 20:15:02.000000000 +0200
  262. +++ dietlibc-0.30-libm-i386/libm/s_sin.c 2006-06-28 20:07:36.000000000 +0200
  263. @@ -49,9 +49,9 @@
  264. #include "math_private.h"
  265. #ifdef __STDC__
  266. - double sin(double x)
  267. + double __sin(double x)
  268. #else
  269. - double sin(x)
  270. + double __sin(x)
  271. double x;
  272. #endif
  273. {
  274. @@ -80,3 +80,4 @@
  275. }
  276. }
  277. }
  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
  282. @@ -48,9 +48,9 @@
  283. #include "math_private.h"
  284. #ifdef __STDC__
  285. - double tan(double x)
  286. + double __tan(double x)
  287. #else
  288. - double tan(x)
  289. + double __tan(x)
  290. double x;
  291. #endif
  292. {
  293. @@ -74,3 +74,4 @@
  294. -1 -- n odd */
  295. }
  296. }
  297. +weak_alias (__tan, tan)
  298. diff -ur dietlibc-0.30/libm/w_acos.c dietlibc-0.30-libm-i386/libm/w_acos.c
  299. --- dietlibc-0.30/libm/w_acos.c 2006-06-28 20:15:02.000000000 +0200
  300. +++ dietlibc-0.30-libm-i386/libm/w_acos.c 2006-06-28 20:10:58.000000000 +0200
  301. @@ -23,9 +23,9 @@
  302. #ifdef __STDC__
  303. - double acos(double x) /* wrapper acos */
  304. + double __acos(double x) /* wrapper acos */
  305. #else
  306. - double acos(x) /* wrapper acos */
  307. + double __acos(x) /* wrapper acos */
  308. double x;
  309. #endif
  310. {
  311. @@ -41,3 +41,4 @@
  312. return z;
  313. #endif
  314. }
  315. +weak_alias (__acos, acos)
  316. diff -ur dietlibc-0.30/libm/w_acosh.c dietlibc-0.30-libm-i386/libm/w_acosh.c
  317. --- dietlibc-0.30/libm/w_acosh.c 2006-06-28 20:15:02.000000000 +0200
  318. +++ dietlibc-0.30-libm-i386/libm/w_acosh.c 2006-06-28 20:02:44.000000000 +0200
  319. @@ -22,9 +22,9 @@
  320. #include "math_private.h"
  321. #ifdef __STDC__
  322. - double acosh(double x) /* wrapper acosh */
  323. + double __acosh(double x) /* wrapper acosh */
  324. #else
  325. - double acosh(x) /* wrapper acosh */
  326. + double __acosh(x) /* wrapper acosh */
  327. double x;
  328. #endif
  329. {
  330. @@ -40,3 +40,4 @@
  331. return z;
  332. #endif
  333. }
  334. +weak_alias (__acosh, acosh)
  335. diff -ur dietlibc-0.30/libm/w_asin.c dietlibc-0.30-libm-i386/libm/w_asin.c
  336. --- dietlibc-0.30/libm/w_asin.c 2006-06-28 20:15:02.000000000 +0200
  337. +++ dietlibc-0.30-libm-i386/libm/w_asin.c 2006-06-28 20:03:08.000000000 +0200
  338. @@ -24,9 +24,9 @@
  339. #ifdef __STDC__
  340. - double asin(double x) /* wrapper asin */
  341. + double __asin(double x) /* wrapper asin */
  342. #else
  343. - double asin(x) /* wrapper asin */
  344. + double __asin(x) /* wrapper asin */
  345. double x;
  346. #endif
  347. {
  348. @@ -42,3 +42,4 @@
  349. return z;
  350. #endif
  351. }
  352. +weak_alias (__asin, asin)
  353. diff -ur dietlibc-0.30/libm/w_atan2.c dietlibc-0.30-libm-i386/libm/w_atan2.c
  354. --- dietlibc-0.30/libm/w_atan2.c 2006-06-28 20:15:02.000000000 +0200
  355. +++ dietlibc-0.30-libm-i386/libm/w_atan2.c 2006-06-28 19:57:11.000000000 +0200
  356. @@ -22,9 +22,9 @@
  357. #ifdef __STDC__
  358. - double atan2(double y, double x) /* wrapper atan2 */
  359. + double __atan2(double y, double x) /* wrapper atan2 */
  360. #else
  361. - double atan2(y,x) /* wrapper atan2 */
  362. + double __atan2(y,x) /* wrapper atan2 */
  363. double y,x;
  364. #endif
  365. {
  366. @@ -40,3 +40,4 @@
  367. return z;
  368. #endif
  369. }
  370. +weak_alias (__atan2, atan2)
  371. diff -ur dietlibc-0.30/libm/w_atanh.c dietlibc-0.30-libm-i386/libm/w_atanh.c
  372. --- dietlibc-0.30/libm/w_atanh.c 2006-06-28 20:15:02.000000000 +0200
  373. +++ dietlibc-0.30-libm-i386/libm/w_atanh.c 2006-06-28 20:02:23.000000000 +0200
  374. @@ -23,9 +23,9 @@
  375. #ifdef __STDC__
  376. - double atanh(double x) /* wrapper atanh */
  377. + double __atanh(double x) /* wrapper atanh */
  378. #else
  379. - double atanh(x) /* wrapper atanh */
  380. + double __atanh(x) /* wrapper atanh */
  381. double x;
  382. #endif
  383. {
  384. @@ -45,3 +45,4 @@
  385. return z;
  386. #endif
  387. }
  388. +weak_alias (__atanh, atanh)
  389. diff -ur dietlibc-0.30/libm/w_drem.c dietlibc-0.30-libm-i386/libm/w_drem.c
  390. --- dietlibc-0.30/libm/w_drem.c 2006-06-28 20:15:02.000000000 +0200
  391. +++ dietlibc-0.30-libm-i386/libm/w_drem.c 2006-06-28 20:01:26.000000000 +0200
  392. @@ -6,10 +6,10 @@
  393. */
  394. #include <math.h>
  395. +#include "math_private.h"
  396. -double
  397. -drem(x, y)
  398. - double x, y;
  399. +double __drem(double x, double y)
  400. {
  401. return remainder(x, y);
  402. }
  403. +weak_alias (__drem, drem)
  404. diff -ur dietlibc-0.30/libm/w_fmod.c dietlibc-0.30-libm-i386/libm/w_fmod.c
  405. --- dietlibc-0.30/libm/w_fmod.c 2006-06-28 20:15:02.000000000 +0200
  406. +++ dietlibc-0.30-libm-i386/libm/w_fmod.c 2006-06-28 20:05:43.000000000 +0200
  407. @@ -23,9 +23,9 @@
  408. #ifdef __STDC__
  409. - double fmod(double x, double y) /* wrapper fmod */
  410. + double __fmod(double x, double y) /* wrapper fmod */
  411. #else
  412. - double fmod(x,y) /* wrapper fmod */
  413. + double __fmod(x,y) /* wrapper fmod */
  414. double x,y;
  415. #endif
  416. {
  417. @@ -41,3 +41,4 @@
  418. return z;
  419. #endif
  420. }
  421. +weak_alias (__fmod, fmod)
  422. diff -ur dietlibc-0.30/libm/w_hypot.c dietlibc-0.30-libm-i386/libm/w_hypot.c
  423. --- dietlibc-0.30/libm/w_hypot.c 2006-06-28 20:15:02.000000000 +0200
  424. +++ dietlibc-0.30-libm-i386/libm/w_hypot.c 2006-06-28 20:08:54.000000000 +0200
  425. @@ -23,9 +23,9 @@
  426. #ifdef __STDC__
  427. - double hypot(double x, double y)/* wrapper hypot */
  428. + double __hypot(double x, double y)/* wrapper hypot */
  429. #else
  430. - double hypot(x,y) /* wrapper hypot */
  431. + double __hypot(x,y) /* wrapper hypot */
  432. double x,y;
  433. #endif
  434. {
  435. @@ -41,3 +41,4 @@
  436. return z;
  437. #endif
  438. }
  439. +weak_alias (__hypot, hypot)
  440. diff -ur dietlibc-0.30/libm/w_log.c dietlibc-0.30-libm-i386/libm/w_log.c
  441. --- dietlibc-0.30/libm/w_log.c 2006-06-28 20:15:02.000000000 +0200
  442. +++ dietlibc-0.30-libm-i386/libm/w_log.c 2006-06-28 20:08:32.000000000 +0200
  443. @@ -23,9 +23,9 @@
  444. #ifdef __STDC__
  445. - double log(double x) /* wrapper log */
  446. + double __log(double x) /* wrapper log */
  447. #else
  448. - double log(x) /* wrapper log */
  449. + double __log(x) /* wrapper log */
  450. double x;
  451. #endif
  452. {
  453. @@ -41,3 +41,4 @@
  454. return __kernel_standard(x,x,17); /* log(x<0) */
  455. #endif
  456. }
  457. +weak_alias (__log, log)
  458. diff -ur dietlibc-0.30/libm/w_log10.c dietlibc-0.30-libm-i386/libm/w_log10.c
  459. --- dietlibc-0.30/libm/w_log10.c 2006-06-28 20:15:02.000000000 +0200
  460. +++ dietlibc-0.30-libm-i386/libm/w_log10.c 2006-06-28 20:08:11.000000000 +0200
  461. @@ -23,9 +23,9 @@
  462. #ifdef __STDC__
  463. - double log10(double x) /* wrapper log10 */
  464. + double __log10(double x) /* wrapper log10 */
  465. #else
  466. - double log10(x) /* wrapper log10 */
  467. + double __log10(x) /* wrapper log10 */
  468. double x;
  469. #endif
  470. {
  471. @@ -44,3 +44,4 @@
  472. return z;
  473. #endif
  474. }
  475. +weak_alias (__log10, log10)
  476. diff -ur dietlibc-0.30/libm/w_sqrt.c dietlibc-0.30-libm-i386/libm/w_sqrt.c
  477. --- dietlibc-0.30/libm/w_sqrt.c 2006-06-28 20:15:02.000000000 +0200
  478. +++ dietlibc-0.30-libm-i386/libm/w_sqrt.c 2006-06-28 20:07:09.000000000 +0200
  479. @@ -22,9 +22,9 @@
  480. #include "math_private.h"
  481. #ifdef __STDC__
  482. - double sqrt(double x) /* wrapper sqrt */
  483. + double __sqrt(double x) /* wrapper sqrt */
  484. #else
  485. - double sqrt(x) /* wrapper sqrt */
  486. + double __sqrt(x) /* wrapper sqrt */
  487. double x;
  488. #endif
  489. {
  490. @@ -40,3 +40,4 @@
  491. return z;
  492. #endif
  493. }
  494. +weak_alias (__sqrt, sqrt)