aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2016-03-17 14:47:49 -0400
committerRich Salz <rsalz@openssl.org>2016-03-17 15:29:15 -0400
commit23d38992fca13773291ca647220707bfb0636361 (patch)
treeb7e4bb7468ff30cbcf953ebb70690847ed3d16f8 /crypto/bn
parent8e56a4227bcd2e3eeb1cb18f3d0d5876ed76a8ce (diff)
downloadopenssl-23d38992fca13773291ca647220707bfb0636361.tar.gz
Remove ultrix/mips support.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/bn')
-rw-r--r--crypto/bn/bn_lib.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c
index 09d3954dad..ce9f768cdb 100644
--- a/crypto/bn/bn_lib.c
+++ b/crypto/bn/bn_lib.c
@@ -345,11 +345,6 @@ static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
A[2] = a2;
A[3] = a3;
}
- /*
- * workaround for ultrix cc: without 'case 0', the optimizer does
- * the switch table by doing a=top&3; a--; goto jump_table[a];
- * which fails for top== 0
- */
switch (b->top & 3) {
case 3:
A[2] = B[2];
@@ -358,6 +353,7 @@ static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
case 1:
A[0] = B[0];
case 0:
+ /* Without the "case 0" some old optimizers got this wrong. */
;
}
}