[haiku-bugs] Re: [Haiku] #7007: Implement missing <math.h> functions

  • From: "korli" <trac@xxxxxxxxxxxx>
  • Date: Mon, 20 Dec 2010 10:31:15 -0000

#7007: Implement missing <math.h> functions
---------------------------+------------------------------
  Reporter:  scottmc       |        Owner:  nobody
      Type:  bug           |       Status:  new
  Priority:  normal        |    Milestone:  R1
 Component:  System/POSIX  |      Version:  R1/Development
Resolution:                |     Keywords:
Blocked By:                |  Has a Patch:  1
  Platform:  All           |     Blocking:
---------------------------+------------------------------

Comment (by korli):

 headers/posix/math.h is a public header owned by Haiku.
 src/system/libroot/posix/glibc/math/math.h is a private header from Glibc
 and is maintained there.

 Missing definitions (if they're really missing) should be added to
 headers/posix/math.h to be used by user applications.

 Glibc implementations should actually be used (even if they happen to be
 from Sun). You should find them at this place:
 
http://sourceware.org/git/?p=glibc.git;a=tree;f=math;h=4d12aaac32cd639876398a5732b26a4fd8c5c08b;hb=14b697f75a5f039a0e3155c62399ee217c0f17dc
 
http://sourceware.org/git/?p=glibc.git;a=tree;f=sysdeps/ieee754/flt-32;h=6a47a4d722f4b99d4226f9df047f695dc7aebe3b;hb=14b697f75a5f039a0e3155c62399ee217c0f17dc
 
http://sourceware.org/git/?p=glibc.git;a=tree;f=sysdeps/ieee754/dbl-64;h=a1ee9700d652ca2d8809172aaab6d8d593802289;hb=14b697f75a5f039a0e3155c62399ee217c0f17dc

 Beware w_gamma_r.c and w_gammaf_r.c are only wrappers.

 A (very simple) test program for these functions would be appreciated.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7007#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: