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
7
8
9
10
11
12
13
// Token aliasing: renaming a lower-tier token to a higher-tier name
// must NOT compile. The macro generates #[target_feature] based on the
// name, but the actual token only proves lesser features are available.

use archmage::arcane;
use archmage::X64V2Token as X64V3Token;

#[arcane]
fn evil(token: X64V3Token, data: &[f32; 8]) -> f32 {
    data.iter().sum()
}

fn main() {}