source: patches/glibc-2.4-mips_fixes-3.patch@ 0c3999a

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0c3999a was cb666b8, checked in by Jim Gifford <clfs@…>, 18 years ago

Added glibc-2.4-mips_fixes-3.patch

  • Property mode set to 100644
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  
    3636
    3737  return 0;
    3838}
     39libm_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  
    4141
    4242  return 0;
    4343}
     44libm_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
     25struct La_mips_32_regs;
     26struct La_mips_32_retval;
     27struct La_mips_64_regs;
     28struct 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
     4Test "atan2 (-0.00756827042671106339, -.001792735857538728036) == -1.80338464113663849327153994379639112":
     5ildouble: 1
     6ldouble: 1
     7Test "atan2 (-0.75, -1.0) == -2.49809154479650885165983415456218025":
     8float: 1
     9ifloat: 1
     10ildouble: 1
     11ldouble: 1
     12Test "atan2 (0.75, -1.0) == 2.49809154479650885165983415456218025":
     13float: 1
     14ifloat: 1
     15ildouble: 1
     16ldouble: 1
     17Test "atan2 (1.390625, 0.9296875) == 0.981498387184244311516296577615519772":
     18float: 1
     19ifloat: 1
     20ildouble: 1
     21ldouble: 1
     22
     23# atanh
     24Test "atanh (0.75) == 0.972955074527656652552676371721589865":
     25float: 1
     26ifloat: 1
     27
     28# cacos
     29Test "Imaginary part of: cacos (0.75 + 1.25 i) == 1.11752014915610270578240049553777969 - 1.13239363160530819522266333696834467 i":
     30ildouble: 1
     31ldouble: 1
     32
     33# cacosh
     34Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
     35float: 1
     36ifloat: 1
     37ildouble: 1
     38ldouble: 1
     39
     40# casin
     41Test "Real part of: casin (0.75 + 1.25 i) == 0.453276177638793913448921196101971749 + 1.13239363160530819522266333696834467 i":
     42double: 1
     43float: 1
     44idouble: 1
     45ifloat: 1
     46Test "Imaginary part of: casin (0.75 + 1.25 i) == 0.453276177638793913448921196101971749 + 1.13239363160530819522266333696834467 i":
     47ildouble: 1
     48ldouble: 1
     49
     50# casinh
     51Test "Real part of: casinh (-2 - 3 i) == -1.9686379257930962917886650952454982 - 0.96465850440760279204541105949953237 i":
     52double: 5
     53float: 1
     54idouble: 5
     55ifloat: 1
     56ildouble: 4
     57ldouble: 4
     58Test "Imaginary part of: casinh (-2 - 3 i) == -1.9686379257930962917886650952454982 - 0.96465850440760279204541105949953237 i":
     59double: 3
     60float: 6
     61idouble: 3
     62ifloat: 6
     63ildouble: 2
     64ldouble: 2
     65Test "Real part of: casinh (0.75 + 1.25 i) == 1.03171853444778027336364058631006594 + 0.911738290968487636358489564316731207 i":
     66float: 1
     67ifloat: 1
     68ildouble: 1
     69ldouble: 1
     70Test "Imaginary part of: casinh (0.75 + 1.25 i) == 1.03171853444778027336364058631006594 + 0.911738290968487636358489564316731207 i":
     71double: 1
     72float: 1
     73idouble: 1
     74ifloat: 1
     75ildouble: 1
     76ldouble: 1
     77
     78# catan
     79Test "Imaginary part of: catan (-2 - 3 i) == -1.4099210495965755225306193844604208 - 0.22907268296853876629588180294200276 i":
     80double: 1
     81float: 1
     82idouble: 1
     83ifloat: 1
     84Test "Imaginary part of: catan (0.75 + 1.25 i) == 1.10714871779409050301706546017853704 + 0.549306144334054845697622618461262852 i":
     85ildouble: 1
     86ldouble: 1
     87
     88# catanh
     89Test "Real part of: catanh (-2 - 3 i) == -0.14694666622552975204743278515471595 - 1.3389725222944935611241935759091443 i":
     90double: 4
     91idouble: 4
     92Test "Real part of: catanh (0.75 + 1.25 i) == 0.261492138795671927078652057366532140 + 0.996825126463918666098902241310446708 i":
     93double: 1
     94idouble: 1
     95ildouble: 1
     96ldouble: 1
     97Test "Imaginary part of: catanh (0.75 + 1.25 i) == 0.261492138795671927078652057366532140 + 0.996825126463918666098902241310446708 i":
     98ildouble: 1
     99ldouble: 1
     100
     101# cbrt
     102Test "cbrt (-0.001) == -0.1":
     103ildouble: 1
     104ldouble: 1
     105Test "cbrt (-27.0) == -3.0":
     106double: 1
     107idouble: 1
     108Test "cbrt (0.75) == 0.908560296416069829445605878163630251":
     109double: 1
     110idouble: 1
     111Test "cbrt (0.9921875) == 0.997389022060725270579075195353955217":
     112double: 1
     113idouble: 1
     114
     115# ccos
     116Test "Real part of: ccos (-2 - 3 i) == -4.18962569096880723013255501961597373 - 9.10922789375533659797919726277886212 i":
     117ildouble: 1
     118ldouble: 1
     119Test "Imaginary part of: ccos (-2 - 3 i) == -4.18962569096880723013255501961597373 - 9.10922789375533659797919726277886212 i":
     120float: 1
     121ifloat: 1
     122ildouble: 1
     123ldouble: 1
     124Test "Real part of: ccos (0.75 + 1.25 i) == 1.38173873063425888530729933139078645 - 1.09193013555397466170919531722024128 i":
     125double: 1
     126float: 1
     127idouble: 1
     128ifloat: 1
     129Test "Imaginary part of: ccos (0.75 + 1.25 i) == 1.38173873063425888530729933139078645 - 1.09193013555397466170919531722024128 i":
     130float: 1
     131ifloat: 1
     132
     133# ccosh
     134Test "Real part of: ccosh (-2 - 3 i) == -3.72454550491532256547397070325597253 + 0.511822569987384608834463849801875634 i":
     135float: 1
     136ifloat: 1
     137ildouble: 1
     138ldouble: 1
     139Test "Imaginary part of: ccosh (-2 - 3 i) == -3.72454550491532256547397070325597253 + 0.511822569987384608834463849801875634 i":
     140float: 1
     141ifloat: 1
     142ildouble: 1
     143ldouble: 1
     144Test "Real part of: ccosh (0.75 + 1.25 i) == 0.408242591877968807788852146397499084 + 0.780365930845853240391326216300863152 i":
     145double: 1
     146float: 1
     147idouble: 1
     148ifloat: 1
     149Test "Imaginary part of: ccosh (0.75 + 1.25 i) == 0.408242591877968807788852146397499084 + 0.780365930845853240391326216300863152 i":
     150float: 1
     151ifloat: 1
     152
     153# cexp
     154Test "Real part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
     155ildouble: 1
     156ldouble: 1
     157Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
     158float: 1
     159ifloat: 1
     160ildouble: 1
     161ldouble: 1
     162Test "Real part of: cexp (0.75 + 1.25 i) == 0.667537446429131586942201977015932112 + 2.00900045494094876258347228145863909 i":
     163float: 1
     164ifloat: 1
     165Test "Imaginary part of: cexp (0.75 + 1.25 i) == 0.667537446429131586942201977015932112 + 2.00900045494094876258347228145863909 i":
     166ildouble: 1
     167ldouble: 1
     168
     169# clog
     170Test "Real part of: clog (0.75 + 1.25 i) == 0.376885901188190075998919126749298416 + 1.03037682652431246378774332703115153 i":
     171float: 1
     172ifloat: 1
     173ildouble: 1
     174ldouble: 1
     175
     176# clog10
     177Test "Imaginary part of: clog10 (-0 + inf i) == inf + pi/2*log10(e) i":
     178double: 1
     179float: 1
     180idouble: 1
     181ifloat: 1
     182Test "Imaginary part of: clog10 (-0 - inf i) == inf - pi/2*log10(e) i":
     183double: 1
     184float: 1
     185idouble: 1
     186ifloat: 1
     187Test "Real part of: clog10 (-2 - 3 i) == 0.556971676153418384603252578971164214 - 0.937554462986374708541507952140189646 i":
     188ildouble: 1
     189ldouble: 1
     190Test "Imaginary part of: clog10 (-2 - 3 i) == 0.556971676153418384603252578971164214 - 0.937554462986374708541507952140189646 i":
     191double: 1
     192idouble: 1
     193ildouble: 1
     194ldouble: 1
     195Test "Imaginary part of: clog10 (-3 + inf i) == inf + pi/2*log10(e) i":
     196double: 1
     197float: 1
     198idouble: 1
     199ifloat: 1
     200Test "Imaginary part of: clog10 (-3 - inf i) == inf - pi/2*log10(e) i":
     201double: 1
     202float: 1
     203idouble: 1
     204ifloat: 1
     205Test "Imaginary part of: clog10 (-inf + 0 i) == inf + pi*log10(e) i":
     206double: 1
     207float: 1
     208idouble: 1
     209ifloat: 1
     210Test "Imaginary part of: clog10 (-inf + 1 i) == inf + pi*log10(e) i":
     211double: 1
     212float: 1
     213idouble: 1
     214ifloat: 1
     215Test "Imaginary part of: clog10 (-inf + inf i) == inf + 3/4 pi*log10(e) i":
     216double: 1
     217idouble: 1
     218Test "Imaginary part of: clog10 (-inf - 0 i) == inf - pi*log10(e) i":
     219double: 1
     220float: 1
     221idouble: 1
     222ifloat: 1
     223Test "Imaginary part of: clog10 (-inf - 1 i) == inf - pi*log10(e) i":
     224double: 1
     225float: 1
     226idouble: 1
     227ifloat: 1
     228Test "Imaginary part of: clog10 (0 + inf i) == inf + pi/2*log10(e) i":
     229double: 1
     230float: 1
     231idouble: 1
     232ifloat: 1
     233Test "Imaginary part of: clog10 (0 - inf i) == inf - pi/2*log10(e) i":
     234double: 1
     235float: 1
     236idouble: 1
     237ifloat: 1
     238Test "Real part of: clog10 (0.75 + 1.25 i) == 0.163679467193165171449476605077428975 + 0.447486970040493067069984724340855636 i":
     239float: 1
     240ifloat: 1
     241Test "Imaginary part of: clog10 (0.75 + 1.25 i) == 0.163679467193165171449476605077428975 + 0.447486970040493067069984724340855636 i":
     242ildouble: 1
     243ldouble: 1
     244Test "Imaginary part of: clog10 (3 + inf i) == inf + pi/2*log10(e) i":
     245double: 1
     246float: 1
     247idouble: 1
     248ifloat: 1
     249Test "Imaginary part of: clog10 (3 - inf i) == inf - pi/2*log10(e) i":
     250double: 1
     251float: 1
     252idouble: 1
     253ifloat: 1
     254Test "Imaginary part of: clog10 (inf + inf i) == inf + pi/4*log10(e) i":
     255double: 1
     256float: 1
     257idouble: 1
     258ifloat: 1
     259Test "Imaginary part of: clog10 (inf - inf i) == inf - pi/4*log10(e) i":
     260double: 1
     261float: 1
     262idouble: 1
     263ifloat: 1
     264
     265# cos
     266Test "cos (M_PI_6l * 2.0) == 0.5":
     267double: 1
     268idouble: 1
     269ildouble: 1
     270ldouble: 1
     271Test "cos (M_PI_6l * 4.0) == -0.5":
     272double: 2
     273float: 1
     274idouble: 2
     275ifloat: 1
     276ildouble: 1
     277ldouble: 1
     278
     279# cpow
     280Test "Real part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i) == 0.331825439177608832276067945276730566 + 0.131338600281188544930936345230903032 i":
     281float: 1
     282ifloat: 1
     283Test "Imaginary part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i) == 0.331825439177608832276067945276730566 + 0.131338600281188544930936345230903032 i":
     284float: 1
     285ifloat: 1
     286Test "Real part of: cpow (0.75 + 1.25 i, 0.75 + 1.25 i) == 0.117506293914473555420279832210420483 + 0.346552747708338676483025352060418001 i":
     287double: 1
     288float: 4
     289idouble: 1
     290ifloat: 4
     291ildouble: 4
     292ldouble: 4
     293Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 0.0 i) == 0.75 + 1.25 i":
     294ildouble: 2
     295ldouble: 2
     296Test "Imaginary part of: cpow (0.75 + 1.25 i, 1.0 + 0.0 i) == 0.75 + 1.25 i":
     297ildouble: 1
     298ldouble: 1
     299Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 1.0 i) == 0.0846958290317209430433805274189191353 + 0.513285749182902449043287190519090481 i":
     300double: 2
     301float: 3
     302idouble: 2
     303ifloat: 3
     304ildouble: 10
     305ldouble: 10
     306Test "Real part of: cpow (2 + 0 i, 10 + 0 i) == 1024.0 + 0.0 i":
     307ildouble: 2
     308ldouble: 2
     309Test "Real part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i":
     310double: 1
     311float: 4
     312idouble: 1
     313ifloat: 4
     314ildouble: 3
     315ldouble: 3
     316Test "Imaginary part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i":
     317float: 2
     318ifloat: 2
     319Test "Imaginary part of: cpow (e + 0 i, 0 + 2 * M_PIl i) == 1.0 + 0.0 i":
     320double: 2
     321float: 2
     322idouble: 2
     323ifloat: 2
     324ildouble: 1
     325ldouble: 1
     326
     327# csin
     328Test "Imaginary part of: csin (-2 - 3 i) == -9.15449914691142957346729954460983256 + 4.16890695996656435075481305885375484 i":
     329ildouble: 1
     330ldouble: 1
     331Test "Real part of: csin (0.75 + 1.25 i) == 1.28722291002649188575873510790565441 + 1.17210635989270256101081285116138863 i":
     332ildouble: 1
     333ldouble: 1
     334
     335# csinh
     336Test "Real part of: csinh (-2 - 3 i) == 3.59056458998577995201256544779481679 - 0.530921086248519805267040090660676560 i":
     337ildouble: 1
     338ldouble: 1
     339Test "Imaginary part of: csinh (-2 - 3 i) == 3.59056458998577995201256544779481679 - 0.530921086248519805267040090660676560 i":
     340double: 1
     341idouble: 1
     342Test "Real part of: csinh (0.75 + 1.25 i) == 0.259294854551162779153349830618433028 + 1.22863452409509552219214606515777594 i":
     343float: 1
     344ifloat: 1
     345Test "Imaginary part of: csinh (0.75 + 1.25 i) == 0.259294854551162779153349830618433028 + 1.22863452409509552219214606515777594 i":
     346float: 1
     347ifloat: 1
     348
     349# csqrt
     350Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
     351float: 1
     352ifloat: 1
     353ildouble: 1
     354ldouble: 1
     355Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
     356float: 1
     357ifloat: 1
     358ildouble: 1
     359ldouble: 1
     360Test "Imaginary part of: csqrt (0.75 + 1.25 i) == 1.05065169626078392338656675760808326 + 0.594868882070379067881984030639932657 i":
     361ildouble: 1
     362ldouble: 1
     363
     364# ctan
     365Test "Real part of: ctan (-2 - 3 i) == 0.376402564150424829275122113032269084e-2 - 1.00323862735360980144635859782192726 i":
     366ildouble: 1
     367ldouble: 1
     368Test "Imaginary part of: ctan (-2 - 3 i) == 0.376402564150424829275122113032269084e-2 - 1.00323862735360980144635859782192726 i":
     369ildouble: 1
     370ldouble: 1
     371Test "Imaginary part of: ctan (0.75 + 1.25 i) == 0.160807785916206426725166058173438663 + 0.975363285031235646193581759755216379 i":
     372double: 1
     373idouble: 1
     374ildouble: 2
     375ldouble: 2
     376
     377# ctanh
     378Test "Real part of: ctanh (-2 - 3 i) == -0.965385879022133124278480269394560686 + 0.988437503832249372031403430350121098e-2 i":
     379double: 1
     380float: 2
     381idouble: 1
     382ifloat: 2
     383ildouble: 1
     384ldouble: 1
     385Test "Imaginary part of: ctanh (-2 - 3 i) == -0.965385879022133124278480269394560686 + 0.988437503832249372031403430350121098e-2 i":
     386ildouble: 1
     387ldouble: 1
     388Test "Imaginary part of: ctanh (0 + pi/4 i) == 0.0 + 1.0 i":
     389float: 1
     390ifloat: 1
     391Test "Real part of: ctanh (0.75 + 1.25 i) == 1.37260757053378320258048606571226857 + 0.385795952609750664177596760720790220 i":
     392double: 1
     393idouble: 1
     394
     395# erf
     396Test "erf (1.25) == 0.922900128256458230136523481197281140":
     397double: 1
     398idouble: 1
     399
     400# erfc
     401Test "erfc (2.0) == 0.00467773498104726583793074363274707139":
     402double: 1
     403idouble: 1
     404Test "erfc (27.0) == 0.523704892378925568501606768284954709e-318":
     405ildouble: 1
     406ldouble: 1
     407Test "erfc (4.125) == 0.542340079956506600531223408575531062e-8":
     408double: 1
     409idouble: 1
     410
     411# exp10
     412Test "exp10 (-1) == 0.1":
     413double: 2
     414float: 1
     415idouble: 2
     416ifloat: 1
     417Test "exp10 (0.75) == 5.62341325190349080394951039776481231":
     418double: 1
     419float: 1
     420idouble: 1
     421ifloat: 1
     422Test "exp10 (3) == 1000":
     423double: 6
     424float: 2
     425idouble: 6
     426ifloat: 2
     427ildouble: 1
     428ldouble: 1
     429
     430# exp2
     431Test "exp2 (10) == 1024":
     432ildouble: 2
     433ldouble: 2
     434
     435# expm1
     436Test "expm1 (0.75) == 1.11700001661267466854536981983709561":
     437double: 1
     438idouble: 1
     439Test "expm1 (1) == M_El - 1.0":
     440double: 1
     441float: 1
     442idouble: 1
     443ifloat: 1
     444ildouble: 1
     445ldouble: 1
     446
     447# gamma
     448Test "gamma (-0.5) == log(2*sqrt(pi))":
     449ildouble: 1
     450ldouble: 1
     451
     452# hypot
     453Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
     454float: 1
     455ifloat: 1
     456Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
     457float: 1
     458ifloat: 1
     459Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
     460float: 1
     461ifloat: 1
     462Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
     463float: 1
     464ifloat: 1
     465Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
     466float: 1
     467ifloat: 1
     468Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
     469float: 1
     470ifloat: 1
     471Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
     472float: 1
     473ifloat: 1
     474Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
     475float: 1
     476ifloat: 1
     477
     478# j0
     479Test "j0 (-4.0) == -3.9714980986384737228659076845169804197562E-1":
     480double: 1
     481float: 1
     482idouble: 1
     483ifloat: 1
     484Test "j0 (0.75) == 0.864242275166648623555731103820923211":
     485float: 1
     486ifloat: 1
     487Test "j0 (10.0) == -0.245935764451348335197760862485328754":
     488double: 2
     489float: 1
     490idouble: 2
     491ifloat: 1
     492ildouble: 2
     493ldouble: 2
     494Test "j0 (2.0) == 0.223890779141235668051827454649948626":
     495float: 2
     496ifloat: 2
     497ildouble: 2
     498ldouble: 2
     499Test "j0 (4.0) == -3.9714980986384737228659076845169804197562E-1":
     500double: 1
     501float: 1
     502idouble: 1
     503ifloat: 1
     504Test "j0 (8.0) == 0.171650807137553906090869407851972001":
     505float: 1
     506ifloat: 1
     507ildouble: 1
     508ldouble: 1
     509
     510# j1
     511Test "j1 (-1.0) == -0.440050585744933515959682203718914913":
     512ildouble: 1
     513ldouble: 1
     514Test "j1 (0.75) == 0.349243602174862192523281016426251335":
     515ildouble: 1
     516ldouble: 1
     517Test "j1 (1.0) == 0.440050585744933515959682203718914913":
     518ildouble: 1
     519ldouble: 1
     520Test "j1 (10.0) == 0.0434727461688614366697487680258592883":
     521float: 2
     522ifloat: 2
     523ildouble: 2
     524ldouble: 2
     525Test "j1 (2.0) == 0.576724807756873387202448242269137087":
     526double: 1
     527idouble: 1
     528Test "j1 (8.0) == 0.234636346853914624381276651590454612":
     529double: 1
     530idouble: 1
     531ildouble: 4
     532ldouble: 4
     533
     534# jn
     535Test "jn (0, -4.0) == -3.9714980986384737228659076845169804197562E-1":
     536double: 1
     537float: 1
     538idouble: 1
     539ifloat: 1
     540Test "jn (0, 0.75) == 0.864242275166648623555731103820923211":
     541float: 1
     542ifloat: 1
     543Test "jn (0, 10.0) == -0.245935764451348335197760862485328754":
     544double: 2
     545float: 1
     546idouble: 2
     547ifloat: 1
     548ildouble: 2
     549ldouble: 2
     550Test "jn (0, 2.0) == 0.223890779141235668051827454649948626":
     551float: 2
     552ifloat: 2
     553ildouble: 2
     554ldouble: 2
     555Test "jn (0, 4.0) == -3.9714980986384737228659076845169804197562E-1":
     556double: 1
     557float: 1
     558idouble: 1
     559ifloat: 1
     560Test "jn (0, 8.0) == 0.171650807137553906090869407851972001":
     561float: 1
     562ifloat: 1
     563ildouble: 1
     564ldouble: 1
     565Test "jn (1, -1.0) == -0.440050585744933515959682203718914913":
     566ildouble: 1
     567ldouble: 1
     568Test "jn (1, 0.75) == 0.349243602174862192523281016426251335":
     569ildouble: 1
     570ldouble: 1
     571Test "jn (1, 1.0) == 0.440050585744933515959682203718914913":
     572ildouble: 1
     573ldouble: 1
     574Test "jn (1, 10.0) == 0.0434727461688614366697487680258592883":
     575float: 2
     576ifloat: 2
     577ildouble: 2
     578ldouble: 2
     579Test "jn (1, 2.0) == 0.576724807756873387202448242269137087":
     580double: 1
     581idouble: 1
     582Test "jn (1, 8.0) == 0.234636346853914624381276651590454612":
     583double: 1
     584idouble: 1
     585ildouble: 4
     586ldouble: 4
     587Test "jn (10, -1.0) == 0.263061512368745320699785368779050294e-9":
     588ildouble: 1
     589ldouble: 1
     590Test "jn (10, 0.125) == 0.250543369809369890173993791865771547e-18":
     591double: 1
     592float: 1
     593idouble: 1
     594ifloat: 1
     595ildouble: 1
     596ldouble: 1
     597Test "jn (10, 0.75) == 0.149621713117596814698712483621682835e-10":
     598double: 1
     599float: 1
     600idouble: 1
     601ifloat: 1
     602ildouble: 1
     603ldouble: 1
     604Test "jn (10, 1.0) == 0.263061512368745320699785368779050294e-9":
     605ildouble: 1
     606ldouble: 1
     607Test "jn (10, 10.0) == 0.207486106633358857697278723518753428":
     608double: 4
     609float: 3
     610idouble: 4
     611ifloat: 3
     612ildouble: 2
     613ldouble: 2
     614Test "jn (10, 2.0) == 0.251538628271673670963516093751820639e-6":
     615float: 4
     616ifloat: 4
     617Test "jn (3, 0.125) == 0.406503832554912875023029337653442868e-4":
     618double: 1
     619float: 1
     620idouble: 1
     621ifloat: 1
     622Test "jn (3, 0.75) == 0.848438342327410884392755236884386804e-2":
     623double: 1
     624float: 1
     625idouble: 1
     626ifloat: 1
     627Test "jn (3, 10.0) == 0.0583793793051868123429354784103409563":
     628double: 3
     629float: 1
     630idouble: 3
     631ifloat: 1
     632ildouble: 2
     633ldouble: 2
     634Test "jn (3, 2.0) == 0.128943249474402051098793332969239835":
     635double: 1
     636float: 2
     637idouble: 1
     638ifloat: 2
     639
     640# lgamma
     641Test "lgamma (-0.5) == log(2*sqrt(pi))":
     642ildouble: 1
     643ldouble: 1
     644Test "lgamma (0.7) == 0.260867246531666514385732417016759578":
     645double: 1
     646float: 1
     647idouble: 1
     648ifloat: 1
     649ildouble: 1
     650ldouble: 1
     651Test "lgamma (1.2) == -0.853740900033158497197028392998854470e-1":
     652double: 1
     653float: 2
     654idouble: 1
     655ifloat: 2
     656ildouble: 1
     657ldouble: 1
     658
     659# log10
     660Test "log10 (0.75) == -0.124938736608299953132449886193870744":
     661double: 1
     662float: 2
     663idouble: 1
     664ifloat: 2
     665Test "log10 (e) == log10(e)":
     666float: 1
     667ifloat: 1
     668ildouble: 1
     669ldouble: 1
     670
     671# log1p
     672Test "log1p (-0.25) == -0.287682072451780927439219005993827432":
     673float: 1
     674ifloat: 1
     675
     676# log2
     677Test "log2 (0.75) == -.415037499278843818546261056052183492":
     678ildouble: 1
     679ldouble: 1
     680
     681# sincos
     682Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.5 in cos_res":
     683double: 1
     684idouble: 1
     685ildouble: 1
     686ldouble: 1
     687Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in sin_res":
     688double: 1
     689float: 1
     690idouble: 1
     691ifloat: 1
     692ildouble: 1
     693ldouble: 1
     694Test "sincos (pi/6, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in cos_res":
     695float: 1
     696ifloat: 1
     697
     698# sqrt
     699Test "sqrt (2) == M_SQRT2l":
     700ildouble: 1
     701ldouble: 1
     702
     703# tanh
     704Test "tanh (-0.75) == -0.635148952387287319214434357312496495":
     705ildouble: 1
     706ldouble: 1
     707Test "tanh (-1.0) == -0.7615941559557648881194582826047935904":
     708ildouble: 1
     709ldouble: 1
     710Test "tanh (0.75) == 0.635148952387287319214434357312496495":
     711ildouble: 1
     712ldouble: 1
     713Test "tanh (1.0) == 0.7615941559557648881194582826047935904":
     714ildouble: 1
     715ldouble: 1
     716
     717# tgamma
     718Test "tgamma (-0.5) == -2 sqrt (pi)":
     719double: 1
     720float: 1
     721idouble: 1
     722ifloat: 1
     723ildouble: 1
     724ldouble: 1
     725Test "tgamma (0.5) == sqrt (pi)":
     726float: 1
     727ifloat: 1
     728Test "tgamma (0.7) == 1.29805533264755778568117117915281162":
     729double: 1
     730float: 1
     731idouble: 1
     732ifloat: 1
     733Test "tgamma (4) == 6":
     734ildouble: 1
     735ldouble: 1
     736
     737# y0
     738Test "y0 (1.0) == 0.0882569642156769579829267660235151628":
     739double: 2
     740float: 1
     741idouble: 2
     742ifloat: 1
     743Test "y0 (1.5) == 0.382448923797758843955068554978089862":
     744double: 2
     745float: 1
     746idouble: 2
     747ifloat: 1
     748Test "y0 (10.0) == 0.0556711672835993914244598774101900481":
     749float: 1
     750ifloat: 1
     751ildouble: 3
     752ldouble: 3
     753Test "y0 (8.0) == 0.223521489387566220527323400498620359":
     754double: 1
     755float: 1
     756idouble: 1
     757ifloat: 1
     758ildouble: 3
     759ldouble: 3
     760
     761# y1
     762Test "y1 (0.125) == -5.19993611253477499595928744876579921":
     763double: 1
     764idouble: 1
     765Test "y1 (0.75) == -1.03759455076928541973767132140642198":
     766ildouble: 1
     767ldouble: 1
     768Test "y1 (1.5) == -0.412308626973911295952829820633445323":
     769float: 1
     770ifloat: 1
     771ildouble: 1
     772ldouble: 1
     773Test "y1 (10.0) == 0.249015424206953883923283474663222803":
     774double: 3
     775float: 1
     776idouble: 3
     777ifloat: 1
     778Test "y1 (2.0) == -0.107032431540937546888370772277476637":
     779double: 1
     780float: 1
     781idouble: 1
     782ifloat: 1
     783ildouble: 1
     784ldouble: 1
     785Test "y1 (8.0) == -0.158060461731247494255555266187483550":
     786double: 1
     787float: 2
     788idouble: 1
     789ifloat: 2
     790ildouble: 1
     791ldouble: 1
     792
     793# yn
     794Test "yn (0, 1.0) == 0.0882569642156769579829267660235151628":
     795double: 2
     796float: 1
     797idouble: 2
     798ifloat: 1
     799Test "yn (0, 1.5) == 0.382448923797758843955068554978089862":
     800double: 2
     801float: 1
     802idouble: 2
     803ifloat: 1
     804Test "yn (0, 10.0) == 0.0556711672835993914244598774101900481":
     805float: 1
     806ifloat: 1
     807ildouble: 3
     808ldouble: 3
     809Test "yn (0, 8.0) == 0.223521489387566220527323400498620359":
     810double: 1
     811float: 1
     812idouble: 1
     813ifloat: 1
     814ildouble: 3
     815ldouble: 3
     816Test "yn (1, 0.125) == -5.19993611253477499595928744876579921":
     817double: 1
     818idouble: 1
     819Test "yn (1, 0.75) == -1.03759455076928541973767132140642198":
     820ildouble: 1
     821ldouble: 1
     822Test "yn (1, 1.5) == -0.412308626973911295952829820633445323":
     823float: 1
     824ifloat: 1
     825ildouble: 1
     826ldouble: 1
     827Test "yn (1, 10.0) == 0.249015424206953883923283474663222803":
     828double: 3
     829float: 1
     830idouble: 3
     831ifloat: 1
     832Test "yn (1, 2.0) == -0.107032431540937546888370772277476637":
     833double: 1
     834float: 1
     835idouble: 1
     836ifloat: 1
     837ildouble: 1
     838ldouble: 1
     839Test "yn (1, 8.0) == -0.158060461731247494255555266187483550":
     840double: 1
     841float: 2
     842idouble: 1
     843ifloat: 2
     844ildouble: 1
     845ldouble: 1
     846Test "yn (10, 0.125) == -127057845771019398.252538486899753195":
     847double: 1
     848idouble: 1
     849ildouble: 2
     850ldouble: 2
     851Test "yn (10, 0.75) == -2133501638.90573424452445412893839236":
     852double: 1
     853float: 1
     854idouble: 1
     855ifloat: 1
     856ildouble: 5
     857ldouble: 5
     858Test "yn (10, 1.0) == -121618014.278689189288130426667971145":
     859double: 1
     860idouble: 1
     861ildouble: 1
     862ldouble: 1
     863Test "yn (10, 10.0) == -0.359814152183402722051986577343560609":
     864double: 1
     865float: 1
     866idouble: 1
     867ifloat: 1
     868ildouble: 2
     869ldouble: 2
     870Test "yn (10, 2.0) == -129184.542208039282635913145923304214":
     871double: 2
     872idouble: 2
     873ildouble: 2
     874ldouble: 2
     875Test "yn (3, 0.125) == -2612.69757350066712600220955744091741":
     876double: 1
     877idouble: 1
     878Test "yn (3, 0.75) == -12.9877176234475433186319774484809207":
     879double: 1
     880float: 1
     881idouble: 1
     882ifloat: 1
     883ildouble: 2
     884ldouble: 2
     885Test "yn (3, 10.0) == -0.251362657183837329779204747654240998":
     886double: 1
     887float: 1
     888idouble: 1
     889ifloat: 1
     890ildouble: 1
     891ldouble: 1
     892Test "yn (3, 2.0) == -1.12778377684042778608158395773179238":
     893double: 1
     894idouble: 1
     895
     896# Maximal error of functions:
     897Function: "atan2":
     898float: 1
     899ifloat: 1
     900ildouble: 1
     901ldouble: 1
     902
     903Function: "atanh":
     904float: 1
     905ifloat: 1
     906
     907Function: Imaginary part of "cacos":
     908ildouble: 1
     909ldouble: 1
     910
     911Function: Imaginary part of "cacosh":
     912float: 1
     913ifloat: 1
     914ildouble: 1
     915ldouble: 1
     916
     917Function: Real part of "casin":
     918double: 1
     919float: 1
     920idouble: 1
     921ifloat: 1
     922
     923Function: Imaginary part of "casin":
     924ildouble: 1
     925ldouble: 1
     926
     927Function: Real part of "casinh":
     928double: 5
     929float: 1
     930idouble: 5
     931ifloat: 1
     932ildouble: 4
     933ldouble: 4
     934
     935Function: Imaginary part of "casinh":
     936double: 3
     937float: 6
     938idouble: 3
     939ifloat: 6
     940ildouble: 2
     941ldouble: 2
     942
     943Function: Imaginary part of "catan":
     944double: 1
     945float: 1
     946idouble: 1
     947ifloat: 1
     948ildouble: 1
     949ldouble: 1
     950
     951Function: Real part of "catanh":
     952double: 4
     953idouble: 4
     954ildouble: 1
     955ldouble: 1
     956
     957Function: Imaginary part of "catanh":
     958ildouble: 1
     959ldouble: 1
     960
     961Function: "cbrt":
     962double: 1
     963idouble: 1
     964ildouble: 1
     965ldouble: 1
     966
     967Function: Real part of "ccos":
     968double: 1
     969float: 1
     970idouble: 1
     971ifloat: 1
     972ildouble: 1
     973ldouble: 1
     974
     975Function: Imaginary part of "ccos":
     976float: 1
     977ifloat: 1
     978ildouble: 1
     979ldouble: 1
     980
     981Function: Real part of "ccosh":
     982double: 1
     983float: 1
     984idouble: 1
     985ifloat: 1
     986ildouble: 1
     987ldouble: 1
     988
     989Function: Imaginary part of "ccosh":
     990float: 1
     991ifloat: 1
     992ildouble: 1
     993ldouble: 1
     994
     995Function: Real part of "cexp":
     996float: 1
     997ifloat: 1
     998ildouble: 1
     999ldouble: 1
     1000
     1001Function: Imaginary part of "cexp":
     1002float: 1
     1003ifloat: 1
     1004ildouble: 1
     1005ldouble: 1
     1006
     1007Function: Real part of "clog":
     1008float: 1
     1009ifloat: 1
     1010ildouble: 1
     1011ldouble: 1
     1012
     1013Function: Real part of "clog10":
     1014float: 1
     1015ifloat: 1
     1016ildouble: 1
     1017ldouble: 1
     1018
     1019Function: Imaginary part of "clog10":
     1020double: 1
     1021float: 1
     1022idouble: 1
     1023ifloat: 1
     1024ildouble: 1
     1025ldouble: 1
     1026
     1027Function: "cos":
     1028double: 2
     1029float: 1
     1030idouble: 2
     1031ifloat: 1
     1032ildouble: 1
     1033ldouble: 1
     1034
     1035Function: Real part of "cpow":
     1036double: 2
     1037float: 4
     1038idouble: 2
     1039ifloat: 4
     1040ildouble: 10
     1041ldouble: 10
     1042
     1043Function: Imaginary part of "cpow":
     1044double: 2
     1045float: 2
     1046idouble: 2
     1047ifloat: 2
     1048ildouble: 1
     1049ldouble: 1
     1050
     1051Function: Real part of "csin":
     1052ildouble: 1
     1053ldouble: 1
     1054
     1055Function: Imaginary part of "csin":
     1056ildouble: 1
     1057ldouble: 1
     1058
     1059Function: Real part of "csinh":
     1060float: 1
     1061ifloat: 1
     1062ildouble: 1
     1063ldouble: 1
     1064
     1065Function: Imaginary part of "csinh":
     1066double: 1
     1067float: 1
     1068idouble: 1
     1069ifloat: 1
     1070
     1071Function: Real part of "csqrt":
     1072float: 1
     1073ifloat: 1
     1074ildouble: 1
     1075ldouble: 1
     1076
     1077Function: Imaginary part of "csqrt":
     1078ildouble: 1
     1079ldouble: 1
     1080
     1081Function: Real part of "ctan":
     1082ildouble: 1
     1083ldouble: 1
     1084
     1085Function: Imaginary part of "ctan":
     1086double: 1
     1087idouble: 1
     1088ildouble: 2
     1089ldouble: 2
     1090
     1091Function: Real part of "ctanh":
     1092double: 1
     1093float: 2
     1094idouble: 1
     1095ifloat: 2
     1096ildouble: 1
     1097ldouble: 1
     1098
     1099Function: Imaginary part of "ctanh":
     1100float: 1
     1101ifloat: 1
     1102ildouble: 1
     1103ldouble: 1
     1104
     1105Function: "erf":
     1106double: 1
     1107idouble: 1
     1108
     1109Function: "erfc":
     1110double: 1
     1111idouble: 1
     1112ildouble: 1
     1113ldouble: 1
     1114
     1115Function: "exp10":
     1116double: 6
     1117float: 2
     1118idouble: 6
     1119ifloat: 2
     1120ildouble: 1
     1121ldouble: 1
     1122
     1123Function: "exp2":
     1124ildouble: 2
     1125ldouble: 2
     1126
     1127Function: "expm1":
     1128double: 1
     1129float: 1
     1130idouble: 1
     1131ifloat: 1
     1132ildouble: 1
     1133ldouble: 1
     1134
     1135Function: "gamma":
     1136ildouble: 1
     1137ldouble: 1
     1138
     1139Function: "hypot":
     1140float: 1
     1141ifloat: 1
     1142
     1143Function: "j0":
     1144double: 2
     1145float: 2
     1146idouble: 2
     1147ifloat: 2
     1148ildouble: 2
     1149ldouble: 2
     1150
     1151Function: "j1":
     1152double: 1
     1153float: 2
     1154idouble: 1
     1155ifloat: 2
     1156ildouble: 4
     1157ldouble: 4
     1158
     1159Function: "jn":
     1160double: 4
     1161float: 4
     1162idouble: 4
     1163ifloat: 4
     1164ildouble: 4
     1165ldouble: 4
     1166
     1167Function: "lgamma":
     1168double: 1
     1169float: 2
     1170idouble: 1
     1171ifloat: 2
     1172ildouble: 1
     1173ldouble: 1
     1174
     1175Function: "log10":
     1176double: 1
     1177float: 2
     1178idouble: 1
     1179ifloat: 2
     1180ildouble: 1
     1181ldouble: 1
     1182
     1183Function: "log1p":
     1184float: 1
     1185ifloat: 1
     1186ildouble: 1
     1187ldouble: 1
     1188
     1189Function: "log2":
     1190ildouble: 1
     1191ldouble: 1
     1192
     1193Function: "sincos":
     1194double: 1
     1195float: 1
     1196idouble: 1
     1197ifloat: 1
     1198ildouble: 1
     1199ldouble: 1
     1200
     1201Function: "sqrt":
     1202ildouble: 1
     1203ldouble: 1
     1204
     1205Function: "tan":
     1206double: 1
     1207idouble: 1
     1208
     1209Function: "tanh":
     1210ildouble: 1
     1211ldouble: 1
     1212
     1213Function: "tgamma":
     1214double: 1
     1215float: 1
     1216idouble: 1
     1217ifloat: 1
     1218ildouble: 1
     1219ldouble: 1
     1220
     1221Function: "y0":
     1222double: 2
     1223float: 1
     1224idouble: 2
     1225ifloat: 1
     1226ildouble: 3
     1227ldouble: 3
     1228
     1229Function: "y1":
     1230double: 3
     1231float: 2
     1232idouble: 3
     1233ifloat: 2
     1234ildouble: 1
     1235ldouble: 1
     1236
     1237Function: "yn":
     1238double: 3
     1239float: 2
     1240idouble: 3
     1241ifloat: 2
     1242ildouble: 5
     1243ldouble: 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
     4Test "atan2 (-0.00756827042671106339, -.001792735857538728036) == -1.80338464113663849327153994379639112":
     5ildouble: 1
     6ldouble: 1
     7Test "atan2 (-0.75, -1.0) == -2.49809154479650885165983415456218025":
     8float: 1
     9ifloat: 1
     10ildouble: 1
     11ldouble: 1
     12Test "atan2 (0.75, -1.0) == 2.49809154479650885165983415456218025":
     13float: 1
     14ifloat: 1
     15ildouble: 1
     16ldouble: 1
     17Test "atan2 (1.390625, 0.9296875) == 0.981498387184244311516296577615519772":
     18float: 1
     19ifloat: 1
     20ildouble: 1
     21ldouble: 1
     22
     23# atanh
     24Test "atanh (0.75) == 0.972955074527656652552676371721589865":
     25float: 1
     26ifloat: 1
     27
     28# cacos
     29Test "Imaginary part of: cacos (0.75 + 1.25 i) == 1.11752014915610270578240049553777969 - 1.13239363160530819522266333696834467 i":
     30ildouble: 1
     31ldouble: 1
     32
     33# cacosh
     34Test "Imaginary part of: cacosh (-2 - 3 i) == 1.9833870299165354323470769028940395 - 2.1414491111159960199416055713254211 i":
     35float: 1
     36ifloat: 1
     37ildouble: 1
     38ldouble: 1
     39
     40# casin
     41Test "Real part of: casin (0.75 + 1.25 i) == 0.453276177638793913448921196101971749 + 1.13239363160530819522266333696834467 i":
     42double: 1
     43float: 1
     44idouble: 1
     45ifloat: 1
     46Test "Imaginary part of: casin (0.75 + 1.25 i) == 0.453276177638793913448921196101971749 + 1.13239363160530819522266333696834467 i":
     47ildouble: 1
     48ldouble: 1
     49
     50# casinh
     51Test "Real part of: casinh (-2 - 3 i) == -1.9686379257930962917886650952454982 - 0.96465850440760279204541105949953237 i":
     52double: 5
     53float: 1
     54idouble: 5
     55ifloat: 1
     56ildouble: 4
     57ldouble: 4
     58Test "Imaginary part of: casinh (-2 - 3 i) == -1.9686379257930962917886650952454982 - 0.96465850440760279204541105949953237 i":
     59double: 3
     60float: 6
     61idouble: 3
     62ifloat: 6
     63ildouble: 2
     64ldouble: 2
     65Test "Real part of: casinh (0.75 + 1.25 i) == 1.03171853444778027336364058631006594 + 0.911738290968487636358489564316731207 i":
     66float: 1
     67ifloat: 1
     68ildouble: 1
     69ldouble: 1
     70Test "Imaginary part of: casinh (0.75 + 1.25 i) == 1.03171853444778027336364058631006594 + 0.911738290968487636358489564316731207 i":
     71double: 1
     72float: 1
     73idouble: 1
     74ifloat: 1
     75ildouble: 1
     76ldouble: 1
     77
     78# catan
     79Test "Imaginary part of: catan (-2 - 3 i) == -1.4099210495965755225306193844604208 - 0.22907268296853876629588180294200276 i":
     80double: 1
     81float: 1
     82idouble: 1
     83ifloat: 1
     84Test "Imaginary part of: catan (0.75 + 1.25 i) == 1.10714871779409050301706546017853704 + 0.549306144334054845697622618461262852 i":
     85ildouble: 1
     86ldouble: 1
     87
     88# catanh
     89Test "Real part of: catanh (-2 - 3 i) == -0.14694666622552975204743278515471595 - 1.3389725222944935611241935759091443 i":
     90double: 4
     91idouble: 4
     92Test "Real part of: catanh (0.75 + 1.25 i) == 0.261492138795671927078652057366532140 + 0.996825126463918666098902241310446708 i":
     93double: 1
     94idouble: 1
     95ildouble: 1
     96ldouble: 1
     97Test "Imaginary part of: catanh (0.75 + 1.25 i) == 0.261492138795671927078652057366532140 + 0.996825126463918666098902241310446708 i":
     98ildouble: 1
     99ldouble: 1
     100
     101# cbrt
     102Test "cbrt (-0.001) == -0.1":
     103ildouble: 1
     104ldouble: 1
     105Test "cbrt (-27.0) == -3.0":
     106double: 1
     107idouble: 1
     108Test "cbrt (0.75) == 0.908560296416069829445605878163630251":
     109double: 1
     110idouble: 1
     111Test "cbrt (0.9921875) == 0.997389022060725270579075195353955217":
     112double: 1
     113idouble: 1
     114
     115# ccos
     116Test "Real part of: ccos (-2 - 3 i) == -4.18962569096880723013255501961597373 - 9.10922789375533659797919726277886212 i":
     117ildouble: 1
     118ldouble: 1
     119Test "Imaginary part of: ccos (-2 - 3 i) == -4.18962569096880723013255501961597373 - 9.10922789375533659797919726277886212 i":
     120float: 1
     121ifloat: 1
     122ildouble: 1
     123ldouble: 1
     124Test "Real part of: ccos (0.75 + 1.25 i) == 1.38173873063425888530729933139078645 - 1.09193013555397466170919531722024128 i":
     125double: 1
     126float: 1
     127idouble: 1
     128ifloat: 1
     129Test "Imaginary part of: ccos (0.75 + 1.25 i) == 1.38173873063425888530729933139078645 - 1.09193013555397466170919531722024128 i":
     130float: 1
     131ifloat: 1
     132
     133# ccosh
     134Test "Real part of: ccosh (-2 - 3 i) == -3.72454550491532256547397070325597253 + 0.511822569987384608834463849801875634 i":
     135float: 1
     136ifloat: 1
     137ildouble: 1
     138ldouble: 1
     139Test "Imaginary part of: ccosh (-2 - 3 i) == -3.72454550491532256547397070325597253 + 0.511822569987384608834463849801875634 i":
     140float: 1
     141ifloat: 1
     142ildouble: 1
     143ldouble: 1
     144Test "Real part of: ccosh (0.75 + 1.25 i) == 0.408242591877968807788852146397499084 + 0.780365930845853240391326216300863152 i":
     145double: 1
     146float: 1
     147idouble: 1
     148ifloat: 1
     149Test "Imaginary part of: ccosh (0.75 + 1.25 i) == 0.408242591877968807788852146397499084 + 0.780365930845853240391326216300863152 i":
     150float: 1
     151ifloat: 1
     152
     153# cexp
     154Test "Real part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
     155ildouble: 1
     156ldouble: 1
     157Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.13398091492954261346140525546115575 - 0.019098516261135196432576240858800925 i":
     158float: 1
     159ifloat: 1
     160ildouble: 1
     161ldouble: 1
     162Test "Real part of: cexp (0.75 + 1.25 i) == 0.667537446429131586942201977015932112 + 2.00900045494094876258347228145863909 i":
     163float: 1
     164ifloat: 1
     165Test "Imaginary part of: cexp (0.75 + 1.25 i) == 0.667537446429131586942201977015932112 + 2.00900045494094876258347228145863909 i":
     166ildouble: 1
     167ldouble: 1
     168
     169# clog
     170Test "Real part of: clog (0.75 + 1.25 i) == 0.376885901188190075998919126749298416 + 1.03037682652431246378774332703115153 i":
     171float: 1
     172ifloat: 1
     173ildouble: 1
     174ldouble: 1
     175
     176# clog10
     177Test "Imaginary part of: clog10 (-0 + inf i) == inf + pi/2*log10(e) i":
     178double: 1
     179float: 1
     180idouble: 1
     181ifloat: 1
     182Test "Imaginary part of: clog10 (-0 - inf i) == inf - pi/2*log10(e) i":
     183double: 1
     184float: 1
     185idouble: 1
     186ifloat: 1
     187Test "Real part of: clog10 (-2 - 3 i) == 0.556971676153418384603252578971164214 - 0.937554462986374708541507952140189646 i":
     188ildouble: 1
     189ldouble: 1
     190Test "Imaginary part of: clog10 (-2 - 3 i) == 0.556971676153418384603252578971164214 - 0.937554462986374708541507952140189646 i":
     191double: 1
     192idouble: 1
     193ildouble: 1
     194ldouble: 1
     195Test "Imaginary part of: clog10 (-3 + inf i) == inf + pi/2*log10(e) i":
     196double: 1
     197float: 1
     198idouble: 1
     199ifloat: 1
     200Test "Imaginary part of: clog10 (-3 - inf i) == inf - pi/2*log10(e) i":
     201double: 1
     202float: 1
     203idouble: 1
     204ifloat: 1
     205Test "Imaginary part of: clog10 (-inf + 0 i) == inf + pi*log10(e) i":
     206double: 1
     207float: 1
     208idouble: 1
     209ifloat: 1
     210Test "Imaginary part of: clog10 (-inf + 1 i) == inf + pi*log10(e) i":
     211double: 1
     212float: 1
     213idouble: 1
     214ifloat: 1
     215Test "Imaginary part of: clog10 (-inf + inf i) == inf + 3/4 pi*log10(e) i":
     216double: 1
     217idouble: 1
     218Test "Imaginary part of: clog10 (-inf - 0 i) == inf - pi*log10(e) i":
     219double: 1
     220float: 1
     221idouble: 1
     222ifloat: 1
     223Test "Imaginary part of: clog10 (-inf - 1 i) == inf - pi*log10(e) i":
     224double: 1
     225float: 1
     226idouble: 1
     227ifloat: 1
     228Test "Imaginary part of: clog10 (0 + inf i) == inf + pi/2*log10(e) i":
     229double: 1
     230float: 1
     231idouble: 1
     232ifloat: 1
     233Test "Imaginary part of: clog10 (0 - inf i) == inf - pi/2*log10(e) i":
     234double: 1
     235float: 1
     236idouble: 1
     237ifloat: 1
     238Test "Real part of: clog10 (0.75 + 1.25 i) == 0.163679467193165171449476605077428975 + 0.447486970040493067069984724340855636 i":
     239float: 1
     240ifloat: 1
     241Test "Imaginary part of: clog10 (0.75 + 1.25 i) == 0.163679467193165171449476605077428975 + 0.447486970040493067069984724340855636 i":
     242ildouble: 1
     243ldouble: 1
     244Test "Imaginary part of: clog10 (3 + inf i) == inf + pi/2*log10(e) i":
     245double: 1
     246float: 1
     247idouble: 1
     248ifloat: 1
     249Test "Imaginary part of: clog10 (3 - inf i) == inf - pi/2*log10(e) i":
     250double: 1
     251float: 1
     252idouble: 1
     253ifloat: 1
     254Test "Imaginary part of: clog10 (inf + inf i) == inf + pi/4*log10(e) i":
     255double: 1
     256float: 1
     257idouble: 1
     258ifloat: 1
     259Test "Imaginary part of: clog10 (inf - inf i) == inf - pi/4*log10(e) i":
     260double: 1
     261float: 1
     262idouble: 1
     263ifloat: 1
     264
     265# cos
     266Test "cos (M_PI_6l * 2.0) == 0.5":
     267double: 1
     268idouble: 1
     269ildouble: 1
     270ldouble: 1
     271Test "cos (M_PI_6l * 4.0) == -0.5":
     272double: 2
     273float: 1
     274idouble: 2
     275ifloat: 1
     276ildouble: 1
     277ldouble: 1
     278
     279# cpow
     280Test "Real part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i) == 0.331825439177608832276067945276730566 + 0.131338600281188544930936345230903032 i":
     281float: 1
     282ifloat: 1
     283Test "Imaginary part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i) == 0.331825439177608832276067945276730566 + 0.131338600281188544930936345230903032 i":
     284float: 1
     285ifloat: 1
     286Test "Real part of: cpow (0.75 + 1.25 i, 0.75 + 1.25 i) == 0.117506293914473555420279832210420483 + 0.346552747708338676483025352060418001 i":
     287double: 1
     288float: 4
     289idouble: 1
     290ifloat: 4
     291ildouble: 4
     292ldouble: 4
     293Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 0.0 i) == 0.75 + 1.25 i":
     294ildouble: 2
     295ldouble: 2
     296Test "Imaginary part of: cpow (0.75 + 1.25 i, 1.0 + 0.0 i) == 0.75 + 1.25 i":
     297ildouble: 1
     298ldouble: 1
     299Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 1.0 i) == 0.0846958290317209430433805274189191353 + 0.513285749182902449043287190519090481 i":
     300double: 2
     301float: 3
     302idouble: 2
     303ifloat: 3
     304ildouble: 10
     305ldouble: 10
     306Test "Real part of: cpow (2 + 0 i, 10 + 0 i) == 1024.0 + 0.0 i":
     307ildouble: 2
     308ldouble: 2
     309Test "Real part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i":
     310double: 1
     311float: 4
     312idouble: 1
     313ifloat: 4
     314ildouble: 3
     315ldouble: 3
     316Test "Imaginary part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i":
     317float: 2
     318ifloat: 2
     319Test "Imaginary part of: cpow (e + 0 i, 0 + 2 * M_PIl i) == 1.0 + 0.0 i":
     320double: 2
     321float: 2
     322idouble: 2
     323ifloat: 2
     324ildouble: 1
     325ldouble: 1
     326
     327# csin
     328Test "Imaginary part of: csin (-2 - 3 i) == -9.15449914691142957346729954460983256 + 4.16890695996656435075481305885375484 i":
     329ildouble: 1
     330ldouble: 1
     331Test "Real part of: csin (0.75 + 1.25 i) == 1.28722291002649188575873510790565441 + 1.17210635989270256101081285116138863 i":
     332ildouble: 1
     333ldouble: 1
     334
     335# csinh
     336Test "Real part of: csinh (-2 - 3 i) == 3.59056458998577995201256544779481679 - 0.530921086248519805267040090660676560 i":
     337ildouble: 1
     338ldouble: 1
     339Test "Imaginary part of: csinh (-2 - 3 i) == 3.59056458998577995201256544779481679 - 0.530921086248519805267040090660676560 i":
     340double: 1
     341idouble: 1
     342Test "Real part of: csinh (0.75 + 1.25 i) == 0.259294854551162779153349830618433028 + 1.22863452409509552219214606515777594 i":
     343float: 1
     344ifloat: 1
     345Test "Imaginary part of: csinh (0.75 + 1.25 i) == 0.259294854551162779153349830618433028 + 1.22863452409509552219214606515777594 i":
     346float: 1
     347ifloat: 1
     348
     349# csqrt
     350Test "Real part of: csqrt (-2 + 3 i) == 0.89597747612983812471573375529004348 + 1.6741492280355400404480393008490519 i":
     351float: 1
     352ifloat: 1
     353ildouble: 1
     354ldouble: 1
     355Test "Real part of: csqrt (-2 - 3 i) == 0.89597747612983812471573375529004348 - 1.6741492280355400404480393008490519 i":
     356float: 1
     357ifloat: 1
     358ildouble: 1
     359ldouble: 1
     360Test "Imaginary part of: csqrt (0.75 + 1.25 i) == 1.05065169626078392338656675760808326 + 0.594868882070379067881984030639932657 i":
     361ildouble: 1
     362ldouble: 1
     363
     364# ctan
     365Test "Real part of: ctan (-2 - 3 i) == 0.376402564150424829275122113032269084e-2 - 1.00323862735360980144635859782192726 i":
     366ildouble: 1
     367ldouble: 1
     368Test "Imaginary part of: ctan (-2 - 3 i) == 0.376402564150424829275122113032269084e-2 - 1.00323862735360980144635859782192726 i":
     369ildouble: 1
     370ldouble: 1
     371Test "Imaginary part of: ctan (0.75 + 1.25 i) == 0.160807785916206426725166058173438663 + 0.975363285031235646193581759755216379 i":
     372double: 1
     373idouble: 1
     374ildouble: 2
     375ldouble: 2
     376
     377# ctanh
     378Test "Real part of: ctanh (-2 - 3 i) == -0.965385879022133124278480269394560686 + 0.988437503832249372031403430350121098e-2 i":
     379double: 1
     380float: 2
     381idouble: 1
     382ifloat: 2
     383ildouble: 1
     384ldouble: 1
     385Test "Imaginary part of: ctanh (-2 - 3 i) == -0.965385879022133124278480269394560686 + 0.988437503832249372031403430350121098e-2 i":
     386ildouble: 1
     387ldouble: 1
     388Test "Imaginary part of: ctanh (0 + pi/4 i) == 0.0 + 1.0 i":
     389float: 1
     390ifloat: 1
     391Test "Real part of: ctanh (0.75 + 1.25 i) == 1.37260757053378320258048606571226857 + 0.385795952609750664177596760720790220 i":
     392double: 1
     393idouble: 1
     394
     395# erf
     396Test "erf (1.25) == 0.922900128256458230136523481197281140":
     397double: 1
     398idouble: 1
     399
     400# erfc
     401Test "erfc (2.0) == 0.00467773498104726583793074363274707139":
     402double: 1
     403idouble: 1
     404Test "erfc (27.0) == 0.523704892378925568501606768284954709e-318":
     405ildouble: 1
     406ldouble: 1
     407Test "erfc (4.125) == 0.542340079956506600531223408575531062e-8":
     408double: 1
     409idouble: 1
     410
     411# exp10
     412Test "exp10 (-1) == 0.1":
     413double: 2
     414float: 1
     415idouble: 2
     416ifloat: 1
     417Test "exp10 (0.75) == 5.62341325190349080394951039776481231":
     418double: 1
     419float: 1
     420idouble: 1
     421ifloat: 1
     422Test "exp10 (3) == 1000":
     423double: 6
     424float: 2
     425idouble: 6
     426ifloat: 2
     427ildouble: 1
     428ldouble: 1
     429
     430# exp2
     431Test "exp2 (10) == 1024":
     432ildouble: 2
     433ldouble: 2
     434
     435# expm1
     436Test "expm1 (0.75) == 1.11700001661267466854536981983709561":
     437double: 1
     438idouble: 1
     439Test "expm1 (1) == M_El - 1.0":
     440double: 1
     441float: 1
     442idouble: 1
     443ifloat: 1
     444ildouble: 1
     445ldouble: 1
     446
     447# gamma
     448Test "gamma (-0.5) == log(2*sqrt(pi))":
     449ildouble: 1
     450ldouble: 1
     451
     452# hypot
     453Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
     454float: 1
     455ifloat: 1
     456Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
     457float: 1
     458ifloat: 1
     459Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
     460float: 1
     461ifloat: 1
     462Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
     463float: 1
     464ifloat: 1
     465Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
     466float: 1
     467ifloat: 1
     468Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
     469float: 1
     470ifloat: 1
     471Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
     472float: 1
     473ifloat: 1
     474Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
     475float: 1
     476ifloat: 1
     477
     478# j0
     479Test "j0 (-4.0) == -3.9714980986384737228659076845169804197562E-1":
     480double: 1
     481float: 1
     482idouble: 1
     483ifloat: 1
     484Test "j0 (0.75) == 0.864242275166648623555731103820923211":
     485float: 1
     486ifloat: 1
     487Test "j0 (10.0) == -0.245935764451348335197760862485328754":
     488double: 2
     489float: 1
     490idouble: 2
     491ifloat: 1
     492ildouble: 2
     493ldouble: 2
     494Test "j0 (2.0) == 0.223890779141235668051827454649948626":
     495float: 2
     496ifloat: 2
     497ildouble: 2
     498ldouble: 2
     499Test "j0 (4.0) == -3.9714980986384737228659076845169804197562E-1":
     500double: 1
     501float: 1
     502idouble: 1
     503ifloat: 1
     504Test "j0 (8.0) == 0.171650807137553906090869407851972001":
     505float: 1
     506ifloat: 1
     507ildouble: 1
     508ldouble: 1
     509
     510# j1
     511Test "j1 (-1.0) == -0.440050585744933515959682203718914913":
     512ildouble: 1
     513ldouble: 1
     514Test "j1 (0.75) == 0.349243602174862192523281016426251335":
     515ildouble: 1
     516ldouble: 1
     517Test "j1 (1.0) == 0.440050585744933515959682203718914913":
     518ildouble: 1
     519ldouble: 1
     520Test "j1 (10.0) == 0.0434727461688614366697487680258592883":
     521float: 2
     522ifloat: 2
     523ildouble: 2
     524ldouble: 2
     525Test "j1 (2.0) == 0.576724807756873387202448242269137087":
     526double: 1
     527idouble: 1
     528Test "j1 (8.0) == 0.234636346853914624381276651590454612":
     529double: 1
     530idouble: 1
     531ildouble: 4
     532ldouble: 4
     533
     534# jn
     535Test "jn (0, -4.0) == -3.9714980986384737228659076845169804197562E-1":
     536double: 1
     537float: 1
     538idouble: 1
     539ifloat: 1
     540Test "jn (0, 0.75) == 0.864242275166648623555731103820923211":
     541float: 1
     542ifloat: 1
     543Test "jn (0, 10.0) == -0.245935764451348335197760862485328754":
     544double: 2
     545float: 1
     546idouble: 2
     547ifloat: 1
     548ildouble: 2
     549ldouble: 2
     550Test "jn (0, 2.0) == 0.223890779141235668051827454649948626":
     551float: 2
     552ifloat: 2
     553ildouble: 2
     554ldouble: 2
     555Test "jn (0, 4.0) == -3.9714980986384737228659076845169804197562E-1":
     556double: 1
     557float: 1
     558idouble: 1
     559ifloat: 1
     560Test "jn (0, 8.0) == 0.171650807137553906090869407851972001":
     561float: 1
     562ifloat: 1
     563ildouble: 1
     564ldouble: 1
     565Test "jn (1, -1.0) == -0.440050585744933515959682203718914913":
     566ildouble: 1
     567ldouble: 1
     568Test "jn (1, 0.75) == 0.349243602174862192523281016426251335":
     569ildouble: 1
     570ldouble: 1
     571Test "jn (1, 1.0) == 0.440050585744933515959682203718914913":
     572ildouble: 1
     573ldouble: 1
     574Test "jn (1, 10.0) == 0.0434727461688614366697487680258592883":
     575float: 2
     576ifloat: 2
     577ildouble: 2
     578ldouble: 2
     579Test "jn (1, 2.0) == 0.576724807756873387202448242269137087":
     580double: 1
     581idouble: 1
     582Test "jn (1, 8.0) == 0.234636346853914624381276651590454612":
     583double: 1
     584idouble: 1
     585ildouble: 4
     586ldouble: 4
     587Test "jn (10, -1.0) == 0.263061512368745320699785368779050294e-9":
     588ildouble: 1
     589ldouble: 1
     590Test "jn (10, 0.125) == 0.250543369809369890173993791865771547e-18":
     591double: 1
     592float: 1
     593idouble: 1
     594ifloat: 1
     595ildouble: 1
     596ldouble: 1
     597Test "jn (10, 0.75) == 0.149621713117596814698712483621682835e-10":
     598double: 1
     599float: 1
     600idouble: 1
     601ifloat: 1
     602ildouble: 1
     603ldouble: 1
     604Test "jn (10, 1.0) == 0.263061512368745320699785368779050294e-9":
     605ildouble: 1
     606ldouble: 1
     607Test "jn (10, 10.0) == 0.207486106633358857697278723518753428":
     608double: 4
     609float: 3
     610idouble: 4
     611ifloat: 3
     612ildouble: 2
     613ldouble: 2
     614Test "jn (10, 2.0) == 0.251538628271673670963516093751820639e-6":
     615float: 4
     616ifloat: 4
     617Test "jn (3, 0.125) == 0.406503832554912875023029337653442868e-4":
     618double: 1
     619float: 1
     620idouble: 1
     621ifloat: 1
     622Test "jn (3, 0.75) == 0.848438342327410884392755236884386804e-2":
     623double: 1
     624float: 1
     625idouble: 1
     626ifloat: 1
     627Test "jn (3, 10.0) == 0.0583793793051868123429354784103409563":
     628double: 3
     629float: 1
     630idouble: 3
     631ifloat: 1
     632ildouble: 2
     633ldouble: 2
     634Test "jn (3, 2.0) == 0.128943249474402051098793332969239835":
     635double: 1
     636float: 2
     637idouble: 1
     638ifloat: 2
     639
     640# lgamma
     641Test "lgamma (-0.5) == log(2*sqrt(pi))":
     642ildouble: 1
     643ldouble: 1
     644Test "lgamma (0.7) == 0.260867246531666514385732417016759578":
     645double: 1
     646float: 1
     647idouble: 1
     648ifloat: 1
     649ildouble: 1
     650ldouble: 1
     651Test "lgamma (1.2) == -0.853740900033158497197028392998854470e-1":
     652double: 1
     653float: 2
     654idouble: 1
     655ifloat: 2
     656ildouble: 1
     657ldouble: 1
     658
     659# log10
     660Test "log10 (0.75) == -0.124938736608299953132449886193870744":
     661double: 1
     662float: 2
     663idouble: 1
     664ifloat: 2
     665Test "log10 (e) == log10(e)":
     666float: 1
     667ifloat: 1
     668ildouble: 1
     669ldouble: 1
     670
     671# log1p
     672Test "log1p (-0.25) == -0.287682072451780927439219005993827432":
     673float: 1
     674ifloat: 1
     675
     676# log2
     677Test "log2 (0.75) == -.415037499278843818546261056052183492":
     678ildouble: 1
     679ldouble: 1
     680
     681# sincos
     682Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.5 in cos_res":
     683double: 1
     684idouble: 1
     685ildouble: 1
     686ldouble: 1
     687Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in sin_res":
     688double: 1
     689float: 1
     690idouble: 1
     691ifloat: 1
     692ildouble: 1
     693ldouble: 1
     694Test "sincos (pi/6, &sin_res, &cos_res) puts 0.86602540378443864676372317075293616 in cos_res":
     695float: 1
     696ifloat: 1
     697
     698# sqrt
     699Test "sqrt (2) == M_SQRT2l":
     700ildouble: 1
     701ldouble: 1
     702
     703# tanh
     704Test "tanh (-0.75) == -0.635148952387287319214434357312496495":
     705ildouble: 1
     706ldouble: 1
     707Test "tanh (-1.0) == -0.7615941559557648881194582826047935904":
     708ildouble: 1
     709ldouble: 1
     710Test "tanh (0.75) == 0.635148952387287319214434357312496495":
     711ildouble: 1
     712ldouble: 1
     713Test "tanh (1.0) == 0.7615941559557648881194582826047935904":
     714ildouble: 1
     715ldouble: 1
     716
     717# tgamma
     718Test "tgamma (-0.5) == -2 sqrt (pi)":
     719double: 1
     720float: 1
     721idouble: 1
     722ifloat: 1
     723ildouble: 1
     724ldouble: 1
     725Test "tgamma (0.5) == sqrt (pi)":
     726float: 1
     727ifloat: 1
     728Test "tgamma (0.7) == 1.29805533264755778568117117915281162":
     729double: 1
     730float: 1
     731idouble: 1
     732ifloat: 1
     733Test "tgamma (4) == 6":
     734ildouble: 1
     735ldouble: 1
     736
     737# y0
     738Test "y0 (1.0) == 0.0882569642156769579829267660235151628":
     739double: 2
     740float: 1
     741idouble: 2
     742ifloat: 1
     743Test "y0 (1.5) == 0.382448923797758843955068554978089862":
     744double: 2
     745float: 1
     746idouble: 2
     747ifloat: 1
     748Test "y0 (10.0) == 0.0556711672835993914244598774101900481":
     749float: 1
     750ifloat: 1
     751ildouble: 3
     752ldouble: 3
     753Test "y0 (8.0) == 0.223521489387566220527323400498620359":
     754double: 1
     755float: 1
     756idouble: 1
     757ifloat: 1
     758ildouble: 3
     759ldouble: 3
     760
     761# y1
     762Test "y1 (0.125) == -5.19993611253477499595928744876579921":
     763double: 1
     764idouble: 1
     765Test "y1 (0.75) == -1.03759455076928541973767132140642198":
     766ildouble: 1
     767ldouble: 1
     768Test "y1 (1.5) == -0.412308626973911295952829820633445323":
     769float: 1
     770ifloat: 1
     771ildouble: 1
     772ldouble: 1
     773Test "y1 (10.0) == 0.249015424206953883923283474663222803":
     774double: 3
     775float: 1
     776idouble: 3
     777ifloat: 1
     778Test "y1 (2.0) == -0.107032431540937546888370772277476637":
     779double: 1
     780float: 1
     781idouble: 1
     782ifloat: 1
     783ildouble: 1
     784ldouble: 1
     785Test "y1 (8.0) == -0.158060461731247494255555266187483550":
     786double: 1
     787float: 2
     788idouble: 1
     789ifloat: 2
     790ildouble: 1
     791ldouble: 1
     792
     793# yn
     794Test "yn (0, 1.0) == 0.0882569642156769579829267660235151628":
     795double: 2
     796float: 1
     797idouble: 2
     798ifloat: 1
     799Test "yn (0, 1.5) == 0.382448923797758843955068554978089862":
     800double: 2
     801float: 1
     802idouble: 2
     803ifloat: 1
     804Test "yn (0, 10.0) == 0.0556711672835993914244598774101900481":
     805float: 1
     806ifloat: 1
     807ildouble: 3
     808ldouble: 3
     809Test "yn (0, 8.0) == 0.223521489387566220527323400498620359":
     810double: 1
     811float: 1
     812idouble: 1
     813ifloat: 1
     814ildouble: 3
     815ldouble: 3
     816Test "yn (1, 0.125) == -5.19993611253477499595928744876579921":
     817double: 1
     818idouble: 1
     819Test "yn (1, 0.75) == -1.03759455076928541973767132140642198":
     820ildouble: 1
     821ldouble: 1
     822Test "yn (1, 1.5) == -0.412308626973911295952829820633445323":
     823float: 1
     824ifloat: 1
     825ildouble: 1
     826ldouble: 1
     827Test "yn (1, 10.0) == 0.249015424206953883923283474663222803":
     828double: 3
     829float: 1
     830idouble: 3
     831ifloat: 1
     832Test "yn (1, 2.0) == -0.107032431540937546888370772277476637":
     833double: 1
     834float: 1
     835idouble: 1
     836ifloat: 1
     837ildouble: 1
     838ldouble: 1
     839Test "yn (1, 8.0) == -0.158060461731247494255555266187483550":
     840double: 1
     841float: 2
     842idouble: 1
     843ifloat: 2
     844ildouble: 1
     845ldouble: 1
     846Test "yn (10, 0.125) == -127057845771019398.252538486899753195":
     847double: 1
     848idouble: 1
     849ildouble: 2
     850ldouble: 2
     851Test "yn (10, 0.75) == -2133501638.90573424452445412893839236":
     852double: 1
     853float: 1
     854idouble: 1
     855ifloat: 1
     856ildouble: 5
     857ldouble: 5
     858Test "yn (10, 1.0) == -121618014.278689189288130426667971145":
     859double: 1
     860idouble: 1
     861ildouble: 1
     862ldouble: 1
     863Test "yn (10, 10.0) == -0.359814152183402722051986577343560609":
     864double: 1
     865float: 1
     866idouble: 1
     867ifloat: 1
     868ildouble: 2
     869ldouble: 2
     870Test "yn (10, 2.0) == -129184.542208039282635913145923304214":
     871double: 2
     872idouble: 2
     873ildouble: 2
     874ldouble: 2
     875Test "yn (3, 0.125) == -2612.69757350066712600220955744091741":
     876double: 1
     877idouble: 1
     878Test "yn (3, 0.75) == -12.9877176234475433186319774484809207":
     879double: 1
     880float: 1
     881idouble: 1
     882ifloat: 1
     883ildouble: 2
     884ldouble: 2
     885Test "yn (3, 10.0) == -0.251362657183837329779204747654240998":
     886double: 1
     887float: 1
     888idouble: 1
     889ifloat: 1
     890ildouble: 1
     891ldouble: 1
     892Test "yn (3, 2.0) == -1.12778377684042778608158395773179238":
     893double: 1
     894idouble: 1
     895
     896# Maximal error of functions:
     897Function: "atan2":
     898float: 1
     899ifloat: 1
     900ildouble: 1
     901ldouble: 1
     902
     903Function: "atanh":
     904float: 1
     905ifloat: 1
     906
     907Function: Imaginary part of "cacos":
     908ildouble: 1
     909ldouble: 1
     910
     911Function: Imaginary part of "cacosh":
     912float: 1
     913ifloat: 1
     914ildouble: 1
     915ldouble: 1
     916
     917Function: Real part of "casin":
     918double: 1
     919float: 1
     920idouble: 1
     921ifloat: 1
     922
     923Function: Imaginary part of "casin":
     924ildouble: 1
     925ldouble: 1
     926
     927Function: Real part of "casinh":
     928double: 5
     929float: 1
     930idouble: 5
     931ifloat: 1
     932ildouble: 4
     933ldouble: 4
     934
     935Function: Imaginary part of "casinh":
     936double: 3
     937float: 6
     938idouble: 3
     939ifloat: 6
     940ildouble: 2
     941ldouble: 2
     942
     943Function: Imaginary part of "catan":
     944double: 1
     945float: 1
     946idouble: 1
     947ifloat: 1
     948ildouble: 1
     949ldouble: 1
     950
     951Function: Real part of "catanh":
     952double: 4
     953idouble: 4
     954ildouble: 1
     955ldouble: 1
     956
     957Function: Imaginary part of "catanh":
     958ildouble: 1
     959ldouble: 1
     960
     961Function: "cbrt":
     962double: 1
     963idouble: 1
     964ildouble: 1
     965ldouble: 1
     966
     967Function: Real part of "ccos":
     968double: 1
     969float: 1
     970idouble: 1
     971ifloat: 1
     972ildouble: 1
     973ldouble: 1
     974
     975Function: Imaginary part of "ccos":
     976float: 1
     977ifloat: 1
     978ildouble: 1
     979ldouble: 1
     980
     981Function: Real part of "ccosh":
     982double: 1
     983float: 1
     984idouble: 1
     985ifloat: 1
     986ildouble: 1
     987ldouble: 1
     988
     989Function: Imaginary part of "ccosh":
     990float: 1
     991ifloat: 1
     992ildouble: 1
     993ldouble: 1
     994
     995Function: Real part of "cexp":
     996float: 1
     997ifloat: 1
     998ildouble: 1
     999ldouble: 1
     1000
     1001Function: Imaginary part of "cexp":
     1002float: 1
     1003ifloat: 1
     1004ildouble: 1
     1005ldouble: 1
     1006
     1007Function: Real part of "clog":
     1008float: 1
     1009ifloat: 1
     1010ildouble: 1
     1011ldouble: 1
     1012
     1013Function: Real part of "clog10":
     1014float: 1
     1015ifloat: 1
     1016ildouble: 1
     1017ldouble: 1
     1018
     1019Function: Imaginary part of "clog10":
     1020double: 1
     1021float: 1
     1022idouble: 1
     1023ifloat: 1
     1024ildouble: 1
     1025ldouble: 1
     1026
     1027Function: "cos":
     1028double: 2
     1029float: 1
     1030idouble: 2
     1031ifloat: 1
     1032ildouble: 1
     1033ldouble: 1
     1034
     1035Function: Real part of "cpow":
     1036double: 2
     1037float: 4
     1038idouble: 2
     1039ifloat: 4
     1040ildouble: 10
     1041ldouble: 10
     1042
     1043Function: Imaginary part of "cpow":
     1044double: 2
     1045float: 2
     1046idouble: 2
     1047ifloat: 2
     1048ildouble: 1
     1049ldouble: 1
     1050
     1051Function: Real part of "csin":
     1052ildouble: 1
     1053ldouble: 1
     1054
     1055Function: Imaginary part of "csin":
     1056ildouble: 1
     1057ldouble: 1
     1058
     1059Function: Real part of "csinh":
     1060float: 1
     1061ifloat: 1
     1062ildouble: 1
     1063ldouble: 1
     1064
     1065Function: Imaginary part of "csinh":
     1066double: 1
     1067float: 1
     1068idouble: 1
     1069ifloat: 1
     1070
     1071Function: Real part of "csqrt":
     1072float: 1
     1073ifloat: 1
     1074ildouble: 1
     1075ldouble: 1
     1076
     1077Function: Imaginary part of "csqrt":
     1078ildouble: 1
     1079ldouble: 1
     1080
     1081Function: Real part of "ctan":
     1082ildouble: 1
     1083ldouble: 1
     1084
     1085Function: Imaginary part of "ctan":
     1086double: 1
     1087idouble: 1
     1088ildouble: 2
     1089ldouble: 2
     1090
     1091Function: Real part of "ctanh":
     1092double: 1
     1093float: 2
     1094idouble: 1
     1095ifloat: 2
     1096ildouble: 1
     1097ldouble: 1
     1098
     1099Function: Imaginary part of "ctanh":
     1100float: 1
     1101ifloat: 1
     1102ildouble: 1
     1103ldouble: 1
     1104
     1105Function: "erf":
     1106double: 1
     1107idouble: 1
     1108
     1109Function: "erfc":
     1110double: 1
     1111idouble: 1
     1112ildouble: 1
     1113ldouble: 1
     1114
     1115Function: "exp10":
     1116double: 6
     1117float: 2
     1118idouble: 6
     1119ifloat: 2
     1120ildouble: 1
     1121ldouble: 1
     1122
     1123Function: "exp2":
     1124ildouble: 2
     1125ldouble: 2
     1126
     1127Function: "expm1":
     1128double: 1
     1129float: 1
     1130idouble: 1
     1131ifloat: 1
     1132ildouble: 1
     1133ldouble: 1
     1134
     1135Function: "gamma":
     1136ildouble: 1
     1137ldouble: 1
     1138
     1139Function: "hypot":
     1140float: 1
     1141ifloat: 1
     1142
     1143Function: "j0":
     1144double: 2
     1145float: 2
     1146idouble: 2
     1147ifloat: 2
     1148ildouble: 2
     1149ldouble: 2
     1150
     1151Function: "j1":
     1152double: 1
     1153float: 2
     1154idouble: 1
     1155ifloat: 2
     1156ildouble: 4
     1157ldouble: 4
     1158
     1159Function: "jn":
     1160double: 4
     1161float: 4
     1162idouble: 4
     1163ifloat: 4
     1164ildouble: 4
     1165ldouble: 4
     1166
     1167Function: "lgamma":
     1168double: 1
     1169float: 2
     1170idouble: 1
     1171ifloat: 2
     1172ildouble: 1
     1173ldouble: 1
     1174
     1175Function: "log10":
     1176double: 1
     1177float: 2
     1178idouble: 1
     1179ifloat: 2
     1180ildouble: 1
     1181ldouble: 1
     1182
     1183Function: "log1p":
     1184float: 1
     1185ifloat: 1
     1186ildouble: 1
     1187ldouble: 1
     1188
     1189Function: "log2":
     1190ildouble: 1
     1191ldouble: 1
     1192
     1193Function: "sincos":
     1194double: 1
     1195float: 1
     1196idouble: 1
     1197ifloat: 1
     1198ildouble: 1
     1199ldouble: 1
     1200
     1201Function: "sqrt":
     1202ildouble: 1
     1203ldouble: 1
     1204
     1205Function: "tan":
     1206double: 1
     1207idouble: 1
     1208
     1209Function: "tanh":
     1210ildouble: 1
     1211ldouble: 1
     1212
     1213Function: "tgamma":
     1214double: 1
     1215float: 1
     1216idouble: 1
     1217ifloat: 1
     1218ildouble: 1
     1219ldouble: 1
     1220
     1221Function: "y0":
     1222double: 2
     1223float: 1
     1224idouble: 2
     1225ifloat: 1
     1226ildouble: 3
     1227ldouble: 3
     1228
     1229Function: "y1":
     1230double: 3
     1231float: 2
     1232idouble: 3
     1233ifloat: 2
     1234ildouble: 1
     1235ldouble: 1
     1236
     1237Function: "yn":
     1238double: 3
     1239float: 2
     1240idouble: 3
     1241ifloat: 2
     1242ildouble: 5
     1243ldouble: 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  
    107107};
    108108
    109109/* 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
    112116#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
    118126#endif
    119127
    120128/* 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.
    33
    44   The GNU C Library is free software; you can redistribute it and/or
    55   modify it under the terms of the GNU Lesser General Public
     
    1616   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    1717   02111-1307 USA.  */
    1818
     19#ifndef _BITS_SIGCONTEXT_H
     20#define _BITS_SIGCONTEXT_H 1
     21
    1922#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
    2023# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
    2124#endif
    2225
    2326#include <sgidefs.h>
    2427
    25 #ifndef sigcontext_struct
    26 /* Kernel headers before 2.1.1 define a struct sigcontext_struct, but
    27    we need sigcontext.  */
    28 # define sigcontext_struct sigcontext
    29 
    30 /* # include <asm/sigcontext.h> */
    31 /* Instead of including the kernel header, that will vary depending on
    32    whether the 32- or the 64-bit kernel is installed, we paste the
    33    contents here.  In case you're wondering about the different
    34    licenses, the fact that the file is pasted, instead of included,
    35    doesn't really make any difference for the program that includes
    36    this header.  */
    3728#if _MIPS_SIM == _ABIO32
    38 /*
    39  * This file is subject to the terms and conditions of the GNU General Public
    40  * License.  See the file "COPYING" in the main directory of this archive
    41  * for more details.
    42  *
    43  * Copyright (C) 1996, 1997, 2000 by Ralf Baechle
    44  */
    45 #ifndef _ASM_SIGCONTEXT_H
    46 #define _ASM_SIGCONTEXT_H
    47 
    48 /*
    49  * Keep this struct definition in sync with the sigcontext fragment
    50  * in arch/mips/tools/offset.c
    51  */
    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;
    6529
    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
    6839
    69         unsigned long      sc_sigset[4];        /* kernel's sigset_t */
     40   sc_regmask, sc_ownedfp and sc_fpc_eir are not used.  */
     41struct 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;
    7060};
    7161
    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.  */
    8965struct 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;
    10181};
    10282
    103 #endif /* _ASM_SIGCONTEXT_H */
    10483#endif /* _MIPS_SIM != _ABIO32 */
    10584#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  
    6161    long int st_pad2[3];
    6262    __off64_t st_size;          /* Size of file, in bytes.  */
    6363#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
    6878    __time_t st_atime;          /* Time of last access.  */
    6979    long int __reserved0;
    7080    __time_t st_mtime;          /* Time of last modification.  */
    7181    long int __reserved1;
    7282    __time_t st_ctime;          /* Time of last status change.  */
    7383    long int __reserved2;
     84#endif
    7485    __blksize_t st_blksize;     /* Optimal block size for I/O.  */
    7586#ifndef __USE_FILE_OFFSET64
    7687    __blkcnt_t st_blocks;       /* Number of 512-byte blocks allocated.  */
     
    94105    unsigned long int st_rdev;  /* Device number, if device.  */
    95106    long int st_pad2[3];
    96107    __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
    101119    __time_t st_atime;          /* Time of last access.  */
    102120    long int __reserved0;
    103121    __time_t st_mtime;          /* Time of last modification.  */
    104122    long int __reserved1;
    105123    __time_t st_ctime;          /* Time of last status change.  */
    106124    long int __reserved2;
     125#endif
    107126    __blksize_t st_blksize;     /* Optimal block size for I/O.  */
    108127    long int st_pad3;
    109128    __blkcnt64_t st_blocks;     /* Number of 512-byte blocks allocated.  */
     
    133152    unsigned int st_pad2[3];    /* Reserved for st_rdev expansion  */
    134153    __off64_t st_size;
    135154#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
    136169    __time_t st_atime;
    137170    int __reserved0;
    138171    __time_t st_mtime;
    139172    int __reserved1;
    140173    __time_t st_ctime;
    141174    int __reserved2;
     175#endif
    142176    __blksize_t st_blksize;
    143177    unsigned int st_pad4;
    144178#ifndef __USE_FILE_OFFSET64
     
    162196    __dev_t st_rdev;
    163197    unsigned int st_pad2[3];    /* Reserved for st_rdev expansion  */
    164198    __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
    165210    __time_t st_atime;
    166211    int __reserved0;
    167212    __time_t st_mtime;
    168213    int __reserved1;
    169214    __time_t st_ctime;
    170215    int __reserved2;
     216#endif
    171217    __blksize_t st_blksize;
    172218    unsigned int st_pad3;
    173219    __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  
    1616    unsigned int st_rdev;
    1717    unsigned int __pad2[3];
    1818    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;
    2525    unsigned int st_blksize;
    2626    unsigned int __pad3;
    2727    unsigned long long st_blocks;
     
    4040    long int __pad2[2];
    4141    long int st_size;
    4242    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;
    4949    long int st_blksize;
    5050    long int st_blocks;
    5151    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  
    3232#define FUTEX_CMP_REQUEUE       4
    3333#define FUTEX_WAKE_OP           5
    3434#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
    3538
    3639/* Initializer for compatibility lock.  */
    3740#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  
    11/* Dump registers.
    2    Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
     2   Copyright (C) 2000, 2001, 2002, 2006 Free Software Foundation, Inc.
    33   This file is part of the GNU C Library.
    44   Contributed by Andreas Jaeger <aj@suse.de>, 2000.
    55
     
    2727 R8   XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
    2828 R16  XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
    2929 R24  XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
    30            pc    cause  status   badvaddr       lo       hi
    31       XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
     30            pc       lo       hi
     31      XXXXXXXX XXXXXXXX XXXXXXXX
    3232 The FPU registers will not be printed.
    3333*/
    3434
     
    6161  for (i = 0; i < 32; i++)
    6262    hexvalue (ctx->sc_regs[i], regs[i], 8);
    6363  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);
    6966
    7067  /* Generate the output.  */
    7168  ADD_STRING ("Register dump:\n\n R0   ");
     
    9289      ADD_MEM (regs[i], 8);
    9390      ADD_STRING (" ");
    9491    }
    95   ADD_STRING ("\n           pc    cause  status   badvaddr       lo       hi\n      ");
    96   for (i = 32; i < 38; i++)
     92  ADD_STRING ("\n            pc       lo       hi\n      ");
     93  for (i = 32; i < 35; i++)
    9794    {
    9895      ADD_MEM (regs[i], 8);
    9996      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  
    153153}
    154154libc_hidden_def (__libc_sigaction)
    155155
     156#ifdef WRAPPER_INCLUDE
     157# include WRAPPER_INCLUDE
     158#endif
     159
    156160#ifndef LIBC_SIGACTION
    157161weak_alias (__libc_sigaction, __sigaction)
    158162libc_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.
    33
    44   The GNU C Library is free software; you can redistribute it and/or
    55   modify it under the terms of the GNU Lesser General Public
     
    7373    unsigned int fpc_csr;
    7474    unsigned int fpc_eir;
    7575    unsigned int used_math;
    76     unsigned int ssflags;
     76    unsigned int dsp;
    7777    greg_t mdhi;
    7878    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;
    8185  } mcontext_t;
    8286#else
    8387typedef struct
     
    8589    gregset_t gregs;
    8690    fpregset_t fpregs;
    8791    greg_t mdhi;
     92    greg_t hi1;
     93    greg_t hi2;
     94    greg_t hi3;
    8895    greg_t mdlo;
     96    greg_t lo1;
     97    greg_t lo2;
     98    greg_t lo3;
    8999    greg_t pc;
    90     unsigned int status;
    91100    unsigned int fpc_csr;
    92     unsigned int fpc_eir;
    93101    unsigned int used_math;
    94     unsigned int cause;
    95     unsigned int badvaddr;
     102    unsigned int dsp;
     103    unsigned int reserved;
    96104  } mcontext_t;
    97105#endif
    98106
  • 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  
    6262        buf->st_blksize = kbuf->st_blksize;
    6363        buf->st_blocks = kbuf->st_blocks;
    6464
    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;
    6871
    6972        buf->st_pad5[0] = 0; buf->st_pad5[1] = 0;
    7073        buf->st_pad5[2] = 0; buf->st_pad5[3] = 0;
     
    107110        buf->st_blksize = kbuf->st_blksize;
    108111        buf->st_blocks = kbuf->st_blocks;
    109112
    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;
    113119
    114120        buf->st_pad4[0] = 0; buf->st_pad4[1] = 0;
    115121        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  
    11/* 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.
    33   This file is part of the GNU C Library.
    44
    55   The GNU C Library is free software; you can redistribute it and/or
     
    193193struct La_ppc64_retval;
    194194struct La_sh_regs;
    195195struct La_sh_retval;
    196 struct La_m68k_regs;
    197 struct La_m68k_retval;
    198196struct La_alpha_regs;
    199197struct La_alpha_retval;
    200198struct La_s390_32_regs;
     
    203201struct La_s390_64_retval;
    204202struct La_ia64_regs;
    205203struct 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;
    210204struct La_sparc32_regs;
    211205struct La_sparc32_retval;
    212206struct La_sparc64_regs;
     
    247241                                  uintptr_t *, const struct La_sh_regs *,
    248242                                  unsigned int *, const char *name,
    249243                                  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);
    254244    Elf64_Addr (*alpha_gnu_pltenter) (Elf64_Sym *, unsigned int, uintptr_t *,
    255245                                      uintptr_t *, struct La_alpha_regs *,
    256246                                      unsigned int *, const char *name,
     
    267257                                     uintptr_t *, struct La_ia64_regs *,
    268258                                     unsigned int *, const char *name,
    269259                                     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);
    285260    Elf32_Addr (*sparc32_gnu_pltenter) (Elf32_Sym *, unsigned int,
    286261                                        uintptr_t *, uintptr_t *,
    287262                                        const struct La_sparc32_regs *,
     
    317292    unsigned int (*sh_gnu_pltexit) (Elf32_Sym *, unsigned int, uintptr_t *,
    318293                                    uintptr_t *, const struct La_sh_regs *,
    319294                                    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 *);
    323295    unsigned int (*alpha_gnu_pltexit) (Elf64_Sym *, unsigned int, uintptr_t *,
    324296                                       uintptr_t *,
    325297                                       const struct La_alpha_regs *,
     
    338310                                      uintptr_t *,
    339311                                      const struct La_ia64_regs *,
    340312                                      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 *);
    356313    unsigned int (*sparc32_gnu_pltexit) (Elf32_Sym *, unsigned int,
    357314                                         uintptr_t *, uintptr_t *,
    358315                                         const struct La_sparc32_regs *,
Note: See TracBrowser for help on using the repository browser.