forked from Minki/linux
96f1050d3d
Bill Gatliff & David Brownell pointed out we were missing some copyrights, and licensing terms in some of the files in ./arch/blackfin, so this fixes things, and cleans them up. It also removes: - verbose GPL text(refer to the top level ./COPYING file) - file names (you are looking at the file) - bug url (it's in the ./MAINTAINERS file) - "or later" on GPL-2, when we did not have that right It also allows some Blackfin-specific assembly files to be under a BSD like license (for people to use them outside of Linux). Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
32 lines
626 B
ArmAsm
32 lines
626 B
ArmAsm
/*
|
|
* Copyright 2007 Analog Devices Inc.
|
|
*
|
|
* Licensed under the ADI BSD license or the GPL-2 (or later)
|
|
*/
|
|
|
|
.align 2
|
|
.global ___umulsi3_highpart;
|
|
.type ___umulsi3_highpart, STT_FUNC;
|
|
|
|
#ifdef CONFIG_ARITHMETIC_OPS_L1
|
|
.section .l1.text
|
|
#else
|
|
.text
|
|
#endif
|
|
|
|
___umulsi3_highpart:
|
|
R2 = R1.H * R0.H, R3 = R1.L * R0.H (FU);
|
|
R0 = R1.L * R0.L, R1 = R1.H * R0.L (FU);
|
|
R0 >>= 16;
|
|
/* Unsigned multiplication has the nice property that we can
|
|
ignore carry on this first addition. */
|
|
R0 = R0 + R3;
|
|
R0 = R0 + R1;
|
|
cc = ac0;
|
|
R1 = cc;
|
|
R1 = PACK(R1.l,R0.h);
|
|
R0 = R1 + R2;
|
|
RTS;
|
|
|
|
.size ___umulsi3_highpart, .-___umulsi3_highpart
|