Print this page
acpica-unix2-20130823
PANKOVs restructure

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/acpica/utilities/utmath.c
          +++ new/usr/src/common/acpica/components/utilities/utmath.c
   1    1  /*******************************************************************************
   2    2   *
   3    3   * Module Name: utmath - Integer math support routines
   4    4   *
   5    5   ******************************************************************************/
   6    6  
   7    7  /*
   8      - * Copyright (C) 2000 - 2011, Intel Corp.
        8 + * Copyright (C) 2000 - 2013, Intel Corp.
   9    9   * All rights reserved.
  10   10   *
  11   11   * Redistribution and use in source and binary forms, with or without
  12   12   * modification, are permitted provided that the following conditions
  13   13   * are met:
  14   14   * 1. Redistributions of source code must retain the above copyright
  15   15   *    notice, this list of conditions, and the following disclaimer,
  16   16   *    without modification.
  17   17   * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  18   18   *    substantially similar to the "NO WARRANTY" disclaimer below
↓ open down ↓ 64 lines elided ↑ open up ↑
  83   83   * FUNCTION:    AcpiUtShortDivide
  84   84   *
  85   85   * PARAMETERS:  Dividend            - 64-bit dividend
  86   86   *              Divisor             - 32-bit divisor
  87   87   *              OutQuotient         - Pointer to where the quotient is returned
  88   88   *              OutRemainder        - Pointer to where the remainder is returned
  89   89   *
  90   90   * RETURN:      Status (Checks for divide-by-zero)
  91   91   *
  92   92   * DESCRIPTION: Perform a short (maximum 64 bits divided by 32 bits)
  93      - *              divide and modulo.  The result is a 64-bit quotient and a
       93 + *              divide and modulo. The result is a 64-bit quotient and a
  94   94   *              32-bit remainder.
  95   95   *
  96   96   ******************************************************************************/
  97   97  
  98   98  ACPI_STATUS
  99   99  AcpiUtShortDivide (
 100  100      UINT64                  Dividend,
 101  101      UINT32                  Divisor,
 102  102      UINT64                  *OutQuotient,
 103  103      UINT32                  *OutRemainder)
↓ open down ↓ 264 lines elided ↑ open up ↑
 368  368      }
 369  369      if (OutRemainder)
 370  370      {
 371  371          *OutRemainder = InDividend % InDivisor;
 372  372      }
 373  373  
 374  374      return_ACPI_STATUS (AE_OK);
 375  375  }
 376  376  
 377  377  #endif
 378      -
 379      -
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX