about summary refs log tree commit diff
path: root/library/alloc/src/vec/is_zero.rs
AgeCommit message (Collapse)AuthorLines
2025-01-10alloc: remove unsound `IsZero` for raw pointersjoboet-13/+2
Fixes #135338
2024-10-25library: consistently use American spelling for 'behavior'Ralf Jung-1/+1
2024-02-22Use generic `NonZero` everywhere in `alloc`.Markus Reiter-32/+19
2023-01-18Update `IsZero` documentationclubby789-1/+2
2023-01-18Implement `alloc::vec::IsZero` for `Option<$NUM>` typesclubby789-0/+17
2023-01-14Remove various double spaces in source comments.André Vennberg-1/+1
2022-10-02Do the `calloc` optimization for `Option<bool>`Scott McMurray-0/+22
Inspired by <https://old.reddit.com/r/rust/comments/xtiqj8/why_is_this_functional_version_faster_than_my_for/iqqy37b/>.
2022-09-02implement IsZero for Saturating and Wrappingasquared31415-0/+16
2022-07-24Support vec zero-alloc optimization for tuples and byte arraysAngelicosPhosphoros-4/+32
* Implement IsZero trait for tuples up to 8 IsZero elements; * Implement IsZero for u8/i8, leading to implementation of it for arrays of them too; * Add more codegen tests for this optimization. * Lower size of array for IsZero trait because it fails to inline checks
2022-05-01Tweak the calloc optimization to only apply to shortish-arraysScott McMurray-1/+8
2022-03-27Support arrays of zeros in Vec's __rust_alloc_zeroed optimizationScott McMurray-1/+8
2021-05-30Fix a typor00ster-1/+1
2021-05-26Enable Vec's calloc optimization for Option<NonZero>Scott McMurray-0/+33
2020-12-29style: applying Rust styleC-1/+1
2020-12-29refactor: moved IsZero into is_zero.rsC-0/+71