We can't accept usize directly, i guess accept MyU64
?
This commit is contained in:
parent
e8c09a84f8
commit
c548dc5b34
@ -777,10 +777,12 @@ fn main() {
|
||||
}
|
||||
|
||||
// count leading zeros
|
||||
gen(|(a): (usize)| {
|
||||
Some(a.leading_zeros())
|
||||
gen(|a: MyU128| {
|
||||
Some((a as usize).leading_zeros())
|
||||
},
|
||||
"builtins::int::__clzsi2(a)");
|
||||
"{
|
||||
builtins::int::__clzsi2(a as usize)
|
||||
}");
|
||||
}
|
||||
|
||||
macro_rules! gen_float {
|
||||
|
Loading…
Reference in New Issue
Block a user