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
use archmage::autoversion;
struct P {
    f: f32,
}
impl P {
    fn apply(&self, x: f32) -> f32 {
        #[allow(unused_imports)]
        use archmage::SimdToken;
        {
            if let Some(__t) = archmage::X64V4Token::summon() {
                return self.apply_v4(__t, x);
            }
            if let Some(__t) = archmage::X64V3Token::summon() {
                return self.apply_v3(__t, x);
            }
        }
        self.apply_scalar(archmage::ScalarToken, x)
    }
    #[doc(hidden)]
    #[allow(dead_code)]
    #[target_feature(
        enable = "sse,sse2,sse3,ssse3,sse4.1,sse4.2,popcnt,cmpxchg16b,avx,avx2,fma,bmi1,bmi2,f16c,lzcnt,movbe,pclmulqdq,aes,avx512f,avx512bw,avx512cd,avx512dq,avx512vl"
    )]
    #[inline]
    fn __arcane_apply_v4(&self, _token: archmage::X64V4Token, x: f32) -> f32 {
        x * self.f
    }
    #[allow(dead_code)]
    #[inline(always)]
    fn apply_v4(&self, _token: archmage::X64V4Token, x: f32) -> f32 {
        const _ARCHMAGE_TOKEN_MISMATCH: () = [
            (),
        ][!(<archmage::X64V4Token>::__ARCHMAGE_TIER_TAG == 4263219212u32) as usize];
        unsafe { self.__arcane_apply_v4(_token, x) }
    }
    #[doc(hidden)]
    #[allow(dead_code)]
    #[target_feature(
        enable = "sse,sse2,sse3,ssse3,sse4.1,sse4.2,popcnt,cmpxchg16b,avx,avx2,fma,bmi1,bmi2,f16c,lzcnt,movbe"
    )]
    #[inline]
    fn __arcane_apply_v3(&self, _token: archmage::X64V3Token, x: f32) -> f32 {
        x * self.f
    }
    #[allow(dead_code)]
    #[inline(always)]
    fn apply_v3(&self, _token: archmage::X64V3Token, x: f32) -> f32 {
        const _ARCHMAGE_TOKEN_MISMATCH: () = [
            (),
        ][!(<archmage::X64V3Token>::__ARCHMAGE_TIER_TAG == 4085983307u32) as usize];
        unsafe { self.__arcane_apply_v3(_token, x) }
    }
    #[allow(dead_code)]
    fn apply_scalar(&self, _token: archmage::ScalarToken, x: f32) -> f32 {
        x * self.f
    }
}
fn main() {}