Move more comments that confuse indent
[openssl.git] / crypto / bn / bn_lib.c
index 2f6ab6170f7ab54e8b5e6ae08098f2244b9ab185..d1f37f6af7eb6ace5a2314c5626b8b490c754109 100644 (file)
@@ -265,7 +265,7 @@ void BN_free(BIGNUM *a)
                OPENSSL_free(a);
        else
                {
-#ifdef OPENSSL_USE_DEPRECATED
+#ifndef OPENSSL_NO_DEPRECATED
                a->flags|=BN_FLG_FREE;
 #endif
                a->d = NULL;
@@ -351,14 +351,17 @@ static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
                        a0=B[0]; a1=B[1]; a2=B[2]; a3=B[3];
                        A[0]=a0; A[1]=a1; 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];
                case 2: A[1]=B[1];
                case 1: A[0]=B[0];
-               case 0: /* 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 */
+               case 0:
                        ;
                        }
                }
@@ -449,12 +452,13 @@ BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
                a0=B[0]; a1=B[1]; a2=B[2]; a3=B[3];
                A[0]=a0; A[1]=a1; A[2]=a2; A[3]=a3;
                }
+       /* ultrix cc workaround, see comments in bn_expand_internal */
        switch (b->top&3)
                {
                case 3: A[2]=B[2];
                case 2: A[1]=B[1];
                case 1: A[0]=B[0];
-               case 0: ; /* ultrix cc workaround, see comments in bn_expand_internal */
+               case 0: ;
                }
 #else
        memcpy(a->d,b->d,sizeof(b->d[0])*b->top);