1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <linux/module.h>
6 #include <linux/libgcc.h>
8 word_type notrace __ucmpdi2(unsigned long long a, unsigned long long b)
10 const DWunion au = {.ll = a};
11 const DWunion bu = {.ll = b};
13 if ((unsigned int) au.s.high < (unsigned int) bu.s.high)
15 else if ((unsigned int) au.s.high > (unsigned int) bu.s.high)
17 if ((unsigned int) au.s.low < (unsigned int) bu.s.low)
19 else if ((unsigned int) au.s.low > (unsigned int) bu.s.low)
23 EXPORT_SYMBOL(__ucmpdi2);