fixup AVX2 ascii blocks so they don't run as doctests

This commit is contained in:
Henry de Valence 2019-02-12 11:38:39 -08:00
parent 8b0ad2b03d
commit e693d7f020
2 changed files with 8 additions and 8 deletions

View file

@ -35,7 +35,7 @@ pub(crate) static CACHEDPOINT_IDENTITY: CachedPoint = CachedPoint(FieldElement26
])); ]));
/// The low limbs of (2p, 2p, 2p, 2p), so that /// The low limbs of (2p, 2p, 2p, 2p), so that
/// ```no_run /// ```ascii,no_run
/// (2p, 2p, 2p, 2p) = [P_TIMES_2_LO, P_TIMES_2_HI, P_TIMES_2_HI, P_TIMES_2_HI, P_TIMES_2_HI] /// (2p, 2p, 2p, 2p) = [P_TIMES_2_LO, P_TIMES_2_HI, P_TIMES_2_HI, P_TIMES_2_HI, P_TIMES_2_HI]
/// ``` /// ```
pub(crate) static P_TIMES_2_LO: u32x8 = u32x8::new( pub(crate) static P_TIMES_2_LO: u32x8 = u32x8::new(
@ -50,7 +50,7 @@ pub(crate) static P_TIMES_2_LO: u32x8 = u32x8::new(
); );
/// The high limbs of (2p, 2p, 2p, 2p), so that /// The high limbs of (2p, 2p, 2p, 2p), so that
/// ```no_run /// ```ascii,no_run
/// (2p, 2p, 2p, 2p) = [P_TIMES_2_LO, P_TIMES_2_HI, P_TIMES_2_HI, P_TIMES_2_HI, P_TIMES_2_HI] /// (2p, 2p, 2p, 2p) = [P_TIMES_2_LO, P_TIMES_2_HI, P_TIMES_2_HI, P_TIMES_2_HI, P_TIMES_2_HI]
/// ``` /// ```
pub(crate) static P_TIMES_2_HI: u32x8 = u32x8::new( pub(crate) static P_TIMES_2_HI: u32x8 = u32x8::new(
@ -65,7 +65,7 @@ pub(crate) static P_TIMES_2_HI: u32x8 = u32x8::new(
); );
/// The low limbs of (16p, 16p, 16p, 16p), so that /// The low limbs of (16p, 16p, 16p, 16p), so that
/// ```no_run /// ```ascii,no_run
/// (16p, 16p, 16p, 16p) = [P_TIMES_16_LO, P_TIMES_16_HI, P_TIMES_16_HI, P_TIMES_16_HI, P_TIMES_16_HI] /// (16p, 16p, 16p, 16p) = [P_TIMES_16_LO, P_TIMES_16_HI, P_TIMES_16_HI, P_TIMES_16_HI, P_TIMES_16_HI]
/// ``` /// ```
pub(crate) static P_TIMES_16_LO: u32x8 = u32x8::new( pub(crate) static P_TIMES_16_LO: u32x8 = u32x8::new(
@ -80,7 +80,7 @@ pub(crate) static P_TIMES_16_LO: u32x8 = u32x8::new(
); );
/// The high limbs of (16p, 16p, 16p, 16p), so that /// The high limbs of (16p, 16p, 16p, 16p), so that
/// ```no_run /// ```ascii,no_run
/// (16p, 16p, 16p, 16p) = [P_TIMES_16_LO, P_TIMES_16_HI, P_TIMES_16_HI, P_TIMES_16_HI, P_TIMES_16_HI] /// (16p, 16p, 16p, 16p) = [P_TIMES_16_LO, P_TIMES_16_HI, P_TIMES_16_HI, P_TIMES_16_HI, P_TIMES_16_HI]
/// ``` /// ```
pub(crate) static P_TIMES_16_HI: u32x8 = u32x8::new( pub(crate) static P_TIMES_16_HI: u32x8 = u32x8::new(

View file

@ -46,11 +46,11 @@ use backend::vector::avx2::constants::{P_TIMES_16_HI, P_TIMES_16_LO, P_TIMES_2_H
use backend::serial::u64::field::FieldElement51; use backend::serial::u64::field::FieldElement51;
/// Unpack 32-bit lanes into 64-bit lanes: /// Unpack 32-bit lanes into 64-bit lanes:
/// ``` /// ```ascii,no_run
/// (a0, b0, a1, b1, c0, d0, c1, d1) /// (a0, b0, a1, b1, c0, d0, c1, d1)
/// ``` /// ```
/// into /// into
/// ``` /// ```ascii,no_run
/// (a0, 0, b0, 0, c0, 0, d0, 0) /// (a0, 0, b0, 0, c0, 0, d0, 0)
/// (a1, 0, b1, 0, c1, 0, d1, 0) /// (a1, 0, b1, 0, c1, 0, d1, 0)
/// ``` /// ```
@ -69,12 +69,12 @@ fn unpack_pair(src: u32x8) -> (u32x8, u32x8) {
} }
/// Repack 64-bit lanes into 32-bit lanes: /// Repack 64-bit lanes into 32-bit lanes:
/// ``` /// ```ascii,no_run
/// (a0, 0, b0, 0, c0, 0, d0, 0) /// (a0, 0, b0, 0, c0, 0, d0, 0)
/// (a1, 0, b1, 0, c1, 0, d1, 0) /// (a1, 0, b1, 0, c1, 0, d1, 0)
/// ``` /// ```
/// into /// into
/// ``` /// ```ascii,no_run
/// (a0, b0, a1, b1, c0, d0, c1, d1) /// (a0, b0, a1, b1, c0, d0, c1, d1)
/// ``` /// ```
#[inline(always)] #[inline(always)]