I was just looking the code and found this:


    /**
     * @return <code>base</code> raised to the specified <code>power</code>
     */
    public static final int pow (int base, int power)    { return
base^power; }
    public static final long pow (long base, long power) { return
base^power; }


Math.pow should work much better than an exclusive or. :)

Cheers,

-- 
 St�phane Bailliez 
 Software Engineer, Paris - France 
 iMediation - http://www.imediation.com 
 Disclaimer: All the opinions expressed above are mine and not those from my
company. 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to