Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
fa3fc4fe
Commit
fa3fc4fe
authored
Jul 25, 2003
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Fix atomic64 interface to use __s64 instead of int where appropriate.
Reported by Richard Henderson.
parent
dc647a63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/asm-ia64/atomic.h
include/asm-ia64/atomic.h
+3
-3
No files found.
include/asm-ia64/atomic.h
View file @
fa3fc4fe
...
@@ -47,7 +47,7 @@ ia64_atomic_add (int i, atomic_t *v)
...
@@ -47,7 +47,7 @@ ia64_atomic_add (int i, atomic_t *v)
}
}
static
__inline__
int
static
__inline__
int
ia64_atomic64_add
(
int
i
,
atomic64_t
*
v
)
ia64_atomic64_add
(
__s64
i
,
atomic64_t
*
v
)
{
{
__s64
old
,
new
;
__s64
old
,
new
;
CMPXCHG_BUGCHECK_DECL
CMPXCHG_BUGCHECK_DECL
...
@@ -75,7 +75,7 @@ ia64_atomic_sub (int i, atomic_t *v)
...
@@ -75,7 +75,7 @@ ia64_atomic_sub (int i, atomic_t *v)
}
}
static
__inline__
int
static
__inline__
int
ia64_atomic64_sub
(
int
i
,
atomic64_t
*
v
)
ia64_atomic64_sub
(
__s64
i
,
atomic64_t
*
v
)
{
{
__s64
old
,
new
;
__s64
old
,
new
;
CMPXCHG_BUGCHECK_DECL
CMPXCHG_BUGCHECK_DECL
...
@@ -123,7 +123,7 @@ atomic_add_negative (int i, atomic_t *v)
...
@@ -123,7 +123,7 @@ atomic_add_negative (int i, atomic_t *v)
}
}
static
__inline__
int
static
__inline__
int
atomic64_add_negative
(
int
i
,
atomic64_t
*
v
)
atomic64_add_negative
(
__s64
i
,
atomic64_t
*
v
)
{
{
return
atomic64_add_return
(
i
,
v
)
<
0
;
return
atomic64_add_return
(
i
,
v
)
<
0
;
}
}
...
...
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