remove cmsg task, send_messages not called bugfix
[cor.git] / lib / cmpdi2.c
blobf7cebd52bd68b56d125026ea5f55233fe1681331
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 */
5 #include <linux/export.h>
7 #include <linux/libgcc.h>
9 word_type notrace __cmpdi2(long long a, long long b)
11 const DWunion au = {
12 .ll = a
14 const DWunion bu = {
15 .ll = b
18 if (au.s.high < bu.s.high)
19 return 0;
20 else if (au.s.high > bu.s.high)
21 return 2;
23 if ((unsigned int) au.s.low < (unsigned int) bu.s.low)
24 return 0;
25 else if ((unsigned int) au.s.low > (unsigned int) bu.s.low)
26 return 2;
28 return 1;
30 EXPORT_SYMBOL(__cmpdi2);