diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-02-02 14:28:16 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2026-02-02 14:28:16 +0000 |
| commit | bb7496a2fcc58238a4e3abcc431313385a15183f (patch) | |
| tree | 1bced935d1c3ad3b74dc530cc60d95a103b0db28 /base | |
| parent | 80c948277455eb9deaf79ac910fdc8957038fb75 (diff) | |
Add `intrinsics.count_trailing_ones` and `intrinsics.count_leading_ones`
Diffstat (limited to 'base')
| -rw-r--r-- | base/intrinsics/intrinsics.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/intrinsics/intrinsics.odin b/base/intrinsics/intrinsics.odin index 2428e37b9..f06dbdfbf 100644 --- a/base/intrinsics/intrinsics.odin +++ b/base/intrinsics/intrinsics.odin @@ -38,6 +38,8 @@ count_ones :: proc(x: $T) -> T where type_is_integer(T) || type_is_sim count_zeros :: proc(x: $T) -> T where type_is_integer(T) || type_is_simd_vector(T) --- count_trailing_zeros :: proc(x: $T) -> T where type_is_integer(T) || type_is_simd_vector(T) --- count_leading_zeros :: proc(x: $T) -> T where type_is_integer(T) || type_is_simd_vector(T) --- +count_trailing_ones :: proc(x: $T) -> T where type_is_integer(T) || type_is_simd_vector(T) --- +count_leading_ones :: proc(x: $T) -> T where type_is_integer(T) || type_is_simd_vector(T) --- reverse_bits :: proc(x: $T) -> T where type_is_integer(T) || type_is_simd_vector(T) --- byte_swap :: proc(x: $T) -> T where type_is_integer(T) || type_is_float(T) --- |