Formatting
This commit is contained in:
parent
c7404df069
commit
04fe482160
1 changed files with 2 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ pub unsafe fn compare_bytes(a: *const u8, b: *const u8, n: usize) -> i32 {
|
|||
c16(a.cast(), b.cast(), n)
|
||||
}
|
||||
|
||||
#[cfg(target_feature="sse2")]
|
||||
#[cfg(target_feature = "sse2")]
|
||||
#[inline(always)]
|
||||
pub unsafe fn c_string_length(s: *const core::ffi::c_char) -> usize {
|
||||
let mut n: usize;
|
||||
|
|
@ -259,7 +259,7 @@ pub unsafe fn c_string_length(s: *const core::ffi::c_char) -> usize {
|
|||
|
||||
// Provided for scenarios like kernel development, where SSE might not
|
||||
// be available.
|
||||
#[cfg(not(target_feature="sse2"))]
|
||||
#[cfg(not(target_feature = "sse2"))]
|
||||
#[inline(always)]
|
||||
pub unsafe fn c_string_length(mut s: *const core::ffi::c_char) -> usize {
|
||||
let mut n = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue