This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** To make shared library, run: | |
$ gcc -shared -O3 -o libcsum_block.so -fPIC csum_block.c | |
Algorithm from: | |
http://stackoverflow.com/questions/25606833/fastest-way-to-sum-integers-in-text-file/25607155#comment40046670_25607155 | |
*/ | |
#include <stdint.h> |