Merge remote-tracking branch 'keys/keys-next'
[deliverable/linux.git] / arch / arm / lib / ucmpdi2.S
CommitLineData
f741a1aa
NP
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>
6ebbf2ce 14#include <asm/assembler.h>
4dd1837d 15#include <asm/export.h>
f741a1aa
NP
16
17#ifdef __ARMEB__
18#define xh r0
19#define xl r1
20#define yh r2
21#define yl r3
22#else
23#define xl r0
24#define xh r1
25#define yl r2
26#define yh r3
27#endif
28
29ENTRY(__ucmpdi2)
30
31 cmp xh, yh
32 cmpeq xl, yl
33 movlo r0, #0
34 moveq r0, #1
35 movhi r0, #2
6ebbf2ce 36 ret lr
f741a1aa 37
93ed3970 38ENDPROC(__ucmpdi2)
4dd1837d 39EXPORT_SYMBOL(__ucmpdi2)
93ed3970 40
ba95e4e4
NP
41#ifdef CONFIG_AEABI
42
43ENTRY(__aeabi_ulcmp)
44
45 cmp xh, yh
46 cmpeq xl, yl
47 movlo r0, #-1
48 moveq r0, #0
49 movhi r0, #1
6ebbf2ce 50 ret lr
ba95e4e4 51
93ed3970 52ENDPROC(__aeabi_ulcmp)
4dd1837d 53EXPORT_SYMBOL(__aeabi_ulcmp)
93ed3970 54
ba95e4e4
NP
55#endif
56
This page took 0.734624 seconds and 5 git commands to generate.