archmage 0.9.23

Safely invoke your intrinsic power, using the tokens granted to you by the CPU. Cast primitive magics faster than any mage alive.
Documentation
1
2
3
4
5
6
// @generated by xtask expand_gen
use archmage::{arcane, dispatch_variant, X64V3Token, ScalarToken};
#[arcane] fn compute_v3(_t: X64V3Token, x: f32) -> f32 { x }
fn compute_scalar(_t: ScalarToken, x: f32) -> f32 { x }
fn dispatch(x: f32) -> f32 { dispatch_variant!(compute(x), [v3, scalar]) }
fn main() {}