source:
patches/glibc-2.4-mips_fixes-3.patch@
a3b6c75
Last change on this file since a3b6c75 was cb666b8, checked in by , 18 years ago | |
---|---|
|
|
File size: 82.1 KB |
-
ports/sysdeps/mips/fpu/feholdexcpt.c
Submitted By: Jim Gifford (patches at jg555 dot com) Date: 2006-08-11 Initial Package Version: 2.4 Origin: Daniel Jacobwitz Upstream Status: Applied Description: Fixes for MIPS architecture Fixes changes due to Kernel ABI change in 2.6.12 Fixes Testsuites Errors Fixes Missing Symbols in Libm diff -Naur glibc-2.4.orig/ports/sysdeps/mips/fpu/feholdexcpt.c glibc-2.4/ports/sysdeps/mips/fpu/feholdexcpt.c
old new 36 36 37 37 return 0; 38 38 } 39 libm_hidden_def (feholdexcept) -
ports/sysdeps/mips/fpu/fesetround.c
diff -Naur glibc-2.4.orig/ports/sysdeps/mips/fpu/fesetround.c glibc-2.4/ports/sysdeps/mips/fpu/fesetround.c
old new 41 41 42 42 return 0; 43 43 } 44 libm_hidden_def (fesetround) -
ports/sysdeps/mips/ldsodefs.h
diff -Naur glibc-2.4.orig/ports/sysdeps/mips/ldsodefs.h glibc-2.4/ports/sysdeps/mips/ldsodefs.h
old new 1 /* Run-time dynamic linker data structures for loaded ELF shared objects. 2 Copyright (C) 2006 Free Software Foundation, Inc. 3 This file is part of the GNU C Library. 4 5 The GNU C Library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Lesser General Public 7 License as published by the Free Software Foundation; either 8 version 2.1 of the License, or (at your option) any later version. 9 10 The GNU C Library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public 16 License along with the GNU C Library; if not, write to the Free 17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 18 02111-1307 USA. */ 19 20 #ifndef __LDSODEFS_H \ 21 #define _MIPS_LDSODEFS_H 1 22 23 #include <elf.h> 24 25 struct La_mips_32_regs; 26 struct La_mips_32_retval; 27 struct La_mips_64_regs; 28 struct La_mips_64_retval; 29 30 #define ARCH_PLTENTER_MEMBERS \ 31 Elf32_Addr (*mips_o32_gnu_pltenter) (Elf32_Sym *, unsigned int, \ 32 uintptr_t *, uintptr_t *, \ 33 const struct La_mips_32_regs *, \ 34 unsigned int *, const char *name, \ 35 long int *framesizep); \ 36 Elf32_Addr (*mips_n32_gnu_pltenter) (Elf32_Sym *, unsigned int, \ 37 uintptr_t *, uintptr_t *, \ 38 const struct La_mips_64_regs *, \ 39 unsigned int *, const char *name, \ 40 long int *framesizep); \ 41 Elf64_Addr (*mips_n64_gnu_pltenter) (Elf64_Sym *, unsigned int, \ 42 uintptr_t *, uintptr_t *, \ 43 const struct La_mips_64_regs *, \ 44 unsigned int *, const char *name, \ 45 long int *framesizep); 46 47 #define ARCH_PLTEXIT_MEMBERS \ 48 unsigned int (*mips_o32_gnu_pltexit) (Elf32_Sym *, unsigned int, \ 49 uintptr_t *, uintptr_t *, \ 50 const struct La_mips_32_regs *, \ 51 struct La_mips_32_retval *, \ 52 const char *); \ 53 unsigned int (*mips_n32_gnu_pltexit) (Elf32_Sym *, unsigned int, \ 54 uintptr_t *, uintptr_t *, \ 55 const struct La_mips_64_regs *, \ 56 struct La_mips_64_retval *, \ 57 const char *); \ 58 unsigned int (*mips_n64_gnu_pltexit) (Elf64_Sym *, unsigned int, \ 59 uintptr_t *, uintptr_t *, \ 60 const struct La_mips_64_regs *, \ 61 struct La_mips_64_retval *, \ 62 const char *); 63 64 #include_next <ldsodefs.h> 65 66 #endif -
ports/sysdeps/mips/mips64/n32/libm-test-ulps
diff -Naur glibc-2.4.orig/ports/sysdeps/mips/mips64/n32/libm-test-ulps glibc-2.4/ports/sysdeps/mips/mips64/n32/libm-test-ulps
old new 1 # Begin of automatic generation 2 3 # atan2 4 Test "atan2 (-0.00756827042671106339, -.001792735857538728036) == -1.80338464113663849327153994379639112": 5 ildouble: 1 6 ldouble: 1 7 Test "atan2 (-0.75, -1.0) == -2.49809154479650885165983415456218025": 8 float: 1 9 ifloat: 1 10 ildouble: 1 11 ldouble: 1 12 Test "atan2 (0.75, -1.0) == 2.49809154479650885165983415456218025": 13 float: 1 14 ifloat: 1 15 ildouble: 1 16 ldouble: 1 17 Test "atan2 (1.390625, 0.9296875) == 0.981498387184244311516296577615519772": 18 float: 1 19 ifloat: 1 20 ildouble: 1 21 ldouble: 1 22 23 # atanh 24 Test "atanh (0.75) == 0.972955074527656652552676371721589865": 25 float: 1 26 ifloat: 1 27 28 # cacos 29 Test "Imaginary part of: cacos (0.75 + 1.25 i) == 1.11752014915610270578240049553777969 - 1.13239363160530819522266333696834467 i": 30 ildouble: 1 31 ldouble: 1 32 33 # cacosh 34 Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i": 35 float: 1 36 ifloat: 1 37 ildouble: 1 38 ldouble: 1 39 40 # casin 41 Test "Real part of: casin (0.75 + 1.25 i) == 0.453276177638793913448921196101971749 + 1.13239363160530819522266333696834467 i": 42 double: 1 43 float: 1 44 idouble: 1 45 ifloat: 1 46 Test "Imaginary part of: casin (0.75 + 1.25 i) == 0.453276177638793913448921196101971749 + 1.13239363160530819522266333696834467 i": 47 ildouble: 1 48 ldouble: 1 49 50 # casinh 51 Test "Real part of: casinh (-2 - 3 i) == -1.9686379257930962917886650952454982 - 0.96465850440760279204541105949953237 i": 52 double: 5 53 float: 1 54 idouble: 5 55 ifloat: 1 56 ildouble: 4 57 ldouble: 4 58 Test "Imaginary part of: casinh (-2 - 3 i) == -1.9686379257930962917886650952454982 - 0.96465850440760279204541105949953237 i": 59 double: 3 60 float: 6 61 idouble: 3 62 ifloat: 6 63 ildouble: 2 64 ldouble: 2 65 Test "Real part of: casinh (0.75 + 1.25 i) == 1.03171853444778027336364058631006594 + 0.911738290968487636358489564316731207 i": 66 float: 1 67 ifloat: 1 68 ildouble: 1 69 ldouble: 1 70 Test "Imaginary part of: casinh (0.75 + 1.25 i) == 1.03171853444778027336364058631006594 + 0.911738290968487636358489564316731207 i": 71 double: 1 72 float: 1 73 idouble: 1 74 ifloat: 1 75 ildouble: 1 76 ldouble: 1 77 78 # catan 79 Test "Imaginary part of: catan (-2 - 3 i) == -1.4099210495965755225306193844604208 - 0.22907268296853876629588180294200276 i": 80 double: 1 81 float: 1 82 idouble: 1 83 ifloat: 1 84 Test "Imaginary part of: catan (0.75 + 1.25 i) == 1.10714871779409050301706546017853704 + 0.549306144334054845697622618461262852 i": 85 ildouble: 1 86 ldouble: 1 87 88 # catanh 89 Test "Real part of: catanh (-2 - 3 i) == -0.14694666622552975204743278515471595 - 1.3389725222944935611241935759091443 i": 90 double: 4 91 idouble: 4 92 Test "Real part of: catanh (0.75 + 1.25 i) == 0.261492138795671927078652057366532140 + 0.996825126463918666098902241310446708 i": 93 double: 1 94 idouble: 1 95 ildouble: 1 96 ldouble: 1 97 Test "Imaginary part of: catanh (0.75 + 1.25 i) == 0.261492138795671927078652057366532140 + 0.996825126463918666098902241310446708 i": 98 ildouble: 1 99 ldouble: 1 100 101 # cbrt 102 Test "cbrt (-0.001) == -0.1": 103 ildouble: 1 104 ldouble: 1 105 Test "cbrt (-27.0) == -3.0": 106 double: 1 107 idouble: 1 108 Test "cbrt (0.75) == 0.908560296416069829445605878163630251": 109 double: 1 110 idouble: 1 111 Test "cbrt (0.9921875) == 0.997389022060725270579075195353955217": 112 double: 1 113 idouble: 1 114 115 # ccos 116 Test "Real part of: ccos (-2 - 3 i) == -4.18962569096880723013255501961597373 - 9.10922789375533659797919726277886212 i": 117 ildouble: 1 118 ldouble: 1 119 Test "Imaginary part of: ccos (-2 - 3 i) == -4.18962569096880723013255501961597373 - 9.10922789375533659797919726277886212 i": 120 float: 1 121 ifloat: 1 122 ildouble: 1 123 ldouble: 1 124 Test "Real part of: ccos (0.75 + 1.25 i) == 1.38173873063425888530729933139078645 - 1.09193013555397466170919531722024128 i": 125 double: 1 126 float: 1 127 idouble: 1 128 ifloat: 1 129 Test "Imaginary part of: ccos (0.75 + 1.25 i) == 1.38173873063425888530729933139078645 - 1.09193013555397466170919531722024128 i": 130 float: 1 131 ifloat: 1 132 133 # ccosh 134 Test "Real part of: ccosh (-2 - 3 i) == -3.72454550491532256547397070325597253 + 0.511822569987384608834463849801875634 i": 135 float: 1 136 ifloat: 1 137 ildouble: 1 138 ldouble: 1 139 Test "Imaginary part of: ccosh (-2 - 3 i) == -3.72454550491532256547397070325597253 + 0.511822569987384608834463849801875634 i": 140 float: 1 141 ifloat: 1 142 ildouble: 1 143 ldouble: 1 144 Test "Real part of: ccosh (0.75 + 1.25 i) == 0.408242591877968807788852146397499084 + 0.780365930845853240391326216300863152 i": 145 double: 1 146 float: 1 147 idouble: 1 148 ifloat: 1 149 Test "Imaginary part of: ccosh (0.75 + 1.25 i) == 0.408242591877968807788852146397499084 + 0.780365930845853240391326216300863152 i": 150 float: 1 151 ifloat: 1 152 153 # cexp 154 Test "Real part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i": 155 ildouble: 1 156 ldouble: 1 157 Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i": 158 float: 1 159 ifloat: 1 160 ildouble: 1 161 ldouble: 1 162 Test "Real part of: cexp (0.75 + 1.25 i) == 0.667537446429131586942201977015932112 + 2.00900045494094876258347228145863909 i": 163 float: 1 164 ifloat: 1 165 Test "Imaginary part of: cexp (0.75 + 1.25 i) == 0.667537446429131586942201977015932112 + 2.00900045494094876258347228145863909 i": 166 ildouble: 1 167 ldouble: 1 168 169 # clog 170 Test "Real part of: clog (0.75 + 1.25 i) == 0.376885901188190075998919126749298416 + 1.03037682652431246378774332703115153 i": 171 float: 1 172 ifloat: 1 173 ildouble: 1 174 ldouble: 1 175 176 # clog10 177 Test "Imaginary part of: clog10 (-0 + inf i) == inf + pi/2*log10(e) i": 178 double: 1 179 float: 1 180 idouble: 1 181 ifloat: 1 182 Test "Imaginary part of: clog10 (-0 - inf i) == inf - pi/2*log10(e) i": 183 double: 1 184 float: 1 185 idouble: 1 186 ifloat: 1 187 Test "Real part of: clog10 (-2 - 3 i) == 0.556971676153418384603252578971164214 - 0.937554462986374708541507952140189646 i": 188 ildouble: 1 189 ldouble: 1 190 Test "Imaginary part of: clog10 (-2 - 3 i) == 0.556971676153418384603252578971164214 - 0.937554462986374708541507952140189646 i": 191 double: 1 192 idouble: 1 193 ildouble: 1 194 ldouble: 1 195 Test "Imaginary part of: clog10 (-3 + inf i) == inf + pi/2*log10(e) i": 196 double: 1 197 float: 1 198 idouble: 1 199 ifloat: 1 200 Test "Imaginary part of: clog10 (-3 - inf i) == inf - pi/2*log10(e) i": 201 double: 1 202 float: 1 203 idouble: 1 204 ifloat: 1 205 Test "Imaginary part of: clog10 (-inf + 0 i) == inf + pi*log10(e) i": 206 double: 1 207 float: 1 208 idouble: 1 209 ifloat: 1 210 Test "Imaginary part of: clog10 (-inf + 1 i) == inf + pi*log10(e) i": 211 double: 1 212 float: 1 213 idouble: 1 214 ifloat: 1 215 Test "Imaginary part of: clog10 (-inf + inf i) == inf + 3/4 pi*log10(e) i": 216 double: 1 217 idouble: 1 218 Test "Imaginary part of: clog10 (-inf - 0 i) == inf - pi*log10(e) i": 219 double: 1 220 float: 1 221 idouble: 1 222 ifloat: 1 223 Test "Imaginary part of: clog10 (-inf - 1 i) == inf - pi*log10(e) i": 224 double: 1 225 float: 1 226 idouble: 1 227 ifloat: 1 228 Test "Imaginary part of: clog10 (0 + inf i) == inf + pi/2*log10(e) i": 229 double: 1 230 float: 1 231 idouble: 1 232 ifloat: 1 233 Test "Imaginary part of: clog10 (0 - inf i) == inf - pi/2*log10(e) i": 234 double: 1 235 float: 1 236 idouble: 1 237 ifloat: 1 238 Test "Real part of: clog10 (0.75 + 1.25 i) == 0.163679467193165171449476605077428975 + 0.447486970040493067069984724340855636 i": 239 float: 1 240 ifloat: 1 241 Test "Imaginary part of: clog10 (0.75 + 1.25 i) == 0.163679467193165171449476605077428975 + 0.447486970040493067069984724340855636 i": 242 ildouble: 1 243 ldouble: 1 244 Test "Imaginary part of: clog10 (3 + inf i) == inf + pi/2*log10(e) i": 245 double: 1 246 float: 1 247 idouble: 1 248 ifloat: 1 249 Test "Imaginary part of: clog10 (3 - inf i) == inf - pi/2*log10(e) i": 250 double: 1 251 float: 1 252 idouble: 1 253 ifloat: 1 254 Test "Imaginary part of: clog10 (inf + inf i) == inf + pi/4*log10(e) i": 255 double: 1 256 float: 1 257 idouble: 1 258 ifloat: 1 259 Test "Imaginary part of: clog10 (inf - inf i) == inf - pi/4*log10(e) i": 260 double: 1 261 float: 1 262 idouble: 1 263 ifloat: 1 264 265 # cos 266 Test "cos (M_PI_6l * 2.0) == 0.5": 267 double: 1 268 idouble: 1 269 ildouble: 1 270 ldouble: 1 271 Test "cos (M_PI_6l * 4.0) == -0.5": 272 double: 2 273 float: 1 274 idouble: 2 275 ifloat: 1 276 ildouble: 1 277 ldouble: 1 278 279 # cpow 280 Test "Real part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i) == 0.331825439177608832276067945276730566 + 0.131338600281188544930936345230903032 i": 281 float: 1 282 ifloat: 1 283 Test "Imaginary part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i) == 0.331825439177608832276067945276730566 + 0.131338600281188544930936345230903032 i": 284 float: 1 285 ifloat: 1 286 Test "Real part of: cpow (0.75 + 1.25 i, 0.75 + 1.25 i) == 0.117506293914473555420279832210420483 + 0.346552747708338676483025352060418001 i": 287 double: 1 288 float: 4 289 idouble: 1 290 ifloat: 4 291 ildouble: 4 292 ldouble: 4 293 Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 0.0 i) == 0.75 + 1.25 i": 294 ildouble: 2 295 ldouble: 2 296 Test "Imaginary part of: cpow (0.75 + 1.25 i, 1.0 + 0.0 i) == 0.75 + 1.25 i": 297 ildouble: 1 298 ldouble: 1 299 Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 1.0 i) == 0.0846958290317209430433805274189191353 + 0.513285749182902449043287190519090481 i": 300 double: 2 301 float: 3 302 idouble: 2 303 ifloat: 3 304 ildouble: 10 305 ldouble: 10 306 Test "Real part of: cpow (2 + 0 i, 10 + 0 i) == 1024.0 + 0.0 i": 307 ildouble: 2 308 ldouble: 2 309 Test "Real part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i": 310 double: 1 311 float: 4 312 idouble: 1 313 ifloat: 4 314 ildouble: 3 315 ldouble: 3 316 Test "Imaginary part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i": 317 float: 2 318 ifloat: 2 319 Test "Imaginary part of: cpow (e + 0 i, 0 + 2 * M_PIl i) == 1.0 + 0.0 i": 320 double: 2 321 float: 2 322 idouble: 2 323 ifloat: 2 324 ildouble: 1 325 ldouble: 1 326 327 # csin 328 Test "Imaginary part of: csin (-2 - 3 i) == -9.15449914691142957346729954460983256 + 4.16890695996656435075481305885375484 i": 329 ildouble: 1 330 ldouble: 1 331 Test "Real part of: csin (0.75 + 1.25 i) == 1.28722291002649188575873510790565441 + 1.17210635989270256101081285116138863 i": 332 ildouble: 1 333 ldouble: 1 334 335 # csinh 336 Test "Real part of: csinh (-2 - 3 i) == 3.59056458998577995201256544779481679 - 0.530921086248519805267040090660676560 i": 337 ildouble: 1 338 ldouble: 1 339 Test "Imaginary part of: csinh (-2 - 3 i) == 3.59056458998577995201256544779481679 - 0.530921086248519805267040090660676560 i": 340 double: 1 341 idouble: 1 342 Test "Real part of: csinh (0.75 + 1.25 i) == 0.259294854551162779153349830618433028 + 1.22863452409509552219214606515777594 i": 343 float: 1 344 ifloat: 1 345 Test "Imaginary part of: csinh (0.75 + 1.25 i) == 0.259294854551162779153349830618433028 + 1.22863452409509552219214606515777594 i": 346 float: 1 347 ifloat: 1 348 349 # csqrt 350 Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i": 351 float: 1 352 ifloat: 1 353 ildouble: 1 354 ldouble: 1 355 Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i": 356 float: 1 357 ifloat: 1 358 ildouble: 1 359 ldouble: 1 360 Test "Imaginary part of: csqrt (0.75 + 1.25 i) == 1.05065169626078392338656675760808326 + 0.594868882070379067881984030639932657 i": 361 ildouble: 1 362 ldouble: 1 363 364 # ctan 365 Test "Real part of: ctan (-2 - 3 i) == 0.376402564150424829275122113032269084e-2 - 1.00323862735360980144635859782192726 i": 366 ildouble: 1 367 ldouble: 1 368 Test "Imaginary part of: ctan (-2 - 3 i) == 0.376402564150424829275122113032269084e-2 - 1.00323862735360980144635859782192726 i": 369 ildouble: 1 370 ldouble: 1 371 Test "Imaginary part of: ctan (0.75 + 1.25 i) == 0.160807785916206426725166058173438663 + 0.975363285031235646193581759755216379 i": 372 double: 1 373 idouble: 1 374 ildouble: 2 375 ldouble: 2 376 377 # ctanh 378 Test "Real part of: ctanh (-2 - 3 i) == -0.965385879022133124278480269394560686 + 0.988437503832249372031403430350121098e-2 i": 379 double: 1 380 float: 2 381 idouble: 1 382 ifloat: 2 383 ildouble: 1 384 ldouble: 1 385 Test "Imaginary part of: ctanh (-2 - 3 i) == -0.965385879022133124278480269394560686 + 0.988437503832249372031403430350121098e-2 i": 386 ildouble: 1 387 ldouble: 1 388 Test "Imaginary part of: ctanh (0 + pi/4 i) == 0.0 + 1.0 i": 389 float: 1 390 ifloat: 1 391 Test "Real part of: ctanh (0.75 + 1.25 i) == 1.37260757053378320258048606571226857 + 0.385795952609750664177596760720790220 i": 392 double: 1 393 idouble: 1 394 395 # erf 396 Test "erf (1.25) == 0.922900128256458230136523481197281140": 397 double: 1 398 idouble: 1 399 400 # erfc 401 Test "erfc (2.0) == 0.00467773498104726583793074363274707139": 402 double: 1 403 idouble: 1 404 Test "erfc (27.0) == 0.523704892378925568501606768284954709e-318": 405 ildouble: 1 406 ldouble: 1 407 Test "erfc (4.125) == 0.542340079956506600531223408575531062e-8": 408 double: 1 409 idouble: 1 410 411 # exp10 412 Test "exp10 (-1) == 0.1": 413 double: 2 414 float: 1 415 idouble: 2 416 ifloat: 1 417 Test "exp10 (0.75) == 5.62341325190349080394951039776481231": 418 double: 1 419 float: 1 420 idouble: 1 421 ifloat: 1 422 Test "exp10 (3) == 1000": 423 double: 6 424 float: 2 425 idouble: 6 426 ifloat: 2 427 ildouble: 1 428 ldouble: 1 429 430 # exp2 431 Test "exp2 (10) == 1024": 432 ildouble: 2 433 ldouble: 2 434 435 # expm1 436 Test "expm1 (0.75) == 1.11700001661267466854536981983709561": 437 double: 1 438 idouble: 1 439 Test "expm1 (1) == M_El - 1.0": 440 double: 1 441 float: 1 442 idouble: 1 443 ifloat: 1 444 ildouble: 1 445 ldouble: 1 446 447 # gamma 448 Test "gamma (-0.5) == log(2*sqrt(pi))": 449 ildouble: 1 450 ldouble: 1 451 452 # hypot 453 Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271": 454 float: 1 455 ifloat: 1 456 Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271": 457 float: 1 458 ifloat: 1 459 Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271": 460 float: 1 461 ifloat: 1 462 Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271": 463 float: 1 464 ifloat: 1 465 Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271": 466 float: 1 467 ifloat: 1 468 Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271": 469 float: 1 470 ifloat: 1 471 Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271": 472 float: 1 473 ifloat: 1 474 Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271": 475 float: 1 476 ifloat: 1 477 478 # j0 479 Test "j0 (-4.0) == -3.9714980986384737228659076845169804197562E-1": 480 double: 1 481 float: 1 482 idouble: 1 483 ifloat: 1 484 Test "j0 (0.75) == 0.864242275166648623555731103820923211": 485 float: 1 486 ifloat: 1 487 Test "j0 (10.0) == -0.245935764451348335197760862485328754": 488 double: 2 489 float: 1 490 idouble: 2 491 ifloat: 1 492 ildouble: 2 493 ldouble: 2 494 Test "j0 (2.0) == 0.223890779141235668051827454649948626": 495 float: 2 496 ifloat: 2 497 ildouble: 2 498 ldouble: 2 499 Test "j0 (4.0) == -3.9714980986384737228659076845169804197562E-1": 500 double: 1 501 float: 1 502 idouble: 1 503 ifloat: 1 504 Test "j0 (8.0) == 0.171650807137553906090869407851972001": 505 float: 1 506 ifloat: 1 507 ildouble: 1 508 ldouble: 1 509 510 # j1 511 Test "j1 (-1.0) == -0.440050585744933515959682203718914913": 512 ildouble: 1 513 ldouble: 1 514 Test "j1 (0.75) == 0.349243602174862192523281016426251335": 515 ildouble: 1 516 ldouble: 1 517 Test "j1 (1.0) == 0.440050585744933515959682203718914913": 518 ildouble: 1 519 ldouble: 1 520 Test "j1 (10.0) == 0.0434727461688614366697487680258592883": 521 float: 2 522 ifloat: 2 523 ildouble: 2 524 ldouble: 2 525 Test "j1 (2.0) == 0.576724807756873387202448242269137087": 526 double: 1 527 idouble: 1 528 Test "j1 (8.0) == 0.234636346853914624381276651590454612": 529 double: 1 530 idouble: 1 531 ildouble: 4 532 ldouble: 4 533 534 # jn 535 Test "jn (0, -4.0) == -3.9714980986384737228659076845169804197562E-1": 536 double: 1 537 float: 1 538 idouble: 1 539 ifloat: 1 540 Test "jn (0, 0.75) == 0.864242275166648623555731103820923211": 541 float: 1 542 ifloat: 1 543 Test "jn (0, 10.0) == -0.245935764451348335197760862485328754": 544 double: 2 545 float: 1 546 idouble: 2 547 ifloat: 1 548 ildouble: 2 549 ldouble: 2 550 Test "jn (0, 2.0) == 0.223890779141235668051827454649948626": 551 float: 2 552 ifloat: 2 553 ildouble: 2 554 ldouble: 2 555 Test "jn (0, 4.0) == -3.9714980986384737228659076845169804197562E-1": 556 double: 1 557 float: 1 558 idouble: 1 559 ifloat: 1 560 Test "jn (0, 8.0) == 0.171650807137553906090869407851972001": 561 float: 1 562 ifloat: 1 563 ildouble: 1 564 ldouble: 1 565 Test "jn (1, -1.0) == -0.440050585744933515959682203718914913": 566 ildouble: 1 567 ldouble: 1 568 Test "jn (1, 0.75) == 0.349243602174862192523281016426251335": 569 ildouble: 1 570 ldouble: 1 571 Test "jn (1, 1.0) == 0.440050585744933515959682203718914913": 572 ildouble: 1 573 ldouble: 1 574 Test "jn (1, 10.0) == 0.0434727461688614366697487680258592883": 575 float: 2 576 ifloat: 2 577 ildouble: 2 578 ldouble: 2 579 Test "jn (1, 2.0) == 0.576724807756873387202448242269137087": 580 double: 1 581 idouble: 1 582 Test "jn (1, 8.0) == 0.234636346853914624381276651590454612": 583 double: 1 584 idouble: 1 585 ildouble: 4 586 ldouble: 4 587 Test "jn (10, -1.0) == 0.263061512368745320699785368779050294e-9": 588 ildouble: 1 589 ldouble: 1 590 Test "jn (10, 0.125) == 0.250543369809369890173993791865771547e-18": 591 double: 1 592 float: 1 593 idouble: 1 594 ifloat: 1 595 ildouble: 1 596 ldouble: 1 597 Test "jn (10, 0.75) == 0.149621713117596814698712483621682835e-10": 598 double: 1 599 float: 1 600 idouble: 1 601 ifloat: 1 602 ildouble: 1 603 ldouble: 1 604 Test "jn (10, 1.0) == 0.263061512368745320699785368779050294e-9": 605 ildouble: 1 606 ldouble: 1 607 Test "jn (10, 10.0) == 0.207486106633358857697278723518753428": 608 double: 4 609 float: 3 610 idouble: 4 611 ifloat: 3 612 ildouble: 2 613 ldouble: 2 614 Test "jn (10, 2.0) == 0.251538628271673670963516093751820639e-6": 615 float: 4 616 ifloat: 4 617 Test "jn (3, 0.125) == 0.406503832554912875023029337653442868e-4": 618 double: 1 619 float: 1 620 idouble: 1 621 ifloat: 1 622 Test "jn (3, 0.75) == 0.848438342327410884392755236884386804e-2": 623 double: 1 624 float: 1 625 idouble: 1 626 ifloat: 1 627 Test "jn (3, 10.0) == 0.0583793793051868123429354784103409563": 628 double: 3 629 float: 1 630 idouble: 3 631 ifloat: 1 632 ildouble: 2 633 ldouble: 2 634 Test "jn (3, 2.0) == 0.128943249474402051098793332969239835": 635 double: 1 636 float: 2 637 idouble: 1 638 ifloat: 2 639 640 # lgamma 641 Test "lgamma (-0.5) == log(2*sqrt(pi))": 642 ildouble: 1 643 ldouble: 1 644 Test "lgamma (0.7) == 0.260867246531666514385732417016759578": 645 double: 1 646 float: 1 647 idouble: 1 648 ifloat: 1 649 ildouble: 1 650 ldouble: 1 651 Test "lgamma (1.2) == -0.853740900033158497197028392998854470e-1": 652 double: 1 653 float: 2 654 idouble: 1 655 ifloat: 2 656 ildouble: 1 657 ldouble: 1 658 659 # log10 660 Test "log10 (0.75) == -0.124938736608299953132449886193870744": 661 double: 1 662 float: 2 663 idouble: 1 664 ifloat: 2 665 Test "log10 (e) == log10(e)": 666 float: 1 667 ifloat: 1 668 ildouble: 1 669 ldouble: 1 670 671 # log1p 672 Test "log1p (-0.25) == -0.287682072451780927439219005993827432": 673 float: 1 674 ifloat: 1 675 676 # log2 677 Test "log2 (0.75) == -.415037499278843818546261056052183492": 678 ildouble: 1 679 ldouble: 1 680 681 # sincos 682 Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.5 in cos_res": 683 double: 1 684 idouble: 1 685 ildouble: 1 686 ldouble: 1 687 Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in sin_res": 688 double: 1 689 float: 1 690 idouble: 1 691 ifloat: 1 692 ildouble: 1 693 ldouble: 1 694 Test "sincos (pi/6, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in cos_res": 695 float: 1 696 ifloat: 1 697 698 # sqrt 699 Test "sqrt (2) == M_SQRT2l": 700 ildouble: 1 701 ldouble: 1 702 703 # tanh 704 Test "tanh (-0.75) == -0.635148952387287319214434357312496495": 705 ildouble: 1 706 ldouble: 1 707 Test "tanh (-1.0) == -0.7615941559557648881194582826047935904": 708 ildouble: 1 709 ldouble: 1 710 Test "tanh (0.75) == 0.635148952387287319214434357312496495": 711 ildouble: 1 712 ldouble: 1 713 Test "tanh (1.0) == 0.7615941559557648881194582826047935904": 714 ildouble: 1 715 ldouble: 1 716 717 # tgamma 718 Test "tgamma (-0.5) == -2 sqrt (pi)": 719 double: 1 720 float: 1 721 idouble: 1 722 ifloat: 1 723 ildouble: 1 724 ldouble: 1 725 Test "tgamma (0.5) == sqrt (pi)": 726 float: 1 727 ifloat: 1 728 Test "tgamma (0.7) == 1.29805533264755778568117117915281162": 729 double: 1 730 float: 1 731 idouble: 1 732 ifloat: 1 733 Test "tgamma (4) == 6": 734 ildouble: 1 735 ldouble: 1 736 737 # y0 738 Test "y0 (1.0) == 0.0882569642156769579829267660235151628": 739 double: 2 740 float: 1 741 idouble: 2 742 ifloat: 1 743 Test "y0 (1.5) == 0.382448923797758843955068554978089862": 744 double: 2 745 float: 1 746 idouble: 2 747 ifloat: 1 748 Test "y0 (10.0) == 0.0556711672835993914244598774101900481": 749 float: 1 750 ifloat: 1 751 ildouble: 3 752 ldouble: 3 753 Test "y0 (8.0) == 0.223521489387566220527323400498620359": 754 double: 1 755 float: 1 756 idouble: 1 757 ifloat: 1 758 ildouble: 3 759 ldouble: 3 760 761 # y1 762 Test "y1 (0.125) == -5.19993611253477499595928744876579921": 763 double: 1 764 idouble: 1 765 Test "y1 (0.75) == -1.03759455076928541973767132140642198": 766 ildouble: 1 767 ldouble: 1 768 Test "y1 (1.5) == -0.412308626973911295952829820633445323": 769 float: 1 770 ifloat: 1 771 ildouble: 1 772 ldouble: 1 773 Test "y1 (10.0) == 0.249015424206953883923283474663222803": 774 double: 3 775 float: 1 776 idouble: 3 777 ifloat: 1 778 Test "y1 (2.0) == -0.107032431540937546888370772277476637": 779 double: 1 780 float: 1 781 idouble: 1 782 ifloat: 1 783 ildouble: 1 784 ldouble: 1 785 Test "y1 (8.0) == -0.158060461731247494255555266187483550": 786 double: 1 787 float: 2 788 idouble: 1 789 ifloat: 2 790 ildouble: 1 791 ldouble: 1 792 793 # yn 794 Test "yn (0, 1.0) == 0.0882569642156769579829267660235151628": 795 double: 2 796 float: 1 797 idouble: 2 798 ifloat: 1 799 Test "yn (0, 1.5) == 0.382448923797758843955068554978089862": 800 double: 2 801 float: 1 802 idouble: 2 803 ifloat: 1 804 Test "yn (0, 10.0) == 0.0556711672835993914244598774101900481": 805 float: 1 806 ifloat: 1 807 ildouble: 3 808 ldouble: 3 809 Test "yn (0, 8.0) == 0.223521489387566220527323400498620359": 810 double: 1 811 float: 1 812 idouble: 1 813 ifloat: 1 814 ildouble: 3 815 ldouble: 3 816 Test "yn (1, 0.125) == -5.19993611253477499595928744876579921": 817 double: 1 818 idouble: 1 819 Test "yn (1, 0.75) == -1.03759455076928541973767132140642198": 820 ildouble: 1 821 ldouble: 1 822 Test "yn (1, 1.5) == -0.412308626973911295952829820633445323": 823 float: 1 824 ifloat: 1 825 ildouble: 1 826 ldouble: 1 827 Test "yn (1, 10.0) == 0.249015424206953883923283474663222803": 828 double: 3 829 float: 1 830 idouble: 3 831 ifloat: 1 832 Test "yn (1, 2.0) == -0.107032431540937546888370772277476637": 833 double: 1 834 float: 1 835 idouble: 1 836 ifloat: 1 837 ildouble: 1 838 ldouble: 1 839 Test "yn (1, 8.0) == -0.158060461731247494255555266187483550": 840 double: 1 841 float: 2 842 idouble: 1 843 ifloat: 2 844 ildouble: 1 845 ldouble: 1 846 Test "yn (10, 0.125) == -127057845771019398.252538486899753195": 847 double: 1 848 idouble: 1 849 ildouble: 2 850 ldouble: 2 851 Test "yn (10, 0.75) == -2133501638.90573424452445412893839236": 852 double: 1 853 float: 1 854 idouble: 1 855 ifloat: 1 856 ildouble: 5 857 ldouble: 5 858 Test "yn (10, 1.0) == -121618014.278689189288130426667971145": 859 double: 1 860 idouble: 1 861 ildouble: 1 862 ldouble: 1 863 Test "yn (10, 10.0) == -0.359814152183402722051986577343560609": 864 double: 1 865 float: 1 866 idouble: 1 867 ifloat: 1 868 ildouble: 2 869 ldouble: 2 870 Test "yn (10, 2.0) == -129184.542208039282635913145923304214": 871 double: 2 872 idouble: 2 873 ildouble: 2 874 ldouble: 2 875 Test "yn (3, 0.125) == -2612.69757350066712600220955744091741": 876 double: 1 877 idouble: 1 878 Test "yn (3, 0.75) == -12.9877176234475433186319774484809207": 879 double: 1 880 float: 1 881 idouble: 1 882 ifloat: 1 883 ildouble: 2 884 ldouble: 2 885 Test "yn (3, 10.0) == -0.251362657183837329779204747654240998": 886 double: 1 887 float: 1 888 idouble: 1 889 ifloat: 1 890 ildouble: 1 891 ldouble: 1 892 Test "yn (3, 2.0) == -1.12778377684042778608158395773179238": 893 double: 1 894 idouble: 1 895 896 # Maximal error of functions: 897 Function: "atan2": 898 float: 1 899 ifloat: 1 900 ildouble: 1 901 ldouble: 1 902 903 Function: "atanh": 904 float: 1 905 ifloat: 1 906 907 Function: Imaginary part of "cacos": 908 ildouble: 1 909 ldouble: 1 910 911 Function: Imaginary part of "cacosh": 912 float: 1 913 ifloat: 1 914 ildouble: 1 915 ldouble: 1 916 917 Function: Real part of "casin": 918 double: 1 919 float: 1 920 idouble: 1 921 ifloat: 1 922 923 Function: Imaginary part of "casin": 924 ildouble: 1 925 ldouble: 1 926 927 Function: Real part of "casinh": 928 double: 5 929 float: 1 930 idouble: 5 931 ifloat: 1 932 ildouble: 4 933 ldouble: 4 934 935 Function: Imaginary part of "casinh": 936 double: 3 937 float: 6 938 idouble: 3 939 ifloat: 6 940 ildouble: 2 941 ldouble: 2 942 943 Function: Imaginary part of "catan": 944 double: 1 945 float: 1 946 idouble: 1 947 ifloat: 1 948 ildouble: 1 949 ldouble: 1 950 951 Function: Real part of "catanh": 952 double: 4 953 idouble: 4 954 ildouble: 1 955 ldouble: 1 956 957 Function: Imaginary part of "catanh": 958 ildouble: 1 959 ldouble: 1 960 961 Function: "cbrt": 962 double: 1 963 idouble: 1 964 ildouble: 1 965 ldouble: 1 966 967 Function: Real part of "ccos": 968 double: 1 969 float: 1 970 idouble: 1 971 ifloat: 1 972 ildouble: 1 973 ldouble: 1 974 975 Function: Imaginary part of "ccos": 976 float: 1 977 ifloat: 1 978 ildouble: 1 979 ldouble: 1 980 981 Function: Real part of "ccosh": 982 double: 1 983 float: 1 984 idouble: 1 985 ifloat: 1 986 ildouble: 1 987 ldouble: 1 988 989 Function: Imaginary part of "ccosh": 990 float: 1 991 ifloat: 1 992 ildouble: 1 993 ldouble: 1 994 995 Function: Real part of "cexp": 996 float: 1 997 ifloat: 1 998 ildouble: 1 999 ldouble: 1 1000 1001 Function: Imaginary part of "cexp": 1002 float: 1 1003 ifloat: 1 1004 ildouble: 1 1005 ldouble: 1 1006 1007 Function: Real part of "clog": 1008 float: 1 1009 ifloat: 1 1010 ildouble: 1 1011 ldouble: 1 1012 1013 Function: Real part of "clog10": 1014 float: 1 1015 ifloat: 1 1016 ildouble: 1 1017 ldouble: 1 1018 1019 Function: Imaginary part of "clog10": 1020 double: 1 1021 float: 1 1022 idouble: 1 1023 ifloat: 1 1024 ildouble: 1 1025 ldouble: 1 1026 1027 Function: "cos": 1028 double: 2 1029 float: 1 1030 idouble: 2 1031 ifloat: 1 1032 ildouble: 1 1033 ldouble: 1 1034 1035 Function: Real part of "cpow": 1036 double: 2 1037 float: 4 1038 idouble: 2 1039 ifloat: 4 1040 ildouble: 10 1041 ldouble: 10 1042 1043 Function: Imaginary part of "cpow": 1044 double: 2 1045 float: 2 1046 idouble: 2 1047 ifloat: 2 1048 ildouble: 1 1049 ldouble: 1 1050 1051 Function: Real part of "csin": 1052 ildouble: 1 1053 ldouble: 1 1054 1055 Function: Imaginary part of "csin": 1056 ildouble: 1 1057 ldouble: 1 1058 1059 Function: Real part of "csinh": 1060 float: 1 1061 ifloat: 1 1062 ildouble: 1 1063 ldouble: 1 1064 1065 Function: Imaginary part of "csinh": 1066 double: 1 1067 float: 1 1068 idouble: 1 1069 ifloat: 1 1070 1071 Function: Real part of "csqrt": 1072 float: 1 1073 ifloat: 1 1074 ildouble: 1 1075 ldouble: 1 1076 1077 Function: Imaginary part of "csqrt": 1078 ildouble: 1 1079 ldouble: 1 1080 1081 Function: Real part of "ctan": 1082 ildouble: 1 1083 ldouble: 1 1084 1085 Function: Imaginary part of "ctan": 1086 double: 1 1087 idouble: 1 1088 ildouble: 2 1089 ldouble: 2 1090 1091 Function: Real part of "ctanh": 1092 double: 1 1093 float: 2 1094 idouble: 1 1095 ifloat: 2 1096 ildouble: 1 1097 ldouble: 1 1098 1099 Function: Imaginary part of "ctanh": 1100 float: 1 1101 ifloat: 1 1102 ildouble: 1 1103 ldouble: 1 1104 1105 Function: "erf": 1106 double: 1 1107 idouble: 1 1108 1109 Function: "erfc": 1110 double: 1 1111 idouble: 1 1112 ildouble: 1 1113 ldouble: 1 1114 1115 Function: "exp10": 1116 double: 6 1117 float: 2 1118 idouble: 6 1119 ifloat: 2 1120 ildouble: 1 1121 ldouble: 1 1122 1123 Function: "exp2": 1124 ildouble: 2 1125 ldouble: 2 1126 1127 Function: "expm1": 1128 double: 1 1129 float: 1 1130 idouble: 1 1131 ifloat: 1 1132 ildouble: 1 1133 ldouble: 1 1134 1135 Function: "gamma": 1136 ildouble: 1 1137 ldouble: 1 1138 1139 Function: "hypot": 1140 float: 1 1141 ifloat: 1 1142 1143 Function: "j0": 1144 double: 2 1145 float: 2 1146 idouble: 2 1147 ifloat: 2 1148 ildouble: 2 1149 ldouble: 2 1150 1151 Function: "j1": 1152 double: 1 1153 float: 2 1154 idouble: 1 1155 ifloat: 2 1156 ildouble: 4 1157 ldouble: 4 1158 1159 Function: "jn": 1160 double: 4 1161 float: 4 1162 idouble: 4 1163 ifloat: 4 1164 ildouble: 4 1165 ldouble: 4 1166 1167 Function: "lgamma": 1168 double: 1 1169 float: 2 1170 idouble: 1 1171 ifloat: 2 1172 ildouble: 1 1173 ldouble: 1 1174 1175 Function: "log10": 1176 double: 1 1177 float: 2 1178 idouble: 1 1179 ifloat: 2 1180 ildouble: 1 1181 ldouble: 1 1182 1183 Function: "log1p": 1184 float: 1 1185 ifloat: 1 1186 ildouble: 1 1187 ldouble: 1 1188 1189 Function: "log2": 1190 ildouble: 1 1191 ldouble: 1 1192 1193 Function: "sincos": 1194 double: 1 1195 float: 1 1196 idouble: 1 1197 ifloat: 1 1198 ildouble: 1 1199 ldouble: 1 1200 1201 Function: "sqrt": 1202 ildouble: 1 1203 ldouble: 1 1204 1205 Function: "tan": 1206 double: 1 1207 idouble: 1 1208 1209 Function: "tanh": 1210 ildouble: 1 1211 ldouble: 1 1212 1213 Function: "tgamma": 1214 double: 1 1215 float: 1 1216 idouble: 1 1217 ifloat: 1 1218 ildouble: 1 1219 ldouble: 1 1220 1221 Function: "y0": 1222 double: 2 1223 float: 1 1224 idouble: 2 1225 ifloat: 1 1226 ildouble: 3 1227 ldouble: 3 1228 1229 Function: "y1": 1230 double: 3 1231 float: 2 1232 idouble: 3 1233 ifloat: 2 1234 ildouble: 1 1235 ldouble: 1 1236 1237 Function: "yn": 1238 double: 3 1239 float: 2 1240 idouble: 3 1241 ifloat: 2 1242 ildouble: 5 1243 ldouble: 5 1244 1245 # end of automatic generation -
ports/sysdeps/mips/mips64/n64/libm-test-ulps
diff -Naur glibc-2.4.orig/ports/sysdeps/mips/mips64/n64/libm-test-ulps glibc-2.4/ports/sysdeps/mips/mips64/n64/libm-test-ulps
old new 1 # Begin of automatic generation 2 3 # atan2 4 Test "atan2 (-0.00756827042671106339, -.001792735857538728036) == -1.80338464113663849327153994379639112": 5 ildouble: 1 6 ldouble: 1 7 Test "atan2 (-0.75, -1.0) == -2.49809154479650885165983415456218025": 8 float: 1 9 ifloat: 1 10 ildouble: 1 11 ldouble: 1 12 Test "atan2 (0.75, -1.0) == 2.49809154479650885165983415456218025": 13 float: 1 14 ifloat: 1 15 ildouble: 1 16 ldouble: 1 17 Test "atan2 (1.390625, 0.9296875) == 0.981498387184244311516296577615519772": 18 float: 1 19 ifloat: 1 20 ildouble: 1 21 ldouble: 1 22 23 # atanh 24 Test "atanh (0.75) == 0.972955074527656652552676371721589865": 25 float: 1 26 ifloat: 1 27 28 # cacos 29 Test "Imaginary part of: cacos (0.75 + 1.25 i) == 1.11752014915610270578240049553777969 - 1.13239363160530819522266333696834467 i": 30 ildouble: 1 31 ldouble: 1 32 33 # cacosh 34 Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i": 35 float: 1 36 ifloat: 1 37 ildouble: 1 38 ldouble: 1 39 40 # casin 41 Test "Real part of: casin (0.75 + 1.25 i) == 0.453276177638793913448921196101971749 + 1.13239363160530819522266333696834467 i": 42 double: 1 43 float: 1 44 idouble: 1 45 ifloat: 1 46 Test "Imaginary part of: casin (0.75 + 1.25 i) == 0.453276177638793913448921196101971749 + 1.13239363160530819522266333696834467 i": 47 ildouble: 1 48 ldouble: 1 49 50 # casinh 51 Test "Real part of: casinh (-2 - 3 i) == -1.9686379257930962917886650952454982 - 0.96465850440760279204541105949953237 i": 52 double: 5 53 float: 1 54 idouble: 5 55 ifloat: 1 56 ildouble: 4 57 ldouble: 4 58 Test "Imaginary part of: casinh (-2 - 3 i) == -1.9686379257930962917886650952454982 - 0.96465850440760279204541105949953237 i": 59 double: 3 60 float: 6 61 idouble: 3 62 ifloat: 6 63 ildouble: 2 64 ldouble: 2 65 Test "Real part of: casinh (0.75 + 1.25 i) == 1.03171853444778027336364058631006594 + 0.911738290968487636358489564316731207 i": 66 float: 1 67 ifloat: 1 68 ildouble: 1 69 ldouble: 1 70 Test "Imaginary part of: casinh (0.75 + 1.25 i) == 1.03171853444778027336364058631006594 + 0.911738290968487636358489564316731207 i": 71 double: 1 72 float: 1 73 idouble: 1 74 ifloat: 1 75 ildouble: 1 76 ldouble: 1 77 78 # catan 79 Test "Imaginary part of: catan (-2 - 3 i) == -1.4099210495965755225306193844604208 - 0.22907268296853876629588180294200276 i": 80 double: 1 81 float: 1 82 idouble: 1 83 ifloat: 1 84 Test "Imaginary part of: catan (0.75 + 1.25 i) == 1.10714871779409050301706546017853704 + 0.549306144334054845697622618461262852 i": 85 ildouble: 1 86 ldouble: 1 87 88 # catanh 89 Test "Real part of: catanh (-2 - 3 i) == -0.14694666622552975204743278515471595 - 1.3389725222944935611241935759091443 i": 90 double: 4 91 idouble: 4 92 Test "Real part of: catanh (0.75 + 1.25 i) == 0.261492138795671927078652057366532140 + 0.996825126463918666098902241310446708 i": 93 double: 1 94 idouble: 1 95 ildouble: 1 96 ldouble: 1 97 Test "Imaginary part of: catanh (0.75 + 1.25 i) == 0.261492138795671927078652057366532140 + 0.996825126463918666098902241310446708 i": 98 ildouble: 1 99 ldouble: 1 100 101 # cbrt 102 Test "cbrt (-0.001) == -0.1": 103 ildouble: 1 104 ldouble: 1 105 Test "cbrt (-27.0) == -3.0": 106 double: 1 107 idouble: 1 108 Test "cbrt (0.75) == 0.908560296416069829445605878163630251": 109 double: 1 110 idouble: 1 111 Test "cbrt (0.9921875) == 0.997389022060725270579075195353955217": 112 double: 1 113 idouble: 1 114 115 # ccos 116 Test "Real part of: ccos (-2 - 3 i) == -4.18962569096880723013255501961597373 - 9.10922789375533659797919726277886212 i": 117 ildouble: 1 118 ldouble: 1 119 Test "Imaginary part of: ccos (-2 - 3 i) == -4.18962569096880723013255501961597373 - 9.10922789375533659797919726277886212 i": 120 float: 1 121 ifloat: 1 122 ildouble: 1 123 ldouble: 1 124 Test "Real part of: ccos (0.75 + 1.25 i) == 1.38173873063425888530729933139078645 - 1.09193013555397466170919531722024128 i": 125 double: 1 126 float: 1 127 idouble: 1 128 ifloat: 1 129 Test "Imaginary part of: ccos (0.75 + 1.25 i) == 1.38173873063425888530729933139078645 - 1.09193013555397466170919531722024128 i": 130 float: 1 131 ifloat: 1 132 133 # ccosh 134 Test "Real part of: ccosh (-2 - 3 i) == -3.72454550491532256547397070325597253 + 0.511822569987384608834463849801875634 i": 135 float: 1 136 ifloat: 1 137 ildouble: 1 138 ldouble: 1 139 Test "Imaginary part of: ccosh (-2 - 3 i) == -3.72454550491532256547397070325597253 + 0.511822569987384608834463849801875634 i": 140 float: 1 141 ifloat: 1 142 ildouble: 1 143 ldouble: 1 144 Test "Real part of: ccosh (0.75 + 1.25 i) == 0.408242591877968807788852146397499084 + 0.780365930845853240391326216300863152 i": 145 double: 1 146 float: 1 147 idouble: 1 148 ifloat: 1 149 Test "Imaginary part of: ccosh (0.75 + 1.25 i) == 0.408242591877968807788852146397499084 + 0.780365930845853240391326216300863152 i": 150 float: 1 151 ifloat: 1 152 153 # cexp 154 Test "Real part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i": 155 ildouble: 1 156 ldouble: 1 157 Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i": 158 float: 1 159 ifloat: 1 160 ildouble: 1 161 ldouble: 1 162 Test "Real part of: cexp (0.75 + 1.25 i) == 0.667537446429131586942201977015932112 + 2.00900045494094876258347228145863909 i": 163 float: 1 164 ifloat: 1 165 Test "Imaginary part of: cexp (0.75 + 1.25 i) == 0.667537446429131586942201977015932112 + 2.00900045494094876258347228145863909 i": 166 ildouble: 1 167 ldouble: 1 168 169 # clog 170 Test "Real part of: clog (0.75 + 1.25 i) == 0.376885901188190075998919126749298416 + 1.03037682652431246378774332703115153 i": 171 float: 1 172 ifloat: 1 173 ildouble: 1 174 ldouble: 1 175 176 # clog10 177 Test "Imaginary part of: clog10 (-0 + inf i) == inf + pi/2*log10(e) i": 178 double: 1 179 float: 1 180 idouble: 1 181 ifloat: 1 182 Test "Imaginary part of: clog10 (-0 - inf i) == inf - pi/2*log10(e) i": 183 double: 1 184 float: 1 185 idouble: 1 186 ifloat: 1 187 Test "Real part of: clog10 (-2 - 3 i) == 0.556971676153418384603252578971164214 - 0.937554462986374708541507952140189646 i": 188 ildouble: 1 189 ldouble: 1 190 Test "Imaginary part of: clog10 (-2 - 3 i) == 0.556971676153418384603252578971164214 - 0.937554462986374708541507952140189646 i": 191 double: 1 192 idouble: 1 193 ildouble: 1 194 ldouble: 1 195 Test "Imaginary part of: clog10 (-3 + inf i) == inf + pi/2*log10(e) i": 196 double: 1 197 float: 1 198 idouble: 1 199 ifloat: 1 200 Test "Imaginary part of: clog10 (-3 - inf i) == inf - pi/2*log10(e) i": 201 double: 1 202 float: 1 203 idouble: 1 204 ifloat: 1 205 Test "Imaginary part of: clog10 (-inf + 0 i) == inf + pi*log10(e) i": 206 double: 1 207 float: 1 208 idouble: 1 209 ifloat: 1 210 Test "Imaginary part of: clog10 (-inf + 1 i) == inf + pi*log10(e) i": 211 double: 1 212 float: 1 213 idouble: 1 214 ifloat: 1 215 Test "Imaginary part of: clog10 (-inf + inf i) == inf + 3/4 pi*log10(e) i": 216 double: 1 217 idouble: 1 218 Test "Imaginary part of: clog10 (-inf - 0 i) == inf - pi*log10(e) i": 219 double: 1 220 float: 1 221 idouble: 1 222 ifloat: 1 223 Test "Imaginary part of: clog10 (-inf - 1 i) == inf - pi*log10(e) i": 224 double: 1 225 float: 1 226 idouble: 1 227 ifloat: 1 228 Test "Imaginary part of: clog10 (0 + inf i) == inf + pi/2*log10(e) i": 229 double: 1 230 float: 1 231 idouble: 1 232 ifloat: 1 233 Test "Imaginary part of: clog10 (0 - inf i) == inf - pi/2*log10(e) i": 234 double: 1 235 float: 1 236 idouble: 1 237 ifloat: 1 238 Test "Real part of: clog10 (0.75 + 1.25 i) == 0.163679467193165171449476605077428975 + 0.447486970040493067069984724340855636 i": 239 float: 1 240 ifloat: 1 241 Test "Imaginary part of: clog10 (0.75 + 1.25 i) == 0.163679467193165171449476605077428975 + 0.447486970040493067069984724340855636 i": 242 ildouble: 1 243 ldouble: 1 244 Test "Imaginary part of: clog10 (3 + inf i) == inf + pi/2*log10(e) i": 245 double: 1 246 float: 1 247 idouble: 1 248 ifloat: 1 249 Test "Imaginary part of: clog10 (3 - inf i) == inf - pi/2*log10(e) i": 250 double: 1 251 float: 1 252 idouble: 1 253 ifloat: 1 254 Test "Imaginary part of: clog10 (inf + inf i) == inf + pi/4*log10(e) i": 255 double: 1 256 float: 1 257 idouble: 1 258 ifloat: 1 259 Test "Imaginary part of: clog10 (inf - inf i) == inf - pi/4*log10(e) i": 260 double: 1 261 float: 1 262 idouble: 1 263 ifloat: 1 264 265 # cos 266 Test "cos (M_PI_6l * 2.0) == 0.5": 267 double: 1 268 idouble: 1 269 ildouble: 1 270 ldouble: 1 271 Test "cos (M_PI_6l * 4.0) == -0.5": 272 double: 2 273 float: 1 274 idouble: 2 275 ifloat: 1 276 ildouble: 1 277 ldouble: 1 278 279 # cpow 280 Test "Real part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i) == 0.331825439177608832276067945276730566 + 0.131338600281188544930936345230903032 i": 281 float: 1 282 ifloat: 1 283 Test "Imaginary part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i) == 0.331825439177608832276067945276730566 + 0.131338600281188544930936345230903032 i": 284 float: 1 285 ifloat: 1 286 Test "Real part of: cpow (0.75 + 1.25 i, 0.75 + 1.25 i) == 0.117506293914473555420279832210420483 + 0.346552747708338676483025352060418001 i": 287 double: 1 288 float: 4 289 idouble: 1 290 ifloat: 4 291 ildouble: 4 292 ldouble: 4 293 Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 0.0 i) == 0.75 + 1.25 i": 294 ildouble: 2 295 ldouble: 2 296 Test "Imaginary part of: cpow (0.75 + 1.25 i, 1.0 + 0.0 i) == 0.75 + 1.25 i": 297 ildouble: 1 298 ldouble: 1 299 Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 1.0 i) == 0.0846958290317209430433805274189191353 + 0.513285749182902449043287190519090481 i": 300 double: 2 301 float: 3 302 idouble: 2 303 ifloat: 3 304 ildouble: 10 305 ldouble: 10 306 Test "Real part of: cpow (2 + 0 i, 10 + 0 i) == 1024.0 + 0.0 i": 307 ildouble: 2 308 ldouble: 2 309 Test "Real part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i": 310 double: 1 311 float: 4 312 idouble: 1 313 ifloat: 4 314 ildouble: 3 315 ldouble: 3 316 Test "Imaginary part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i": 317 float: 2 318 ifloat: 2 319 Test "Imaginary part of: cpow (e + 0 i, 0 + 2 * M_PIl i) == 1.0 + 0.0 i": 320 double: 2 321 float: 2 322 idouble: 2 323 ifloat: 2 324 ildouble: 1 325 ldouble: 1 326 327 # csin 328 Test "Imaginary part of: csin (-2 - 3 i) == -9.15449914691142957346729954460983256 + 4.16890695996656435075481305885375484 i": 329 ildouble: 1 330 ldouble: 1 331 Test "Real part of: csin (0.75 + 1.25 i) == 1.28722291002649188575873510790565441 + 1.17210635989270256101081285116138863 i": 332 ildouble: 1 333 ldouble: 1 334 335 # csinh 336 Test "Real part of: csinh (-2 - 3 i) == 3.59056458998577995201256544779481679 - 0.530921086248519805267040090660676560 i": 337 ildouble: 1 338 ldouble: 1 339 Test "Imaginary part of: csinh (-2 - 3 i) == 3.59056458998577995201256544779481679 - 0.530921086248519805267040090660676560 i": 340 double: 1 341 idouble: 1 342 Test "Real part of: csinh (0.75 + 1.25 i) == 0.259294854551162779153349830618433028 + 1.22863452409509552219214606515777594 i": 343 float: 1 344 ifloat: 1 345 Test "Imaginary part of: csinh (0.75 + 1.25 i) == 0.259294854551162779153349830618433028 + 1.22863452409509552219214606515777594 i": 346 float: 1 347 ifloat: 1 348 349 # csqrt 350 Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i": 351 float: 1 352 ifloat: 1 353 ildouble: 1 354 ldouble: 1 355 Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i": 356 float: 1 357 ifloat: 1 358 ildouble: 1 359 ldouble: 1 360 Test "Imaginary part of: csqrt (0.75 + 1.25 i) == 1.05065169626078392338656675760808326 + 0.594868882070379067881984030639932657 i": 361 ildouble: 1 362 ldouble: 1 363 364 # ctan 365 Test "Real part of: ctan (-2 - 3 i) == 0.376402564150424829275122113032269084e-2 - 1.00323862735360980144635859782192726 i": 366 ildouble: 1 367 ldouble: 1 368 Test "Imaginary part of: ctan (-2 - 3 i) == 0.376402564150424829275122113032269084e-2 - 1.00323862735360980144635859782192726 i": 369 ildouble: 1 370 ldouble: 1 371 Test "Imaginary part of: ctan (0.75 + 1.25 i) == 0.160807785916206426725166058173438663 + 0.975363285031235646193581759755216379 i": 372 double: 1 373 idouble: 1 374 ildouble: 2 375 ldouble: 2 376 377 # ctanh 378 Test "Real part of: ctanh (-2 - 3 i) == -0.965385879022133124278480269394560686 + 0.988437503832249372031403430350121098e-2 i": 379 double: 1 380 float: 2 381 idouble: 1 382 ifloat: 2 383 ildouble: 1 384 ldouble: 1 385 Test "Imaginary part of: ctanh (-2 - 3 i) == -0.965385879022133124278480269394560686 + 0.988437503832249372031403430350121098e-2 i": 386 ildouble: 1 387 ldouble: 1 388 Test "Imaginary part of: ctanh (0 + pi/4 i) == 0.0 + 1.0 i": 389 float: 1 390 ifloat: 1 391 Test "Real part of: ctanh (0.75 + 1.25 i) == 1.37260757053378320258048606571226857 + 0.385795952609750664177596760720790220 i": 392 double: 1 393 idouble: 1 394 395 # erf 396 Test "erf (1.25) == 0.922900128256458230136523481197281140": 397 double: 1 398 idouble: 1 399 400 # erfc 401 Test "erfc (2.0) == 0.00467773498104726583793074363274707139": 402 double: 1 403 idouble: 1 404 Test "erfc (27.0) == 0.523704892378925568501606768284954709e-318": 405 ildouble: 1 406 ldouble: 1 407 Test "erfc (4.125) == 0.542340079956506600531223408575531062e-8": 408 double: 1 409 idouble: 1 410 411 # exp10 412 Test "exp10 (-1) == 0.1": 413 double: 2 414 float: 1 415 idouble: 2 416 ifloat: 1 417 Test "exp10 (0.75) == 5.62341325190349080394951039776481231": 418 double: 1 419 float: 1 420 idouble: 1 421 ifloat: 1 422 Test "exp10 (3) == 1000": 423 double: 6 424 float: 2 425 idouble: 6 426 ifloat: 2 427 ildouble: 1 428 ldouble: 1 429 430 # exp2 431 Test "exp2 (10) == 1024": 432 ildouble: 2 433 ldouble: 2 434 435 # expm1 436 Test "expm1 (0.75) == 1.11700001661267466854536981983709561": 437 double: 1 438 idouble: 1 439 Test "expm1 (1) == M_El - 1.0": 440 double: 1 441 float: 1 442 idouble: 1 443 ifloat: 1 444 ildouble: 1 445 ldouble: 1 446 447 # gamma 448 Test "gamma (-0.5) == log(2*sqrt(pi))": 449 ildouble: 1 450 ldouble: 1 451 452 # hypot 453 Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271": 454 float: 1 455 ifloat: 1 456 Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271": 457 float: 1 458 ifloat: 1 459 Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271": 460 float: 1 461 ifloat: 1 462 Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271": 463 float: 1 464 ifloat: 1 465 Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271": 466 float: 1 467 ifloat: 1 468 Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271": 469 float: 1 470 ifloat: 1 471 Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271": 472 float: 1 473 ifloat: 1 474 Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271": 475 float: 1 476 ifloat: 1 477 478 # j0 479 Test "j0 (-4.0) == -3.9714980986384737228659076845169804197562E-1": 480 double: 1 481 float: 1 482 idouble: 1 483 ifloat: 1 484 Test "j0 (0.75) == 0.864242275166648623555731103820923211": 485 float: 1 486 ifloat: 1 487 Test "j0 (10.0) == -0.245935764451348335197760862485328754": 488 double: 2 489 float: 1 490 idouble: 2 491 ifloat: 1 492 ildouble: 2 493 ldouble: 2 494 Test "j0 (2.0) == 0.223890779141235668051827454649948626": 495 float: 2 496 ifloat: 2 497 ildouble: 2 498 ldouble: 2 499 Test "j0 (4.0) == -3.9714980986384737228659076845169804197562E-1": 500 double: 1 501 float: 1 502 idouble: 1 503 ifloat: 1 504 Test "j0 (8.0) == 0.171650807137553906090869407851972001": 505 float: 1 506 ifloat: 1 507 ildouble: 1 508 ldouble: 1 509 510 # j1 511 Test "j1 (-1.0) == -0.440050585744933515959682203718914913": 512 ildouble: 1 513 ldouble: 1 514 Test "j1 (0.75) == 0.349243602174862192523281016426251335": 515 ildouble: 1 516 ldouble: 1 517 Test "j1 (1.0) == 0.440050585744933515959682203718914913": 518 ildouble: 1 519 ldouble: 1 520 Test "j1 (10.0) == 0.0434727461688614366697487680258592883": 521 float: 2 522 ifloat: 2 523 ildouble: 2 524 ldouble: 2 525 Test "j1 (2.0) == 0.576724807756873387202448242269137087": 526 double: 1 527 idouble: 1 528 Test "j1 (8.0) == 0.234636346853914624381276651590454612": 529 double: 1 530 idouble: 1 531 ildouble: 4 532 ldouble: 4 533 534 # jn 535 Test "jn (0, -4.0) == -3.9714980986384737228659076845169804197562E-1": 536 double: 1 537 float: 1 538 idouble: 1 539 ifloat: 1 540 Test "jn (0, 0.75) == 0.864242275166648623555731103820923211": 541 float: 1 542 ifloat: 1 543 Test "jn (0, 10.0) == -0.245935764451348335197760862485328754": 544 double: 2 545 float: 1 546 idouble: 2 547 ifloat: 1 548 ildouble: 2 549 ldouble: 2 550 Test "jn (0, 2.0) == 0.223890779141235668051827454649948626": 551 float: 2 552 ifloat: 2 553 ildouble: 2 554 ldouble: 2 555 Test "jn (0, 4.0) == -3.9714980986384737228659076845169804197562E-1": 556 double: 1 557 float: 1 558 idouble: 1 559 ifloat: 1 560 Test "jn (0, 8.0) == 0.171650807137553906090869407851972001": 561 float: 1 562 ifloat: 1 563 ildouble: 1 564 ldouble: 1 565 Test "jn (1, -1.0) == -0.440050585744933515959682203718914913": 566 ildouble: 1 567 ldouble: 1 568 Test "jn (1, 0.75) == 0.349243602174862192523281016426251335": 569 ildouble: 1 570 ldouble: 1 571 Test "jn (1, 1.0) == 0.440050585744933515959682203718914913": 572 ildouble: 1 573 ldouble: 1 574 Test "jn (1, 10.0) == 0.0434727461688614366697487680258592883": 575 float: 2 576 ifloat: 2 577 ildouble: 2 578 ldouble: 2 579 Test "jn (1, 2.0) == 0.576724807756873387202448242269137087": 580 double: 1 581 idouble: 1 582 Test "jn (1, 8.0) == 0.234636346853914624381276651590454612": 583 double: 1 584 idouble: 1 585 ildouble: 4 586 ldouble: 4 587 Test "jn (10, -1.0) == 0.263061512368745320699785368779050294e-9": 588 ildouble: 1 589 ldouble: 1 590 Test "jn (10, 0.125) == 0.250543369809369890173993791865771547e-18": 591 double: 1 592 float: 1 593 idouble: 1 594 ifloat: 1 595 ildouble: 1 596 ldouble: 1 597 Test "jn (10, 0.75) == 0.149621713117596814698712483621682835e-10": 598 double: 1 599 float: 1 600 idouble: 1 601 ifloat: 1 602 ildouble: 1 603 ldouble: 1 604 Test "jn (10, 1.0) == 0.263061512368745320699785368779050294e-9": 605 ildouble: 1 606 ldouble: 1 607 Test "jn (10, 10.0) == 0.207486106633358857697278723518753428": 608 double: 4 609 float: 3 610 idouble: 4 611 ifloat: 3 612 ildouble: 2 613 ldouble: 2 614 Test "jn (10, 2.0) == 0.251538628271673670963516093751820639e-6": 615 float: 4 616 ifloat: 4 617 Test "jn (3, 0.125) == 0.406503832554912875023029337653442868e-4": 618 double: 1 619 float: 1 620 idouble: 1 621 ifloat: 1 622 Test "jn (3, 0.75) == 0.848438342327410884392755236884386804e-2": 623 double: 1 624 float: 1 625 idouble: 1 626 ifloat: 1 627 Test "jn (3, 10.0) == 0.0583793793051868123429354784103409563": 628 double: 3 629 float: 1 630 idouble: 3 631 ifloat: 1 632 ildouble: 2 633 ldouble: 2 634 Test "jn (3, 2.0) == 0.128943249474402051098793332969239835": 635 double: 1 636 float: 2 637 idouble: 1 638 ifloat: 2 639 640 # lgamma 641 Test "lgamma (-0.5) == log(2*sqrt(pi))": 642 ildouble: 1 643 ldouble: 1 644 Test "lgamma (0.7) == 0.260867246531666514385732417016759578": 645 double: 1 646 float: 1 647 idouble: 1 648 ifloat: 1 649 ildouble: 1 650 ldouble: 1 651 Test "lgamma (1.2) == -0.853740900033158497197028392998854470e-1": 652 double: 1 653 float: 2 654 idouble: 1 655 ifloat: 2 656 ildouble: 1 657 ldouble: 1 658 659 # log10 660 Test "log10 (0.75) == -0.124938736608299953132449886193870744": 661 double: 1 662 float: 2 663 idouble: 1 664 ifloat: 2 665 Test "log10 (e) == log10(e)": 666 float: 1 667 ifloat: 1 668 ildouble: 1 669 ldouble: 1 670 671 # log1p 672 Test "log1p (-0.25) == -0.287682072451780927439219005993827432": 673 float: 1 674 ifloat: 1 675 676 # log2 677 Test "log2 (0.75) == -.415037499278843818546261056052183492": 678 ildouble: 1 679 ldouble: 1 680 681 # sincos 682 Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.5 in cos_res": 683 double: 1 684 idouble: 1 685 ildouble: 1 686 ldouble: 1 687 Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in sin_res": 688 double: 1 689 float: 1 690 idouble: 1 691 ifloat: 1 692 ildouble: 1 693 ldouble: 1 694 Test "sincos (pi/6, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in cos_res": 695 float: 1 696 ifloat: 1 697 698 # sqrt 699 Test "sqrt (2) == M_SQRT2l": 700 ildouble: 1 701 ldouble: 1 702 703 # tanh 704 Test "tanh (-0.75) == -0.635148952387287319214434357312496495": 705 ildouble: 1 706 ldouble: 1 707 Test "tanh (-1.0) == -0.7615941559557648881194582826047935904": 708 ildouble: 1 709 ldouble: 1 710 Test "tanh (0.75) == 0.635148952387287319214434357312496495": 711 ildouble: 1 712 ldouble: 1 713 Test "tanh (1.0) == 0.7615941559557648881194582826047935904": 714 ildouble: 1 715 ldouble: 1 716 717 # tgamma 718 Test "tgamma (-0.5) == -2 sqrt (pi)": 719 double: 1 720 float: 1 721 idouble: 1 722 ifloat: 1 723 ildouble: 1 724 ldouble: 1 725 Test "tgamma (0.5) == sqrt (pi)": 726 float: 1 727 ifloat: 1 728 Test "tgamma (0.7) == 1.29805533264755778568117117915281162": 729 double: 1 730 float: 1 731 idouble: 1 732 ifloat: 1 733 Test "tgamma (4) == 6": 734 ildouble: 1 735 ldouble: 1 736 737 # y0 738 Test "y0 (1.0) == 0.0882569642156769579829267660235151628": 739 double: 2 740 float: 1 741 idouble: 2 742 ifloat: 1 743 Test "y0 (1.5) == 0.382448923797758843955068554978089862": 744 double: 2 745 float: 1 746 idouble: 2 747 ifloat: 1 748 Test "y0 (10.0) == 0.0556711672835993914244598774101900481": 749 float: 1 750 ifloat: 1 751 ildouble: 3 752 ldouble: 3 753 Test "y0 (8.0) == 0.223521489387566220527323400498620359": 754 double: 1 755 float: 1 756 idouble: 1 757 ifloat: 1 758 ildouble: 3 759 ldouble: 3 760 761 # y1 762 Test "y1 (0.125) == -5.19993611253477499595928744876579921": 763 double: 1 764 idouble: 1 765 Test "y1 (0.75) == -1.03759455076928541973767132140642198": 766 ildouble: 1 767 ldouble: 1 768 Test "y1 (1.5) == -0.412308626973911295952829820633445323": 769 float: 1 770 ifloat: 1 771 ildouble: 1 772 ldouble: 1 773 Test "y1 (10.0) == 0.249015424206953883923283474663222803": 774 double: 3 775 float: 1 776 idouble: 3 777 ifloat: 1 778 Test "y1 (2.0) == -0.107032431540937546888370772277476637": 779 double: 1 780 float: 1 781 idouble: 1 782 ifloat: 1 783 ildouble: 1 784 ldouble: 1 785 Test "y1 (8.0) == -0.158060461731247494255555266187483550": 786 double: 1 787 float: 2 788 idouble: 1 789 ifloat: 2 790 ildouble: 1 791 ldouble: 1 792 793 # yn 794 Test "yn (0, 1.0) == 0.0882569642156769579829267660235151628": 795 double: 2 796 float: 1 797 idouble: 2 798 ifloat: 1 799 Test "yn (0, 1.5) == 0.382448923797758843955068554978089862": 800 double: 2 801 float: 1 802 idouble: 2 803 ifloat: 1 804 Test "yn (0, 10.0) == 0.0556711672835993914244598774101900481": 805 float: 1 806 ifloat: 1 807 ildouble: 3 808 ldouble: 3 809 Test "yn (0, 8.0) == 0.223521489387566220527323400498620359": 810 double: 1 811 float: 1 812 idouble: 1 813 ifloat: 1 814 ildouble: 3 815 ldouble: 3 816 Test "yn (1, 0.125) == -5.19993611253477499595928744876579921": 817 double: 1 818 idouble: 1 819 Test "yn (1, 0.75) == -1.03759455076928541973767132140642198": 820 ildouble: 1 821 ldouble: 1 822 Test "yn (1, 1.5) == -0.412308626973911295952829820633445323": 823 float: 1 824 ifloat: 1 825 ildouble: 1 826 ldouble: 1 827 Test "yn (1, 10.0) == 0.249015424206953883923283474663222803": 828 double: 3 829 float: 1 830 idouble: 3 831 ifloat: 1 832 Test "yn (1, 2.0) == -0.107032431540937546888370772277476637": 833 double: 1 834 float: 1 835 idouble: 1 836 ifloat: 1 837 ildouble: 1 838 ldouble: 1 839 Test "yn (1, 8.0) == -0.158060461731247494255555266187483550": 840 double: 1 841 float: 2 842 idouble: 1 843 ifloat: 2 844 ildouble: 1 845 ldouble: 1 846 Test "yn (10, 0.125) == -127057845771019398.252538486899753195": 847 double: 1 848 idouble: 1 849 ildouble: 2 850 ldouble: 2 851 Test "yn (10, 0.75) == -2133501638.90573424452445412893839236": 852 double: 1 853 float: 1 854 idouble: 1 855 ifloat: 1 856 ildouble: 5 857 ldouble: 5 858 Test "yn (10, 1.0) == -121618014.278689189288130426667971145": 859 double: 1 860 idouble: 1 861 ildouble: 1 862 ldouble: 1 863 Test "yn (10, 10.0) == -0.359814152183402722051986577343560609": 864 double: 1 865 float: 1 866 idouble: 1 867 ifloat: 1 868 ildouble: 2 869 ldouble: 2 870 Test "yn (10, 2.0) == -129184.542208039282635913145923304214": 871 double: 2 872 idouble: 2 873 ildouble: 2 874 ldouble: 2 875 Test "yn (3, 0.125) == -2612.69757350066712600220955744091741": 876 double: 1 877 idouble: 1 878 Test "yn (3, 0.75) == -12.9877176234475433186319774484809207": 879 double: 1 880 float: 1 881 idouble: 1 882 ifloat: 1 883 ildouble: 2 884 ldouble: 2 885 Test "yn (3, 10.0) == -0.251362657183837329779204747654240998": 886 double: 1 887 float: 1 888 idouble: 1 889 ifloat: 1 890 ildouble: 1 891 ldouble: 1 892 Test "yn (3, 2.0) == -1.12778377684042778608158395773179238": 893 double: 1 894 idouble: 1 895 896 # Maximal error of functions: 897 Function: "atan2": 898 float: 1 899 ifloat: 1 900 ildouble: 1 901 ldouble: 1 902 903 Function: "atanh": 904 float: 1 905 ifloat: 1 906 907 Function: Imaginary part of "cacos": 908 ildouble: 1 909 ldouble: 1 910 911 Function: Imaginary part of "cacosh": 912 float: 1 913 ifloat: 1 914 ildouble: 1 915 ldouble: 1 916 917 Function: Real part of "casin": 918 double: 1 919 float: 1 920 idouble: 1 921 ifloat: 1 922 923 Function: Imaginary part of "casin": 924 ildouble: 1 925 ldouble: 1 926 927 Function: Real part of "casinh": 928 double: 5 929 float: 1 930 idouble: 5 931 ifloat: 1 932 ildouble: 4 933 ldouble: 4 934 935 Function: Imaginary part of "casinh": 936 double: 3 937 float: 6 938 idouble: 3 939 ifloat: 6 940 ildouble: 2 941 ldouble: 2 942 943 Function: Imaginary part of "catan": 944 double: 1 945 float: 1 946 idouble: 1 947 ifloat: 1 948 ildouble: 1 949 ldouble: 1 950 951 Function: Real part of "catanh": 952 double: 4 953 idouble: 4 954 ildouble: 1 955 ldouble: 1 956 957 Function: Imaginary part of "catanh": 958 ildouble: 1 959 ldouble: 1 960 961 Function: "cbrt": 962 double: 1 963 idouble: 1 964 ildouble: 1 965 ldouble: 1 966 967 Function: Real part of "ccos": 968 double: 1 969 float: 1 970 idouble: 1 971 ifloat: 1 972 ildouble: 1 973 ldouble: 1 974 975 Function: Imaginary part of "ccos": 976 float: 1 977 ifloat: 1 978 ildouble: 1 979 ldouble: 1 980 981 Function: Real part of "ccosh": 982 double: 1 983 float: 1 984 idouble: 1 985 ifloat: 1 986 ildouble: 1 987 ldouble: 1 988 989 Function: Imaginary part of "ccosh": 990 float: 1 991 ifloat: 1 992 ildouble: 1 993 ldouble: 1 994 995 Function: Real part of "cexp": 996 float: 1 997 ifloat: 1 998 ildouble: 1 999 ldouble: 1 1000 1001 Function: Imaginary part of "cexp": 1002 float: 1 1003 ifloat: 1 1004 ildouble: 1 1005 ldouble: 1 1006 1007 Function: Real part of "clog": 1008 float: 1 1009 ifloat: 1 1010 ildouble: 1 1011 ldouble: 1 1012 1013 Function: Real part of "clog10": 1014 float: 1 1015 ifloat: 1 1016 ildouble: 1 1017 ldouble: 1 1018 1019 Function: Imaginary part of "clog10": 1020 double: 1 1021 float: 1 1022 idouble: 1 1023 ifloat: 1 1024 ildouble: 1 1025 ldouble: 1 1026 1027 Function: "cos": 1028 double: 2 1029 float: 1 1030 idouble: 2 1031 ifloat: 1 1032 ildouble: 1 1033 ldouble: 1 1034 1035 Function: Real part of "cpow": 1036 double: 2 1037 float: 4 1038 idouble: 2 1039 ifloat: 4 1040 ildouble: 10 1041 ldouble: 10 1042 1043 Function: Imaginary part of "cpow": 1044 double: 2 1045 float: 2 1046 idouble: 2 1047 ifloat: 2 1048 ildouble: 1 1049 ldouble: 1 1050 1051 Function: Real part of "csin": 1052 ildouble: 1 1053 ldouble: 1 1054 1055 Function: Imaginary part of "csin": 1056 ildouble: 1 1057 ldouble: 1 1058 1059 Function: Real part of "csinh": 1060 float: 1 1061 ifloat: 1 1062 ildouble: 1 1063 ldouble: 1 1064 1065 Function: Imaginary part of "csinh": 1066 double: 1 1067 float: 1 1068 idouble: 1 1069 ifloat: 1 1070 1071 Function: Real part of "csqrt": 1072 float: 1 1073 ifloat: 1 1074 ildouble: 1 1075 ldouble: 1 1076 1077 Function: Imaginary part of "csqrt": 1078 ildouble: 1 1079 ldouble: 1 1080 1081 Function: Real part of "ctan": 1082 ildouble: 1 1083 ldouble: 1 1084 1085 Function: Imaginary part of "ctan": 1086 double: 1 1087 idouble: 1 1088 ildouble: 2 1089 ldouble: 2 1090 1091 Function: Real part of "ctanh": 1092 double: 1 1093 float: 2 1094 idouble: 1 1095 ifloat: 2 1096 ildouble: 1 1097 ldouble: 1 1098 1099 Function: Imaginary part of "ctanh": 1100 float: 1 1101 ifloat: 1 1102 ildouble: 1 1103 ldouble: 1 1104 1105 Function: "erf": 1106 double: 1 1107 idouble: 1 1108 1109 Function: "erfc": 1110 double: 1 1111 idouble: 1 1112 ildouble: 1 1113 ldouble: 1 1114 1115 Function: "exp10": 1116 double: 6 1117 float: 2 1118 idouble: 6 1119 ifloat: 2 1120 ildouble: 1 1121 ldouble: 1 1122 1123 Function: "exp2": 1124 ildouble: 2 1125 ldouble: 2 1126 1127 Function: "expm1": 1128 double: 1 1129 float: 1 1130 idouble: 1 1131 ifloat: 1 1132 ildouble: 1 1133 ldouble: 1 1134 1135 Function: "gamma": 1136 ildouble: 1 1137 ldouble: 1 1138 1139 Function: "hypot": 1140 float: 1 1141 ifloat: 1 1142 1143 Function: "j0": 1144 double: 2 1145 float: 2 1146 idouble: 2 1147 ifloat: 2 1148 ildouble: 2 1149 ldouble: 2 1150 1151 Function: "j1": 1152 double: 1 1153 float: 2 1154 idouble: 1 1155 ifloat: 2 1156 ildouble: 4 1157 ldouble: 4 1158 1159 Function: "jn": 1160 double: 4 1161 float: 4 1162 idouble: 4 1163 ifloat: 4 1164 ildouble: 4 1165 ldouble: 4 1166 1167 Function: "lgamma": 1168 double: 1 1169 float: 2 1170 idouble: 1 1171 ifloat: 2 1172 ildouble: 1 1173 ldouble: 1 1174 1175 Function: "log10": 1176 double: 1 1177 float: 2 1178 idouble: 1 1179 ifloat: 2 1180 ildouble: 1 1181 ldouble: 1 1182 1183 Function: "log1p": 1184 float: 1 1185 ifloat: 1 1186 ildouble: 1 1187 ldouble: 1 1188 1189 Function: "log2": 1190 ildouble: 1 1191 ldouble: 1 1192 1193 Function: "sincos": 1194 double: 1 1195 float: 1 1196 idouble: 1 1197 ifloat: 1 1198 ildouble: 1 1199 ldouble: 1 1200 1201 Function: "sqrt": 1202 ildouble: 1 1203 ldouble: 1 1204 1205 Function: "tan": 1206 double: 1 1207 idouble: 1 1208 1209 Function: "tanh": 1210 ildouble: 1 1211 ldouble: 1 1212 1213 Function: "tgamma": 1214 double: 1 1215 float: 1 1216 idouble: 1 1217 ifloat: 1 1218 ildouble: 1 1219 ldouble: 1 1220 1221 Function: "y0": 1222 double: 2 1223 float: 1 1224 idouble: 2 1225 ifloat: 1 1226 ildouble: 3 1227 ldouble: 3 1228 1229 Function: "y1": 1230 double: 3 1231 float: 2 1232 idouble: 3 1233 ifloat: 2 1234 ildouble: 1 1235 ldouble: 1 1236 1237 Function: "yn": 1238 double: 3 1239 float: 2 1240 idouble: 3 1241 ifloat: 2 1242 ildouble: 5 1243 ldouble: 5 1244 1245 # end of automatic generation -
ports/sysdeps/mips/tst-audit.h
diff -Naur glibc-2.4.orig/ports/sysdeps/mips/tst-audit.h glibc-2.4/ports/sysdeps/mips/tst-audit.h
old new 1 /* Definitions for testing PLT entry/exit auditing. ARM version. 2 3 Copyright (C) 2005 Free Software Foundation, Inc. 4 5 This file is part of the GNU C Library. 6 7 The GNU C Library is free software; you can redistribute it and/or 8 modify it under the terms of the GNU Lesser General Public 9 License as published by the Free Software Foundation; either 10 version 2.1 of the License, or (at your option) any later version. 11 12 The GNU C Library is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 Lesser General Public License for more details. 16 17 You should have received a copy of the GNU Lesser General Public 18 License along with the GNU C Library; if not, write to the Free 19 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 20 02111-1307 USA. */ 21 22 #include <sgidefs.h> 23 24 #if _MIPS_SIM == _ABIO32 25 #define pltenter la_mips_o32_gnu_pltenter 26 #define pltexit la_mips_o32_gnu_pltexit 27 #define La_regs La_mips_32_regs 28 #define La_retval La_mips_32_retval 29 #else 30 #if _MIPS_SIM == _ABIN32 31 #define pltenter la_mips_n32_gnu_pltenter 32 #define pltexit la_mips_n32_gnu_pltexit 33 #else 34 #define pltenter la_mips_n64_gnu_pltenter 35 #define pltexit la_mips_n64_gnu_pltexit 36 #endif 37 #define La_regs La_mips_64_regs 38 #define La_retval La_mips_64_retval 39 #endif 40 #define int_retval lrv_v0 -
ports/sysdeps/unix/sysv/linux/mips/bits/resource.h
diff -Naur glibc-2.4.orig/ports/sysdeps/unix/sysv/linux/mips/bits/resource.h glibc-2.4/ports/sysdeps/unix/sysv/linux/mips/bits/resource.h
old new 107 107 }; 108 108 109 109 /* Value to indicate that there is no limit. */ 110 #ifndef __USE_FILE_OFFSET64 111 # define RLIM_INFINITY ((long int)(~0UL >> 1)) 110 #if _MIPS_SIM == _ABI64 111 /* The N64 syscall uses this value. */ 112 # define RLIM_INFINITY 0xffffffffffffffffUL 113 # ifdef __USE_LARGEFILE64 114 # define RLIM64_INFINITY 0xffffffffffffffffUL 115 # endif 112 116 #else 113 # define RLIM_INFINITY 0x7fffffffffffffffLL 114 #endif 115 116 #ifdef __USE_LARGEFILE64 117 # define RLIM64_INFINITY 0x7fffffffffffffffLL 117 /* The O32 and N32 syscalls use 0x7fffffff. */ 118 # ifndef __USE_FILE_OFFSET64 119 # define RLIM_INFINITY ((long int)(~0UL >> 1)) 120 # else 121 # define RLIM_INFINITY 0x7fffffffffffffffULL 122 # endif 123 # ifdef __USE_LARGEFILE64 124 # define RLIM64_INFINITY 0x7fffffffffffffffULL 125 # endif 118 126 #endif 119 127 120 128 /* We can represent all limits. */ -
ports/sysdeps/unix/sysv/linux/mips/bits/sigcontext.h
diff -Naur glibc-2.4.orig/ports/sysdeps/unix/sysv/linux/mips/bits/sigcontext.h glibc-2.4/ports/sysdeps/unix/sysv/linux/mips/bits/sigcontext.h
old new 1 /* Copyright (C) 1996, 1997, 1998, 2003, 2004 Free Software Foundation, Inc.2 This file is part of the GNU C Library.1 /* Copyright (C) 1996, 1997, 1998, 2003, 2004, 2006 Free Software 2 Foundation, Inc. This file is part of the GNU C Library. 3 3 4 4 The GNU C Library is free software; you can redistribute it and/or 5 5 modify it under the terms of the GNU Lesser General Public … … 16 16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 17 17 02111-1307 USA. */ 18 18 19 #ifndef _BITS_SIGCONTEXT_H 20 #define _BITS_SIGCONTEXT_H 1 21 19 22 #if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H 20 23 # error "Never use <bits/sigcontext.h> directly; include <signal.h> instead." 21 24 #endif 22 25 23 26 #include <sgidefs.h> 24 27 25 #ifndef sigcontext_struct26 /* Kernel headers before 2.1.1 define a struct sigcontext_struct, but27 we need sigcontext. */28 # define sigcontext_struct sigcontext29 30 /* # include <asm/sigcontext.h> */31 /* Instead of including the kernel header, that will vary depending on32 whether the 32- or the 64-bit kernel is installed, we paste the33 contents here. In case you're wondering about the different34 licenses, the fact that the file is pasted, instead of included,35 doesn't really make any difference for the program that includes36 this header. */37 28 #if _MIPS_SIM == _ABIO32 38 /*39 * This file is subject to the terms and conditions of the GNU General Public40 * License. See the file "COPYING" in the main directory of this archive41 * for more details.42 *43 * Copyright (C) 1996, 1997, 2000 by Ralf Baechle44 */45 #ifndef _ASM_SIGCONTEXT_H46 #define _ASM_SIGCONTEXT_H47 48 /*49 * Keep this struct definition in sync with the sigcontext fragment50 * in arch/mips/tools/offset.c51 */52 struct sigcontext {53 unsigned int sc_regmask; /* Unused */54 unsigned int sc_status;55 unsigned long long sc_pc;56 unsigned long long sc_regs[32];57 unsigned long long sc_fpregs[32];58 unsigned int sc_ownedfp; /* Unused */59 unsigned int sc_fpc_csr;60 unsigned int sc_fpc_eir; /* Unused */61 unsigned int sc_used_math;62 unsigned int sc_ssflags; /* Unused */63 unsigned long long sc_mdhi;64 unsigned long long sc_mdlo;65 29 66 unsigned int sc_cause; /* Unused */ 67 unsigned int sc_badvaddr; /* Unused */ 30 /* Certain unused fields were replaced with new ones in 2.6.12-rc4. 31 The changes were as follows: 32 33 sc_cause -> sc_hi1 34 sc_badvaddr -> sc_lo1 35 sc_sigset[0] -> sc_hi2 36 sc_sigset[1] -> sc_lo2 37 sc_sigset[2] -> sc_hi3 38 sc_sigset[3] -> sc_lo3 68 39 69 unsigned long sc_sigset[4]; /* kernel's sigset_t */ 40 sc_regmask, sc_ownedfp and sc_fpc_eir are not used. */ 41 struct sigcontext { 42 unsigned int sc_regmask; 43 unsigned int sc_status; 44 unsigned long long sc_pc; 45 unsigned long long sc_regs[32]; 46 unsigned long long sc_fpregs[32]; 47 unsigned int sc_ownedfp; 48 unsigned int sc_fpc_csr; 49 unsigned int sc_fpc_eir; 50 unsigned int sc_used_math; 51 unsigned int sc_dsp; 52 unsigned long long sc_mdhi; 53 unsigned long long sc_mdlo; 54 unsigned long sc_hi1; 55 unsigned long sc_lo1; 56 unsigned long sc_hi2; 57 unsigned long sc_lo2; 58 unsigned long sc_hi3; 59 unsigned long sc_lo3; 70 60 }; 71 61 72 #endif /* _ASM_SIGCONTEXT_H */ 73 #else /* _MIPS_SIM != _ABIO32 */ 74 /* 75 * This file is subject to the terms and conditions of the GNU General Public 76 * License. See the file "COPYING" in the main directory of this archive 77 * for more details. 78 * 79 * Copyright (C) 1996, 1997, 1999 by Ralf Baechle 80 * Copyright (C) 1999 Silicon Graphics, Inc. 81 */ 82 #ifndef _ASM_SIGCONTEXT_H 83 #define _ASM_SIGCONTEXT_H 84 85 /* 86 * Keep this struct definition in sync with the sigcontext fragment 87 * in arch/mips/tools/offset.c 88 */ 62 #else 63 64 /* This structure changed in 2.6.12-rc4 when DSP support was added. */ 89 65 struct sigcontext { 90 unsigned long long sc_regs[32]; 91 unsigned long long sc_fpregs[32]; 92 unsigned long long sc_mdhi; 93 unsigned long long sc_mdlo; 94 unsigned long long sc_pc; 95 unsigned int sc_status; 96 unsigned int sc_fpc_csr; 97 unsigned int sc_fpc_eir; 98 unsigned int sc_used_math; 99 unsigned int sc_cause; 100 unsigned int sc_badvaddr; 66 unsigned long long sc_regs[32]; 67 unsigned long long sc_fpregs[32]; 68 unsigned long long sc_mdhi; 69 unsigned long long sc_hi1; 70 unsigned long long sc_hi2; 71 unsigned long long sc_hi3; 72 unsigned long long sc_mdlo; 73 unsigned long long sc_lo1; 74 unsigned long long sc_lo2; 75 unsigned long long sc_lo3; 76 unsigned long long sc_pc; 77 unsigned int sc_fpc_csr; 78 unsigned int sc_used_math; 79 unsigned int sc_dsp; 80 unsigned int sc_reserved; 101 81 }; 102 82 103 #endif /* _ASM_SIGCONTEXT_H */104 83 #endif /* _MIPS_SIM != _ABIO32 */ 105 84 #endif -
ports/sysdeps/unix/sysv/linux/mips/bits/stat.h
diff -Naur glibc-2.4.orig/ports/sysdeps/unix/sysv/linux/mips/bits/stat.h glibc-2.4/ports/sysdeps/unix/sysv/linux/mips/bits/stat.h
old new 61 61 long int st_pad2[3]; 62 62 __off64_t st_size; /* Size of file, in bytes. */ 63 63 #endif 64 /* 65 * Actually this should be timestruc_t st_atime, st_mtime and 66 * st_ctime but we don't have it under Linux. 67 */ 64 #ifdef __USE_MISC 65 /* Nanosecond resolution timestamps are stored in a format 66 equivalent to 'struct timespec'. This is the type used 67 whenever possible but the Unix namespace rules do not allow the 68 identifier 'timespec' to appear in the <sys/stat.h> header. 69 Therefore we have to handle the use of this header in strictly 70 standard-compliant sources special. */ 71 struct timespec st_atim; /* Time of last access. */ 72 struct timespec st_mtim; /* Time of last modification. */ 73 struct timespec st_ctim; /* Time of last status change. */ 74 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 75 # define st_mtime st_mtim.tv_sec 76 # define st_ctime st_ctim.tv_sec 77 #else 68 78 __time_t st_atime; /* Time of last access. */ 69 79 long int __reserved0; 70 80 __time_t st_mtime; /* Time of last modification. */ 71 81 long int __reserved1; 72 82 __time_t st_ctime; /* Time of last status change. */ 73 83 long int __reserved2; 84 #endif 74 85 __blksize_t st_blksize; /* Optimal block size for I/O. */ 75 86 #ifndef __USE_FILE_OFFSET64 76 87 __blkcnt_t st_blocks; /* Number of 512-byte blocks allocated. */ … … 94 105 unsigned long int st_rdev; /* Device number, if device. */ 95 106 long int st_pad2[3]; 96 107 __off64_t st_size; /* Size of file, in bytes. */ 97 /* 98 * Actually this should be timestruc_t st_atime, st_mtime and 99 * st_ctime but we don't have it under Linux. 100 */ 108 #ifdef __USE_MISC 109 /* Nanosecond resolution timestamps are stored in a format 110 equivalent to 'struct timespec'. This is the type used 111 whenever possible but the Unix namespace rules do not allow the 112 identifier 'timespec' to appear in the <sys/stat.h> header. 113 Therefore we have to handle the use of this header in strictly 114 standard-compliant sources special. */ 115 struct timespec st_atim; /* Time of last access. */ 116 struct timespec st_mtim; /* Time of last modification. */ 117 struct timespec st_ctim; /* Time of last status change. */ 118 #else 101 119 __time_t st_atime; /* Time of last access. */ 102 120 long int __reserved0; 103 121 __time_t st_mtime; /* Time of last modification. */ 104 122 long int __reserved1; 105 123 __time_t st_ctime; /* Time of last status change. */ 106 124 long int __reserved2; 125 #endif 107 126 __blksize_t st_blksize; /* Optimal block size for I/O. */ 108 127 long int st_pad3; 109 128 __blkcnt64_t st_blocks; /* Number of 512-byte blocks allocated. */ … … 133 152 unsigned int st_pad2[3]; /* Reserved for st_rdev expansion */ 134 153 __off64_t st_size; 135 154 #endif 155 #ifdef __USE_MISC 156 /* Nanosecond resolution timestamps are stored in a format 157 equivalent to 'struct timespec'. This is the type used 158 whenever possible but the Unix namespace rules do not allow the 159 identifier 'timespec' to appear in the <sys/stat.h> header. 160 Therefore we have to handle the use of this header in strictly 161 standard-compliant sources special. */ 162 struct timespec st_atim; /* Time of last access. */ 163 struct timespec st_mtim; /* Time of last modification. */ 164 struct timespec st_ctim; /* Time of last status change. */ 165 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 166 # define st_mtime st_mtim.tv_sec 167 # define st_ctime st_ctim.tv_sec 168 #else 136 169 __time_t st_atime; 137 170 int __reserved0; 138 171 __time_t st_mtime; 139 172 int __reserved1; 140 173 __time_t st_ctime; 141 174 int __reserved2; 175 #endif 142 176 __blksize_t st_blksize; 143 177 unsigned int st_pad4; 144 178 #ifndef __USE_FILE_OFFSET64 … … 162 196 __dev_t st_rdev; 163 197 unsigned int st_pad2[3]; /* Reserved for st_rdev expansion */ 164 198 __off64_t st_size; 199 #ifdef __USE_MISC 200 /* Nanosecond resolution timestamps are stored in a format 201 equivalent to 'struct timespec'. This is the type used 202 whenever possible but the Unix namespace rules do not allow the 203 identifier 'timespec' to appear in the <sys/stat.h> header. 204 Therefore we have to handle the use of this header in strictly 205 standard-compliant sources special. */ 206 struct timespec st_atim; /* Time of last access. */ 207 struct timespec st_mtim; /* Time of last modification. */ 208 struct timespec st_ctim; /* Time of last status change. */ 209 #else 165 210 __time_t st_atime; 166 211 int __reserved0; 167 212 __time_t st_mtime; 168 213 int __reserved1; 169 214 __time_t st_ctime; 170 215 int __reserved2; 216 #endif 171 217 __blksize_t st_blksize; 172 218 unsigned int st_pad3; 173 219 __blkcnt64_t st_blocks; -
ports/sysdeps/unix/sysv/linux/mips/kernel_stat.h
diff -Naur glibc-2.4.orig/ports/sysdeps/unix/sysv/linux/mips/kernel_stat.h glibc-2.4/ports/sysdeps/unix/sysv/linux/mips/kernel_stat.h
old new 16 16 unsigned int st_rdev; 17 17 unsigned int __pad2[3]; 18 18 long long st_size; 19 unsigned int st_atime ;20 unsigned int __unused1;21 unsigned int st_mtime ;22 unsigned int __unused2;23 unsigned int st_ctime ;24 unsigned int __unused3;19 unsigned int st_atime_sec; 20 unsigned int st_atime_nsec; 21 unsigned int st_mtime_sec; 22 unsigned int st_mtime_nsec; 23 unsigned int st_ctime_sec; 24 unsigned int st_ctime_nsec; 25 25 unsigned int st_blksize; 26 26 unsigned int __pad3; 27 27 unsigned long long st_blocks; … … 40 40 long int __pad2[2]; 41 41 long int st_size; 42 42 long int __pad3; 43 long int st_atime;44 long int __unused1;45 long int st_mtime;46 long int __unused2;47 long int st_ctime;48 long int __unused3;43 unsigned int st_atime_sec; 44 unsigned int st_atime_nsec; 45 unsigned int st_mtime_sec; 46 unsigned int st_mtime_nsec; 47 unsigned int st_ctime_sec; 48 unsigned int st_ctime_nsec; 49 49 long int st_blksize; 50 50 long int st_blocks; 51 51 char st_fstype[16]; /* Filesystem type name, unsupported */ -
ports/sysdeps/unix/sysv/linux/mips/nptl/fork.c
diff -Naur glibc-2.4.orig/ports/sysdeps/unix/sysv/linux/mips/nptl/fork.c glibc-2.4/ports/sysdeps/unix/sysv/linux/mips/nptl/fork.c
old new 1 #include "../i386/fork.c"1 #include <sysdeps/unix/sysv/linux/i386/fork.c> -
ports/sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h
diff -Naur glibc-2.4.orig/ports/sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h glibc-2.4/ports/sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h
old new 32 32 #define FUTEX_CMP_REQUEUE 4 33 33 #define FUTEX_WAKE_OP 5 34 34 #define FUTEX_OP_CLEAR_WAKE_IF_GT_ONE ((4 << 24) | 1) 35 #define FUTEX_LOCK_PI 6 36 #define FUTEX_UNLOCK_PI 7 37 #define FUTEX_TRYLOCK_PI 8 35 38 36 39 /* Initializer for compatibility lock. */ 37 40 #define LLL_MUTEX_LOCK_INITIALIZER (0) -
ports/sysdeps/unix/sysv/linux/mips/register-dump.h
diff -Naur glibc-2.4.orig/ports/sysdeps/unix/sysv/linux/mips/register-dump.h glibc-2.4/ports/sysdeps/unix/sysv/linux/mips/register-dump.h
old new 1 1 /* Dump registers. 2 Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.2 Copyright (C) 2000, 2001, 2002, 2006 Free Software Foundation, Inc. 3 3 This file is part of the GNU C Library. 4 4 Contributed by Andreas Jaeger <aj@suse.de>, 2000. 5 5 … … 27 27 R8 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 28 28 R16 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 29 29 R24 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 30 pc cause status badvaddrlo hi31 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX30 pc lo hi 31 XXXXXXXX XXXXXXXX XXXXXXXX 32 32 The FPU registers will not be printed. 33 33 */ 34 34 … … 61 61 for (i = 0; i < 32; i++) 62 62 hexvalue (ctx->sc_regs[i], regs[i], 8); 63 63 hexvalue (ctx->sc_pc, regs[32], 8); 64 hexvalue (ctx->sc_cause, regs[33], 8); 65 hexvalue (ctx->sc_status, regs[34], 8); 66 hexvalue (ctx->sc_badvaddr, regs[35], 8); 67 hexvalue (ctx->sc_mdhi, regs[36], 8); 68 hexvalue (ctx->sc_mdlo, regs[37], 8); 64 hexvalue (ctx->sc_mdhi, regs[33], 8); 65 hexvalue (ctx->sc_mdlo, regs[34], 8); 69 66 70 67 /* Generate the output. */ 71 68 ADD_STRING ("Register dump:\n\n R0 "); … … 92 89 ADD_MEM (regs[i], 8); 93 90 ADD_STRING (" "); 94 91 } 95 ADD_STRING ("\n pc cause status badvaddrlo hi\n ");96 for (i = 32; i < 3 8; i++)92 ADD_STRING ("\n pc lo hi\n "); 93 for (i = 32; i < 35; i++) 97 94 { 98 95 ADD_MEM (regs[i], 8); 99 96 ADD_STRING (" "); -
ports/sysdeps/unix/sysv/linux/mips/sigaction.c
diff -Naur glibc-2.4.orig/ports/sysdeps/unix/sysv/linux/mips/sigaction.c glibc-2.4/ports/sysdeps/unix/sysv/linux/mips/sigaction.c
old new 153 153 } 154 154 libc_hidden_def (__libc_sigaction) 155 155 156 #ifdef WRAPPER_INCLUDE 157 # include WRAPPER_INCLUDE 158 #endif 159 156 160 #ifndef LIBC_SIGACTION 157 161 weak_alias (__libc_sigaction, __sigaction) 158 162 libc_hidden_weak (__sigaction) -
ports/sysdeps/unix/sysv/linux/mips/sys/ucontext.h
diff -Naur glibc-2.4.orig/ports/sysdeps/unix/sysv/linux/mips/sys/ucontext.h glibc-2.4/ports/sysdeps/unix/sysv/linux/mips/sys/ucontext.h
old new 1 /* Copyright (C) 1997, 1998, 2000, 2003, 2004 Free Software Foundation, Inc.2 This file is part of the GNU C Library.1 /* Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software 2 Foundation, Inc. This file is part of the GNU C Library. 3 3 4 4 The GNU C Library is free software; you can redistribute it and/or 5 5 modify it under the terms of the GNU Lesser General Public … … 73 73 unsigned int fpc_csr; 74 74 unsigned int fpc_eir; 75 75 unsigned int used_math; 76 unsigned int ssflags;76 unsigned int dsp; 77 77 greg_t mdhi; 78 78 greg_t mdlo; 79 unsigned int cause; 80 unsigned int badvaddr; 79 unsigned long hi1; 80 unsigned long lo1; 81 unsigned long hi2; 82 unsigned long lo2; 83 unsigned long hi3; 84 unsigned long lo3; 81 85 } mcontext_t; 82 86 #else 83 87 typedef struct … … 85 89 gregset_t gregs; 86 90 fpregset_t fpregs; 87 91 greg_t mdhi; 92 greg_t hi1; 93 greg_t hi2; 94 greg_t hi3; 88 95 greg_t mdlo; 96 greg_t lo1; 97 greg_t lo2; 98 greg_t lo3; 89 99 greg_t pc; 90 unsigned int status;91 100 unsigned int fpc_csr; 92 unsigned int fpc_eir;93 101 unsigned int used_math; 94 unsigned int cause;95 unsigned int badvaddr;102 unsigned int dsp; 103 unsigned int reserved; 96 104 } mcontext_t; 97 105 #endif 98 106 -
ports/sysdeps/unix/sysv/linux/mips/xstatconv.c
diff -Naur glibc-2.4.orig/ports/sysdeps/unix/sysv/linux/mips/xstatconv.c glibc-2.4/ports/sysdeps/unix/sysv/linux/mips/xstatconv.c
old new 62 62 buf->st_blksize = kbuf->st_blksize; 63 63 buf->st_blocks = kbuf->st_blocks; 64 64 65 buf->st_atime = kbuf->st_atime; buf->__reserved0 = 0; 66 buf->st_mtime = kbuf->st_mtime; buf->__reserved1 = 0; 67 buf->st_ctime = kbuf->st_ctime; buf->__reserved2 = 0; 65 buf->st_atim.tv_sec = kbuf->st_atime_sec; 66 buf->st_atim.tv_nsec = kbuf->st_atime_nsec; 67 buf->st_mtim.tv_sec = kbuf->st_mtime_sec; 68 buf->st_mtim.tv_nsec = kbuf->st_mtime_nsec; 69 buf->st_ctim.tv_sec = kbuf->st_ctime_sec; 70 buf->st_ctim.tv_nsec = kbuf->st_ctime_nsec; 68 71 69 72 buf->st_pad5[0] = 0; buf->st_pad5[1] = 0; 70 73 buf->st_pad5[2] = 0; buf->st_pad5[3] = 0; … … 107 110 buf->st_blksize = kbuf->st_blksize; 108 111 buf->st_blocks = kbuf->st_blocks; 109 112 110 buf->st_atime = kbuf->st_atime; buf->__reserved0 = 0; 111 buf->st_mtime = kbuf->st_mtime; buf->__reserved1 = 0; 112 buf->st_ctime = kbuf->st_ctime; buf->__reserved2 = 0; 113 buf->st_atim.tv_sec = kbuf->st_atime_sec; 114 buf->st_atim.tv_nsec = kbuf->st_atime_nsec; 115 buf->st_mtim.tv_sec = kbuf->st_mtime_sec; 116 buf->st_mtim.tv_nsec = kbuf->st_mtime_nsec; 117 buf->st_ctim.tv_sec = kbuf->st_ctime_sec; 118 buf->st_ctim.tv_nsec = kbuf->st_ctime_nsec; 113 119 114 120 buf->st_pad4[0] = 0; buf->st_pad4[1] = 0; 115 121 buf->st_pad4[2] = 0; buf->st_pad4[3] = 0; -
sysdeps/generic/ldsodefs.h
diff -Naur glibc-2.4.orig/sysdeps/generic/ldsodefs.h glibc-2.4/sysdeps/generic/ldsodefs.h
old new 1 1 /* Run-time dynamic linker data structures for loaded ELF shared objects. 2 Copyright (C) 1995-2003, 2004, 2005 Free Software Foundation, Inc.2 Copyright (C) 1995-2003, 2004, 2005, 2006 Free Software Foundation, Inc. 3 3 This file is part of the GNU C Library. 4 4 5 5 The GNU C Library is free software; you can redistribute it and/or … … 193 193 struct La_ppc64_retval; 194 194 struct La_sh_regs; 195 195 struct La_sh_retval; 196 struct La_m68k_regs;197 struct La_m68k_retval;198 196 struct La_alpha_regs; 199 197 struct La_alpha_retval; 200 198 struct La_s390_32_regs; … … 203 201 struct La_s390_64_retval; 204 202 struct La_ia64_regs; 205 203 struct La_ia64_retval; 206 struct La_mips_32_regs;207 struct La_mips_32_retval;208 struct La_mips_64_regs;209 struct La_mips_64_retval;210 204 struct La_sparc32_regs; 211 205 struct La_sparc32_retval; 212 206 struct La_sparc64_regs; … … 247 241 uintptr_t *, const struct La_sh_regs *, 248 242 unsigned int *, const char *name, 249 243 long int *framesizep); 250 Elf32_Addr (*m68k_gnu_pltenter) (Elf32_Sym *, unsigned int, uintptr_t *,251 uintptr_t *, struct La_m68k_regs *,252 unsigned int *, const char *name,253 long int *framesizep);254 244 Elf64_Addr (*alpha_gnu_pltenter) (Elf64_Sym *, unsigned int, uintptr_t *, 255 245 uintptr_t *, struct La_alpha_regs *, 256 246 unsigned int *, const char *name, … … 267 257 uintptr_t *, struct La_ia64_regs *, 268 258 unsigned int *, const char *name, 269 259 long int *framesizep); 270 Elf32_Addr (*mips_o32_gnu_pltenter) (Elf32_Sym *, unsigned int,271 uintptr_t *, uintptr_t *,272 const struct La_mips_32_regs *,273 unsigned int *, const char *name,274 long int *framesizep);275 Elf32_Addr (*mips_n32_gnu_pltenter) (Elf32_Sym *, unsigned int,276 uintptr_t *, uintptr_t *,277 const struct La_mips_64_regs *,278 unsigned int *, const char *name,279 long int *framesizep);280 Elf64_Addr (*mips_n64_gnu_pltenter) (Elf64_Sym *, unsigned int,281 uintptr_t *, uintptr_t *,282 const struct La_mips_64_regs *,283 unsigned int *, const char *name,284 long int *framesizep);285 260 Elf32_Addr (*sparc32_gnu_pltenter) (Elf32_Sym *, unsigned int, 286 261 uintptr_t *, uintptr_t *, 287 262 const struct La_sparc32_regs *, … … 317 292 unsigned int (*sh_gnu_pltexit) (Elf32_Sym *, unsigned int, uintptr_t *, 318 293 uintptr_t *, const struct La_sh_regs *, 319 294 struct La_sh_retval *, const char *); 320 unsigned int (*m68k_gnu_pltexit) (Elf32_Sym *, unsigned int, uintptr_t *,321 uintptr_t *, const struct La_m68k_regs *,322 struct La_m68k_retval *, const char *);323 295 unsigned int (*alpha_gnu_pltexit) (Elf64_Sym *, unsigned int, uintptr_t *, 324 296 uintptr_t *, 325 297 const struct La_alpha_regs *, … … 338 310 uintptr_t *, 339 311 const struct La_ia64_regs *, 340 312 struct La_ia64_retval *, const char *); 341 unsigned int (*mips_o32_gnu_pltexit) (Elf32_Sym *, unsigned int,342 uintptr_t *, uintptr_t *,343 const struct La_mips_32_regs *,344 struct La_mips_32_retval *,345 const char *);346 unsigned int (*mips_n32_gnu_pltexit) (Elf32_Sym *, unsigned int,347 uintptr_t *, uintptr_t *,348 const struct La_mips_64_regs *,349 struct La_mips_64_retval *,350 const char *);351 unsigned int (*mips_n64_gnu_pltexit) (Elf64_Sym *, unsigned int,352 uintptr_t *, uintptr_t *,353 const struct La_mips_64_regs *,354 struct La_mips_64_retval *,355 const char *);356 313 unsigned int (*sparc32_gnu_pltexit) (Elf32_Sym *, unsigned int, 357 314 uintptr_t *, uintptr_t *, 358 315 const struct La_sparc32_regs *,
Note:
See TracBrowser
for help on using the repository browser.