home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- 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
- From: gerth@watson.ibm.com (John Gerth)
- Subject: Re: swap instruction in assembler?
- Sender: news@watson.ibm.com (NNTP News Poster)
- Message-ID: <1992Nov06.014521.65797@watson.ibm.com>
- Date: Fri, 06 Nov 1992 01:45:21 GMT
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- References: <471@bertha.HyperDesk.com>
- Nntp-Posting-Host: minnie.watson.ibm.com
- Organization: IBM T.J. Watson Research Center
- Lines: 6
-
- Actually you don't have go to assembler yourself to do this.
- The C library provides cs(a,b,c) which does an atomic operation
- to compare the 'b' to '*a' and if equal to store 'c'.
-
- --
- John Gerth gerth@watson.ibm.com (914) 784-7639
-