home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 3,813 of 4,675   
   Rick C. Hodgin to Bart   
   Re: Fast conversion to a boolean of 0 or   
   09 Mar 19 05:23:41   
   
   From: rick.c.hodgin@gmail.com   
      
   On Saturday, March 9, 2019 at 7:32:43 AM UTC-5, Bart wrote:   
   > On 08/03/2019 23:47, bart4858@nospicedham.gmail.com wrote:> On Friday, 8   
   > March 2019 12:52:40 UTC, Bart  wrote:   
   >  > The loop time is for an empty loop....   
   >   
   > Rick said (it might have been in an email), that an empty loop sometimes   
   > takes longer. When I tried it today on my main PC, that is what I found.   
   >   
   > (Not entirely surprisingly; I find that all the time with x86 and x64:   
   > you make code simpler and shorter by removing instructions, and it   
   > becomes slower!)   
      
   Driving home last night I had a thought about that.  I think   
   since I'm in un-optimized compiler mode, it doesn't align loop   
   targets, meaning the results may be skewed.   
      
   I'll rewrite the tests in assembly and link in a properly aligned   
   series of tests.   
      
   --   
   Rick C. Hodgin   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca