rust/zerocopy/benches/try_ref_from_suffix_dynamic_padding.x86-64

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

File Facts

System
Linux kernel
Corpus path
rust/zerocopy/benches/try_ref_from_suffix_dynamic_padding.x86-64
Extension
.x86-64
Size
436 bytes
Lines
27
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_suffix_dynamic_padding:
	lea eax, [rsi + rdi]
	test al, 3
	jne .LBB5_1
	movabs rax, 9223372036854775804
	and rax, rsi
	cmp rax, 9
	jae .LBB5_3
.LBB5_1:
	xor eax, eax
	ret
.LBB5_3:
	add rax, -9
	movabs rcx, -6148914691236517205
	mul rcx
	shr rdx
	lea rcx, [rdx + 2*rdx]
	sub rsi, rcx
	or rcx, -4
	add rsi, rdi
	lea rdi, [rcx + rsi]
	add rdi, -8
	xor eax, eax
	cmp word ptr [rcx + rsi - 8], -16192
	cmove rax, rdi
	ret

Annotation

Implementation Notes