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.
1 parent e42dfe7 commit 117809aCopy full SHA for 117809a
src/mem/x86_64.rs
@@ -1,5 +1,12 @@
1
use super::c_int;
2
3
+// On recent Intel processors, "rep movsb" and "rep stosb" have been enhanced to
4
+// select the best microarchitectural implementation based on length and
5
+// alignment. This allows for very fast memcmp/memset implementations.
6
+// See "Intel® 64 and IA-32 Architectures Optimization Reference Manual"
7
+// - Enhanced REP MOVSB and STOSB operation (ERMSB) (section 3.7.7)
8
+// - Fast Short REP MOV (FSRM)
9
+
10
#[cfg_attr(all(feature = "mem", not(feature = "mangled-names")), no_mangle)]
11
pub unsafe extern "C" fn memcpy(dest: *mut u8, src: *const u8, count: usize) -> *mut u8 {
12
asm!(
0 commit comments