… | |
… | |
415 | |
415 | |
416 | =item uint32_t ecb_rotr32 (uint32_t x, unsigned int count) |
416 | =item uint32_t ecb_rotr32 (uint32_t x, unsigned int count) |
417 | |
417 | |
418 | =item uint32_t ecb_rotl32 (uint32_t x, unsigned int count) |
418 | =item uint32_t ecb_rotl32 (uint32_t x, unsigned int count) |
419 | |
419 | |
420 | These two functions return the value of C<x> after shifting all the bits |
420 | These two functions return the value of C<x> after rotating all the bits |
421 | by C<count> positions to the right or left respectively. |
421 | by C<count> positions to the right or left respectively. |
422 | |
422 | |
423 | Current GCC versions understand these functions and usually compile them |
423 | Current GCC versions understand these functions and usually compile them |
424 | to "optimal" code (e.g. a single C<roll> on x86). |
424 | to "optimal" code (e.g. a single C<roll> on x86). |
425 | |
425 | |