23 May 2012 14:01
BUG: incorrect results from LOGAND (AMD64)
Eric Marsden <eric.marsden <at> free.fr>
2012-05-23 12:01:08 GMT
2012-05-23 12:01:08 GMT
Hi,
* (lisp-implementation-version)
"1.0.57.15-35f68f4"
* (defun foo (x)
(declare (optimize (space 2))
(type (integer 12417236377505266230 12417274239874990070) x))
(logand 8459622733968096971 x))
FOO
* (foo 12417237222845306758)
11836165733894624898 ;; <-- incorrect
* (logand 8459622733968096971 12417237222845306758)
2612793697039849090
* (defun bar (x)
(declare (type (integer 22965360520649903105 22965361070405717069) x))
(lognand 6936474818856893141 x))
BAR
* (bar 22965361070405716988)
#<unknown immediate object, lowtag=#b1, widetag=#x41 {FFFFFFEFFD4D3D41}>
(More random-integer testing.)
--
--
Eric Marsden
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
(Continue reading)
RSS Feed