sayantn
62b4347e80
Add funnel_sh{l,r} functions and intrinsics
...
- Add a fallback implementation for the intrinsics
- Add LLVM backend support for funnel shifts
Co-Authored-By: folkertdev <folkert@folkertdev.nl >
2025-09-03 14:13:24 +05:30
Alexandre Courbot
73d3d28bed
Implement feature int_lowest_highest_one for integer and NonZero types
...
Implement the accepted ACP for methods that find the index of the least
significant (lowest) and most significant (highest) set bit in an
integer for signed, unsigned, and NonZero types.
Also add unit tests for all these types.
2025-08-18 18:59:44 +09:00
okaneco
eee6f804a9
Renamed isolate_most_least_significant_one functions
...
libs-api has agreed to rename these functions to
`isolate_highest_one`/`isolate_lowest_one`
2025-08-05 16:37:04 -04:00
Shun Sakai
199b808870
feat: Add bit_width for unsigned integer types
2025-06-11 11:15:37 +09:00
Jeremy Smart
e87f1386d9
add tests
2025-06-02 22:57:16 -04:00
lcnr
8b2daac8d3
coretests stop relying on inline_const_pat
2025-03-21 09:35:31 +01:00
Jacob Pratt
31640178bd
Rollup merge of #137393 - chorman0773:unbounded-shifts-stabilize, r=Amanieu
...
Stabilize `unbounded_shifts`
This stabilizes and const-stabilizes `<iN>::unbounded_shl` and `<uN>::unbounded_shr` from https://github.com/rust-lang/rust/issues/129375 .
2025-02-24 02:11:34 -05:00
Connor Horman
f1c21c9fc6
Fix unbounded_shifts tests
2025-02-21 18:13:30 +00:00
Connor Horman
a3f389745e
Stabilize unbounded_shifts
2025-02-21 16:58:37 +00:00
okaneco
97bc99a18f
Implement feature isolate_most_least_significant_one for integer types
...
Implement accepted ACP for functions that isolate the most significant
set bit and least significant set bit on unsigned, signed, and NonZero
integers.
Add function `isolate_most_significant_one`
Add function `isolate_least_significant_one`
Add tests
2025-02-20 05:19:06 -05:00
bjorn3
b6a3841942
Put all coretests in a separate crate
2025-01-26 10:26:36 +00:00