Re: [Fractdev] shift by negative bits

Top Page
Delete this message
Reply to this message
Author: Richard
Date:  
To: Fractint developer's list
Subject: Re: [Fractdev] shift by negative bits

In article <1208053228.6210.16.camel@jonathan-desktop>,
Jonathan Osuch <osuchj@???> writes:

> > When Shift is negative, it divides by 1 left-shifted by a negative
> > number of bits. Shouldn't this be 1 << -Shift instead?
>
> You are correct. I didn't find any place where this routine is called.


Its invoked by the macro fShift, which is in turn used in macro
fSqrt14, both defined in fmath.h. fSqrt14 is used in common\calcfrac.c
and common\mpmath_c.c.
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
      <http://www.xmission.com/~legalize/book/download/index.html>


Legalize Adulthood! <http://blogs.xmission.com/legalize/>