longest_match() implementation for x86-family platform.

See the header of "contrib/amd64/longest-match.inc" for details