Linux Audio

Check our new training course

Loading...
v3.5.6
 
 1/*
 2 *  linux/arch/arm/lib/ucmpdi2.S
 3 *
 4 *  Author:	Nicolas Pitre
 5 *  Created:	Oct 19, 2005
 6 *  Copyright:	Monta Vista Software, Inc.
 7 *
 8 *  This program is free software; you can redistribute it and/or modify
 9 *  it under the terms of the GNU General Public License version 2 as
10 *  published by the Free Software Foundation.
11 */
12
13#include <linux/linkage.h>
 
14
15#ifdef __ARMEB__
16#define xh r0
17#define xl r1
18#define yh r2
19#define yl r3
20#else
21#define xl r0
22#define xh r1
23#define yl r2
24#define yh r3
25#endif
26
27ENTRY(__ucmpdi2)
28
29	cmp	xh, yh
30	cmpeq	xl, yl
31	movlo	r0, #0
32	moveq	r0, #1
33	movhi	r0, #2
34	mov	pc, lr
35
36ENDPROC(__ucmpdi2)
37
38#ifdef CONFIG_AEABI
39
40ENTRY(__aeabi_ulcmp)
41
42	cmp	xh, yh
43	cmpeq	xl, yl
44	movlo	r0, #-1
45	moveq	r0, #0
46	movhi	r0, #1
47	mov	pc, lr
48
49ENDPROC(__aeabi_ulcmp)
50
51#endif
52
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 *  linux/arch/arm/lib/ucmpdi2.S
 4 *
 5 *  Author:	Nicolas Pitre
 6 *  Created:	Oct 19, 2005
 7 *  Copyright:	Monta Vista Software, Inc.
 
 
 
 
 8 */
 9
10#include <linux/linkage.h>
11#include <asm/assembler.h>
12
13#ifdef __ARMEB__
14#define xh r0
15#define xl r1
16#define yh r2
17#define yl r3
18#else
19#define xl r0
20#define xh r1
21#define yl r2
22#define yh r3
23#endif
24
25ENTRY(__ucmpdi2)
26
27	cmp	xh, yh
28	cmpeq	xl, yl
29	movlo	r0, #0
30	moveq	r0, #1
31	movhi	r0, #2
32	ret	lr
33
34ENDPROC(__ucmpdi2)
35
36#ifdef CONFIG_AEABI
37
38ENTRY(__aeabi_ulcmp)
39
40	cmp	xh, yh
41	cmpeq	xl, yl
42	movlo	r0, #-1
43	moveq	r0, #0
44	movhi	r0, #1
45	ret	lr
46
47ENDPROC(__aeabi_ulcmp)
48
49#endif
50