File: multi3.S

package info (click to toggle)
linux 5.10.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,182,916 kB
  • sloc: ansic: 19,488,074; asm: 263,676; sh: 73,873; makefile: 44,685; perl: 34,640; python: 32,386; cpp: 6,070; yacc: 4,755; lex: 2,742; awk: 1,214; ruby: 25; sed: 5
file content (36 lines) | stat: -rw-r--r-- 717 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* SPDX-License-Identifier: GPL-2.0 */
#include <linux/linkage.h>
#include <asm/export.h>

	.text
	.align	4
ENTRY(__multi3) /* %o0 = u, %o1 = v */
	mov	%o1, %g1
	srl	%o3, 0, %o4
	mulx	%o4, %g1, %o1
	srlx	%g1, 0x20, %g3
	mulx	%g3, %o4, %g7
	sllx	%g7, 0x20, %o5
	srl	%g1, 0, %o4
	sub	%o1, %o5, %o5
	srlx	%o5, 0x20, %o5
	addcc	%g7, %o5, %g7
	srlx	%o3, 0x20, %o5
	mulx	%o4, %o5, %o4
	mulx	%g3, %o5, %o5
	sethi	%hi(0x80000000), %g3
	addcc	%g7, %o4, %g7
	srlx	%g7, 0x20, %g7
	add	%g3, %g3, %g3
	movcc	%xcc, %g0, %g3
	addcc	%o5, %g7, %o5
	sllx	%o4, 0x20, %o4
	add	%o1, %o4, %o1
	add	%o5, %g3, %g2
	mulx	%g1, %o2, %g1
	add	%g1, %g2, %g1
	mulx	%o0, %o3, %o0
	retl
	 add	%g1, %o0, %o0
ENDPROC(__multi3)
EXPORT_SYMBOL(__multi3)