Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217641
b: refs/heads/master
c: e786db7
h: refs/heads/master
i:
  217639: e31bb58
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Oct 1, 2010
1 parent c0b9c5c commit 5d08842
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 28eb3fcf8762a3b52f4fef5af29dce50d23c7151
refs/heads/master: e786db75406b30fa74dea095c571c8c164a2f3dd
23 changes: 20 additions & 3 deletions trunk/drivers/acpi/acpica/utmath.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,27 @@
ACPI_MODULE_NAME("utmath")

/*
* Support for double-precision integer divide. This code is included here
* in order to support kernel environments where the double-precision math
* library is not available.
* Optional support for 64-bit double-precision integer divide. This code
* is configurable and is implemented in order to support 32-bit kernel
* environments where a 64-bit double-precision math library is not available.
*
* Support for a more normal 64-bit divide/modulo (with check for a divide-
* by-zero) appears after this optional section of code.
*/
#ifndef ACPI_USE_NATIVE_DIVIDE
/* Structures used only for 64-bit divide */
typedef struct uint64_struct {
u32 lo;
u32 hi;

} uint64_struct;

typedef union uint64_overlay {
u64 full;
struct uint64_struct part;

} uint64_overlay;

/*******************************************************************************
*
* FUNCTION: acpi_ut_short_divide
Expand All @@ -69,6 +85,7 @@ ACPI_MODULE_NAME("utmath")
* 32-bit remainder.
*
******************************************************************************/

acpi_status
acpi_ut_short_divide(u64 dividend,
u32 divisor, u64 *out_quotient, u32 *out_remainder)
Expand Down
10 changes: 0 additions & 10 deletions trunk/include/acpi/actypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,16 +378,6 @@ typedef void *acpi_handle; /* Actually a ptr to a NS Node */
typedef u8 acpi_owner_id;
#define ACPI_OWNER_ID_MAX 0xFF

struct uint64_struct {
u32 lo;
u32 hi;
};

union uint64_overlay {
u64 full;
struct uint64_struct part;
};

#define ACPI_INTEGER_BIT_SIZE 64
#define ACPI_MAX_DECIMAL_DIGITS 20 /* 2^64 = 18,446,744,073,709,551,616 */

Expand Down

0 comments on commit 5d08842

Please sign in to comment.