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
3c9c6cf1
Commit
3c9c6cf1
authored
May 09, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sparc64: Fix typos in bitops changes.
parent
8e1ea555
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
include/asm-sparc64/bitops.h
include/asm-sparc64/bitops.h
+15
-15
No files found.
include/asm-sparc64/bitops.h
View file @
3c9c6cf1
...
...
@@ -25,53 +25,53 @@ extern long ___test_and_change_bit(unsigned long nr, volatile unsigned long *add
static
__inline__
void
__set_bit
(
int
nr
,
volatile
unsigned
long
*
addr
)
{
long
*
m
=
addr
+
(
nr
>>
6
);
volatile
unsigned
long
*
m
=
addr
+
(
nr
>>
6
);
*
m
|=
(
1UL
<<
(
nr
&
63
));
}
static
__inline__
void
__clear_bit
(
int
nr
,
volatile
unsigned
long
*
addr
)
{
long
*
m
=
addr
+
(
nr
>>
6
);
volatile
unsigned
long
*
m
=
addr
+
(
nr
>>
6
);
*
m
&=
~
(
1UL
<<
(
nr
&
63
));
}
static
__inline__
void
__change_bit
(
int
nr
,
volatile
unsigned
long
*
addr
)
{
long
*
m
=
addr
+
(
nr
>>
6
);
volatile
unsigned
long
*
m
=
addr
+
(
nr
>>
6
);
*
m
^=
(
1UL
<<
(
nr
&
63
));
}
static
__inline__
int
__test_and_set_bit
(
int
nr
,
volatile
unsigned
long
*
addr
)
{
long
*
m
=
addr
+
(
nr
>>
6
);
volatile
unsigned
long
*
m
=
addr
+
(
nr
>>
6
);
long
old
=
*
m
;
long
mask
=
(
1UL
<<
(
__
nr
&
63
));
long
mask
=
(
1UL
<<
(
nr
&
63
));
*
m
=
(
__old
|
__
mask
);
return
((
__old
&
__
mask
)
!=
0
);
*
m
=
(
old
|
mask
);
return
((
old
&
mask
)
!=
0
);
}
static
__inline__
int
__test_and_clear_bit
(
int
nr
,
volatile
unsigned
long
*
addr
)
{
long
*
m
=
addr
+
(
nr
>>
6
);
volatile
unsigned
long
*
m
=
addr
+
(
nr
>>
6
);
long
old
=
*
m
;
long
mask
=
(
1UL
<<
(
__
nr
&
63
));
long
mask
=
(
1UL
<<
(
nr
&
63
));
*
m
=
(
__old
&
~
__
mask
);
return
((
__old
&
__
mask
)
!=
0
);
*
m
=
(
old
&
~
mask
);
return
((
old
&
mask
)
!=
0
);
}
static
__inline__
int
__test_and_change_bit
(
int
nr
,
volatile
unsigned
long
*
addr
)
{
long
*
m
=
addr
+
(
nr
>>
6
);
volatile
unsigned
long
*
m
=
addr
+
(
nr
>>
6
);
long
old
=
*
m
;
long
mask
=
(
1UL
<<
(
__
nr
&
63
));
long
mask
=
(
1UL
<<
(
nr
&
63
));
*
m
=
(
__old
^
__
mask
);
return
((
__old
&
__
mask
)
!=
0
);
*
m
=
(
old
^
mask
);
return
((
old
&
mask
)
!=
0
);
}
#define smp_mb__before_clear_bit() do { } while(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