aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/UnitTests/2006-02-04-DivRem.c
blob: 2ec88d2889151adc37fb4ed31583ffc29c90301f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>

void test(unsigned X, unsigned Y) {
  printf("%u %u %u %u\n", X, Y, X / (8 << (Y&15)), X % (8 << (Y&15)));
}

int i;
int main(void) {
  long long l;

  for(i=10; i<139045193; i*=-3) {
    test(i, i^12345);
    i++;
  }

  return(0);
}