/* This is a replacement of Matt Chapman's original makeperm.c which was used to generate "permutation files". It's much faster (probably 1000 times faster...) than the original. There was no reason to stick with the old way of reading an external permutation file... Has been integrated and hardcoded in cmove.c (change by J.-P. Demailly) */ #include #define NUM 7 int main(int argc, char **argv) { FILE *fd; int i,j,k,l,p,q,s, perm[NUM], isfree[NUM]; fd=fopen("permutations", "w"); s = 1; for (i=0; i=0; k--) { perm[k]=q%(NUM-k); q=q/(NUM-k); } for (k=0; k