Remove debug divide check code

date	2002.05.17.18.01.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 20:42:14 +00:00
parent eb3e45e31c
commit 4cfe830b12

View File

@ -1,7 +1,7 @@
/******************************************************************************
*
* Module Name: aemain - Main routine for the AcpiExec utility
* $Revision: 1.64 $
* $Revision: 1.65 $
*
*****************************************************************************/
@ -136,80 +136,6 @@
#define _COMPONENT PARSER
ACPI_MODULE_NAME ("aemain")
/*
* TBD: Debug only, remove!
*/
#if ACPI_MACHINE_WIDTH == 32
void
AcpiCompare (
UINT64_OVERLAY Dividend,
UINT64_OVERLAY Divisor,
UINT64_OVERLAY LibDiv,
UINT64_OVERLAY Div,
UINT64_OVERLAY LibMod,
UINT64_OVERLAY Mod)
{
if (LibDiv.Full != Div.Full)
{
AcpiOsPrintf ("Mismatch-DIV: n=%8.8X%8.8X d=%8.8X%8.8X, lr=%8.8X%8.8X ar=%8.8X%8.8X\n",
Dividend.Part.Hi, Dividend.Part.Lo,
Divisor.Part.Hi, Divisor.Part.Lo,
LibDiv.Part.Hi, LibDiv.Part.Lo,
Div.Part.Hi, Div.Part.Lo);
}
if (LibMod.Full != Mod.Full)
{
AcpiOsPrintf ("Mismatch-MOD: n=%8.8X%8.8X d=%8.8X%8.8X, lr=%8.8X%8.8X ar=%8.8X%8.8X\n",
Dividend.Part.Hi, Dividend.Part.Lo,
Divisor.Part.Hi, Divisor.Part.Lo,
LibMod.Part.Hi, LibMod.Part.Lo,
Mod.Part.Hi, Mod.Part.Lo);
}
}
/* Check answer against the library (DEBUG ONLY) */
/*
CompareDiv.Full = Dividend.Full / Divisor.Full;
CompareMod.Full = Dividend.Full % Divisor.Full;
AcpiCompare (Dividend, Divisor, CompareDiv, Quotient, CompareMod, Remainder);
*/
void
AeDoDivideCheck (void)
{
UINT32 i;
UINT64_OVERLAY CompareDiv;
UINT64_OVERLAY CompareMod;
UINT64_OVERLAY Dividend;
UINT64_OVERLAY Divisor;
UINT64_OVERLAY Quotient;
UINT64_OVERLAY Remainder;
for (i = 1; i < 0xFFFFFF; i++)
{
Dividend.Part.Hi = rand ();
Dividend.Part.Lo = rand ();
Divisor.Part.Hi = rand ();
Divisor.Part.Lo = rand ();
CompareDiv.Full = Dividend.Full / Divisor.Full;
CompareMod.Full = Dividend.Full % Divisor.Full;
AcpiUtDivide (&Dividend.Full, &Divisor.Full, &Quotient.Full, &Remainder.Full);
AcpiCompare (Dividend, Divisor, CompareDiv, Quotient, CompareMod, Remainder);
}
}
#else
void
AeDoDivideCheck (void)
{
}
#endif
#if ACPI_MACHINE_WIDTH == 16
@ -286,8 +212,6 @@ main (
AcpiDbgLayer = 0xFFFFFFFF;
AeDoDivideCheck ();
printf ("ACPI AML Execution/Debug Utility ");
#if ACPI_MACHINE_WIDTH == 16