Skip to content

Commit 6c1aded

Browse files
committed
Always inline compare_bytes::cmp
1 parent 5110338 commit 6c1aded

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mem/x86_64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ pub unsafe fn set_bytes(dest: *mut u8, c: u8, count: usize) {
103103

104104
#[inline(always)]
105105
pub unsafe fn compare_bytes(a: *const u8, b: *const u8, n: usize) -> i32 {
106+
#[inline(always)]
106107
unsafe fn cmp<T, U, F>(mut a: *const T, mut b: *const T, n: usize, f: F) -> i32
107108
where
108109
T: Clone + Copy + Eq,

0 commit comments

Comments
 (0)