phash: canonicalize order, fix handling of ignored duplicates
commit1df0b9ee2d7f87e5e194343227cfe9cdcc41ac12
authorH. Peter Anvin <hpa@zytor.com>
Mon, 26 May 2008 01:44:44 +0000 (25 18:44 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 26 May 2008 01:44:44 +0000 (25 18:44 -0700)
tree7057af455e700d12d28e427ab48b5ec0bc6571cf
parent14f9ea2925de991f74b2a66518a270a3529bebab
phash: canonicalize order, fix handling of ignored duplicates

Canonicalize the order of the prehash entries, so we don't have to
worry about looking up both pairs of edges.

When we find a collision that we decide to ignore, there is no point
in adding the same edge into the array again; instead, just skip the
current edge.
perllib/phash.ph