Skip to content

Commit c3d8e77

Browse files
bjorn3gnzlbg
authored andcommitted
Remove unnecessary \n from cpuid
1 parent b881a2d commit c3d8e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_arch/src/x86/cpuid.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub unsafe fn __cpuid_count(leaf: u32, sub_leaf: u32) -> CpuidResult {
6565
#[cfg(target_arch = "x86_64")]
6666
{
6767
// x86-64 uses %rbx as the base register, so preserve it.
68-
asm!("cpuid\n"
68+
asm!("cpuid"
6969
: "={eax}"(eax), "={ebx}"(ebx), "={ecx}"(ecx), "={edx}"(edx)
7070
: "{eax}"(leaf), "{ecx}"(sub_leaf)
7171
: "rbx" :);

0 commit comments

Comments
 (0)