diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-07-10 12:44:23 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-07-10 12:44:23 +0200 |
| commit | c92f054085a44393329f19cd9cf7dd12d03d80e8 (patch) | |
| tree | e18e07192168634da495a02ae76a98ea3b530b2d /example | |
| parent | 5b91a1a6c2e239b635295682ecba8c0d0346ca52 (diff) | |
Merge commit '98ed962c7d3eebe12c97588e61245273d265e72f' into master
Diffstat (limited to 'example')
| -rw-r--r-- | example/example.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/example/example.rs b/example/example.rs index 7c21b73b630..03470b74d0a 100644 --- a/example/example.rs +++ b/example/example.rs @@ -153,10 +153,9 @@ fn array_as_slice(arr: &[u8; 3]) -> &[u8] { arr } -// 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 |
