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
cbc319f3
Commit
cbc319f3
authored
Sep 13, 2004
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ALPHA] Use "long" on some internal bitops routines.
parent
6eaf42d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/asm-alpha/bitops.h
include/asm-alpha/bitops.h
+2
-2
include/asm-alpha/compiler.h
include/asm-alpha/compiler.h
+3
-3
No files found.
include/asm-alpha/bitops.h
View file @
cbc319f3
...
...
@@ -324,7 +324,7 @@ static inline int fls(int word)
#endif
/* Compute powers of two for the given integer. */
static
inline
int
floor_log2
(
unsigned
long
word
)
static
inline
long
floor_log2
(
unsigned
long
word
)
{
#if defined(__alpha_cix__) && defined(__alpha_fix__)
return
63
-
__kernel_ctlz
(
word
);
...
...
@@ -336,7 +336,7 @@ static inline int floor_log2(unsigned long word)
#endif
}
static
inline
int
ceil_log2
(
unsigned
int
word
)
static
inline
long
ceil_log2
(
unsigned
long
word
)
{
long
bit
=
floor_log2
(
word
);
return
bit
+
(
word
>
(
1UL
<<
bit
));
...
...
include/asm-alpha/compiler.h
View file @
cbc319f3
...
...
@@ -17,9 +17,9 @@
# define __kernel_extbl(val, shift) __builtin_alpha_extbl(val, shift)
# define __kernel_extwl(val, shift) __builtin_alpha_extwl(val, shift)
# define __kernel_cmpbge(a, b) __builtin_alpha_cmpbge(a, b)
# define __kernel_cttz(x) __builtin_ctz(x)
# define __kernel_ctlz(x) __builtin_clz(x)
# define __kernel_ctpop(x) __builtin_popcount(x)
# define __kernel_cttz(x) __builtin_ctz
l
(x)
# define __kernel_ctlz(x) __builtin_clz
l
(x)
# define __kernel_ctpop(x) __builtin_popcount
l
(x)
#else
# define __kernel_insbl(val, shift) \
({ unsigned long __kir; \
...
...
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