Move the reverse and xnmodp functions to a separate header so that it can be reused for aarch64 implementation of av_crc.