Skip to content

2018-08-13

@samboy samboy tagged this 14 Aug 00:45
While my own testing with clang doesn’t show any problems, there is an
issue with other C-language implementations of RadioGatún I have made
where this expressions acts funny in Clang when compiling with "-O2"
or "-O3":

rotate = 0;
foo = (bar >> rotate) | (bar << WORDSIZE - rotate);

Where foo and bar are 32-bit unsigned ints (uint32_t) and WORDSIZE is 32.
Assets 2
Loading