> I agree that where the code would really be suboptimal, the intrinsics 
> should be implemented using more efficient means. However, I doubt 
> that, e.g., _InterlockedAdd() has the same problem. Each intrinsic 
> should be evaluated separately. 
Fair enough.  When the first couple of intrinsics I looked at turned 
ugly, I just gave up.  Perhaps I surrendered too soon.

Being new to gcc, I'm not particularly familiar with the __builtins 
available (for example: while finding ffs was pretty straightforward, 
finding the match for BitScanReverse took more creativity).  Is this 
something you know well?

Also (exposing my ignorance here), how do the built-ins for gcc get 
created?  If (as I'm saying to kai) the definitions in winnt.h are 
wrong, could that same code be what's used in the __builtins?

dw

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to