git fetch git://github.com/davisp/otp.git enif_phash2 https://github.com/davisp/otp/compare/maint...enif_phash2 https://github.com/davisp/otp/compare/maint...enif_phash2.patch This patch exposes the phash2 function to NIFs. It is exactly equivalent to: erlang:phash2(Term, 16#100000000) Thanks, Paul Davis