1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

some fixes to bigint library

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@175 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2010-08-06 09:58:26 +00:00
parent c1c5656718
commit 09e79822d5
5 changed files with 36 additions and 25 deletions

View File

@ -1128,7 +1128,7 @@ static int find_max_exp_index(bigint *biexp)
}
shift >>= 1;
} while (--i != 0);
} while (i-- != 0);
return -1; /* error - must have been a leading 0 */
}
@ -1151,7 +1151,7 @@ static int exp_bit_is_one(bigint *biexp, int offset)
shift <<= 1;
}
return test & shift;
return (test & shift) != 0;
}
#ifdef CONFIG_BIGINT_CHECK_ON