Permalink
Browse files

auto import from //depot/cupcake/@135843

  • Loading branch information...
1 parent f177c94 commit b07e1d9fd8d9e4e03698e0bd9bf77154c5390326 The Android Open Source Project committed Mar 4, 2009
Showing with 13,063 additions and 0 deletions.
  1. +39 −0 Android.mk
  2. +102 −0 MD5
  3. 0 MODULE_LICENSE_BSD_LIKE
  4. +77 −0 changes
  5. +3,309 −0 configure
  6. +14 −0 configure.in
  7. +105 −0 e_acos.c
  8. +65 −0 e_acosh.c
  9. +114 −0 e_asin.c
  10. +123 −0 e_atan2.c
  11. +68 −0 e_atanh.c
  12. +89 −0 e_cosh.c
  13. +156 −0 e_exp.c
  14. +140 −0 e_fmod.c
  15. +33 −0 e_gamma.c
  16. +32 −0 e_gamma_r.c
  17. +115 −0 e_hypot.c
  18. +478 −0 e_j0.c
  19. +477 −0 e_j1.c
  20. +272 −0 e_jn.c
  21. +33 −0 e_lgamma.c
  22. +304 −0 e_lgamma_r.c
  23. +139 −0 e_log.c
  24. +91 −0 e_log10.c
  25. +309 −0 e_pow.c
  26. +175 −0 e_rem_pio2.c
  27. +77 −0 e_remainder.c
  28. +51 −0 e_scalb.c
  29. +82 −0 e_sinh.c
  30. +450 −0 e_sqrt.c
  31. +216 −0 fdlibm.h
  32. +168 −0 index
  33. +180 −0 index.html
  34. +92 −0 k_cos.c
  35. +316 −0 k_rem_pio2.c
  36. +74 −0 k_sin.c
  37. +733 −0 k_standard.c
  38. +148 −0 k_tan.c
  39. +154 −0 makefile.in
  40. +261 −0 readme
  41. +61 −0 s_asinh.c
  42. +134 −0 s_atan.c
  43. +87 −0 s_cbrt.c
  44. +78 −0 s_ceil.c
  45. +31 −0 s_copysign.c
  46. +78 −0 s_cos.c
  47. +310 −0 s_erf.c
  48. +216 −0 s_expm1.c
  49. +29 −0 s_fabs.c
  50. +31 −0 s_finite.c
  51. +79 −0 s_floor.c
  52. +56 −0 s_frexp.c
  53. +46 −0 s_ilogb.c
  54. +34 −0 s_isnan.c
  55. +28 −0 s_ldexp.c
  56. +35 −0 s_lib_version.c
  57. +165 −0 s_log1p.c
  58. +38 −0 s_logb.c
  59. +26 −0 s_matherr.c
  60. +80 −0 s_modf.c
  61. +78 −0 s_nextafter.c
  62. +84 −0 s_rint.c
  63. +63 −0 s_scalbn.c
  64. +2 −0 s_signgam.c
  65. +30 −0 s_significand.c
  66. +78 −0 s_sin.c
  67. +72 −0 s_tan.c
  68. +82 −0 s_tanh.c
  69. +39 −0 w_acos.c
  70. +39 −0 w_acosh.c
  71. +41 −0 w_asin.c
  72. +40 −0 w_atan2.c
  73. +42 −0 w_atanh.c
  74. +38 −0 w_cosh.c
  75. +48 −0 w_exp.c
  76. +39 −0 w_fmod.c
  77. +46 −0 w_gamma.c
  78. +42 −0 w_gamma_r.c
  79. +39 −0 w_hypot.c
  80. +65 −0 w_j0.c
  81. +66 −0 w_j1.c
  82. +88 −0 w_jn.c
  83. +46 −0 w_lgamma.c
  84. +42 −0 w_lgamma_r.c
  85. +39 −0 w_log.c
  86. +42 −0 w_log10.c
  87. +60 −0 w_pow.c
  88. +38 −0 w_remainder.c
  89. +56 −0 w_scalb.c
  90. +38 −0 w_sinh.c
  91. +38 −0 w_sqrt.c
