mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
- Fixed a bug with #define DEBUG (code didn't compile in that case)
This commit is contained in:
@@ -290,7 +290,7 @@ static int icbrt_with_bits(a, bits)
|
|||||||
return icbrt_with_guess(a, a>>2*bits/3);
|
return icbrt_with_guess(a, a>>2*bits/3);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _X_ROOT_STATS
|
#ifdef DEBUG
|
||||||
int icbrt_loopcount;
|
int icbrt_loopcount;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -309,7 +309,7 @@ static int icbrt_with_guess(a, guess)
|
|||||||
{
|
{
|
||||||
register int delta;
|
register int delta;
|
||||||
|
|
||||||
#ifdef _X_ROOT_STATS
|
#ifdef DEBUG
|
||||||
icbrt_loopcount = 0;
|
icbrt_loopcount = 0;
|
||||||
#endif
|
#endif
|
||||||
if (a <= 0)
|
if (a <= 0)
|
||||||
@@ -318,7 +318,7 @@ static int icbrt_with_guess(a, guess)
|
|||||||
guess = 1;
|
guess = 1;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
#ifdef _X_ROOT_STATS
|
#ifdef DEBUG
|
||||||
icbrt_loopcount++;
|
icbrt_loopcount++;
|
||||||
#endif
|
#endif
|
||||||
delta = (guess - a/(guess*guess))/3;
|
delta = (guess - a/(guess*guess))/3;
|
||||||
|
|||||||
Reference in New Issue
Block a user