Hi Carsten,

Carsten Neumann wrote:
>       Hi,
>
> as mentioned in ticket #20 (https://opensg.vrsource.org/trac/ticket/20)
> I have found a different implementation for osgispower2 and
> osgnextpower2 (from OSGBaseFunctions.h).
> Now, currently there is code like this:
> ...
>
> The current code for the Int32 case (correctly) returns false for
> negative input and (incorrectly) true for 0. Now the question is what is
> the most useful behavior here ? Keep as is, just fix the handling of 0,
> return true for numbers of the form -(2^n) as well ?
>   
I'm ok with the current behavior. If 0 needs to be a special case it's 
usually a separate special case, and similar for negative numbers.

Yours

    Dirk


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core

Reply via email to