Multiversion
Function multiversioning macro/attribute for Rust.
Usage
Add the following to your dependencies in Cargo.toml:
[]
= "0.1"
Example
Automatic function multiversioning with the target_clones
attribute, similar to GCC's target_clones
attribute:
use target_clones;
Manual function multiversioning with the multiversion!
macro:
use multiversion;
multiversion!
unsafe
unsafe
License
Multiversion is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.