Welcome to the CHICKEN Scheme pasting service

naive crc table added by C-Keen on Sat Oct 1 21:49:09 2011


(define (make-crc-table)
  (map (lambda (n)
         (let ((c n))
           (for-each (lambda (k)
                       (if (fxand c 1)
                           (set! c (fxxor #xedb88320 (fxshr c 1)))
                           (set! c (fxshr c 1))))
                     (iota 8))
           c))
       (iota 256)))

; Why does this give different results for each call?

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What does `(string? 42)' produce?
Visually impaired? Let me spell it for you (wav file) download WAV