]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2007-04-25 Jakub Jelinek <jakub@redhat.com>
authorJakub Jelinek <jakub@redhat.com>
Thu, 12 Jul 2007 15:11:35 +0000 (15:11 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 12 Jul 2007 15:11:35 +0000 (15:11 +0000)
* libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
version.

ChangeLog
libio/bits/stdio.h

index b718ebbef9e8b8c2abc32c0d668dd92157ba5714..02b50e6bf9a19e0fb19872e97485253b0cace16b 100644 (file)
--- 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]
index 9e951ad8e4a840b7af6958ccd0a8babf80ed0eee..9ac57d8968ba6b374513521de14996bb9c6e5e5c 100644 (file)
@@ -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