X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FStg.h;h=a63b7ec2d6f43d980375f2fd9b90c9238c7a3620;hb=3034a6c8cfb50e2b5af4ef57c419986039b53a94;hp=9977d57a6ed7601975fc0067e34dd7edb7609ab4;hpb=a31c721ced404143e4f49e6c325f92148a6a0dc4;p=ghc-hetmet.git diff --git a/ghc/includes/Stg.h b/ghc/includes/Stg.h index 9977d57..a63b7ec 100644 --- a/ghc/includes/Stg.h +++ b/ghc/includes/Stg.h @@ -367,6 +367,24 @@ INLINE_HEADER StgInt64 PK_Int64(W_ p_src[]) #endif /* ----------------------------------------------------------------------------- + Write-combining store + -------------------------------------------------------------------------- */ + +INLINE_HEADER void +wcStore (StgPtr p, StgWord w) +{ +#ifdef x86_64_HOST_ARCH + __asm__( + "movnti\t%1, %0" + : "=m" (*p) + : "r" (w) + ); +#else + *p = w; +#endif +} + +/* ----------------------------------------------------------------------------- Integer multiply with overflow -------------------------------------------------------------------------- */