[Bug c/66077] New: Right shift calculation error

2015-05-08 Thread mike.jost at hp dot com
Assignee: unassigned at gcc dot gnu.org Reporter: mike.jost at hp dot com Target Milestone: --- Curious right shift calculation error. I have used this sequence many times in de Bruijn sequence calc to count trailing zeros. simplified to basic steps. Not sure if this is a linux VM issue or

[Bug c/66077] Right shift calculation error

2015-05-08 Thread mike.jost at hp dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66077 --- Comment #2 from Mike Jost --- Thanks for the explanation! Bit by the 64 bit. That will teach me to use uint32_t instead of assuming 32 for unsigned long. I've been running on 32 bit embedded targets for too long! Regards, Michael Jost mike.