Minor docs/format changes (cpuinfo, volatile) (#16602)

This commit is contained in:
konsumlamm 2021-01-06 20:29:22 +01:00 • committed by GitHub
commit d34d023da1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 12 deletions

View file

@ -12,7 +12,7 @@
template volatileLoad*[T](src: ptr T): T =
## Generates a volatile load of the value stored in the container `src`.
## Note that this only effects code generation on `C` like backends
## Note that this only effects code generation on `C` like backends.
when nimvm:
src[]
else:
@ -26,7 +26,7 @@ template volatileLoad*[T](src: ptr T): T =
template volatileStore*[T](dest: ptr T, val: T) =
## Generates a volatile store into the container `dest` of the value
## `val`. Note that this only effects code generation on `C` like
## backends
## backends.
when nimvm:
dest[] = val
else: