Jump to content

The ISAAC cipher: Difference between revisions

m
→‎{{header|Common Lisp}}: Removed some misleading information in comments
m (added a ;Task: (bold) header, added other whitespace to the task's preamble.)
m (→‎{{header|Common Lisp}}: Removed some misleading information in comments)
Line 497:
 
;; Some helper functions to force 32-bit arithmetic.
;; COERCE32 will be used to ensure the 32-bit results from
;; If you are using a 64-bit machine, then native assembly generated
;; the given operations.
;; by your favorite lisp compiler will use 64-bit instructions (especially
;; with the given optimization declarations). COERCE32 will be used to
;; guarantee the 32-bit information from the resulting operations
;; (which would likely be optimized out on actual 32-bit architecture).
;; Example of ADD32 as it would appear inlined on SBCL x86_64:
;; 40: 4801F9 ADD RCX, RDI
;; 43: 48230D96FFFFFF AND RCX, [RIP-106] ; [#x100CE63DE0] = 1FFFFFFFE
(declaim (inline lsh32 rsh32 add32 mod32 xor32))
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.