Commit c0c5112b by Paul Koning Committed by Paul Koning

* udivmodhi4.c (__udivmodhi4): Fix loop end check.

From-SVN: r266826
parent f7507b7c
2018-12-05 Paul Koning <ni1d@arrl.net>
* udivmodhi4.c (__udivmodhi4): Fix loop end check.
2018-11-27 Alan Modra <amodra@gmail.com>
* config/rs6000/morestack.S (__stack_split_initialize),
......
......@@ -27,7 +27,7 @@ __udivmodhi4(unsigned short num, unsigned short den, int modwanted)
unsigned short bit = 1;
unsigned short res = 0;
while (den < num && bit && !(den & (1L<<31)))
while (den < num && bit && !(den & (1U<<15)))
{
den <<=1;
bit <<=1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment