#include <inttypes.h>

uint32_t uint32_bitmod_mask(uint32_t x,uint32_t y)
{
  x >>= y & 31;
  return -(1 & x);
}