Reorder function declarations in sift.hpp