Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) // SPDX-License-Identifier: GPL-2.0-or-later
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #include <linux/libgcc.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) word_type notrace __ucmpdi2(unsigned long long a, unsigned long long b)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 	const DWunion au = {.ll = a};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	const DWunion bu = {.ll = b};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	if ((unsigned int) au.s.high < (unsigned int) bu.s.high)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 		return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	else if ((unsigned int) au.s.high > (unsigned int) bu.s.high)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 		return 2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	if ((unsigned int) au.s.low < (unsigned int) bu.s.low)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 		return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	else if ((unsigned int) au.s.low > (unsigned int) bu.s.low)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 		return 2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	return 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) EXPORT_SYMBOL(__ucmpdi2);