summaryrefslogtreecommitdiff
path: root/includes/stg/SMP.h
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-02-15 20:43:34 +0000
committerSimon Marlow <marlowsd@gmail.com>2011-04-11 11:08:43 +0100
commit521b792553bacbdb0eec138b150ab0626ea6f36b (patch)
treed1e396b14c49bc0755b0c870f2ae183289b4a3ba /includes/stg/SMP.h
parent169dadd0e663507a18ad3254fc8e854e6dc7b77e (diff)
downloadhaskell-521b792553bacbdb0eec138b150ab0626ea6f36b.tar.gz
add casMutVar#
Diffstat (limited to 'includes/stg/SMP.h')
-rw-r--r--includes/stg/SMP.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/stg/SMP.h b/includes/stg/SMP.h
index ad8c0baef9..f1b0422009 100644
--- a/includes/stg/SMP.h
+++ b/includes/stg/SMP.h
@@ -314,7 +314,8 @@ xchg(StgPtr p, StgWord w)
return old;
}
-STATIC_INLINE StgWord
+EXTERN_INLINE StgWord cas(StgVolatilePtr p, StgWord o, StgWord n);
+EXTERN_INLINE StgWord
cas(StgVolatilePtr p, StgWord o, StgWord n)
{
StgWord result;