summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-06-08 13:48:18 +0000
committermidipix <writeonce@midipix.org>2019-06-08 14:53:40 +0000
commite40843a6eca9c47b2f0ca008c42782e096722aa9 (patch)
tree5bcc0d36d2bddf6452891dcfd2900cc9c927314a /include
parentae5d60dcef6bd4404548e79fbad020dff22f844e (diff)
downloadntapi-e40843a6eca9c47b2f0ca008c42782e096722aa9.tar.bz2
ntapi-e40843a6eca9c47b2f0ca008c42782e096722aa9.tar.xz
atomic primitives: refactor for coding-style consistency.
Diffstat (limited to 'include')
-rw-r--r--include/ntapi/bits/nt32/nt_atomic_i386_asm__gcc.h6
-rw-r--r--include/ntapi/bits/nt32/nt_atomic_i386_asm__msvc.h6
-rw-r--r--include/ntapi/bits/nt64/nt_atomic_x86_64_asm__gcc.h6
-rw-r--r--include/ntapi/bits/nt64/nt_atomic_x86_64_asm__msvc.h6
4 files changed, 12 insertions, 12 deletions
diff --git a/include/ntapi/bits/nt32/nt_atomic_i386_asm__gcc.h b/include/ntapi/bits/nt32/nt_atomic_i386_asm__gcc.h
index 002a62a..c8706ae 100644
--- a/include/ntapi/bits/nt32/nt_atomic_i386_asm__gcc.h
+++ b/include/ntapi/bits/nt32/nt_atomic_i386_asm__gcc.h
@@ -400,7 +400,7 @@ static __inline__ void at_locked_xor_64(
static __inline__ void at_store(
- volatile intptr_t * dst,
+ intptr_t volatile * dst,
intptr_t val)
{
__asm__(
@@ -414,7 +414,7 @@ static __inline__ void at_store(
static __inline__ void at_store_32(
- volatile int32_t * dst,
+ int32_t volatile * dst,
int32_t val)
{
__asm__(
@@ -428,7 +428,7 @@ static __inline__ void at_store_32(
static __inline__ void at_store_64(
- volatile int64_t * dst,
+ int64_t volatile * dst,
int64_t xchg)
{
int64_t cmp;
diff --git a/include/ntapi/bits/nt32/nt_atomic_i386_asm__msvc.h b/include/ntapi/bits/nt32/nt_atomic_i386_asm__msvc.h
index 37dc496..5ae6585 100644
--- a/include/ntapi/bits/nt32/nt_atomic_i386_asm__msvc.h
+++ b/include/ntapi/bits/nt32/nt_atomic_i386_asm__msvc.h
@@ -271,7 +271,7 @@ static __inline__ void at_locked_xor_64(
static __inline__ void at_store(
- volatile intptr_t * dst,
+ intptr_t volatile * dst,
intptr_t val)
{
_ReadWriteBarrier();
@@ -283,7 +283,7 @@ static __inline__ void at_store(
static __inline__ void at_store_32(
- volatile int32_t * dst,
+ int32_t volatile * dst,
int32_t val)
{
_ReadWriteBarrier();
@@ -295,7 +295,7 @@ static __inline__ void at_store_32(
static __inline__ void at_store_64(
- volatile int64_t * dst,
+ int64_t volatile * dst,
int64_t val)
{
_ReadWriteBarrier();
diff --git a/include/ntapi/bits/nt64/nt_atomic_x86_64_asm__gcc.h b/include/ntapi/bits/nt64/nt_atomic_x86_64_asm__gcc.h
index 2162b1c..4c6b88a 100644
--- a/include/ntapi/bits/nt64/nt_atomic_x86_64_asm__gcc.h
+++ b/include/ntapi/bits/nt64/nt_atomic_x86_64_asm__gcc.h
@@ -418,7 +418,7 @@ static __inline__ void at_locked_xor_64(
static __inline__ void at_store(
- volatile intptr_t * dst,
+ intptr_t volatile * dst,
intptr_t val)
{
__asm__(
@@ -432,7 +432,7 @@ static __inline__ void at_store(
static __inline__ void at_store_32(
- volatile int32_t * dst,
+ int32_t volatile * dst,
int32_t val)
{
__asm__(
@@ -446,7 +446,7 @@ static __inline__ void at_store_32(
static __inline__ void at_store_64(
- volatile int64_t * dst,
+ int64_t volatile * dst,
int64_t val)
{
__asm__(
diff --git a/include/ntapi/bits/nt64/nt_atomic_x86_64_asm__msvc.h b/include/ntapi/bits/nt64/nt_atomic_x86_64_asm__msvc.h
index e202187..525eb68 100644
--- a/include/ntapi/bits/nt64/nt_atomic_x86_64_asm__msvc.h
+++ b/include/ntapi/bits/nt64/nt_atomic_x86_64_asm__msvc.h
@@ -271,7 +271,7 @@ static __inline__ void at_locked_xor_64(
static __inline__ void at_store(
- volatile intptr_t * dst,
+ intptr_t volatile * dst,
intptr_t val)
{
_ReadWriteBarrier();
@@ -283,7 +283,7 @@ static __inline__ void at_store(
static __inline__ void at_store_32(
- volatile int32_t * dst,
+ int32_t volatile * dst,
int32_t val)
{
_ReadWriteBarrier();
@@ -295,7 +295,7 @@ static __inline__ void at_store_32(
static __inline__ void at_store_64(
- volatile int64_t * dst,
+ int64_t volatile * dst,
int64_t val)
{
_ReadWriteBarrier();