2024-02-22 00:40:09 +00:00
|
|
|
#ifdef _COSMO_SOURCE
|
2020-12-09 23:04:54 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_FMT_ITOA_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_FMT_ITOA_H_
|
2020-06-15 14:18:57 +00:00
|
|
|
COSMOPOLITAN_C_START_
|
2023-06-06 10:30:37 +00:00
|
|
|
|
|
|
|
#define LengthInt64 __LengthInt64
|
|
|
|
#define LengthUint64 __LengthUint64
|
|
|
|
#define LengthInt64Thousands __LengthInt64Thousands
|
|
|
|
#define LengthUint64Thousands __LengthUint64Thousands
|
|
|
|
#define FormatInt32 __FormatInt32
|
|
|
|
#define FormatUint32 __FormatUint32
|
|
|
|
#define FormatInt64 __FormatInt64
|
|
|
|
#define FormatUint64 __FormatUint64
|
|
|
|
#define FormatInt64Thousands __FormatInt64Thousands
|
|
|
|
#define FormatUint64Thousands __FormatUint64Thousands
|
|
|
|
#define FormatOctal32 __FormatOctal32
|
|
|
|
#define FormatOctal64 __FormatOctal64
|
|
|
|
#define FormatBinary64 __FormatBinary64
|
|
|
|
#define FormatHex64 __FormatHex64
|
|
|
|
#define FormatFlex64 __FormatFlex64
|
|
|
|
#define uint64toarray_radix16 __uint64toarray_radix16
|
|
|
|
#define uint64toarray_fixed16 __uint64toarray_fixed16
|
|
|
|
#define uint64toarray_radix8 __uint64toarray_radix8
|
2020-06-15 14:18:57 +00:00
|
|
|
|
2024-01-09 09:26:03 +00:00
|
|
|
libcesque unsigned LengthInt64(int64_t) pureconst;
|
|
|
|
libcesque unsigned LengthUint64(uint64_t) pureconst;
|
|
|
|
libcesque unsigned LengthInt64Thousands(int64_t) pureconst;
|
|
|
|
libcesque unsigned LengthUint64Thousands(uint64_t) pureconst;
|
|
|
|
libcesque char *FormatInt32(char[hasatleast 12], int32_t);
|
|
|
|
libcesque char *FormatUint32(char[hasatleast 12], uint32_t);
|
|
|
|
libcesque char *FormatInt64(char[hasatleast 21], int64_t);
|
|
|
|
libcesque char *FormatUint64(char[hasatleast 21], uint64_t);
|
|
|
|
libcesque char *FormatInt64Thousands(char[hasatleast 27], int64_t);
|
|
|
|
libcesque char *FormatUint64Thousands(char[hasatleast 27], uint64_t);
|
|
|
|
libcesque char *FormatOctal32(char[hasatleast 13], uint32_t, bool32);
|
|
|
|
libcesque char *FormatOctal64(char[hasatleast 24], uint64_t, bool32);
|
|
|
|
libcesque char *FormatBinary64(char[hasatleast 67], uint64_t, char);
|
|
|
|
libcesque char *FormatHex64(char[hasatleast 19], uint64_t, char);
|
|
|
|
libcesque char *FormatFlex64(char[hasatleast 24], int64_t, char);
|
|
|
|
libcesque size_t uint64toarray_radix16(uint64_t, char[hasatleast 17]);
|
|
|
|
libcesque size_t uint64toarray_fixed16(uint64_t, char[hasatleast 17], uint8_t);
|
|
|
|
libcesque size_t uint64toarray_radix8(uint64_t, char[hasatleast 24]);
|
2020-08-25 11:23:25 +00:00
|
|
|
|
2020-06-15 14:18:57 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
2020-12-09 23:04:54 +00:00
|
|
|
#endif /* COSMOPOLITAN_LIBC_FMT_ITOA_H_ */
|
2024-02-22 00:40:09 +00:00
|
|
|
#endif /* _COSMO_SOURCE */
|