Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#548 closed bug (fixed)

Different implementation and missing POSIX math functions

Reported by: mmlr Owned by: korli
Priority: normal Milestone: R1
Component: - General Version:
Keywords: Cc: diver
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

The implementation of the gamma function in Haiku is different than the one in BeOS. Looking at linux man pages tells me that there are appearantly different versions around (http://www.die.net/doc/linux/man/man3/gamma.3.html).

Also the y0 and y1 bessel functions return nan on negative input under Haiku as opposed to -HUGE_VAL / -inf under BeOS.

The functions ilogb() and significand() are missing from our libroot. They are in the math.h of BeOS and Haiku but not exported by Haiku's libroot. Their float versions are probably also missing (didn't test).

Not huge problems, just some things I encountered when testing comparing FPU related stuff.

Change History (6)

comment:1 Changed 13 years ago by diver

Cc: diver added

comment:2 Changed 13 years ago by korli

Owner: changed from axeld to korli@…

comment:3 Changed 13 years ago by korli

I'm in process of committing fixes for this, when berlios is back.

btw the y0, y1, yn behavior on Haiku is correct, says the spec. No software should expect only the BeOS behavior.

comment:4 Changed 13 years ago by korli

fixed in revision 17248.

comment:5 Changed 13 years ago by korli

Resolution: fixed

comment:6 Changed 13 years ago by korli

Status: newclosed
Note: See TracTickets for help on using tickets.