[Bug c++/23793] Unhealthy optimization. Accessing double with reinterpret_cast.

2005-09-09 Thread martsummsw at hotmail dot com
--- Additional Comments From martsummsw at hotmail dot com 2005-09-10 04:58 --- First of all - Thank you. And I promise never to report an error against such an old version. Second I however think I am happy to haven reported it since nobody on comp.lang.c++ knew . I found nothing

[Bug c++/23793] Unhealthy optimization. Accessing double with reinterpret_cast.

2005-09-09 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-09 12:29 --- Mark as a dup of bug 21920 as this is an aliasing violation. Use Falk's suggestion of signbit. It is defined as returning non-zero for negative bit being set. *** This bug has been marked as a duplicate

[Bug c++/23793] Unhealthy optimization. Accessing double with reinterpret_cast.

2005-09-09 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-09 12:26 --- Reopening to ... -- What|Removed |Added Status|RESOLVED|UNCO

[Bug c++/23793] Unhealthy optimization. Accessing double with reinterpret_cast.

2005-09-09 Thread falk at debian dot org
--- Additional Comments From falk at debian dot org 2005-09-09 10:07 --- (In reply to comment #0) > There are many reasons. (One and the best is to switch a double based on > intervals) Therefore I would like a VERY FAST FUNCTION to return the sign of a > double (and float and long doub

[Bug c++/23793] Unhealthy optimization. Accessing double with reinterpret_cast.

2005-09-09 Thread rguenth at gcc dot gnu dot org
--- Additional Comments From rguenth at gcc dot gnu dot org 2005-09-09 08:39 --- All still maintained compilers produce the code you want. I checked 3.4.4, 4.0.0 and current mainline. So FIXED. -- What|Removed |Added