commit | d474cafc40ae5030873ed4d51a62d91146edd0c2 | [log] [tgz] |
---|---|---|
author | H. Peter Anvin <hpa@linux.intel.com> | Sat May 12 13:39:18 2012 -0700 |
committer | H. Peter Anvin <hpa@linux.intel.com> | Sat May 12 15:19:32 2012 -0700 |
tree | 22901ef79d80f2057445e9c8ea0badab301bfe50 | |
parent | c6a649166658c38d6b4ae6a2e039994566f3e5d9 [diff] |
[klibc] Optimize fgetc() to read the buffer directly If there is data in the buffer, optimize fgetc() to pull from the buffer directly. Continue to use _fread() to get data out of an empty buffer. This also speeds up fgets() since it calls fgetc(). Signed-off-by: H. Peter Anvin <hpa@zytor.com>