Browse Source

trying a test case for clzsi2

Lokathor 6 years ago
parent
commit
e8c09a84f8
1 changed files with 6 additions and 0 deletions
  1. 6 0
      testcrate/build.rs

+ 6 - 0
testcrate/build.rs

@@ -775,6 +775,12 @@ fn main() {
                 (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 {