search for: bufmode

Displaying 2 results from an estimated 2 matches for "bufmode".

Did you mean: binmode
2014 Apr 09
0
[klibc:master] fwrite: use memrchr() to find the final ' \n' in _IOLBF mode
...FILE *file) size_t bytes = 0; size_t pf_len, pu_len; const char *p = buf; + const char *q; /* We divide the data into two chunks, flushed (pf) and unflushed (pu) depending on buffering mode @@ -67,23 +68,16 @@ size_t _fwrite(const void *buf, size_t count, FILE *file) switch (f->bufmode) { case _IOFBF: pf_len = 0; - pu_len = count; break; case _IOLBF: - pf_len = count; - pu_len = 0; - - while (pf_len && p[pf_len-1] != '\n') { - pf_len--; - pu_len++; - } + q = memrchr(p, '\n', count); + pf_len = q ? q - p + 1 : 0; break; case _I...
2010 Aug 06
4
nv vpe video decoder
Hello, I have my work on the nv vpe video decoder in a functional state. In case you didn't know this decoder accelerates mpeg2 video at the idct/mc level. I have verified that it works on nv40 hardware. I believe it works on nv30 hardware (and maybe some earlier hardware), but I cannot verify since I have none. I will reply with patches against the kernel, drm, ddx and mesa for