CRC checksums (CRC-16, CRC-32, CRC-32C) for OCaml
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add js_of_ocaml stubs for CRC hardware detection

Provide no-op JS implementations for crc_detect_cpu_features,
crc_has_hardware, and the hw_crc32* functions so the library
loads without errors in js_of_ocaml (falls back to software CRC).

+16
+14
lib/crc_stubs.js
··· 1 + //Provides: crc_detect_cpu_features 2 + function crc_detect_cpu_features(unit) { return 0; } 3 + 4 + //Provides: crc_has_hardware 5 + function crc_has_hardware(unit) { return 0; /* false */ } 6 + 7 + //Provides: crc_hw_crc32c 8 + function crc_hw_crc32c(s) { return 0; /* never called, has_hardware is false */ } 9 + 10 + //Provides: crc_hw_crc32c_bytes 11 + function crc_hw_crc32c_bytes(buf, off, len) { return 0; } 12 + 13 + //Provides: crc_hw_crc32 14 + function crc_hw_crc32(s) { return 0; }
+2
lib/dune
··· 1 1 (library 2 2 (name crc) 3 3 (public_name crc) 4 + (js_of_ocaml 5 + (javascript_files crc_stubs.js)) 4 6 (foreign_stubs 5 7 (language c) 6 8 (names crc_stubs)