Make mod operations work on the same bit size as closely as possible. Check fp_mod return in first use.