rust/zerocopy/benches/try_ref_from_bytes_dynamic_size.x86-64

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

File Facts

System
Linux kernel
Corpus path
rust/zerocopy/benches/try_ref_from_bytes_dynamic_size.x86-64
Extension
.x86-64
Size
307 bytes
Lines
23
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_try_ref_from_bytes_dynamic_size:
	mov rdx, rsi
	mov rax, rdi
	cmp rsi, 4
	setb cl
	or cl, al
	test cl, 1
	jne .LBB5_4
	lea rcx, [rdx - 4]
	mov rsi, rcx
	and rsi, -2
	add rsi, 4
	cmp rdx, rsi
	jne .LBB5_4
	cmp word ptr [rax], -16192
	jne .LBB5_4
	shr rcx
	mov rdx, rcx
	ret
.LBB5_4:
	xor eax, eax
	ret

Annotation

Implementation Notes