Author: infinoid Date: Sun Jan 4 12:00:47 2009 New Revision: 34931 Modified: trunk/src/atomic/gcc_x86.c
Log: [pod] The documentation for the x86 "cmpxchg" instruction is incorrect. Fix it. Modified: trunk/src/atomic/gcc_x86.c ============================================================================== --- trunk/src/atomic/gcc_x86.c (original) +++ trunk/src/atomic/gcc_x86.c Sun Jan 4 12:00:47 2009 @@ -34,11 +34,11 @@ */ /* -=item C<void * parrot_i386_cmpxchg> +=item C<void * parrot_i386_cmpxchg (ptr, expect, update)> The CMPXCHG assembly instruction is a single cycle x86 instruction -that compares C<expect> and C<update>. If they are equal, sets -C<expect> to C<update>. Otherwise sets C<update> to C<ptr>. +that compares C<expect> and C<*ptr>. If they are equal, sets +C<*ptr> to C<update>. Otherwise sets C<expect> to C<*ptr>. =cut
