rust/zerocopy/benches/ref_from_bytes_dynamic_size.x86-64

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

File Facts

System
Linux kernel
Corpus path
rust/zerocopy/benches/ref_from_bytes_dynamic_size.x86-64
Extension
.x86-64
Size
267 bytes
Lines
21
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_ref_from_bytes_dynamic_size:
	mov rdx, rsi
	cmp rsi, 4
	setb al
	or al, dil
	test al, 1
	je .LBB5_2
	xor eax, eax
	ret
.LBB5_2:
	lea rcx, [rdx - 4]
	mov rsi, rcx
	and rsi, -2
	add rsi, 4
	shr rcx
	xor eax, eax
	cmp rdx, rsi
	cmove rdx, rcx
	cmove rax, rdi
	ret

Annotation

Implementation Notes