Skip to content

Commit

Permalink
style: clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred2g committed Feb 29, 2024
1 parent 34c8b21 commit 672efcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/aws/common/atomics_msvc.inl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ AWS_EXTERN_C_BEGIN
* Thus ARM port will need more hardware fences/barriers to assure developer intent.
* Memory barriers will prevent reordering stores and loads accross them depending on their type
* (read write, write only, read only ...)
*
*
* For more information about ARM64 memory ordering,
* see https://developer.arm.com/documentation/102336/0100/Memory-ordering
* For more information about Memory barriers,
Expand All @@ -90,9 +90,9 @@ typedef long long aws_atomic_impl_int_t;

#ifdef _M_ARM64
# define RW_BARRIER() __dmb(_ARM64_BARRIER_SY) /* hardare read write barrier */
# define R_BARRIER() __dmb(_ARM64_BARRIER_LD) /* hardare read barrier */
# define W_BARRIER() __dmb(_ARM64_BARRIER_ST) /* hardare write barrier */
# define SW_BARRIER() _ReadWriteBarrier(); /* software barrier */
# define R_BARRIER() __dmb(_ARM64_BARRIER_LD) /* hardare read barrier */
# define W_BARRIER() __dmb(_ARM64_BARRIER_ST) /* hardare write barrier */
# define SW_BARRIER() _ReadWriteBarrier(); /* software barrier */
#else
# define RW_BARRIER()
# define R_BARRIER()
Expand Down

0 comments on commit 672efcf

Please sign in to comment.