[haiku-bugs] Re: [Haiku] #14933: atan2 returns wrong result in some case

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 31 Dec 2019 22:13:24 -0000

#14933: atan2 returns wrong result in some case
---------------------------------+----------------------------
   Reporter:  hanya              |      Owner:  nobody
       Type:  bug                |     Status:  new
   Priority:  normal             |  Milestone:  Unscheduled
  Component:  System/libroot.so  |    Version:  R1/Development
 Resolution:                     |   Keywords:
 Blocked By:                     |   Blocking:
Has a Patch:  0                  |   Platform:  x86-64
---------------------------------+----------------------------
Comment (by pulkomandy):

 So, I checked what we're doing. The atan2 code we're currently using is in
 the arch/generic/ directory and was imported for PowerPC. I suspect it
 uses PowerPC floating point format, which is not compatible with x86.

 I checked what glibc does, and there, the same e_atan2.S file is used for
 both x86 and x86_64. So I think we should do just that. However I have no
 x86_64 system to test this on.

 If someone can confirm this builds and fixes the problem: https://review
 .haiku-os.org/c/haiku/+/2065
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/14933#comment:5>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: