rust/library/core/benches
Eduardo Sánchez Muñoz 93ae6f80e3 Make some usize-typed masks definition agnostic to the size of usize
Some masks where defined as
```rust
const NONASCII_MASK: usize = 0x80808080_80808080u64 as usize;
```
where it was assumed that `usize` is never wider than 64, which is currently true.

To make those constants valid in a hypothetical 128-bit target, these constants have been redefined in an `usize`-width-agnostic way
```rust
const NONASCII_MASK: usize = usize::from_ne_bytes([0x80; size_of::<usize>()]);
```

There are already some cases where Rust anticipates the possibility of supporting 128-bit targets, such as not implementing `From<usize>` for `u64`.
2022-04-15 17:04:59 +02:00
..
ascii Make some usize-typed masks definition agnostic to the size of usize 2022-04-15 17:04:59 +02:00
char Add two more benchmarks for strictly ASCII and non ASCII cases 2021-02-26 11:42:59 -06:00
hash mv std libs to library/ 2020-07-27 19:51:13 -05:00
num Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
str Respond to review feedback, and improve implementation somewhat 2022-02-05 11:15:18 -08:00
any.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
ascii.rs Unify way to flip 6th bit. (Same assembly generated) 2021-02-08 12:21:36 +00:00
fmt.rs move core::hint::black_box under its own feature gate 2021-04-25 11:08:12 +02:00
iter.rs Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
lib.rs Auto merge of #88788 - falk-hueffner:speedup-int-log10-branchless, r=joshtriplett 2021-10-12 03:18:54 +00:00
ops.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
pattern.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
slice.rs Stop manually SIMDing in swap_nonoverlapping 2022-02-21 00:54:02 -08:00
str.rs Optimize core::str::Chars::count 2022-02-05 11:15:17 -08:00