trying a test case for clzsi2

This commit is contained in:
Lokathor 2018-12-21 18:10:45 -07:00
parent 4e3fc640df
commit e8c09a84f8

View File

@ -775,6 +775,12 @@ fn main() {
(builtins::int::udiv::__udivmodti4(a, b, Some(&mut r)), r) (builtins::int::udiv::__udivmodti4(a, b, Some(&mut r)), r)
}"); }");
} }
// count leading zeros
gen(|(a): (usize)| {
Some(a.leading_zeros())
},
"builtins::int::__clzsi2(a)");
} }
macro_rules! gen_float { macro_rules! gen_float {