(self, lden, rden)
return lexp, lman, lneg
Denormalised divide.
Denormalised divide.
Denormalised divide .
def _div_den(self, lden, rden):
        """Denormalised divide."""
        lexp, lman, lneg = lden
        rexp, rman, rneg = rden
        # signs
        lneg = (lneg != rneg)
        # subtract exponentials
        lexp -= rexp - self._bias - 8
        # long division of mantissas
        work_man = lman
        lman = 0
        lexp += 1
        while (rman > 0):
            lman <<= 1
            lexp -= 1
            if work_man > rman:
                work_man -= rman
                lman += 1
            rman >>= 1
        return lexp, lman, lneg
def _div_den ( self , lden , rden ) : lexp , lman , lneg = lden rexp , rman , rneg = rden # signs lneg = ( lneg != rneg ) # subtract exponentials lexp -= rexp - self . _bias - 8 # long division of mantissas work_man = lman lman = 0 lexp += 1 while ( rman > 0 ) : lman <<= 1 lexp -= 1 if work_man > rman : work_man -= rman lman += 1 rman >>= 1 return lexp , lman , lneg