VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
b24413180f560 (Greg Kroah-Hartman 2017-11-01 15:07:57 +0100  1) // SPDX-License-Identifier: GPL-2.0
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900  2) #include "libgcc.h"
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900  3) 
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900  4) word_type __ucmpdi2(DWtype a, DWtype b)
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900  5) {
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900  6) 	const DWunion au = {.ll = a};
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900  7) 	const DWunion bu = {.ll = b};
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900  8) 
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900  9) 	if ((UWtype) au.s.high < (UWtype) bu.s.high)
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900 10) 		return 0;
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900 11) 	else if ((UWtype) au.s.high > (UWtype) bu.s.high)
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900 12) 		return 2;
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900 13) 	if ((UWtype) au.s.low < (UWtype) bu.s.low)
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900 14) 		return 0;
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900 15) 	else if ((UWtype) au.s.low > (UWtype) bu.s.low)
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900 16) 		return 2;
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900 17) 	return 1;
a71a29de4c2f9 (Yoshinori Sato     2015-01-28 02:48:15 +0900 18) }