l2hash: added restrict and const qualifiers