1 // SPDX-License-Identifier: GPL-2.0 !! 1 #include <linux/export.h> 2 #include <linux/module.h> << 3 #include <linux/libgcc.h> << 4 2 5 union ull_union { !! 3 #include "libgcc.h" 6 unsigned long long ull; << 7 struct { << 8 unsigned int high; << 9 unsigned int low; << 10 } ui; << 11 }; << 12 4 13 word_type __ucmpdi2(unsigned long long a, unsi !! 5 word_type notrace __ucmpdi2(unsigned long long a, unsigned long long b) 14 { 6 { 15 union ull_union au = {.ull = a}; !! 7 const DWunion au = {.ll = a}; 16 union ull_union bu = {.ull = b}; !! 8 const DWunion bu = {.ll = b}; 17 9 18 if (au.ui.high < bu.ui.high) !! 10 if ((unsigned int) au.s.high < (unsigned int) bu.s.high) 19 return 0; 11 return 0; 20 else if (au.ui.high > bu.ui.high) !! 12 else if ((unsigned int) au.s.high > (unsigned int) bu.s.high) 21 return 2; 13 return 2; 22 if (au.ui.low < bu.ui.low) !! 14 if ((unsigned int) au.s.low < (unsigned int) bu.s.low) 23 return 0; 15 return 0; 24 else if (au.ui.low > bu.ui.low) !! 16 else if ((unsigned int) au.s.low > (unsigned int) bu.s.low) 25 return 2; 17 return 2; 26 return 1; 18 return 1; 27 } 19 } >> 20 >> 21 EXPORT_SYMBOL(__ucmpdi2); 28 22
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.