Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
binutils-gdb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastien Michelland
binutils-gdb
Commits
bdc0e08d
Commit
bdc0e08d
authored
15 years ago
by
DJ Delorie
Browse files
Options
Downloads
Patches
Plain Diff
merge from gcc
parent
6e881691
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/libiberty.h
+1
-1
1 addition, 1 deletion
include/libiberty.h
libiberty/ChangeLog
+5
-0
5 additions, 0 deletions
libiberty/ChangeLog
libiberty/crc32.c
+14
-1
14 additions, 1 deletion
libiberty/crc32.c
with
20 additions
and
2 deletions
include/libiberty.h
+
1
−
1
View file @
bdc0e08d
...
...
@@ -313,7 +313,7 @@ extern double physmem_total (void);
extern
double
physmem_available
(
void
);
/* Compute the 32-bit CRC of a block of memory. */
extern
unsigned
int
crc32
(
const
unsigned
char
*
,
int
,
unsigned
int
);
extern
unsigned
int
x
crc32
(
const
unsigned
char
*
,
int
,
unsigned
int
);
/* These macros provide a K&R/C89/C++-friendly way of allocating structures
with nice encapsulation. The XDELETE*() macros are technically
...
...
This diff is collapsed.
Click to expand it.
libiberty/ChangeLog
+
5
−
0
View file @
bdc0e08d
2009-07-24 Ian Lance Taylor <iant@google.com>
PR bootstrap/40854
* crc32.c (xcrc32): Rename from crc32.
2009-07-24 Ian Lance Taylor <iant@google.com>
* crc32.c: New file.
...
...
This diff is collapsed.
Click to expand it.
libiberty/crc32.c
+
14
−
1
View file @
bdc0e08d
...
...
@@ -150,12 +150,25 @@ protocol for the @samp{qCRC} command. In order to get the same
results as gdb for a block of data, you must pass the first CRC
parameter as @code{0xffffffff}.
This CRC can be specified as:
Width : 32
Poly : 0x04c11db7
Init : parameter, typically 0xffffffff
RefIn : false
RefOut : false
XorOut : 0
This differs from the "standard" CRC-32 algorithm in that the values
are not reflected, and there is no final XOR value. These differences
make it easy to compose the values of multiple blocks.
@end deftypefn
*/
unsigned
int
crc32
(
const
unsigned
char
*
buf
,
int
len
,
unsigned
int
init
)
x
crc32
(
const
unsigned
char
*
buf
,
int
len
,
unsigned
int
init
)
{
unsigned
int
crc
=
init
;
while
(
len
--
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment