Rev 1498 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1498 | Rev 2216 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | /****************************************************************************** |
7 | /****************************************************************************** |
8 | * |
8 | * |
9 | * 1. Copyright Notice |
9 | * 1. Copyright Notice |
10 | * |
10 | * |
11 | * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
11 | * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
12 | * All rights reserved. |
12 | * All rights reserved. |
13 | * |
13 | * |
14 | * 2. License |
14 | * 2. License |
15 | * |
15 | * |
Line 122... | Line 122... | ||
122 | 122 | ||
123 | #define _COMPONENT ACPI_UTILITIES |
123 | #define _COMPONENT ACPI_UTILITIES |
Line 124... | Line 124... | ||
124 | ACPI_MODULE_NAME ("utmath") |
124 | ACPI_MODULE_NAME ("utmath") |
125 | 125 | ||
126 | /* |
126 | /* |
127 | * Support for double-precision integer divide. This code is included here |
127 | * Optional support for 64-bit double-precision integer divide. This code |
- | 128 | * is configurable and is implemented in order to support 32-bit kernel |
|
- | 129 | * environments where a 64-bit double-precision math library is not available. |
|
- | 130 | * |
|
128 | * in order to support kernel environments where the double-precision math |
131 | * Support for a more normal 64-bit divide/modulo (with check for a divide- |
129 | * library is not available. |
- | |
130 | */ |
132 | * by-zero) appears after this optional section of code. |
- | 133 | */ |
|
- | 134 | #ifndef ACPI_USE_NATIVE_DIVIDE |
|
- | 135 | ||
- | 136 | /* Structures used only for 64-bit divide */ |
|
- | 137 | ||
- | 138 | typedef struct uint64_struct |
|
- | 139 | { |
|
- | 140 | UINT32 Lo; |
|
- | 141 | UINT32 Hi; |
|
- | 142 | ||
- | 143 | } UINT64_STRUCT; |
|
- | 144 | ||
- | 145 | typedef union uint64_overlay |
|
- | 146 | { |
|
- | 147 | UINT64 Full; |
|
- | 148 | UINT64_STRUCT Part; |
|
- | 149 | ||
- | 150 | } UINT64_OVERLAY; |
|
131 | 151 | ||
132 | #ifndef ACPI_USE_NATIVE_DIVIDE |
152 | |
133 | /******************************************************************************* |
153 | /******************************************************************************* |
134 | * |
154 | * |
135 | * FUNCTION: AcpiUtShortDivide |
155 | * FUNCTION: AcpiUtShortDivide |