* udivmodhi4.c (__udivmodhi4): Fix loop end check.
From-SVN: r266826
This commit is contained in:
parent
f7507b7c5a
commit
c0c5112bcd
|
@ -1,3 +1,7 @@
|
||||||
|
2018-12-05 Paul Koning <ni1d@arrl.net>
|
||||||
|
|
||||||
|
* udivmodhi4.c (__udivmodhi4): Fix loop end check.
|
||||||
|
|
||||||
2018-11-27 Alan Modra <amodra@gmail.com>
|
2018-11-27 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* config/rs6000/morestack.S (__stack_split_initialize),
|
* 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 bit = 1;
|
||||||
unsigned short res = 0;
|
unsigned short res = 0;
|
||||||
|
|
||||||
while (den < num && bit && !(den & (1L<<31)))
|
while (den < num && bit && !(den & (1U<<15)))
|
||||||
{
|
{
|
||||||
den <<=1;
|
den <<=1;
|
||||||
bit <<=1;
|
bit <<=1;
|
||||||
|
|
Loading…
Reference in New Issue