Use traits instead of macros for shift intrinsics

This is an attempt to tidy up the definition of intrinsics by making them more
rust-like at the definition site and using traits instead of macros for the
definition. Additionally the helper macro, `intrinsics!`, now fills in a
definition for #[cfg]'d off intrinsics when compiling with C code
This commit is contained in:
Alex Crichton
2017-06-22 22:03:07 -07:00
parent 0f2515b715
commit bd4a416457
4 changed files with 166 additions and 61 deletions

View File

@@ -99,6 +99,9 @@ fn sconv(i: i128) -> U64x2 {
#[cfg(test)]
extern crate core;
#[macro_use]
mod macros;
pub mod int;
pub mod float;