23 Aug
2013
23 Aug
'13
2:45 p.m.
Assuming x is a 32-bit integer, here's one way that uses 3 instructions: int y = x >> 31; int negx = (x ^ y) - y; J.P. On Fri, Aug 23, 2013 at 4:25 PM, Warren D Smith <warren.wds@gmail.com>wrote:
suppose my computer wants |x| but it refuses to perform an "if" statement.
What to do?
_______________________________________________ math-fun mailing list math-fun@mailman.xmission.com http://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun