source/DSGM_atan2Lerp.c
// Special-case division because I need a little more control 
// than divf32 offers
Special-case division because I need a little more control
than divf32 offers
Special - case division because I need a little more control than divf32 offers
static inline int QDIV(int num, int den, const int bits) {
	while(REG_DIVCNT & DIV_BUSY);
	REG_DIVCNT = DIV_64_32;
	REG_DIV_NUMER = ((int64)num)<<bits;
	REG_DIV_DENOM_L = den;
	while(REG_DIVCNT & DIV_BUSY);
	return (REG_DIV_RESULT_L);
}
static inline int QDIV ( int num , int den , const int bits ) { while ( REG_DIVCNT & DIV_BUSY ) ; REG_DIVCNT = DIV_64_32 ; REG_DIV_NUMER = ( ( int64 ) num ) << bits ; REG_DIV_DENOM_L = den ; while ( REG_DIVCNT & DIV_BUSY ) ; return ( REG_DIV_RESULT_L ) ; }
Special-case division because I need a little more control
than divf32 offers
Special - case division because I need a little more control than divf32 offers