]> git.ipfire.org Git - thirdparty/linux.git/blame - lib/ucmpdi2.c
mm: remove both instances of __vmalloc_node_flags
[thirdparty/linux.git] / lib / ucmpdi2.c
CommitLineData
588cb88c 1// SPDX-License-Identifier: GPL-2.0-or-later
b35cd988 2/*
b35cd988
PD
3 */
4
5#include <linux/module.h>
4db2b604 6#include <linux/libgcc.h>
b35cd988 7
aad5a537 8word_type notrace __ucmpdi2(unsigned long long a, unsigned long long b)
b35cd988
PD
9{
10 const DWunion au = {.ll = a};
11 const DWunion bu = {.ll = b};
12
13 if ((unsigned int) au.s.high < (unsigned int) bu.s.high)
14 return 0;
15 else if ((unsigned int) au.s.high > (unsigned int) bu.s.high)
16 return 2;
17 if ((unsigned int) au.s.low < (unsigned int) bu.s.low)
18 return 0;
19 else if ((unsigned int) au.s.low > (unsigned int) bu.s.low)
20 return 2;
21 return 1;
22}
23EXPORT_SYMBOL(__ucmpdi2);