Skip to content
Snippets Groups Projects
Commit 4a139d75 authored by Alexey Lyashkov's avatar Alexey Lyashkov
Browse files

fix typo.

i=nikita
i=johann
parent 58f88315
No related branches found
No related tags found
No related merge requests found
...@@ -697,7 +697,7 @@ typedef struct { volatile int counter; } atomic_t; ...@@ -697,7 +697,7 @@ typedef struct { volatile int counter; } atomic_t;
#define atomic_inc(a) (((a)->counter)++) #define atomic_inc(a) (((a)->counter)++)
#define atomic_dec(a) do { (a)->counter--; } while (0) #define atomic_dec(a) do { (a)->counter--; } while (0)
#define atomic_add(b,a) do {(a)->counter += b;} while (0) #define atomic_add(b,a) do {(a)->counter += b;} while (0)
#define atomic_add_return(n,a) ((a)->counter = n) #define atomic_add_return(n,a) ((a)->counter += n)
#define atomic_inc_return(a) atomic_add_return(1,a) #define atomic_inc_return(a) atomic_add_return(1,a)
#define atomic_sub(b,a) do {(a)->counter -= b;} while (0) #define atomic_sub(b,a) do {(a)->counter -= b;} while (0)
#define atomic_sub_return(n,a) ((a)->counter -= n) #define atomic_sub_return(n,a) ((a)->counter -= n)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment