VirtualBox

Changeset 9187 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 28, 2008 7:31:30 AM (17 years ago)
Author:
vboxsync
Message:

Some kind of number puzzle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstInlineAsm.cpp

    r9186 r9187  
    869869    if (    Buf1.u64Magic1 != UINT64_C(0xffffffffffffffff)
    870870        ||  Buf1.u64Magic2 != UINT64_C(0xffffffffffffffff)
    871         ||  Buf1.u64Magic1 != UINT64_C(0xffffffffffffffff)
    872         ||  Buf1.u64Magic2 != UINT64_C(0xffffffffffffffff)
    873871        ||  Buf2.u64Magic1 != UINT64_C(0xffffffffffffffff)
    874         ||  Buf2.u64Magic2 != UINT64_C(0xffffffffffffffff))
     872        ||  Buf2.u64Magic2 != UINT64_C(0xffffffffffffffff)
     873        ||  Buf3.u64Magic1 != UINT64_C(0xffffffffffffffff)
     874        ||  Buf3.u64Magic2 != UINT64_C(0xffffffffffffffff))
    875875    {
    876876        RTPrintf("tstInlineAsm: ASMMemZeroPage violated one/both magic(s)!\n");
     
    883883            g_cErrors++;
    884884        }
    885     for (unsigned i = 0; i < sizeof(Buf1.abPage); i++)
    886         if (Buf1.abPage[i])
     885    for (unsigned i = 0; i < sizeof(Buf2.abPage); i++)
     886        if (Buf2.abPage[i])
    887887        {
    888888            RTPrintf("tstInlineAsm: ASMMemZeroPage didn't clear byte at offset %#x!\n", i);
    889889            g_cErrors++;
    890890        }
    891     for (unsigned i = 0; i < sizeof(Buf2.abPage); i++)
    892         if (Buf2.abPage[i])
     891    for (unsigned i = 0; i < sizeof(Buf3.abPage); i++)
     892        if (Buf3.abPage[i])
    893893        {
    894894            RTPrintf("tstInlineAsm: ASMMemZeroPage didn't clear byte at offset %#x!\n", i);
     
    921921    if (    Buf1.u64Magic1 != UINT64_C(0xffffffffffffffff)
    922922        ||  Buf1.u64Magic2 != UINT64_C(0xffffffffffffffff)
    923         ||  Buf1.u64Magic1 != UINT64_C(0xffffffffffffffff)
    924         ||  Buf1.u64Magic2 != UINT64_C(0xffffffffffffffff)
    925923        ||  Buf2.u64Magic1 != UINT64_C(0xffffffffffffffff)
    926         ||  Buf2.u64Magic2 != UINT64_C(0xffffffffffffffff))
     924        ||  Buf2.u64Magic2 != UINT64_C(0xffffffffffffffff)
     925        ||  Buf3.u64Magic1 != UINT64_C(0xffffffffffffffff)
     926        ||  Buf3.u64Magic2 != UINT64_C(0xffffffffffffffff))
    927927    {
    928928        RTPrintf("tstInlineAsm: ASMMemZero32 violated one/both magic(s)!\n");
     
    985985    if (    Buf1.u64Magic1 != UINT64_C(0xffffffffffffffff)
    986986        ||  Buf1.u64Magic2 != UINT64_C(0xffffffffffffffff)
    987         ||  Buf1.u64Magic1 != UINT64_C(0xffffffffffffffff)
    988         ||  Buf1.u64Magic2 != UINT64_C(0xffffffffffffffff)
    989987        ||  Buf2.u64Magic1 != UINT64_C(0xffffffffffffffff)
    990         ||  Buf2.u64Magic2 != UINT64_C(0xffffffffffffffff))
     988        ||  Buf2.u64Magic2 != UINT64_C(0xffffffffffffffff)
     989        ||  Buf3.u64Magic1 != UINT64_C(0xffffffffffffffff)
     990        ||  Buf3.u64Magic2 != UINT64_C(0xffffffffffffffff))
    991991    {
    992992        RTPrintf("tstInlineAsm: ASMMemFill32 violated one/both magic(s)!\n");
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette