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