How to generate a pair of golay codes: [Posted by John Stewart] /* a and b must have 2^order*sizeof(short) bytes allocated. -32767 <= sf <= 32767 */ void short_fill_golay(short *a, short *b, long order, short sf) { long tlen; long blk_sz; long k; long i; /* Start with 0th order golay code */ a[0]=sf; b[0]=sf; for(k=0;k