projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(get_charset_aliases): Use malloc, realloc and memcpy
[gnulib.git]
/
lib
/
memcmp.c
diff --git
a/lib/memcmp.c
b/lib/memcmp.c
index
9f864d1
..
98dcb76
100644
(file)
--- a/
lib/memcmp.c
+++ b/
lib/memcmp.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 1991, 1993, 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1993, 1995, 1997
, 1998
Free Software Foundation, Inc.
Contributed by Torbjorn Granlund (tege@sics.se).
NOTE: The canonical source of this file is maintained with the GNU C Library.
Contributed by Torbjorn Granlund (tege@sics.se).
NOTE: The canonical source of this file is maintained with the GNU C Library.
@@
-104,8
+104,7
@@
static int memcmp_bytes __P((op_t, op_t));
__inline
# endif
static int
__inline
# endif
static int
-memcmp_bytes (a, b)
- op_t a, b;
+memcmp_bytes (long unsigned int a, long unsigned int b)
{
long int srcp1 = (long int) &a;
long int srcp2 = (long int) &b;
{
long int srcp1 = (long int) &a;
long int srcp2 = (long int) &b;
@@
-132,10
+131,7
@@
static int memcmp_common_alignment __P((long, long, size_t));
__inline
#endif
static int
__inline
#endif
static int
-memcmp_common_alignment (srcp1, srcp2, len)
- long int srcp1;
- long int srcp2;
- size_t len;
+memcmp_common_alignment (long int srcp1, long int srcp2, size_t len)
{
op_t a0, a1;
op_t b0, b1;
{
op_t a0, a1;
op_t b0, b1;
@@
-222,10
+218,7
@@
static int memcmp_not_common_alignment __P((long, long, size_t));
__inline
#endif
static int
__inline
#endif
static int
-memcmp_not_common_alignment (srcp1, srcp2, len)
- long int srcp1;
- long int srcp2;
- size_t len;
+memcmp_not_common_alignment (long int srcp1, long int srcp2, size_t len)
{
op_t a0, a1, a2, a3;
op_t b0, b1, b2, b3;
{
op_t a0, a1, a2, a3;
op_t b0, b1, b2, b3;
@@
-325,10
+318,7
@@
memcmp_not_common_alignment (srcp1, srcp2, len)
}
int
}
int
-memcmp (s1, s2, len)
- const __ptr_t s1;
- const __ptr_t s2;
- size_t len;
+rpl_memcmp (const void *s1, const void *s2, size_t len)
{
op_t a0;
op_t b0;
{
op_t a0;
op_t b0;