Skip to content
Snippets Groups Projects

lcg48 refactor

Merged Peter Limkilde Svendsen requested to merge plimkilde/relibc:lcg48_refactor into master
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -41,7 +41,11 @@ pub fn u48_from_ushort_arr3(arr: &[c_ushort; 3]) -> u64 {
/// Make a size-3 array of unsigned short from a 48-bit integer.
pub fn ushort_arr3_from_u48(value: u64) -> [c_ushort; 3] {
[c_ushort::from(value as u16), c_ushort::from((value >> 16) as u16), c_ushort::from((value >> 32) as u16)]
[
c_ushort::from(value as u16),
c_ushort::from((value >> 16) as u16),
c_ushort::from((value >> 32) as u16),
]
}
/// Advances the buffer from the input argument to the next element in
Loading