diff --git a/www/atomic_design_a.html b/www/atomic_design_a.html index dc16568d..f09d0b36 100644 --- a/www/atomic_design_a.html +++ b/www/atomic_design_a.html @@ -46,29 +46,32 @@ the memory ordering parameter.

-// type can be any pod
+// In every intrinsic signature below, type* atomic_obj may be a pointer to a
+//    volatile-qualifed type.
+
+// type must be trivially copyable
 // Behavior is defined for mem_ord = 0, 1, 2, 5
-type __atomic_load(const volatile type* atomic_obj, int mem_ord);
+type __atomic_load(const type* atomic_obj, int mem_ord);
 
-// type can be any pod
+// type must be trivially copyable
 // Behavior is defined for mem_ord = 0, 3, 5
-type __atomic_store(volatile type* atomic_obj, type desired, int mem_ord);
+type __atomic_store(type* atomic_obj, type desired, int mem_ord);
 
-// type can be any pod
+// type must be trivially copyable
 // Behavior is defined for mem_ord = [0 ... 5]
-type __atomic_exchange(volatile type* atomic_obj, type desired, int mem_ord);
+type __atomic_exchange(type* atomic_obj, type desired, int mem_ord);
 
-// type can be any pod
+// type must be trivially copyable
 // Behavior is defined for mem_success = [0 ... 5],
-//   mem_falure <= mem_success && mem_failure != [3, 4]
-bool __atomic_compare_exchange_strong(volatile type* atomic_obj,
+//   mem_falure <= mem_success
+bool __atomic_compare_exchange_strong(type* atomic_obj,
                                       type* expected, type desired,
                                       int mem_success, int mem_failure);
 
-// type can be any pod
+// type must be trivially copyable
 // Behavior is defined for mem_success = [0 ... 5],
-//   mem_falure <= mem_success && mem_failure != [3, 4]
-bool __atomic_compare_exchange_weak(volatile type* atomic_obj,
+//   mem_falure <= mem_success
+bool __atomic_compare_exchange_weak(type* atomic_obj,
                                     type* expected, type desired,
                                     int mem_success, int mem_failure);
 
@@ -76,35 +79,35 @@ bool __atomic_compare_exchange_weak(volatile type* atomic_obj,
 //      unsigned int, long, unsigned long, long long, unsigned long long,
 //      char16_t, char32_t, wchar_t
 // Behavior is defined for mem_ord = [0 ... 5]
-type __atomic_fetch_add(volatile type* atomic_obj, type operand, int mem_ord);
+type __atomic_fetch_add(type* atomic_obj, type operand, int mem_ord);
 
 // type is one of: char, signed char, unsigned char, short, unsigned short, int,
 //      unsigned int, long, unsigned long, long long, unsigned long long,
 //      char16_t, char32_t, wchar_t
 // Behavior is defined for mem_ord = [0 ... 5]
-type __atomic_fetch_sub(volatile type* atomic_obj, type operand, int mem_ord);
+type __atomic_fetch_sub(type* atomic_obj, type operand, int mem_ord);
 
 // type is one of: char, signed char, unsigned char, short, unsigned short, int,
 //      unsigned int, long, unsigned long, long long, unsigned long long,
 //      char16_t, char32_t, wchar_t
 // Behavior is defined for mem_ord = [0 ... 5]
-type __atomic_fetch_and(volatile type* atomic_obj, type operand, int mem_ord);
+type __atomic_fetch_and(type* atomic_obj, type operand, int mem_ord);
 
 // type is one of: char, signed char, unsigned char, short, unsigned short, int,
 //      unsigned int, long, unsigned long, long long, unsigned long long,
 //      char16_t, char32_t, wchar_t
 // Behavior is defined for mem_ord = [0 ... 5]
-type __atomic_fetch_or(volatile type* atomic_obj, type operand, int mem_ord);
+type __atomic_fetch_or(type* atomic_obj, type operand, int mem_ord);
 
 // type is one of: char, signed char, unsigned char, short, unsigned short, int,
 //      unsigned int, long, unsigned long, long long, unsigned long long,
 //      char16_t, char32_t, wchar_t
 // Behavior is defined for mem_ord = [0 ... 5]
-type __atomic_fetch_xor(volatile type* atomic_obj, type operand, int mem_ord);
+type __atomic_fetch_xor(type* atomic_obj, type operand, int mem_ord);
 
 // Behavior is defined for mem_ord = [0 ... 5]
-void* __atomic_fetch_add(void* volatile* atomic_obj, ptrdiff_t operand, int mem_ord);
-void* __atomic_fetch_sub(void* volatile* atomic_obj, ptrdiff_t operand, int mem_ord);
+void* __atomic_fetch_add(void** atomic_obj, ptrdiff_t operand, int mem_ord);
+void* __atomic_fetch_sub(void** atomic_obj, ptrdiff_t operand, int mem_ord);
 
 // Behavior is defined for mem_ord = [0 ... 5]
 void __atomic_thread_fence(int mem_ord);