archmage 0.9.21

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
7
8
9
// @generated by xtask expand_gen
// #[arcane] with closure parameter
use archmage::{arcane, X64V3Token};
#[arcane]
fn apply(token: X64V3Token, data: &[f32; 4], f: impl Fn(f32) -> f32) -> [f32; 4] {
    let _ = token;
    [f(data[0]), f(data[1]), f(data[2]), f(data[3])]
}
fn main() {}