asm woes...
    Era Scarecrow via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri May 27 03:16:48 PDT 2016
    
    
  
On Friday, 27 May 2016 at 10:14:31 UTC, Era Scarecrow wrote:
>   inc dword ptr [EAX+Foo.x.offsetof];
  So just tested it, and it didn't hang, meaning all unittests 
also passed.
  Final solution is:
   asm pure @nogc nothrow {
     mov EAX, this;
     add dword ptr [EAX+wideIntImpl.lo.offsetof], 1;
     adc dword ptr [EAX+wideIntImpl.lo.offsetof+4], 0;
     adc dword ptr [EAX+wideIntImpl.hi.offsetof], 0;
     adc dword ptr [EAX+wideIntImpl.hi.offsetof+4], 0;
   }
    
    
More information about the Digitalmars-d-learn
mailing list