Add doc comment to pack_generic

This commit is contained in:
Eduardo Sánchez Muñoz 2024-04-27 16:23:44 +02:00
parent 45d93945ad
commit ee47a8e6b6

View file

@ -1127,6 +1127,13 @@ fn pmulhrsw<'tcx>(
Ok(())
}
/// Packs two N-bit integer vectors to a single N/2-bit integers.
///
/// The conversion from N-bit to N/2-bit should be provided by `f`.
///
/// Each 128-bit chunk is treated independently (i.e., the value for
/// the is i-th 128-bit chunk of `dest` is calculated with the i-th
/// 128-bit chunks of `left` and `right`).
fn pack_generic<'tcx>(
this: &mut crate::MiriInterpCx<'_, 'tcx>,
left: &OpTy<'tcx, Provenance>,