projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77d1d5c
)
Optimize a bit by using mempcpy.
author
drepper
<drepper>
Wed, 5 Nov 1997 23:51:49 +0000
(23:51 +0000)
committer
drepper
<drepper>
Wed, 5 Nov 1997 23:51:49 +0000
(23:51 +0000)
stdlib/msort.c
patch
|
blob
|
history
diff --git
a/stdlib/msort.c
b/stdlib/msort.c
index
4cd3e3f
..
1c36a4c
100644
(file)
--- a/
stdlib/msort.c
+++ b/
stdlib/msort.c
@@
-71,17
+71,16
@@
msort_with_tmp (b, n, s, cmp, t)
{
if ((*cmp) (b1, b2) <= 0)
{
-
mem
cpy (tmp, b1, s);
+
tmp = (char *) __memp
cpy (tmp, b1, s);
b1 += s;
--n1;
}
else
{
-
mem
cpy (tmp, b2, s);
+
tmp = (char *) __memp
cpy (tmp, b2, s);
b2 += s;
--n2;
}
- tmp += s;
}
if (n1 > 0)
memcpy (tmp, b1, n1 * s);