[atomic] Remove volatile from IBM impl signature
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 1 Aug 2018 21:02:39 +0000 (14:02 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 1 Aug 2018 21:15:00 +0000 (14:15 -0700)
src/hb-atomic-private.hh

index 3239193..0e7a841 100644 (file)
@@ -161,13 +161,13 @@ typedef int32_t hb_atomic_int_impl_t;
 
 #include <builtins.h>
 
-static inline int _hb_fetch_and_add(volatile int* AI, unsigned int V) {
+static inline int _hb_fetch_and_add (int* AI, unsigned int V) {
   __lwsync();
   int result = __fetch_and_add(AI, V);
   __lwsync();
   return result;
 }
-static inline int _hb_compare_and_swaplp(volatile long* P, long O, long N) {
+static inline int _hb_compare_and_swaplp (long* P, long O, long N) {
   __lwsync();
   int result = __compare_and_swaplp (P, &O, N);
   __lwsync();