diff options
| author | Elliott Hughes <enh@google.com> | 2009-09-10 18:24:33 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2009-09-10 18:24:33 -0700 |
| commit | 8a64d44a47c0fd543cd19d03157e9e66f5598921 (patch) | |
| tree | 6a551ccd60d5f6a674c8ed2790ddd2a38b2ee577 /vm/compiler/codegen/Optimizer.h | |
| parent | 1bc1fda95df33548197d35a195b594483a53f671 (diff) | |
Remove NativeBN_bn2twosComp.
NativeBN_bn2twosComp doesn't do what it claims to: it's an exact copy of
NativeBN_BN_bn2bin (observe which OpenSSL BN_ function it calls!), and -- from
the OpenSSL documentation -- that function "converts the absolute value of [its
argument] into big-endian form".
OpenSSL doesn't actually sport any appropriate function to call here, but
luckily this code isn't called anywhere, and so can be removed.
(BigInteger.toByteArray -- the most likely caller of this code -- seems to
do the right thing, using Java code to make a big-endian two's-complement
byte[]. Likewise, the conversion from a big-endian two's-complement byte[]
for the corresponding BigInteger constructor looks right too, using native
code to twiddle the bits itself.)
Diffstat (limited to 'vm/compiler/codegen/Optimizer.h')
0 files changed, 0 insertions, 0 deletions
