[][src]Trait rysk_core::register::Multiply

pub trait Multiply<S, U>: Sized {
    fn muls(first: S, second: S) -> (S, S);
fn mulu(first: U, second: U) -> (U, U);
fn mulsu(first: S, second: U) -> (S, S); }

An integer which may be multiplied in the way specified by the ISA A seperate trait is used as implementation in a macro is too difficult

Required methods

fn muls(first: S, second: S) -> (S, S)

Multiply two signed integers, returning both the high, overflowed, bits and the lower bits.

fn mulu(first: U, second: U) -> (U, U)

Multiply two unsigned integers, returning both the high, overflowed, bits and the lower bits.

fn mulsu(first: S, second: U) -> (S, S)

Multiply a signed integer by an unsigned integer, returning both the high, overflowed, bits and the lower bits.

Loading content...

Implementations on Foreign Types

impl Multiply<i32, u32> for i32[src]

impl Multiply<i64, u64> for i64[src]

impl Multiply<isize, usize> for isize[src]

Loading content...

Implementors

Loading content...