just negate the value if x > pi.// This allows the sin table size to be halved.intneg=(index&0x8000)<<16;// All bits set if (pi/2 <= x), none set otherwise// Extracts the 15th bit from 'half'intmask=(index<<17)>>31;/...