pub enum RoundControl {
SquareOnly,
SquareAndMultiply,
}Expand description
Control signal for a single pipeline round.
Tells the multiply stage whether to multiply by the base or bypass.
Variants§
SquareOnly
Square only (exponent bit is 0): bypass the multiplier.
SquareAndMultiply
Square and multiply (exponent bit is 1): multiply by base.
Implementations§
Source§impl RoundControl
impl RoundControl
Sourcepub fn is_multiply(self) -> bool
pub fn is_multiply(self) -> bool
Returns true if this round includes a multiplication.
Trait Implementations§
Source§impl Clone for RoundControl
impl Clone for RoundControl
Source§fn clone(&self) -> RoundControl
fn clone(&self) -> RoundControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RoundControl
Source§impl Debug for RoundControl
impl Debug for RoundControl
impl Eq for RoundControl
Source§impl Hash for RoundControl
impl Hash for RoundControl
Source§impl PartialEq for RoundControl
impl PartialEq for RoundControl
Source§fn eq(&self, other: &RoundControl) -> bool
fn eq(&self, other: &RoundControl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RoundControl
Auto Trait Implementations§
impl Freeze for RoundControl
impl RefUnwindSafe for RoundControl
impl Send for RoundControl
impl Sync for RoundControl
impl Unpin for RoundControl
impl UnsafeUnpin for RoundControl
impl UnwindSafe for RoundControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more