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
nexedi
linux
Commits
31e8fdbb
Commit
31e8fdbb
authored
Jul 22, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Use __s64 for atomic64_t implementation.
parent
f4ec0ed2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
include/asm-sparc64/atomic.h
include/asm-sparc64/atomic.h
+5
-3
No files found.
include/asm-sparc64/atomic.h
View file @
31e8fdbb
...
...
@@ -8,8 +8,10 @@
#ifndef __ARCH_SPARC64_ATOMIC__
#define __ARCH_SPARC64_ATOMIC__
#include <linux/types.h>
typedef
struct
{
volatile
int
counter
;
}
atomic_t
;
typedef
struct
{
volatile
long
counter
;
}
atomic64_t
;
typedef
struct
{
volatile
__s64
counter
;
}
atomic64_t
;
#define ATOMIC_INIT(i) { (i) }
#define ATOMIC64_INIT(i) { (i) }
...
...
@@ -21,10 +23,10 @@ typedef struct { volatile long counter; } atomic64_t;
#define atomic64_set(v, i) (((v)->counter) = i)
extern
int
__atomic_add
(
int
,
atomic_t
*
);
extern
int
__atomic64_add
(
int
,
atomic64_t
*
);
extern
int
__atomic64_add
(
__s64
,
atomic64_t
*
);
extern
int
__atomic_sub
(
int
,
atomic_t
*
);
extern
int
__atomic64_sub
(
int
,
atomic64_t
*
);
extern
int
__atomic64_sub
(
__s64
,
atomic64_t
*
);
#define atomic_add(i, v) ((void)__atomic_add(i, v))
#define atomic64_add(i, v) ((void)__atomic64_add(i, v))
...
...
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