home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / aix / 11335 < prev    next >
Encoding:
Text File  |  1992-11-07  |  860 b   |  20 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!news.ans.net!newsgate.watson.ibm.com!yktnews!admin!minnie!gerth
  3. From: gerth@watson.ibm.com (John Gerth)
  4. Subject: Re: swap instruction in assembler?
  5. Sender: news@watson.ibm.com (NNTP News Poster)
  6. Message-ID: <1992Nov06.014521.65797@watson.ibm.com>
  7. Date: Fri, 06 Nov 1992 01:45:21 GMT
  8. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  9. References: <471@bertha.HyperDesk.com>
  10. Nntp-Posting-Host: minnie.watson.ibm.com
  11. Organization: IBM T.J. Watson Research Center
  12. Lines: 6
  13.  
  14. Actually you don't have go to assembler yourself to do this.
  15. The C library provides cs(a,b,c) which does an atomic operation
  16. to compare the 'b' to '*a' and if equal to store 'c'.
  17.  
  18. -- 
  19. John Gerth     gerth@watson.ibm.com        (914) 784-7639
  20.