diff options
author | jkim <jkim@FreeBSD.org> | 2010-09-16 20:08:00 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-09-16 20:08:00 +0000 |
commit | ddeb148f3efdd930ab31c3975094d7115bca6e40 (patch) | |
tree | f70f94cd7c27ae47515d31be78c40b03574a2e07 /sys/contrib/dev/acpica/utilities/utmath.c | |
parent | 9ec9faa74565cd85da140c68d73c827afe182cc2 (diff) | |
parent | c5863557e158eb3876688e611d5915c27657e18a (diff) | |
download | FreeBSD-src-ddeb148f3efdd930ab31c3975094d7115bca6e40.zip FreeBSD-src-ddeb148f3efdd930ab31c3975094d7115bca6e40.tar.gz |
Merge ACPICA 20100915.
Diffstat (limited to 'sys/contrib/dev/acpica/utilities/utmath.c')
-rw-r--r-- | sys/contrib/dev/acpica/utilities/utmath.c | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/sys/contrib/dev/acpica/utilities/utmath.c b/sys/contrib/dev/acpica/utilities/utmath.c index f6d5f7c..508ed2a 100644 --- a/sys/contrib/dev/acpica/utilities/utmath.c +++ b/sys/contrib/dev/acpica/utilities/utmath.c @@ -124,12 +124,32 @@ 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 +{ + UINT32 Lo; + UINT32 Hi; + +} UINT64_STRUCT; + +typedef union uint64_overlay +{ + UINT64 Full; + UINT64_STRUCT Part; + +} UINT64_OVERLAY; + + /******************************************************************************* * * FUNCTION: AcpiUtShortDivide |