We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unsafe
_mm_pause
1 parent b826104 commit a7f0c6cCopy full SHA for a7f0c6c
library/core/src/hint.rs
@@ -271,11 +271,11 @@ pub fn spin_loop() {
271
crate::cfg_select! {
272
target_arch = "x86" => {
273
// SAFETY: the `cfg` attr ensures that we only execute this on x86 targets.
274
- unsafe { crate::arch::x86::_mm_pause() }
+ crate::arch::x86::_mm_pause()
275
}
276
target_arch = "x86_64" => {
277
// SAFETY: the `cfg` attr ensures that we only execute this on x86_64 targets.
278
- unsafe { crate::arch::x86_64::_mm_pause() }
+ crate::arch::x86_64::_mm_pause()
279
280
target_arch = "riscv32" => crate::arch::riscv32::pause(),
281
target_arch = "riscv64" => crate::arch::riscv64::pause(),
0 commit comments