File Index
Files and directories
Sign in
FILE

crc32c_asm.S

File preview with syntax highlighting.

linux-6.19.14/lib/crc/sparc/crc32c_asm.S S
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#include <linux/linkage.h>
 3#include <asm/opcodes.h>
 4#include <asm/visasm.h>
 5#include <asm/asi.h>
 6
 7ENTRY(crc32c_sparc64)
 8	/* %o0=crc32p, %o1=data_ptr, %o2=len */
 9	VISEntryHalf
10	lda	[%o0] ASI_PL, %f1
111:	ldd	[%o1], %f2
12	CRC32C(0,2,0)
13	subcc	%o2, 8, %o2
14	bne,pt	%icc, 1b
15	 add	%o1, 0x8, %o1
16	sta	%f1, [%o0] ASI_PL
17	VISExitHalf
182:	retl
19	 nop
20ENDPROC(crc32c_sparc64)
~/ Read-only file preview.