Based on rolling-dual-crc
Need to install rust for compilation.
cargo build --release
# test
cargo build && cargo test
target/release/libcrc64.so
(or target/release/libcrc64.dylib
) is the compiled extension.
phpize && ./configure && make
# test
make test
make install
$crc = new Crc\DualCrc();
$crc->update('123456');
printf("0x%x\n", $crc->get64());
$crc->update('7890');
printf("0x%x\n", $crc->get64());