diff options
author | Hans Boehm <hboehm@google.com> | 2020-08-14 15:20:05 -0700 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-09-27 21:17:05 +0800 |
commit | a927d5f623887f9bf4061e7734d45fc0f6d68d2b (patch) | |
tree | 655b0b7afa3930c152374be01548fdd86292968f /luni/src/main/native/NetworkUtilities.cpp | |
parent | dd65dc9842c777dea4978f6f2ad9ed83762fbebc (diff) |
Fix BigInteger.remainder check and BigInteger TODOsHEADlineage-18.1
Restore the BigInteger.remainder fallback test to check for small
results. Use RemainderKnuth if either the divisor or result is
short, as was done before. Checking for a short dividend doesn't
really make much sense, since that makes the result short as well.
Failed BN context allocations used to just pass null to the next
operation. Looking at the BN_mul implementation, it doesn't appear
that ends well. Explicitly check for that case.
Remove some potentially useful but unused methods from NativeBN.
Bug: 163898786
Test: Build and boot AOSP
Change-Id: I97a46199d8cf69acf29bcfc2f614c2205ff16262
Diffstat (limited to 'luni/src/main/native/NetworkUtilities.cpp')
0 files changed, 0 insertions, 0 deletions