pub fn scalar_mul(a: &mut [u64], b: u64) -> u64