Computes the hamming distance for 2 64bit unsigned integers.
-
PostgreSQL Server development libraries. (debian: postgresql-server-dev-9.0 e.g.)
-
pg_config in PATH.
-
GNU C compiler.
-
GNU make.
PSQL_DB=<database name> make install
select hamming_distance(4, 3); #=> 3