Print this page
10097 indenting fixes in usr/src/{lib,common}

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libmp/common/mdiv.c
          +++ new/usr/src/lib/libmp/common/mdiv.c
↓ open down ↓ 7 lines elided ↑ open up ↑
   8    8   * specifies the terms and conditions for redistribution.
   9    9   */
  10   10  /*      Portions Copyright(c) 1988, Sun Microsystems Inc.       */
  11   11  /*      All Rights Reserved                                     */
  12   12  
  13   13  /*
  14   14   * Copyright (c) 1997, by Sun Microsystems, Inc.
  15   15   * All rights reserved.
  16   16   */
  17   17  
  18      -#ident  "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.1   */
       18 +/*
       19 + * Copyright (c) 2018, Joyent, Inc.
       20 + */
  19   21  
  20   22  /* LINTLIBRARY */
  21   23  
  22   24  #include <mp.h>
  23   25  #include <stdio.h>
  24   26  #include <stdlib.h>
  25   27  #include <sys/types.h>
  26   28  #include "libmp.h"
  27   29  
  28   30  static void m_div(MINT *, MINT *, MINT *, MINT *);
↓ open down ↓ 59 lines elided ↑ open up ↑
  88   90  #endif
  89   91                  if (borrow >= 0) borrow >>= fifteen; /* 3b2 */
  90   92                  else borrow = 0xfffe0000 | (borrow >> fifteen);
  91   93  #ifdef DEBUGDSB
  92   94                  (void) printf("4 borrow=%x %d %d %d\n", borrow, (*aptr * qx),
  93   95                      *bptr, *aptr);
  94   96  #endif
  95   97          }
  96   98          borrow += *bptr;
  97   99          *bptr = (short)(borrow & 077777);
  98      -                if (borrow >= 0) s3b2shit = borrow >> fifteen; /* 3b2 */
  99      -                else s3b2shit = 0xfffe0000 | (borrow >> fifteen);
      100 +        if (borrow >= 0) s3b2shit = borrow >> fifteen; /* 3b2 */
      101 +        else s3b2shit = 0xfffe0000 | (borrow >> fifteen);
 100  102          if (s3b2shit == 0) {
 101  103  #ifdef DEBUGDSB
 102  104          (void) printf("mdsb 0\n");
 103  105  #endif
 104  106                  return (0);
 105  107          }
 106  108          borrow = 0;
 107  109          aptr = a;
 108  110          bptr = b;
 109  111          for (j = n; j > 0; j--) {
↓ open down ↓ 119 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX