about summary refs log tree commit diff
path: root/stdio-common/_itoa.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-06-06 06:01:50 +0000
committerUlrich Drepper <drepper@redhat.com>2004-06-06 06:01:50 +0000
commitd4c4ee1ed59571c3214b546fbbdbab2beb97860c (patch)
treeaead3edbc6c5d793a8ae242701546d179a30b1cf /stdio-common/_itoa.h
parent41cbdf2a49d76c4d4d9d06c464a593c7c6055e7e (diff)
downloadglibc-d4c4ee1ed59571c3214b546fbbdbab2beb97860c.tar.gz
glibc-d4c4ee1ed59571c3214b546fbbdbab2beb97860c.tar.xz
glibc-d4c4ee1ed59571c3214b546fbbdbab2beb97860c.zip
Don't expand _itoa inline for libc.
Diffstat (limited to 'stdio-common/_itoa.h')
-rw-r--r--stdio-common/_itoa.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/stdio-common/_itoa.h b/stdio-common/_itoa.h
index 77f5b0c026..21a9c39294 100644
--- a/stdio-common/_itoa.h
+++ b/stdio-common/_itoa.h
@@ -34,23 +34,27 @@ extern const char _itoa_upper_digits_internal[] attribute_hidden;
 extern const char _itoa_lower_digits[];
 extern const char _itoa_lower_digits_internal[] attribute_hidden;
 
+#ifndef NOT_IN_libc
+extern char *_itoa_word (unsigned long value, char *buflim,
+			 unsigned int base, int upper_case);
+#else
 static inline char * __attribute__ ((unused, always_inline))
 _itoa_word (unsigned long value, char *buflim,
 	    unsigned int base, int upper_case)
 {
   const char *digits = (upper_case
-#if !defined NOT_IN_libc || defined IS_IN_rtld
+# if defined IS_IN_rtld
 			? INTUSE(_itoa_upper_digits)
 			: INTUSE(_itoa_lower_digits)
-#else
+# else
 			? _itoa_upper_digits
 			: _itoa_lower_digits
-#endif
+# endif
 		       );
 
   switch (base)
     {
-#define SPECIAL(Base)							      \
+# define SPECIAL(Base)							      \
     case Base:								      \
       do								      \
 	*--buflim = digits[value % Base];				      \
@@ -67,7 +71,8 @@ _itoa_word (unsigned long value, char *buflim,
     }
   return buflim;
 }
-#undef SPECIAL
+# undef SPECIAL
+#endif
 
 /* Similar to the _itoa functions, but output starts at buf and pointer
    after the last written character is returned.  */