rust/zerocopy/benches/try_ref_from_prefix_dynamic_size.x86-64

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

File Facts

System
Linux kernel
Corpus path
rust/zerocopy/benches/try_ref_from_prefix_dynamic_size.x86-64
Extension
.x86-64
Size
310 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_prefix_dynamic_size:
	xor edx, edx
	mov eax, 0
	test dil, 1
	jne .LBB5_4
	cmp rsi, 4
	jae .LBB5_3
	mov edx, 1
	xor eax, eax
	ret
.LBB5_3:
	add rsi, -4
	shr rsi
	movzx ecx, word ptr [rdi]
	cmp ecx, 49344
	mov edx, 2
	cmove rdx, rsi
	xor eax, eax
	cmp cx, -16192
	cmove rax, rdi
.LBB5_4:
	ret

Annotation

Implementation Notes