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

  • From: "ReidH" <trac@xxxxxxxxxxxx>
  • Date: Mon, 20 Dec 2010 03:46:45 -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 ReidH):

 I found two headers that seemed to pertain to this ticket.
 headers/posix/math.h and /system/libroot/posix/glibc/math/math.h.


 1, 2, 8 and 9 were added to system/libroot/posix/glibc/math/math.h because
 there was a whole commented section requesting them.

 3, 4, 5 and 6 were already defined as macros in
 system/libroot/posix/glibc/math/math.h so I made no changes.

 This confused me, this ticket says it is for headers/posix/math.h, yet a
 lot of work seemed like it either needed to be done in, or had already
 been done in /system/libroot/posix/glibc/math/math.h.

 As for gamma_r and gammaf_r, I found their definitions from Sun, where the
 rest of the definitions apparently came from. And with some slight
 altering I believed I successfully implemented them in the form of two
 files (w_gamma_r.c and w_gammaf_r.c) residing in
 src/system/libroot/posix/glibc/arch/generic.

 lgammal seemed to already be implemented, and I saw a page on dev.haiku-
 os.org that seemed to confirm this.

 The only altering made to headers/posix/math.h was the definition of
 MAXFLOAT.

 I don't know if the two headers are in any way linked, or if everything I
 did in /system/libroot/posix/glibc/math/math.h should have been added to
 headers/posix/math.h along with redefining all the macros found in
 /system/libroot/posix/glibc/math/math.h.

 Any help is appreciated.
 -Reid

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

Other related posts: