From ac2bf8c374cc0adbe621c880af374d67c3208192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Rakic?= Date: Thu, 4 Mar 2021 21:32:36 +0100 Subject: [PATCH] remove unused constify_imm x86 macro --- library/stdarch/crates/core_arch/src/x86/macros.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/x86/macros.rs b/library/stdarch/crates/core_arch/src/x86/macros.rs index 4f160221d648..d4c8e363ba15 100644 --- a/library/stdarch/crates/core_arch/src/x86/macros.rs +++ b/library/stdarch/crates/core_arch/src/x86/macros.rs @@ -48,18 +48,6 @@ macro_rules! constify_imm3 { }; } -macro_rules! constify_imm2 { - ($imm8:expr, $expand:ident) => { - #[allow(overflowing_literals)] - match ($imm8) & 0b11 { - 0 => $expand!(0), - 1 => $expand!(1), - 2 => $expand!(2), - _ => $expand!(3), - } - }; -} - // Constifies 5 bits along with an sae option without rounding control. // See: https://github.com/llvm/llvm-project/blob/bd50cf905fa7c0c7caa134301c6ca0658c81eeb1/clang/lib/Sema/SemaChecking.cpp#L3497 #[allow(unused)]