aboutsummaryrefslogtreecommitdiff
path: root/src/bits64/tobba.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bits64/tobba.rs')
-rw-r--r--src/bits64/tobba.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/bits64/tobba.rs b/src/bits64/tobba.rs
deleted file mode 100644
index 3e3231e..0000000
--- a/src/bits64/tobba.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-#![allow(non_upper_case_globals)]
-
-pub use shared::*;
-
-#[inline(always)]
-pub fn get_flags() -> Flags {
- unsafe {
- let r: usize;
- asm!("pushfq; pop $0" : "=r"(r) ::: "intel");
- Flags::from_bits_truncate(r)
- }
-}
-
-#[inline(always)]
-pub unsafe fn set_flags(val: Flags) {
- asm!("push $0; popfq" :: "r"(val.bits()) : "flags" : "volatile", "intel");
-}