pub enum FastDivmodArgs<'a, R: Runtime> {
Fast {
divisor: <u32 as LaunchArg>::RuntimeArg<'a, R>,
multiplier: <u32 as LaunchArg>::RuntimeArg<'a, R>,
shift_right: <u32 as LaunchArg>::RuntimeArg<'a, R>,
},
PowerOfTwo {
shift: <u32 as LaunchArg>::RuntimeArg<'a, R>,
mask: <u32 as LaunchArg>::RuntimeArg<'a, R>,
},
Fallback {
divisor: <u32 as LaunchArg>::RuntimeArg<'a, R>,
},
}
Variants§
Fast
Fields
§
divisor: <u32 as LaunchArg>::RuntimeArg<'a, R>
§
multiplier: <u32 as LaunchArg>::RuntimeArg<'a, R>
§
shift_right: <u32 as LaunchArg>::RuntimeArg<'a, R>
PowerOfTwo
Fallback
Fields
§
divisor: <u32 as LaunchArg>::RuntimeArg<'a, R>
Implementations§
Source§impl<R: Runtime> FastDivmodArgs<'_, R>
impl<R: Runtime> FastDivmodArgs<'_, R>
Trait Implementations§
Source§impl<'a, R: Runtime> ArgSettings<R> for FastDivmodArgs<'a, R>
impl<'a, R: Runtime> ArgSettings<R> for FastDivmodArgs<'a, R>
Source§fn register(&self, launcher: &mut KernelLauncher<R>)
fn register(&self, launcher: &mut KernelLauncher<R>)
Register the information of an argument to the KernelLauncher.
Auto Trait Implementations§
impl<'a, R> Freeze for FastDivmodArgs<'a, R>
impl<'a, R> RefUnwindSafe for FastDivmodArgs<'a, R>
impl<'a, R> Send for FastDivmodArgs<'a, R>
impl<'a, R> Sync for FastDivmodArgs<'a, R>
impl<'a, R> Unpin for FastDivmodArgs<'a, R>
impl<'a, R> UnwindSafe for FastDivmodArgs<'a, R>
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