This is the output of SinTableGen.
This header file contains 65536 sin values.
To get sin/cos out of some float you can do it like this:
#include"sintable.h"// Get value's sinfloatget_sin(floata) {
returnSIN_TABLE[(int)(a*10430.378F) & (unsigned short)0xFFFF];
}
// Get value's cosfloatget_cos(floata) {
returnSIN_TABLE[(int)(a*10430.378F+16384.0F) & (unsigned short)0xFFFF];
}