View
@@ -0,0 +1,39 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES:= \
+ k_standard.c k_rem_pio2.c \
+ k_cos.c k_sin.c k_tan.c \
+ e_acos.c e_acosh.c e_asin.c e_atan2.c \
+ e_atanh.c e_cosh.c e_exp.c e_fmod.c \
+ e_gamma.c e_gamma_r.c e_hypot.c e_j0.c \
+ e_j1.c e_jn.c e_lgamma.c e_lgamma_r.c \
+ e_log.c e_log10.c e_pow.c e_rem_pio2.c e_remainder.c \
+ e_scalb.c e_sinh.c e_sqrt.c \
+ w_acos.c w_acosh.c w_asin.c w_atan2.c \
+ w_atanh.c w_cosh.c w_exp.c w_fmod.c \
+ w_gamma.c w_gamma_r.c w_hypot.c w_j0.c \
+ w_j1.c w_jn.c w_lgamma.c w_lgamma_r.c \
+ w_log.c w_log10.c w_pow.c w_remainder.c \
+ w_scalb.c w_sinh.c w_sqrt.c \
+ s_asinh.c s_atan.c s_cbrt.c s_ceil.c s_copysign.c \
+ s_cos.c s_erf.c s_expm1.c s_fabs.c s_finite.c s_floor.c \
+ s_frexp.c s_ilogb.c s_isnan.c s_ldexp.c s_lib_version.c \
+ s_log1p.c s_logb.c s_matherr.c s_modf.c s_nextafter.c \
+ s_rint.c s_scalbn.c s_signgam.c s_significand.c s_sin.c \
+ s_tan.c s_tanh.c
+
+LOCAL_MODULE := libfdlibm
+
+LOCAL_SYSTEM_SHARED_LIBRARIES :=
+
+# Necessary to guarantee that the FDLIBM functions are in "IEEE spirit",
+# i.e. to guarantee that the IEEE 754 core functions are used
+LOCAL_CFLAGS := "-D_IEEE_LIBM"
+
+ifneq ($(filter $(TARGET_ARCH),arm x86),)
+# When __LITTLE_ENDIAN is set, the source will compile for little endian cpus.
+LOCAL_CFLAGS += "-D__LITTLE_ENDIAN"
+endif
+
+include $(BUILD_STATIC_LIBRARY)
View
102 MD5
@@ -0,0 +1,102 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+
+# netlib-bl master Mon May 17 03:35:14 EDT 2004
+# http://cm.bell-labs.com/netlib/crc/netlib-bl.html
+xqdt0SfICJbYU285K5kg9g changes
+vXBJ84aVdIHpqtTdjwinqQ configure
+ydqnyJgYpziE8zrr/WU4/g configure.in
+P2sEgHh/v3RHTsLuS1UeTw e_acos.c
+SReAT7diAMhuAtChHm1nLQ e_acosh.c
+xsqL2/A2cuTbG4ZabFtgQg e_asin.c
+uXwtBvNUrnsWp2lWS/ZPzg e_atan2.c
+7+Zmokqk6yU+4B/dPWLVnQ e_atanh.c
+FFRFIVaqeYuPIbZDy+GPLQ e_cosh.c
+lGljkqn5/mLxl0XkN4fWxQ e_exp.c
+ladlzVeoGGhd+r/RvPJUsw e_fmod.c
+WwWDDWUnqoeniw5c6ShWUQ e_gamma.c
++rYzLHXdv60VBR9GpEVA7Q e_gamma_r.c
+BUemgwLOjQ2tpsWv8fQOWA e_hypot.c
+um0j/BMMHd0mEzOIg/iTIw e_j0.c
+023e/9GjB47rNsYlxW9/Ug e_j1.c
+X2UtLCi/Hg5Xx0ZAiaUHXQ e_jn.c
+bBStzzLdDSzNsVlhy/Isdw e_lgamma.c
+pYie2c6jvQAObJMq2IhNGQ e_lgamma_r.c
+mj6pKYX+E8euiAP6577R4A e_log.c
+fEuDo4brNfU8HRqvM0syqQ e_log10.c
+ryT3m0UgTGJarnV+NzNhNQ e_pow.c
+L/2ye70MqZA7YqsCtgMQlQ e_rem_pio2.c
+kdemnBPRKpa3661lnjEcyw e_remainder.c
+DW4MDjGPgkJLg4PBGX5yGg e_scalb.c
+LiW0gFPaN5JVIuQZW4XbVQ e_sinh.c
+JPBrE86qzL59qF5PFCDA/Q e_sqrt.c
+uHfh5HgtlKGibLxJYYBFCg fdlibm.h
+G21yQjn+xOAex15TPeLfBQ index
+sDIZFCqsPOqSl9ykcjky8w k_cos.c
+1t3fuGir+TOYRAO0N8Chng k_rem_pio2.c
+1Fi/fEeHcsIq50vVplKVzQ k_sin.c
+1ufaWqW1PRP1cOuPtb7O7A k_standard.c
+0axra6/ERRuXJJcCc5js/Q k_tan.c
+wDXTC07GG4Bd+EnUjk/MVw makefile
+0ffZi8Ey9JbRT9vCxp4LLg makefile.in
+Tw07rtlUiXvlgwzbRb632Q readme
+WDSYQ245qaKiYXtEn9qSdg s_asinh.c
+ucf0ncFkne9OW4Uv+CxRrQ s_atan.c
+w2/WG3x7j7+b9uydji3FZg s_cbrt.c
+YqCYHnPBw1dDvbYwjWJNbw s_ceil.c
+JX6gTEPMyjuTQclyjiLC2w s_copysign.c
+91ARVh9L6LTc2i9VGu9DSg s_cos.c
+0Jwhkbo/6ewEss7CW1PI9w s_erf.c
+cpq+MFqK2Vi883y8LA/hxA s_expm1.c
+K6LRiJVYLNzThuQaOyibVA s_fabs.c
+uvNnsV4Fmj90jAbySXd54w s_finite.c
+etEc6khe9K27aeE+6ZpW0A s_floor.c
+5KDyugUMkjOsPsq6fygPjg s_frexp.c
+UWvuamu8A+XGSwi9twc/vQ s_ilogb.c
+/KmGbiWbhyiZCru0HbLUpw s_isnan.c
++OZ/WHEZ12FiA8mZ7hk4rA s_ldexp.c
+g33PLRuQjT5HRX4ZozySGA s_lib_version.c
+MHsSOIzpsdw4sVVtAu4GTQ s_log1p.c
+qWJm/3AkemsNi7aF295SGA s_logb.c
+QGkKHdTmho+2Xbd0rObCmA s_matherr.c
+Tfmhq38TAJspcNpJT9Tcww s_modf.c
+k+onjlepmLUH/9xA+Wdqaw s_nextafter.c
+omWcOHAaAKLjMuuSirX8Lw s_rint.c
+6w2X17eamkvE+pCZlPm8Xg s_scalbn.c
+z93vZw0EQ1IQUSqJMRu/IA s_signgam.c
+S3OtNFaARNk7TltgUoVs+Q s_significand.c
+yYuvBWZCWR0Y/YT6pmIr0w s_sin.c
+LhJVti8VVlaWbptWR88XGg s_tan.c
+QfLTJ1iGqgC7RhZWHi0PTQ s_tanh.c
+vR2IBXoLtHZh+GHCV+Iydg w_acos.c
+ZbhbPlbMYiu8Z1NXaDiPDQ w_acosh.c
+KsvLAMHSqu1b72p5kYkJyQ w_asin.c
+ENaJir3y0hZ4yWWKzBs89w w_atan2.c
++jLlTCXpNVY6yuncPyfWyw w_atanh.c
+84kcBUnnIU16mG+cChPbRA w_cosh.c
+bjKr6q9UZYgun3LytNO+1A w_exp.c
+WQG0A3Gk/MlFkjx4h3yw6Q w_fmod.c
+MNIqntvhf0fvFvKfzcPR1g w_gamma.c
+TnrF3OPpiAEUymzT0PZiDw w_gamma_r.c
+OLFqJDwkIZmIF7vm6BQuGQ w_hypot.c
+cvayKIzuZlCxTj6dLXe+qQ w_j0.c
+PB3rNmFTtPoMICeJFkAMeg w_j1.c
+7qCc7gGMiRIp1GY0UQ3gLg w_jn.c
+8URUp8BmBP32s79GRllwdw w_lgamma.c
+AJyN8jlYXVe1Dwx+w6qlEQ w_lgamma_r.c
+8fmXSpy3xt0Mgd+9BkKHRg w_log.c
+/+qteyYx+IKTmLuv1fxqPQ w_log10.c
++o/ImP/JfknQmSxM4TA1ag w_pow.c
+BkF5AkqkRA4Py2Y1p0bQIA w_remainder.c
+77arOaApwrSQngHv26UWrg w_scalb.c
+SgGvz6WUAuHs90sDA/GDbA w_sinh.c
+2aR8vbagrVvvMtXPktM6CQ w_sqrt.c
+
+-----BEGIN PGP SIGNATURE-----
+Version: 2.6.2
+
+iQCVAwUBQKhrNb5pvxO9gjtZAQGFgAP9GkR1sBbpgy/sXcoyIj/LMfystMc5ljYC
+WeqSep2+0gmE3l/aLWBaEL/ngyVY8fWNV7lll/DKGA4oJBTWtozHhWGl2g8+tb+L
+afoMIwLTbSMMkB4bPGfZm1MevZmOn5g4WLOHQ3aTPlykkBw8QDgmLm+7cWZrbHao
+SJ+0t7F/FWI=
+=aGTu
+-----END PGP SIGNATURE-----
View
No changes.
View
77 changes
@@ -0,0 +1,77 @@
+21 Oct 2002
+bug fix in e_pow.c from "David G Hough at validlab.com" <validlab@validlab.com>.
+credit for bug report goes to andrew_johnson@uk.ibm.com
+test example:
+-----------------------------
+static int fail=0;
+
+trypow(x,y,z)
+double x,y,z;
+{
+extern double ieee_pow();
+double p ;
+
+p = ieee_pow(x,y);
+if (p != z) {
+ printf(" pow failure x %e y %e computed %e correct %e \n",x,y,p,z);
+ fail++;
+ return;
+}
+if (1/p != 1/z) {
+ printf(" pow failure x %e y %e computed %e correct %e \n",x,y,p,z);
+ fail++;
+ return;
+}
+}
+
+main()
+{
+
+trypow( 1.0000000001, 1.0000000001E10, 2.7182820535066154);
+trypow(-1.0000000001, 1.0000000001E10, -2.7182820535066154);
+trypow(-0.001, 1.0000000001E10, -0.0);
+trypow(-1000.0, 1.0000000001E10, -1.0/0.0);
+
+if (fail == 0) {
+ printf(" fdlibm e_pow.c seems to be current \n");
+ exit(0);
+}
+else {
+ printf(" fdlibm e_pow.c seems to be out of date \n");
+ exit(1);
+}
+
+}
+-----------------------------
+
+
+
+What's new in FDLIBM 5.3?
+
+CONFIGURE
+ To build FDLIBM, edit the supplied Makefile or create
+ a local Makefile by running "sh configure"
+ using the supplied configure script contributed by Nelson Beebe
+
+BUGS FIXED
+
+ 1. e_pow.c incorrect results when
+ x is very close to -1.0 and y is very large, e.g.
+ ieee_pow(-1.0000000000000002e+00,4.5035996273704970e+15) = 0
+ ieee_pow(-9.9999999999999978e-01,4.5035996273704970e+15) = 0
+ Correct results are close to -e and -1/e.
+
+ 2. k_tan.c error was > 1 ulp target for FDLIBM
+ 5.2: Worst error at least 1.45 ulp at
+ ieee_tan(1.7765241907548024E+269) = 1.7733884462610958E+16
+ 5.3: Worst error 0.96 ulp
+
+NOT FIXED YET
+
+ 3. Compiler failure on non-standard code
+ Statements like
+ *(1+(int*)&t1) = 0;
+ are not standard C and cause some optimizing compilers (e.g. GCC)
+ to generate bad code under optimization. These cases
+ are to be addressed in the next release.
+
Oops, something went wrong.

0 comments on commit b07e1d9

Please sign in to comment.