[svn:parrot] r44169 - trunk/include/parrot/atomic

mikehh at svn.parrot.org mikehh at svn.parrot.org
Fri Feb 19 12:09:01 UTC 2010


Author: mikehh
Date: Fri Feb 19 12:08:57 2010
New Revision: 44169
URL: https://trac.parrot.org/parrot/changeset/44169

Log:
add C function documentation

Modified:
   trunk/include/parrot/atomic/gcc_pcc.h

Modified: trunk/include/parrot/atomic/gcc_pcc.h
==============================================================================
--- trunk/include/parrot/atomic/gcc_pcc.h	Fri Feb 19 11:51:46 2010	(r44168)
+++ trunk/include/parrot/atomic/gcc_pcc.h	Fri Feb 19 12:08:57 2010	(r44169)
@@ -1,5 +1,5 @@
 /* atomic/gcc_pcc.h
- *  Copyright (C) 2006-2008, Parrot Foundation.
+ *  Copyright (C) 2006-2010, Parrot Foundation.
  *  SVN Info
  *     $Id$
  *  Overview:
@@ -23,6 +23,18 @@
 
 #  define PARROT_ATOMIC_PTR_SET(a, b) (a).val = (void *) (b)
 
+/*
+
+=over 4
+
+=item C<inline static void *parrot_ppc_cmpset(void * volatile *ptr, void
+*expect, void *update)>
+
+Generate ppc cmpset
+
+=cut
+
+*/
 inline static void *parrot_ppc_cmpset(void * volatile *ptr,
                                       void *expect, void *update)
 {
@@ -47,6 +59,18 @@
     return tmp;
 }
 
+/*
+
+=item C<inline static long parrot_ppc_add(volatile long *val, long what)>
+
+Generate ppc add
+
+=back
+
+=cut
+
+*/
+
 inline static long parrot_ppc_add(volatile long *val, long what)
 {
     long tmp;


More information about the parrot-commits mailing list