Displaying 2 results from an estimated 2 matches for "f9d87a6a".
Did you mean:
f9b37a6a
2020 Mar 28
0
[klibc:update-dash] dash: [OUTPUT] Add likely tag in outmem
...nd is now marked as likely.
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/output.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr/dash/output.c b/usr/dash/output.c
index 6618cc33..f9d87a6a 100644
--- a/usr/dash/output.c
+++ b/usr/dash/output.c
@@ -144,7 +144,7 @@ outmem(const char *p, size_t len, struct output *dest)
size_t nleft;
nleft = dest->end - dest->nextc;
- if (nleft >= len) {
+ if (likely(nleft >= len)) {
buffered:
dest->nextc = mempcpy(dest->next...
2020 Mar 28
0
[klibc:update-dash] dash: [OUTPUT] Add ifdefs around MEM_OUT handling in outmem
...k processing which we do
not currently support.
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/output.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/usr/dash/output.c b/usr/dash/output.c
index f9d87a6a..fb6b60ab 100644
--- a/usr/dash/output.c
+++ b/usr/dash/output.c
@@ -154,10 +154,13 @@ buffered:
if (!bufsize) {
;
} else if (dest->buf == NULL) {
+#ifdef notyet
if (dest->fd == MEM_OUT && len > bufsize) {
bufsize = len;
}
+#endif
offset = 0;
+#ifdef notyet
g...