// SPDX-License-Identifier: GPL-2.0-or-later1/*2*/34#include <linux/export.h>56#include <linux/libgcc.h>78word_type notrace __cmpdi2(long long a, long long b)9{10const DWunion au = {11.ll = a12};13const DWunion bu = {14.ll = b15};1617if (au.s.high < bu.s.high)18return 0;19else if (au.s.high > bu.s.high)20return 2;2122if ((unsigned int) au.s.low < (unsigned int) bu.s.low)23return 0;24else if ((unsigned int) au.s.low > (unsigned int) bu.s.low)25return 2;2627return 1;28}29EXPORT_SYMBOL(__cmpdi2);303132