blob: d98e29ef89df7b57d87bb2c31f5e5f67d60f8e7a [file] [log] [blame]
typedef int __attribute__ ((mode (SI))) int_t;
struct s
{
int_t n;
int_t c[];
};
int_t
ashlsi (int_t x, const struct s *s)
{
int_t i;
for (i = 0; i < s->n; i++)
x ^= 1 << s->c[i];
return x;
}