Skip to content

Commit 7e3da69

Browse files
authored
[format minor] remove unnecessary spaces (#19216)
1 parent faacd63 commit 7e3da69

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/system/atomics.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ when someGcc and hasThreadSupport:
7373

7474
proc atomicCompareExchangeN*[T: AtomType](p, expected: ptr T, desired: T,
7575
weak: bool, success_memmodel: AtomMemModel, failure_memmodel: AtomMemModel): bool {.
76-
importc: "__atomic_compare_exchange_n ", nodecl.}
76+
importc: "__atomic_compare_exchange_n", nodecl.}
7777
## This proc implements an atomic compare and exchange operation. This compares the
7878
## contents at p with the contents at expected and if equal, writes desired at p.
7979
## If they are not equal, the current contents at p is written into expected.
@@ -100,13 +100,13 @@ when someGcc and hasThreadSupport:
100100
proc atomicSubFetch*[T: AtomType](p: ptr T, val: T, mem: AtomMemModel): T {.
101101
importc: "__atomic_sub_fetch", nodecl.}
102102
proc atomicOrFetch*[T: AtomType](p: ptr T, val: T, mem: AtomMemModel): T {.
103-
importc: "__atomic_or_fetch ", nodecl.}
103+
importc: "__atomic_or_fetch", nodecl.}
104104
proc atomicAndFetch*[T: AtomType](p: ptr T, val: T, mem: AtomMemModel): T {.
105105
importc: "__atomic_and_fetch", nodecl.}
106106
proc atomicXorFetch*[T: AtomType](p: ptr T, val: T, mem: AtomMemModel): T {.
107107
importc: "__atomic_xor_fetch", nodecl.}
108108
proc atomicNandFetch*[T: AtomType](p: ptr T, val: T, mem: AtomMemModel): T {.
109-
importc: "__atomic_nand_fetch ", nodecl.}
109+
importc: "__atomic_nand_fetch", nodecl.}
110110

111111
## Perform the operation return the old value, all memory models are valid
112112
proc atomicFetchAdd*[T: AtomType](p: ptr T, val: T, mem: AtomMemModel): T {.
@@ -177,8 +177,8 @@ elif someVcc and hasThreadSupport:
177177

178178
proc `==`(x1, x2: AtomMemModel): bool {.borrow.}
179179

180-
proc readBarrier() {.importc: "_ReadBarrier", header: "<intrin.h>".}
181-
proc writeBarrier() {.importc: "_WriteBarrier", header: "<intrin.h>".}
180+
proc readBarrier() {.importc: "_ReadBarrier", header: "<intrin.h>".}
181+
proc writeBarrier() {.importc: "_WriteBarrier", header: "<intrin.h>".}
182182
proc fence*() {.importc: "_ReadWriteBarrier", header: "<intrin.h>".}
183183

184184
template barrier(mem: AtomMemModel) =

0 commit comments

Comments
 (0)