aboutsummaryrefslogtreecommitdiff
path: root/include/xatonum.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xatonum.h')
-rw-r--r--include/xatonum.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/include/xatonum.h b/include/xatonum.h
index 6cf1299b3..944ee7742 100644
--- a/include/xatonum.h
+++ b/include/xatonum.h
@@ -14,20 +14,20 @@
14/* Provides extern declarations of functions */ 14/* Provides extern declarations of functions */
15#define DECLARE_STR_CONV(type, T, UT) \ 15#define DECLARE_STR_CONV(type, T, UT) \
16\ 16\
17unsigned type xstrto##UT##_range_sfx(const char *str, int b, unsigned type l, unsigned type u, const struct suffix_mult *sfx); \ 17unsigned type xstrto##UT##_range_sfx(const char *str, int b, unsigned type l, unsigned type u, const struct suffix_mult *sfx) FAST_FUNC; \
18unsigned type xstrto##UT##_range(const char *str, int b, unsigned type l, unsigned type u); \ 18unsigned type xstrto##UT##_range(const char *str, int b, unsigned type l, unsigned type u) FAST_FUNC; \
19unsigned type xstrto##UT##_sfx(const char *str, int b, const struct suffix_mult *sfx); \ 19unsigned type xstrto##UT##_sfx(const char *str, int b, const struct suffix_mult *sfx) FAST_FUNC; \
20unsigned type xstrto##UT(const char *str, int b); \ 20unsigned type xstrto##UT(const char *str, int b) FAST_FUNC; \
21unsigned type xato##UT##_range_sfx(const char *str, unsigned type l, unsigned type u, const struct suffix_mult *sfx); \ 21unsigned type xato##UT##_range_sfx(const char *str, unsigned type l, unsigned type u, const struct suffix_mult *sfx) FAST_FUNC; \
22unsigned type xato##UT##_range(const char *str, unsigned type l, unsigned type u); \ 22unsigned type xato##UT##_range(const char *str, unsigned type l, unsigned type u) FAST_FUNC; \
23unsigned type xato##UT##_sfx(const char *str, const struct suffix_mult *sfx); \ 23unsigned type xato##UT##_sfx(const char *str, const struct suffix_mult *sfx) FAST_FUNC; \
24unsigned type xato##UT(const char *str); \ 24unsigned type xato##UT(const char *str) FAST_FUNC; \
25type xstrto##T##_range_sfx(const char *str, int b, type l, type u, const struct suffix_mult *sfx); \ 25type xstrto##T##_range_sfx(const char *str, int b, type l, type u, const struct suffix_mult *sfx) FAST_FUNC; \
26type xstrto##T##_range(const char *str, int b, type l, type u); \ 26type xstrto##T##_range(const char *str, int b, type l, type u) FAST_FUNC; \
27type xato##T##_range_sfx(const char *str, type l, type u, const struct suffix_mult *sfx); \ 27type xato##T##_range_sfx(const char *str, type l, type u, const struct suffix_mult *sfx) FAST_FUNC; \
28type xato##T##_range(const char *str, type l, type u); \ 28type xato##T##_range(const char *str, type l, type u) FAST_FUNC; \
29type xato##T##_sfx(const char *str, const struct suffix_mult *sfx); \ 29type xato##T##_sfx(const char *str, const struct suffix_mult *sfx) FAST_FUNC; \
30type xato##T(const char *str); \ 30type xato##T(const char *str) FAST_FUNC; \
31 31
32/* Unsigned long long functions always exist */ 32/* Unsigned long long functions always exist */
33DECLARE_STR_CONV(long long, ll, ull) 33DECLARE_STR_CONV(long long, ll, ull)
@@ -122,8 +122,8 @@ static ALWAYS_INLINE uint32_t xatou32(const char *numstr)
122 * return value is all-ones in this case. 122 * return value is all-ones in this case.
123 */ 123 */
124 124
125unsigned long long bb_strtoull(const char *arg, char **endp, int base); 125unsigned long long bb_strtoull(const char *arg, char **endp, int base) FAST_FUNC;
126long long bb_strtoll(const char *arg, char **endp, int base); 126long long bb_strtoll(const char *arg, char **endp, int base) FAST_FUNC;
127 127
128#if ULONG_MAX == ULLONG_MAX 128#if ULONG_MAX == ULLONG_MAX
129static ALWAYS_INLINE 129static ALWAYS_INLINE
@@ -133,8 +133,8 @@ static ALWAYS_INLINE
133long bb_strtol(const char *arg, char **endp, int base) 133long bb_strtol(const char *arg, char **endp, int base)
134{ return bb_strtoll(arg, endp, base); } 134{ return bb_strtoll(arg, endp, base); }
135#else 135#else
136unsigned long bb_strtoul(const char *arg, char **endp, int base); 136unsigned long bb_strtoul(const char *arg, char **endp, int base) FAST_FUNC;
137long bb_strtol(const char *arg, char **endp, int base); 137long bb_strtol(const char *arg, char **endp, int base) FAST_FUNC;
138#endif 138#endif
139 139
140#if UINT_MAX == ULLONG_MAX 140#if UINT_MAX == ULLONG_MAX
@@ -152,8 +152,8 @@ static ALWAYS_INLINE
152int bb_strtoi(const char *arg, char **endp, int base) 152int bb_strtoi(const char *arg, char **endp, int base)
153{ return bb_strtol(arg, endp, base); } 153{ return bb_strtol(arg, endp, base); }
154#else 154#else
155unsigned bb_strtou(const char *arg, char **endp, int base); 155unsigned bb_strtou(const char *arg, char **endp, int base) FAST_FUNC;
156int bb_strtoi(const char *arg, char **endp, int base); 156int bb_strtoi(const char *arg, char **endp, int base) FAST_FUNC;
157#endif 157#endif
158 158
159int BUG_bb_strtou32_unimplemented(void); 159int BUG_bb_strtou32_unimplemented(void);