diff options
author | Mike Smith <msmith@FreeBSD.org> | 2000-12-01 09:36:25 +0000 |
---|---|---|
committer | Mike Smith <msmith@FreeBSD.org> | 2000-12-01 09:36:25 +0000 |
commit | f2ed5750af4c77d9075ddf1c28ecfdea8c12c6ae (patch) | |
tree | 7c849b394b62ba086bc123f7a780a33169a79fe8 /sys/contrib/dev/acpica/exdyadic.c | |
parent | 926328c40640129470e712faa4614b6a317c00a9 (diff) |
Notes
Diffstat (limited to 'sys/contrib/dev/acpica/exdyadic.c')
-rw-r--r-- | sys/contrib/dev/acpica/exdyadic.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/contrib/dev/acpica/exdyadic.c b/sys/contrib/dev/acpica/exdyadic.c index fdc998b821fc5..a29a6552a8dad 100644 --- a/sys/contrib/dev/acpica/exdyadic.c +++ b/sys/contrib/dev/acpica/exdyadic.c @@ -1,7 +1,7 @@ /****************************************************************************** * * Module Name: amdyadic - ACPI AML (p-code) execution for dyadic operators - * $Revision: 65 $ + * $Revision: 67 $ * *****************************************************************************/ @@ -272,7 +272,6 @@ AcpiAmlExecDyadic2R ( ACPI_OPERAND_OBJECT *RetDesc = NULL; ACPI_OPERAND_OBJECT *RetDesc2 = NULL; ACPI_STATUS Status = AE_OK; - ACPI_INTEGER Remainder; UINT32 NumOperands = 3; NATIVE_CHAR *NewBuf; @@ -399,7 +398,7 @@ AcpiAmlExecDyadic2R ( case AML_DIVIDE_OP: - if ((UINT32) 0 == ObjDesc2->Number.Value) + if (!ObjDesc2->Number.Value) { REPORT_ERROR (("AmlExecDyadic2R/DivideOp: Divide by zero\n")); @@ -415,14 +414,15 @@ AcpiAmlExecDyadic2R ( goto Cleanup; } - Remainder = ObjDesc->Number.Value % - ObjDesc2->Number.Value; - RetDesc->Number.Value = Remainder; + /* Remainder (modulo) */ + + RetDesc->Number.Value = ACPI_MODULO (ObjDesc->Number.Value, + ObjDesc2->Number.Value); /* Result (what we used to call the quotient) */ - RetDesc2->Number.Value = ObjDesc->Number.Value / - ObjDesc2->Number.Value; + RetDesc2->Number.Value = ACPI_DIVIDE (ObjDesc->Number.Value, + ObjDesc2->Number.Value); break; |