thin-provisioning-tools/functional-tests/crc32c/checksum.scm
Joe Thornber 5fd33b9560 [functional-tests] Knock up some crc32c code.
This works 1 byte at a time so will be slow.
2017-10-04 10:25:32 +01:00

12 lines
239 B
Scheme

(library
(crc32c checksum)
(export crc32c)
(import (chezscheme))
(define __ (load-shared-object "./crc32c/crc32c.so"))
(define crc32c
(foreign-procedure "crc32c" (unsigned-32 (* unsigned-8) unsigned) unsigned-32)))