diff options
| author | Antoni Boucher <bouanto@zoho.com> | 2024-06-28 12:51:18 -0400 |
|---|---|---|
| committer | Antoni Boucher <bouanto@zoho.com> | 2024-07-02 12:55:30 -0400 |
| commit | 59de4fa99191ba324e7aafc7666b10a125974bc5 (patch) | |
| tree | 25ac8990c60efa15ad1bcb5b31a6115b0f6dd710 /example | |
| parent | 63d308bd765553f03c2684f6ea8a5ef39029f54d (diff) | |
| download | rust-59de4fa99191ba324e7aafc7666b10a125974bc5.tar.gz rust-59de4fa99191ba324e7aafc7666b10a125974bc5.zip | |
Fix type of intrinsics
Diffstat (limited to 'example')
| -rw-r--r-- | example/example.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/example.rs b/example/example.rs index 7c21b73b630..30e3c3c30c2 100644 --- a/example/example.rs +++ b/example/example.rs @@ -154,9 +154,9 @@ fn array_as_slice(arr: &[u8; 3]) -> &[u8] { } // FIXME: fix the intrinsic implementation to work with the new ->u32 signature -// unsafe fn use_ctlz_nonzero(a: u16) -> u32 { -// intrinsics::ctlz_nonzero(a) -// } +unsafe fn use_ctlz_nonzero(a: u16) -> u32 { + intrinsics::ctlz_nonzero(a) +} fn ptr_as_usize(ptr: *const u8) -> usize { ptr as usize |
