title: test&set and test&test&set LOCK implementations in ASM for C
body: <p>Searching around for some test&amp;set and test&amp;test&amp;set LOCK implementations on ASMx86 (x86 architecture) Assembly to use in my C codes. I don't want implementations in C, but plain assembly.</p>
  
  <p>Please point me to some useful ones.</p>
  
  <p>Thanks in advance!</p>