This patch just modifies the documention to indicate that the upper bits of the memory model parameter are reserved for future use. (We're already looking at using it for HLE hints)

I've already made a change on the wiki page.

Ok for mainline?

Andrew
        * extend.texi: Reserve upper bits of memory model for future use.

Index: doc/extend.texi
===================================================================
*** doc/extend.texi     (revision 184156)
--- doc/extend.texi     (working copy)
*************** functions will map any runtime value to 
*** 7092,7097 ****
--- 7092,7102 ----
  than invoke a runtime library call or inline a switch statement.  This is
  standard compliant, safe, and the simplest approach for now.
  
+ The memory model parameter is a signed int, but only the lower 8 bits are
+ reserved for the memory model.  The remainder of the signed int is reserved
+ for future use and should be 0.  Use of the predefined atomic values will
+ ensure proper usage.
+ 
  @deftypefn {Built-in Function} @var{type} __atomic_load_n (@var{type} *ptr, 
int memmodel)
  This built-in function implements an atomic load operation.  It returns the
  contents of @code{*@var{ptr}}.

Reply via email to