__/ [ Doug Mentohl ] on Sunday 18 February 2007 14:12 \__
> A function to return the abs of a number using bit shifting and XOR ..
>
> 'Unfortunately, this method has been patented in the USA on June 6, 2000 by
> Vladimir Yu Volkonsky and assigned to Sun Microsystems'
>
> http://graphics.stanford.edu/~seander/bithacks.html#IntegerAbs
>
> 'a method .. of setting a signed value of N bits to an absolute value
> comprises the steps of: performing an arithmetic shift right of N-1 bits to
> form a bit mask; performing an exclusive-OR logical operation'
>
> http://tinyurl.com/2c5yz
Oh. My. God. How long before this?
http://www.theonion.com/content/node/29130
( Microsoft Patents Ones, Zeroes )
|
|