http://bugzilla.kernel.org/show_bug.cgi?id=5329





------- Additional Comments From [EMAIL PROTECTED]  2006-02-03 03:59 -------
Created an attachment (id=7224)
 --> (http://bugzilla.kernel.org/attachment.cgi?id=7224&action=view)
Proposed patch

TESTED:

The update was tested by the ASLTS test suite runs
(all the test cases) on the following systems:

- CYGWIN_NT-5.1 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin
- Linux 2.6.5-7.191-smp #1 SMP Tue Jun 28 14:58:56 UTC 2005 i686 i686 i386
GNU/Linux

for the following modes supported by the ASLTS test suite:

- 32-bit norm mode
- 64-bit norm mode
- 64-bit slack mode
# 32-bit slack mode (currently impossible to run tests
                     in this mode due to Bug 198)

The tests were run (on the systems described above) before update,
then the tests were run on those systems after update. Then results
of two runs were compared. All is Ok (the relevant error fixed, no
new errors).


SUPPORTED FEATURES (of ToInteger AML operator and Implicit
                    Conversion from String to Integer).

Particular cases of String-image of Data:

 1. "0x1234cd" ('0x' works for ToInteger only)
    Result:
    ToInteger -->> 0x1234cd
    Implicit Conversion -->> 0
 2. " 0x1234cd" (white space before image of Data is skipped)
    ToInteger -->> 0x1234cd
    Implicit -->> 0
 3. "1234" (image without '0x': ToInteger-->>decimal; Implicit-->>hex)
    ToInteger -->> 1234
    Implicit -->> 0x1234
 4. "0000000000000000000000001234" (zeros before significant characters
                                    in image without '0x' are skipped).
    ToInteger -->> 1234
    Implicit -->> 0x1234

Exceptions of ToInteger occur in the following cases:

 5. "1234cd"              (non-decimal character in dec-image).
 6. "000x1234"            (non-decimal character in dec-image).
 7. "0x1234cdQ"           (non-hex character in '0x'-image).
 8. "1234 "               (white space in dec image).
 9. "0x1234cd "           (white space in '0x'-image).
10. "0x 1234cdQ"          (white space after '0x').
11. (decimal image exceeding maximal).
    32-bit mode – the value exceeding "4294967295" 
    64-bit mode – the value exceeding "18446744073709551615" 
12. "0x12345678901234567" (hex image exceeding maximal).
13. "0x00000000000001234" (hex image exceeding maximal; no matter that zeros).
14. "0x123456789"         (hex image exceeding maximal; for 32-bit mode only).
15. "0x"                  (incomplete '0x' image).
16. ""                    (Empty string)

End of data-image for ToInteger:

17. Only the end of the string - all the characters of String
    must be settled into the Result value. If them are more than
    can be settled into then an exception occurs.

End of data-image for Implicit:

18. non-hex character
19. end of string
20. maximal integer reached (32-bit or 64-bit depending on mode)

Exceptions of Implicit String to Integer Conversion:

21. None.


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to