VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Mikael Pettersson <mikpe@it.uu.se> 2010-07-20 18:45:14 -0700 committer: David S. Miller <davem@davemloft.net> 2010-07-20 18:45:14 -0700 commit: f8324e20f8289dffc646d64366332e05eaacab25 parent: 1fa6ac379c6353faa628703b7ed1ee3e2023ef75
Commit Summary:
math-emu: correct test for downshifting fraction in _FP_FROM_INT()
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/include/math-emu/op-common.h b/include/math-emu/op-common.h
index fd882261225e..9696a5e2c437 100644
--- a/include/math-emu/op-common.h
+++ b/include/math-emu/op-common.h
@@ -799,7 +799,7 @@ do {									\
 		X##_e -= (_FP_W_TYPE_SIZE - rsize);			\
 	X##_e = rsize - X##_e - 1;					\
 									\
-	if (_FP_FRACBITS_##fs < rsize && _FP_WFRACBITS_##fs < X##_e)	\
+	if (_FP_FRACBITS_##fs < rsize && _FP_WFRACBITS_##fs <= X##_e)	\
 	  __FP_FRAC_SRS_1(ur_, (X##_e - _FP_WFRACBITS_##fs + 1), rsize);\
 	_FP_FRAC_DISASSEMBLE_##wc(X, ur_, rsize);			\
 	if ((_FP_WFRACBITS_##fs - X##_e - 1) > 0)			\