fn SetCost( histogram: &[u32], histogram_size: usize, literal_histogram: bool, cost: &mut [floatX], )