Skip to content

Commit 525a043

Browse files
committed
Rename src/libcore/benches/ascii_case.rs to ascii.rs
1 parent e3fb6f8 commit 525a043

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/libcore/benches/ascii_case.rs renamed to src/libcore/benches/ascii.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ benches! {
8484
}
8585
}
8686

87+
fn bench05_multiply_by_bool(bytes: &mut [u8]) {
88+
for byte in bytes {
89+
*byte &= !(0x20 * (b'a' <= *byte && *byte <= b'z') as u8)
90+
}
91+
}
92+
8793
fn bench06_libcore(bytes: &mut [u8]) {
8894
bytes.make_ascii_uppercase()
8995
}

src/libcore/benches/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extern crate core;
55
extern crate test;
66

77
mod any;
8-
mod ascii_case;
8+
mod ascii;
99
mod char;
1010
mod hash;
1111
mod iter;

0 commit comments

Comments
 (0)