Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1e6b33ec
Commit
1e6b33ec
authored
Feb 19, 2010
by
Konstantin Osipov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler warnings in my_atomic.h
parent
813ad38e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/atomic/x86-gcc.h
include/atomic/x86-gcc.h
+1
-1
include/my_atomic.h
include/my_atomic.h
+2
-2
No files found.
include/atomic/x86-gcc.h
View file @
1e6b33ec
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
*/
*/
#define make_atomic_add_body64 \
#define make_atomic_add_body64 \
int64 tmp=*a; \
int64 tmp=*a; \
while (!my_atomic_cas64(a, &tmp, tmp+v))
;
\
while (!my_atomic_cas64(a, &tmp, tmp+v))
;
\
v=tmp;
v=tmp;
/*
/*
...
...
include/my_atomic.h
View file @
1e6b33ec
...
@@ -77,13 +77,13 @@
...
@@ -77,13 +77,13 @@
#ifndef make_atomic_add_body
#ifndef make_atomic_add_body
#define make_atomic_add_body(S) \
#define make_atomic_add_body(S) \
int ## S tmp=*a; \
int ## S tmp=*a; \
while (!my_atomic_cas ## S(a, &tmp, tmp+v))
;
\
while (!my_atomic_cas ## S(a, &tmp, tmp+v))
;
\
v=tmp;
v=tmp;
#endif
#endif
#ifndef make_atomic_fas_body
#ifndef make_atomic_fas_body
#define make_atomic_fas_body(S) \
#define make_atomic_fas_body(S) \
int ## S tmp=*a; \
int ## S tmp=*a; \
while (!my_atomic_cas ## S(a, &tmp, v))
;
\
while (!my_atomic_cas ## S(a, &tmp, v))
;
\
v=tmp;
v=tmp;
#endif
#endif
#ifndef make_atomic_load_body
#ifndef make_atomic_load_body
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment