79362794

Date: 2025-01-16 19:09:47
Score: 0.5
Natty:
Report link
#include <stdint.h>

uint16_t rotate_right_16bit(uint16_t value, uint8_t num_rotates)
{
    num_rotates %= 16;

    while (num_rotates--)
    {
        uint16_t lsb = (value & 1) << 15;
        value = (value >> 1) | lsb;
    }
    return value;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alon Alush