archmage 0.9.13

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
// #[autoversion] basic — tokenless, default tier list
use archmage::autoversion;

#[autoversion]
fn sum_squares(data: &[f32; 4]) -> f32 {
    let mut sum = 0.0f32;
    for &x in data {
        sum += x * x;
    }
    sum
}

fn main() {}