[Bug c/48236] uint64_t and int64_t behave differently when converting to float

2011-03-22 Thread juanval at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48236 --- Comment #5 from Jon Valdes 2011-03-22 14:56:25 UTC --- (In reply to comment #4) > Above 2^24 and below 2^25, only even integers are not rounded when converted > to > float and odd integers are rounded. I think it is what you report in commen

[Bug c/48236] uint64_t and int64_t behave differently when converting to float

2011-03-22 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48236 --- Comment #4 from Dominique d'Humieres 2011-03-22 14:50:32 UTC --- > From my understanding, a positive number should be casted to exactly the same > floating value representation regardless if the variable is signed or > unsigned. > In fact, c

[Bug c/48236] uint64_t and int64_t behave differently when converting to float

2011-03-22 Thread juanval at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48236 --- Comment #3 from Jon Valdes 2011-03-22 14:35:10 UTC --- >From my understanding, a positive number should be casted to exactly the same floating value representation regardless if the variable is signed or unsigned. In fact, checking the failin

[Bug c/48236] uint64_t and int64_t behave differently when converting to float

2011-03-22 Thread froydnj at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48236 --- Comment #2 from froydnj at codesourcery dot com 2011-03-22 14:18:32 UTC --- Possibly an instance of PR 323.

[Bug c/48236] uint64_t and int64_t behave differently when converting to float

2011-03-22 Thread juanval at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48236 Jon Valdes changed: What|Removed |Added CC||juanval at gmail dot com --- Comment #1 from