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:
05d340f
)
Optimize a bit by using mempcpy.
author
drepper
<drepper>
Wed, 5 Nov 1997 23:59:21 +0000
(23:59 +0000)
committer
drepper
<drepper>
Wed, 5 Nov 1997 23:59:21 +0000
(23:59 +0000)
Correct condition to leave the loop.
sysdeps/posix/writev.c
patch
|
blob
|
history
diff --git
a/sysdeps/posix/writev.c
b/sysdeps/posix/writev.c
index
f6f685c
..
ae38fef
100644
(file)
--- a/
sysdeps/posix/writev.c
+++ b/
sysdeps/posix/writev.c
@@
-53,11
+53,10
@@
__writev (fd, vector, count)
#define min(a, b) ((a) > (b) ? (b) : (a))
size_t copy = min (vector[i].iov_len, to_copy);
-
(void) mem
cpy ((void *) bp, (void *) vector[i].iov_base, copy);
+
bp = __memp
cpy ((void *) bp, (void *) vector[i].iov_base, copy);
- bp += copy;
to_copy -= copy;
- if (
bytes
== 0)
+ if (
to_copy
== 0)
break;
}