diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-07-12 15:11:35 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-07-12 15:11:35 +0000 |
commit | bdaa36ac5f0b620fbf2be08df8af7d85f055c17c (patch) | |
tree | c55fa45d6872ad4e5ac49d6400b088b9941562d3 | |
parent | e93acb4d8207f6c0ce89efcc08669241e7a52cc8 (diff) | |
download | glibc-bdaa36ac5f0b620fbf2be08df8af7d85f055c17c.tar.gz glibc-bdaa36ac5f0b620fbf2be08df8af7d85f055c17c.tar.xz glibc-bdaa36ac5f0b620fbf2be08df8af7d85f055c17c.zip |
2007-04-25 Jakub Jelinek <jakub@redhat.com>
* libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized version.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libio/bits/stdio.h | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index b718ebbef9..02b50e6bf9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-25 Jakub Jelinek <jakub@redhat.com> + + * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized + version. + 2007-04-25 Ulrich Drepper <drepper@redhat.com> [BZ #4406] diff --git a/libio/bits/stdio.h b/libio/bits/stdio.h index 9e951ad8e4..9ac57d8968 100644 --- a/libio/bits/stdio.h +++ b/libio/bits/stdio.h @@ -44,6 +44,16 @@ getchar (void) } +# ifdef __USE_MISC +/* Faster version when locking is not necessary. */ +__STDIO_INLINE int +fgetc_unlocked (FILE *__fp) +{ + return _IO_getc_unlocked (__fp); +} +# endif /* misc */ + + # if defined __USE_POSIX || defined __USE_MISC /* This is defined in POSIX.1:1996. */ __STDIO_INLINE int |