rust/zerocopy/benches/read_from_suffix.x86-64

Source file repositories/reference/linux-study-clean/rust/zerocopy/benches/read_from_suffix.x86-64

File Facts

System
Linux kernel
Corpus path
rust/zerocopy/benches/read_from_suffix.x86-64
Extension
.x86-64
Size
252 bytes
Lines
16
Domain
Rust Kernel Layer
Bucket
Rust API Membrane
Inferred role
Rust Kernel Layer: Rust API Membrane
Status
atlas-only

Why This File Exists

Rust-side wrappers and abstractions around kernel C APIs, ownership contracts, allocation, synchronization, and module integration.

Dependency Surface

Detected Declarations

Annotated Snippet

bench_read_from_suffix_static_size:
	mov rcx, rsi
	cmp rsi, 6
	jb .LBB5_2
	mov eax, dword ptr [rdi + rsi - 6]
	movzx ecx, word ptr [rdi + rsi - 2]
	shl rcx, 32
	or rcx, rax
.LBB5_2:
	shl rcx, 16
	inc rcx
	xor eax, eax
	cmp rsi, 6
	cmovae rax, rcx
	ret

Annotation

Implementation Notes