Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
2dff889e
Commit
2dff889e
authored
May 26, 2002
by
Roman Lechtchinsky
Committed by
Richard Henderson
May 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gettextP.h (SWAP): Change parameter type to unsigned int.
From-SVN: r53878
parent
81a75f0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
gcc/intl/ChangeLog
+4
-0
gcc/intl/gettextP.h
+5
-3
No files found.
gcc/intl/ChangeLog
View file @
2dff889e
2002
-
05
-
25
Roman
Lechtchinsky
<
rl
@
cs
.
tu
-
berlin
.
de
>
*
gettextP
.
h
(
SWAP
):
Change
parameter
type
to
unsigned
int
.
Tue
Dec
11
07
:
08
:
57
2001
Douglas
B
.
Rupp
<
rupp
@
gnat
.
com
>
*
localealias
.
c
(
strings
.
h
):
Include
.
...
...
gcc/intl/gettextP.h
View file @
2dff889e
...
...
@@ -63,12 +63,14 @@
# include <byteswap.h>
# define SWAP(i) bswap_32 (i)
#else
/* GCC LOCAL: Prototype first to avoid warnings. */
static
inline
nls_uint32
SWAP
PARAMS
((
nls_uint32
));
/* GCC LOCAL: Prototype first to avoid warnings; change argument to
unsigned int to avoid K&R type promotion errors with 64-bit "int". */
static
inline
nls_uint32
SWAP
PARAMS
((
unsigned
int
));
static
inline
nls_uint32
SWAP
(
i
)
nls_uint32
i
;
unsigned
int
i
i
;
{
nls_uint32
i
=
ii
;
return
(
i
<<
24
)
|
((
i
&
0xff00
)
<<
8
)
|
((
i
>>
8
)
&
0xff00
)
|
(
i
>>
24
);
}
#endif
...
...
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