FIXP fixRound(FIXP num) { FIXP round, trunc; if (num & (1<<(FIX_FRACBITS-1))) round = 1< 0) { trunc = num & ~((1<