w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

utilnumber.h File Reference
#include <stddef.h>
#include "utilplat.h"
#include "utildecl.h"
#include <stdint.h>
Include dependency graph for utilnumber.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INT64F   "%lld"
 
#define UINT64F   "%llu"
 
#define INTLW_IS_LONG
 
#define intlw_t   long
 
#define uintlw_t   unsigned long
 
#define INTLW(N)   N##L
 
#define UINTLW(N)   N##UL
 
#define INTLWF   "%ld"
 
#define UINTLWF   "%lu"
 
#define MAX_RADIX   36
 
#define MAX_INTEGER_DIGITS   65 /* 64-bit number in binary form plus '\0' */
 
#define MAX_ROMAN_DIGITS   128 /* to handle romannumeral of short int (up to 65 leading 'M') */
 
#define MAX_NUMBER_DIGITS   512
 
#define NUMBER_BUFFER_SIZE   MAX_NUMBER_DIGITS
 
#define base36_uc_alphabet   "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 
#define base36_lc_alphabet   "0123456789abcdefghijklmnopqrstuvwxyz"
 
#define base26_uc_alphabet   "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 
#define base26_lc_alphabet   "abcdefghijklmnopqrstuvwxyz"
 
#define base36_lc_palindrome   "zyxwvutsrqponmlkjihgfedcba9876543210123456789abcdefghijklmnopqrstuvwxyz"
 
#define base36_uc_palindrome   "ZYXWVUTSRQPONMLKJIHGFEDCBA9876543210123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 
#define base10_palindrome   "9876543210123456789"
 
#define base10_alphabet   "0123456789"
 
#define base16_uc_alphabet   "0123456789ABCDEF"
 
#define base16_lc_alphabet   "0123456789abcdef"
 
#define base16_uc_digit1(c)   base16_uc_alphabet[(c)>>4]
 
#define base16_uc_digit2(c)   base16_uc_alphabet[(c)&15]
 
#define base16_lc_digit1(c)   base16_lc_alphabet[(c)>>4]
 
#define base16_lc_digit2(c)   base16_lc_alphabet[(c)&15]
 
#define base8_digit(c)   ((unsigned)(c - '0') <= (unsigned)('7' - '0'))
 
#define base8_value(c)   (base8_digit(c) ? (c) - '0' : -1)
 
#define base10_digit(c)   ((unsigned)(c - '0') <= (unsigned)('9' - '0'))
 
#define base10_value(c)   (base10_lookup[(uint8_t)(c)])
 
#define base16_digit(c)   (base16_lookup[(uint8_t)(c)] >= 0)
 
#define base16_value(c)   (base16_lookup[(uint8_t)(c)])
 
#define base26_digit(c)   (base26_lookup[(uint8_t)(c)] >= 0)
 
#define base26_value(c)   (base26_lookup[(uint8_t)(c)])
 
#define base36_digit(c)   (base36_lookup[(uint8_t)(c)] >= 0)
 
#define base36_value(c)   (base36_lookup[(uint8_t)(c)])
 
#define int32_to_string(number, psize)   int32_as_string(number, util_number_buffer, psize)
 
#define slong_to_string(number, psize)   slong_as_string(number, util_number_buffer, psize)
 
#define int64_to_string(number, psize)   int64_as_string(number, util_number_buffer, psize)
 
#define uint32_to_string(number, psize)   uint32_as_string(number, util_number_buffer, psize)
 
#define ulong_to_string(number, psize)   ulong_as_string(number, util_number_buffer, psize)
 
#define usize_to_string(number, psize)   usize_as_string(number, util_number_buffer, psize)
 
#define uint64_to_string(number, psize)   uint64_as_string(number, util_number_buffer, psize)
 
#define int32_to_radix(number, radix, uc, psize)   int32_as_radix(number, radix, uc, util_number_buffer, psize)
 
#define slong_to_radix(number, radix, uc, psize)   slong_as_radix(number, radix, uc, util_number_buffer, psize)
 
#define int64_to_radix(number, radix, uc, psize)   int64_as_radix(number, radix, uc, util_number_buffer, psize)
 
#define uint32_to_radix(number, radix, uc, psize)   uint32_as_radix(number, radix, uc, util_number_buffer, psize)
 
#define ulong_to_radix(number, radix, uc, psize)   ulong_as_radix(number, radix, uc, util_number_buffer, psize)
 
#define usize_to_radix(number, radix, uc, psize)   usize_as_radix(number, radix, uc, util_number_buffer, psize)
 
#define uint64_to_radix(number, radix, uc, psize)   uint64_as_radix(number, radix, uc, util_number_buffer, psize)
 
#define uint32_to_alpha(number, uc, psize)   uint32_as_alpha(number, uc, util_number_buffer, psize)
 
#define ulong_to_alpha(number, uc, psize)   ulong_as_alpha(number, uc, util_number_buffer, psize)
 
#define usize_to_alpha(number, uc, psize)   usize_as_alpha(number, uc, util_number_buffer, psize)
 
#define uint64_to_alpha(number, uc, psize)   uint64_as_alpha(number, uc, util_number_buffer, psize)
 
#define string_to_intlw(s, number)   string_to_slong(s, number)
 
#define string_to_uintlw(s, number)   string_to_ulong(s, number)
 
#define radix_to_intlw(s, number, radix)   radix_to_slong(s, number, radix)
 
#define radix_to_uintlw(s, number, radix)   radix_to_ulong(s, number, radix)
 
#define alpha_to_uintlw(s, number)   alpha_to_ulong(s, number)
 
#define intlw_as_string(number, ibuf, psize)   slong_as_string(number, ibuf, psize)
 
#define uintlw_as_string(number, ibuf, psize)   ulong_as_string(number, ibuf, psize)
 
#define intlw_to_string(number, psize)   slong_to_string(number, psize)
 
#define uintlw_to_string(number, psize)   ulong_to_string(number, psize)
 
#define intlw_as_radix(number, radix, uc, ibuf, psize)   slong_as_radix(number, radix, uc, ibuf, psize)
 
#define uintlw_as_radix(number, radix, uc, ibuf, psize)   ulong_as_radix(number, radix, uc, ibuf, psize)
 
#define intlw_to_radix(number, radix, uc, psize)   slong_to_radix(number, radix, uc, psize)
 
#define uintlw_to_radix(number, radix, uc, psize)   ulong_to_radix(number, radix, uc, psize)
 
#define uintlw_as_alpha(number, uc, ibuf, psize)   ulong_as_alpha(number, uc, ibuf, psize)
 
#define uintlw_to_alpha(number, uc, psize)   ulong_to_alpha(number, uc, ibuf, psize)
 
#define uint16_to_alphan(number, uc, psize)   uint16_as_alphan(number, uc, util_number_buffer, NUMBER_BUFFER_SIZE, psize)
 
#define uint16_to_roman(number, uc, psize)   uint16_as_roman(number, uc, util_number_buffer, psize)
 
#define double_to_string(number, digits, psize)   double_as_string(number, digits, util_number_buffer, psize)
 
#define float_to_string(number, digits, psize)   float_as_string(number, digits, util_number_buffer, psize)
 
#define get_number_byte1(n)   ((n) & 0xff)
 
#define get_number_byte2(n)   (((n) >> 8) & 0xff)
 
#define get_number_byte3(n)   (((n) >> 16) & 0xff)
 
#define get_number_byte4(n)   (((n) >> 24) & 0xff)
 
#define get_number_byte5(n)   (((n) >> 32) & 0xff)
 
#define get_number_byte6(n)   (((n) >> 40) & 0xff)
 
#define get_number_byte7(n)   (((n) >> 48) & 0xff)
 
#define get_number_byte8(n)   (((n) >> 56) & 0xff)
 
#define get_number_bytes_be1(n, b)   (b[0] = (uint8_t)get_number_byte1(n))
 
#define get_number_bytes_be2(n, b)   (b[0] = (uint8_t)get_number_byte2(n), b[1] = (uint8_t)get_number_byte1(n))
 
#define get_number_bytes_be3(n, b)   (b[0] = (uint8_t)get_number_byte3(n), b[1] = (uint8_t)get_number_byte2(n), b[2] = (uint8_t)get_number_byte1(n))
 
#define get_number_bytes_be4(n, b)   (b[0] = (uint8_t)get_number_byte4(n), b[1] = (uint8_t)get_number_byte3(n), b[2] = (uint8_t)get_number_byte2(n), b[3] = (uint8_t)get_number_byte1(n))
 
#define get_number_bytes_be5(n, b)
 
#define get_number_bytes_be6(n, b)
 
#define get_number_bytes_be7(n, b)
 
#define get_number_bytes_be8(n, b)
 
#define read_uint16be_as(s, int_type)   ((int_type)((s[0]<<8)|s[1]))
 
#define read_uint32be_as(s, int_type)   ((int_type)((s[0]<<24)|(s[1]<<16)|(s[2]<<8)|s[3]))
 
#define read_uint16le_as(s, int_type)   ((int_type)((s[1]<<8)|s[0]))
 
#define read_uint32le_as(s, int_type)   ((int_type)((s[3]<<24)|(s[2]<<16)|(s[1]<<8)|s[0]))
 
#define read_uint16_native(s)   (*((uint16_t *)(s)))
 
#define read_uint32_native(s)   (*((uint32_t *)(s)))
 
#define read_int16_native(s)   (*((int16_t *)(s)))
 
#define read_int32_native(s)   (*((int32_t *)(s)))
 
#define scan_uint16be_as(s, int_type)   (s += 2, (int_type)((s[-2]<<8)|s[-1]))
 
#define scan_uint32be_as(s, int_type)   (s += 4, (int_type)((s[-4]<<24)|(s[-3]<<16)|(s[-2]<<8)|s[-1]))
 
#define scan_uint16le_as(s, int_type)   (s += 2, (int_type)((s[-1]<<8)|s[-2]))
 
#define scan_uint32le_as(s, int_type)   (s += 4, (int_type)((s[-1]<<24)|(s[-2]<<16)|(s[-3]<<8)|s[-4]))
 
#define scan_uint16_native(s)   (s += 2, read_uint16_native(s-2))
 
#define scan_uint32_native(s)   (s += 4, read_uint32_native(s-4))
 
#define scan_int16_native(s)   (s += 2, read_int16_native(s-2))
 
#define scan_int32_native(s)   (s += 4, read_int32_native(s-4))
 
#define read_fixed16_16_as(s, float_type)   (((float_type)read_uint32be_as(s, signed int))/(1<<16))
 
#define read_fixed2_14_as(s, float_type)   (((float_type)read_uint16be_as(s, signed short))/(1<<14))
 
#define scan_fixed16_16_as(s, float_type)   (((float_type)scan_uint32be_as(s, signed int))/(1<<16))
 
#define scan_fixed2_14_as(s, float_type)   (((float_type)scan_uint16be_as(s, signed short))/(1<<14))
 
#define _scan_sign(c, sign, next)    do { if (c == '-') { sign = 1; c = next; } else if (c == '+') { sign = 0; c = next; } else sign = 0; } while (0)
 
#define integer_multiplied10(number)   (((number) << 1) + ((number) << 3))
 
#define _scan_integer(c, number, next)    for (number = 0; base10_digit(c); number = integer_multiplied10(number) + (c - '0'), c = next)
 
#define _scan_radix(c, number, radix, next)    for (number = 0; (c = base36_value(c)) >= 0 && c < radix; number = number * radix + c, c = next)
 
#define _read_integer(c, number, next)    for (number = c - '0', c = next; base10_digit(c); number = integer_multiplied10(number) + (c - '0'), c = next)
 
#define _read_radix(c, number, radix, next)    for (number = c - '0', c = next; (c = base36_value(c)) >= 0 && c < radix; number = number * radix + c, c = next)
 
#define _scan_decimal(c, number, next)    for (number = 0; base10_digit(c); number = number*10 + (c - '0'), c = next)
 
#define _scan_fraction(c, number, exponent10, next)    for (exponent10 = 0; base10_digit(c); --exponent10, number = number*10 + (c - '0'), c = next)
 
#define _scan_exponent10(c, exponent10, next)
 
#define double_negative_exp10(number, exponent)   ((number) *= double_decimal_negpower10[(exponent) < -308 ? 308 : -(exponent)])
 
#define double_positive_exp10(number, exponent)   ((number) *= double_decimal_power10[(exponent) > 308 ? 308 : (exponent)])
 
#define float_negative_exp10(number, exponent)   ((number) *= float_decimal_negpower10[(exponent) < -38 ? 38 : -(exponent)])
 
#define float_positive_exp10(number, exponent)   ((number) *= float_decimal_power10[(exponent) > 38 ? 38 : (exponent)])
 
#define double_exp10(number, exponent)   ((void)(((exponent) < 0 && double_negative_exp10(number, exponent)) || (((exponent) > 0 && double_positive_exp10(number, exponent)))))
 
#define float_exp10(number, exponent)   ((void)(((exponent) < 0 && float_negative_exp10(number, exponent)) || (((exponent) > 0 && float_positive_exp10(number, exponent)))))
 
#define bytes_to_hex(input, size, output)   bytes_to_hex_lc(input, size, output)
 

Functions

const char * string_to_int32 (const char *s, int32_t *number)
 
const char * string_to_slong (const char *s, long *number)
 
const char * string_to_int64 (const char *s, int64_t *number)
 
const char * string_to_uint32 (const char *s, uint32_t *number)
 
const char * string_to_ulong (const char *s, unsigned long *number)
 
const char * string_to_usize (const char *s, size_t *number)
 
const char * string_to_uint64 (const char *s, uint64_t *number)
 
const char * radix_to_int32 (const char *s, int32_t *number, int radix)
 
const char * radix_to_slong (const char *s, long *number, int radix)
 
const char * radix_to_int64 (const char *s, int64_t *number, int radix)
 
const char * radix_to_uint32 (const char *s, uint32_t *number, int radix)
 
const char * radix_to_ulong (const char *s, unsigned long *number, int radix)
 
const char * radix_to_usize (const char *s, size_t *number, int radix)
 
const char * radix_to_uint64 (const char *s, uint64_t *number, int radix)
 
const char * alpha_to_uint32 (const char *s, uint32_t *number)
 
const char * alpha_to_ulong (const char *s, unsigned long *number)
 
const char * alpha_to_usize (const char *s, size_t *number)
 
const char * alpha_to_uint64 (const char *s, uint64_t *number)
 
char * int32_as_string (int32_t number, char ibuf[65], size_t *psize)
 
char * slong_as_string (long number, char ibuf[65], size_t *psize)
 
char * int64_as_string (int64_t number, char ibuf[65], size_t *psize)
 
char * uint32_as_string (uint32_t number, char ibuf[65], size_t *psize)
 
char * ulong_as_string (unsigned long number, char ibuf[65], size_t *psize)
 
char * usize_as_string (size_t number, char ibuf[65], size_t *psize)
 
char * uint64_as_string (uint64_t number, char ibuf[65], size_t *psize)
 
char * int32_as_radix (int32_t number, int radix, int uc, char ibuf[65], size_t *psize)
 
char * slong_as_radix (long number, int radix, int uc, char ibuf[65], size_t *psize)
 
char * int64_as_radix (int64_t number, int radix, int uc, char ibuf[65], size_t *psize)
 
char * uint32_as_radix (uint32_t number, int radix, int uc, char ibuf[65], size_t *psize)
 
char * ulong_as_radix (unsigned long number, int radix, int uc, char ibuf[65], size_t *psize)
 
char * usize_as_radix (size_t number, int radix, int uc, char ibuf[65], size_t *psize)
 
char * uint64_as_radix (uint64_t number, int radix, int uc, char ibuf[65], size_t *psize)
 
char * uint32_as_alpha (uint32_t number, int uc, char ibuf[65], size_t *psize)
 
char * ulong_as_alpha (unsigned long number, int uc, char ibuf[65], size_t *psize)
 
char * usize_as_alpha (size_t number, int uc, char ibuf[65], size_t *psize)
 
char * uint64_as_alpha (uint64_t number, int uc, char ibuf[65], size_t *psize)
 
const char * alphan_to_uint16 (const char *s, uint16_t *number)
 
char * uint16_as_alphan (uint16_t number, int uc, char ibuf[], size_t size, size_t *psize)
 
const char * roman_to_uint16 (const char *s, uint16_t *number)
 
char * uint16_as_roman (uint16_t number, int uc, char ibuf[128], size_t *psize)
 
char * double_as_string (double number, int digits, char nbuf[512], size_t *psize)
 
char * float_as_string (float number, int digits, char nbuf[512], size_t *psize)
 
const char * string_to_double (const char *s, double *number)
 
const char * string_to_float (const char *s, float *number)
 
const char * convert_to_double (const char *s, double *number)
 
const char * convert_to_float (const char *s, float *number)
 
size_t bytes_to_hex_lc (const void *input, size_t size, uint8_t *output)
 
size_t bytes_to_hex_uc (const void *input, size_t size, uint8_t *output)
 
size_t hex_to_bytes (const void *input, size_t size, uint8_t *output)
 
void print_as_hex (const void *input, size_t bytes)
 

Variables

const int base26_lookup []
 
const int base36_lookup []
 
const int base10_lookup []
 
const int base16_lookup []
 
char util_number_buffer [512]
 
const double double_decimal_power10 []
 
const float float_decimal_power10 []
 
const double double_decimal_negpower10 []
 
const float float_decimal_negpower10 []
 

Macro Definition Documentation

◆ _read_integer

#define _read_integer (   c,
  number,
  next 
)     for (number = c - '0', c = next; base10_digit(c); number = integer_multiplied10(number) + (c - '0'), c = next)

Definition at line 344 of file utilnumber.h.

◆ _read_radix

#define _read_radix (   c,
  number,
  radix,
  next 
)     for (number = c - '0', c = next; (c = base36_value(c)) >= 0 && c < radix; number = number * radix + c, c = next)

Definition at line 346 of file utilnumber.h.

◆ _scan_decimal

#define _scan_decimal (   c,
  number,
  next 
)     for (number = 0; base10_digit(c); number = number*10 + (c - '0'), c = next)

Definition at line 351 of file utilnumber.h.

◆ _scan_exponent10

#define _scan_exponent10 (   c,
  exponent10,
  next 
)
Value:
do { \
int eexponent10, eexpsign; \
_scan_sign(c, eexpsign, next); \
_scan_integer(c, eexponent10, next); \
if (eexpsign) \
exponent10 -= eexponent10; \
else \
exponent10 += eexponent10; \
} while(0)
#define next(a)
Definition: aptex-macros.h:924
#define c(n)
Definition: gpos-common.c:150

Definition at line 356 of file utilnumber.h.

◆ _scan_fraction

#define _scan_fraction (   c,
  number,
  exponent10,
  next 
)     for (exponent10 = 0; base10_digit(c); --exponent10, number = number*10 + (c - '0'), c = next)

Definition at line 353 of file utilnumber.h.

◆ _scan_integer

#define _scan_integer (   c,
  number,
  next 
)     for (number = 0; base10_digit(c); number = integer_multiplied10(number) + (c - '0'), c = next)

Definition at line 339 of file utilnumber.h.

◆ _scan_radix

#define _scan_radix (   c,
  number,
  radix,
  next 
)     for (number = 0; (c = base36_value(c)) >= 0 && c < radix; number = number * radix + c, c = next)

Definition at line 341 of file utilnumber.h.

◆ _scan_sign

#define _scan_sign (   c,
  sign,
  next 
)     do { if (c == '-') { sign = 1; c = next; } else if (c == '+') { sign = 0; c = next; } else sign = 0; } while (0)

Definition at line 334 of file utilnumber.h.

◆ alpha_to_uintlw

#define alpha_to_uintlw (   s,
  number 
)    alpha_to_ulong(s, number)

Definition at line 219 of file utilnumber.h.

◆ base10_alphabet

#define base10_alphabet   "0123456789"

Definition at line 81 of file utilnumber.h.

◆ base10_digit

#define base10_digit (   c)    ((unsigned)(c - '0') <= (unsigned)('9' - '0'))

Definition at line 96 of file utilnumber.h.

◆ base10_palindrome

#define base10_palindrome   "9876543210123456789"

Definition at line 80 of file utilnumber.h.

◆ base10_value

#define base10_value (   c)    (base10_lookup[(uint8_t)(c)])

Definition at line 97 of file utilnumber.h.

◆ base16_digit

#define base16_digit (   c)    (base16_lookup[(uint8_t)(c)] >= 0)

Definition at line 99 of file utilnumber.h.

◆ base16_lc_alphabet

#define base16_lc_alphabet   "0123456789abcdef"

Definition at line 85 of file utilnumber.h.

◆ base16_lc_digit1

#define base16_lc_digit1 (   c)    base16_lc_alphabet[(c)>>4]

Definition at line 90 of file utilnumber.h.

◆ base16_lc_digit2

#define base16_lc_digit2 (   c)    base16_lc_alphabet[(c)&15]

Definition at line 91 of file utilnumber.h.

◆ base16_uc_alphabet

#define base16_uc_alphabet   "0123456789ABCDEF"

Definition at line 84 of file utilnumber.h.

◆ base16_uc_digit1

#define base16_uc_digit1 (   c)    base16_uc_alphabet[(c)>>4]

Definition at line 88 of file utilnumber.h.

◆ base16_uc_digit2

#define base16_uc_digit2 (   c)    base16_uc_alphabet[(c)&15]

Definition at line 89 of file utilnumber.h.

◆ base16_value

#define base16_value (   c)    (base16_lookup[(uint8_t)(c)])

Definition at line 100 of file utilnumber.h.

◆ base26_digit

#define base26_digit (   c)    (base26_lookup[(uint8_t)(c)] >= 0)

Definition at line 102 of file utilnumber.h.

◆ base26_lc_alphabet

#define base26_lc_alphabet   "abcdefghijklmnopqrstuvwxyz"

Definition at line 72 of file utilnumber.h.

◆ base26_uc_alphabet

#define base26_uc_alphabet   "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

Definition at line 71 of file utilnumber.h.

◆ base26_value

#define base26_value (   c)    (base26_lookup[(uint8_t)(c)])

Definition at line 103 of file utilnumber.h.

◆ base36_digit

#define base36_digit (   c)    (base36_lookup[(uint8_t)(c)] >= 0)

Definition at line 105 of file utilnumber.h.

◆ base36_lc_alphabet

#define base36_lc_alphabet   "0123456789abcdefghijklmnopqrstuvwxyz"

Definition at line 69 of file utilnumber.h.

◆ base36_lc_palindrome

#define base36_lc_palindrome   "zyxwvutsrqponmlkjihgfedcba9876543210123456789abcdefghijklmnopqrstuvwxyz"

Definition at line 75 of file utilnumber.h.

◆ base36_uc_alphabet

#define base36_uc_alphabet   "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

Definition at line 68 of file utilnumber.h.

◆ base36_uc_palindrome

#define base36_uc_palindrome   "ZYXWVUTSRQPONMLKJIHGFEDCBA9876543210123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

Definition at line 76 of file utilnumber.h.

◆ base36_value

#define base36_value (   c)    (base36_lookup[(uint8_t)(c)])

Definition at line 106 of file utilnumber.h.

◆ base8_digit

#define base8_digit (   c)    ((unsigned)(c - '0') <= (unsigned)('7' - '0'))

Definition at line 93 of file utilnumber.h.

◆ base8_value

#define base8_value (   c)    (base8_digit(c) ? (c) - '0' : -1)

Definition at line 94 of file utilnumber.h.

◆ bytes_to_hex

#define bytes_to_hex (   input,
  size,
  output 
)    bytes_to_hex_lc(input, size, output)

Definition at line 422 of file utilnumber.h.

◆ double_exp10

#define double_exp10 (   number,
  exponent 
)    ((void)(((exponent) < 0 && double_negative_exp10(number, exponent)) || (((exponent) > 0 && double_positive_exp10(number, exponent)))))

Definition at line 415 of file utilnumber.h.

◆ double_negative_exp10

#define double_negative_exp10 (   number,
  exponent 
)    ((number) *= double_decimal_negpower10[(exponent) < -308 ? 308 : -(exponent)])

Definition at line 409 of file utilnumber.h.

◆ double_positive_exp10

#define double_positive_exp10 (   number,
  exponent 
)    ((number) *= double_decimal_power10[(exponent) > 308 ? 308 : (exponent)])

Definition at line 410 of file utilnumber.h.

◆ double_to_string

#define double_to_string (   number,
  digits,
  psize 
)    double_as_string(number, digits, util_number_buffer, psize)

Definition at line 253 of file utilnumber.h.

◆ float_exp10

#define float_exp10 (   number,
  exponent 
)    ((void)(((exponent) < 0 && float_negative_exp10(number, exponent)) || (((exponent) > 0 && float_positive_exp10(number, exponent)))))

Definition at line 416 of file utilnumber.h.

◆ float_negative_exp10

#define float_negative_exp10 (   number,
  exponent 
)    ((number) *= float_decimal_negpower10[(exponent) < -38 ? 38 : -(exponent)])

Definition at line 412 of file utilnumber.h.

◆ float_positive_exp10

#define float_positive_exp10 (   number,
  exponent 
)    ((number) *= float_decimal_power10[(exponent) > 38 ? 38 : (exponent)])

Definition at line 413 of file utilnumber.h.

◆ float_to_string

#define float_to_string (   number,
  digits,
  psize 
)    float_as_string(number, digits, util_number_buffer, psize)

Definition at line 256 of file utilnumber.h.

◆ get_number_byte1

#define get_number_byte1 (   n)    ((n) & 0xff)

Definition at line 280 of file utilnumber.h.

◆ get_number_byte2

#define get_number_byte2 (   n)    (((n) >> 8) & 0xff)

Definition at line 281 of file utilnumber.h.

◆ get_number_byte3

#define get_number_byte3 (   n)    (((n) >> 16) & 0xff)

Definition at line 282 of file utilnumber.h.

◆ get_number_byte4

#define get_number_byte4 (   n)    (((n) >> 24) & 0xff)

Definition at line 283 of file utilnumber.h.

◆ get_number_byte5

#define get_number_byte5 (   n)    (((n) >> 32) & 0xff)

Definition at line 284 of file utilnumber.h.

◆ get_number_byte6

#define get_number_byte6 (   n)    (((n) >> 40) & 0xff)

Definition at line 285 of file utilnumber.h.

◆ get_number_byte7

#define get_number_byte7 (   n)    (((n) >> 48) & 0xff)

Definition at line 286 of file utilnumber.h.

◆ get_number_byte8

#define get_number_byte8 (   n)    (((n) >> 56) & 0xff)

Definition at line 287 of file utilnumber.h.

◆ get_number_bytes_be1

#define get_number_bytes_be1 (   n,
  b 
)    (b[0] = (uint8_t)get_number_byte1(n))

Definition at line 290 of file utilnumber.h.

◆ get_number_bytes_be2

#define get_number_bytes_be2 (   n,
  b 
)    (b[0] = (uint8_t)get_number_byte2(n), b[1] = (uint8_t)get_number_byte1(n))

Definition at line 291 of file utilnumber.h.

◆ get_number_bytes_be3

#define get_number_bytes_be3 (   n,
  b 
)    (b[0] = (uint8_t)get_number_byte3(n), b[1] = (uint8_t)get_number_byte2(n), b[2] = (uint8_t)get_number_byte1(n))

Definition at line 292 of file utilnumber.h.

◆ get_number_bytes_be4

#define get_number_bytes_be4 (   n,
  b 
)    (b[0] = (uint8_t)get_number_byte4(n), b[1] = (uint8_t)get_number_byte3(n), b[2] = (uint8_t)get_number_byte2(n), b[3] = (uint8_t)get_number_byte1(n))

Definition at line 293 of file utilnumber.h.

◆ get_number_bytes_be5

#define get_number_bytes_be5 (   n,
  b 
)
Value:
#define n
Definition: t4ht.c:1290
#define b
Definition: jpegint.h:372
#define get_number_byte1(n)
Definition: utilnumber.h:280
#define get_number_byte3(n)
Definition: utilnumber.h:282
#define get_number_byte2(n)
Definition: utilnumber.h:281
#define get_number_byte5(n)
Definition: utilnumber.h:284
#define get_number_byte4(n)
Definition: utilnumber.h:283
#define uint8_t
Definition: stdint.in.h:154

Definition at line 295 of file utilnumber.h.

◆ get_number_bytes_be6

#define get_number_bytes_be6 (   n,
  b 
)
Value:

Definition at line 297 of file utilnumber.h.

◆ get_number_bytes_be7

#define get_number_bytes_be7 (   n,
  b 
)
Value:

Definition at line 299 of file utilnumber.h.

◆ get_number_bytes_be8

#define get_number_bytes_be8 (   n,
  b 
)
Value:

Definition at line 301 of file utilnumber.h.

◆ int32_to_radix

#define int32_to_radix (   number,
  radix,
  uc,
  psize 
)    int32_as_radix(number, radix, uc, util_number_buffer, psize)

Definition at line 162 of file utilnumber.h.

◆ int32_to_string

#define int32_to_string (   number,
  psize 
)    int32_as_string(number, util_number_buffer, psize)

Definition at line 144 of file utilnumber.h.

◆ int64_to_radix

#define int64_to_radix (   number,
  radix,
  uc,
  psize 
)    int64_as_radix(number, radix, uc, util_number_buffer, psize)

Definition at line 164 of file utilnumber.h.

◆ int64_to_string

#define int64_to_string (   number,
  psize 
)    int64_as_string(number, util_number_buffer, psize)

Definition at line 146 of file utilnumber.h.

◆ INT64F

#define INT64F   "%lld"

Definition at line 21 of file utilnumber.h.

◆ integer_multiplied10

#define integer_multiplied10 (   number)    (((number) << 1) + ((number) << 3))

Definition at line 337 of file utilnumber.h.

◆ INTLW

#define INTLW (   N)    N##L

Definition at line 45 of file utilnumber.h.

◆ intlw_as_radix

#define intlw_as_radix (   number,
  radix,
  uc,
  ibuf,
  psize 
)    slong_as_radix(number, radix, uc, ibuf, psize)

Definition at line 227 of file utilnumber.h.

◆ intlw_as_string

#define intlw_as_string (   number,
  ibuf,
  psize 
)    slong_as_string(number, ibuf, psize)

Definition at line 221 of file utilnumber.h.

◆ INTLW_IS_LONG

#define INTLW_IS_LONG

Definition at line 42 of file utilnumber.h.

◆ intlw_t

#define intlw_t   long

Definition at line 43 of file utilnumber.h.

◆ intlw_to_radix

#define intlw_to_radix (   number,
  radix,
  uc,
  psize 
)    slong_to_radix(number, radix, uc, psize)

Definition at line 230 of file utilnumber.h.

◆ intlw_to_string

#define intlw_to_string (   number,
  psize 
)    slong_to_string(number, psize)

Definition at line 224 of file utilnumber.h.

◆ INTLWF

#define INTLWF   "%ld"

Definition at line 47 of file utilnumber.h.

◆ MAX_INTEGER_DIGITS

#define MAX_INTEGER_DIGITS   65 /* 64-bit number in binary form plus '\0' */

Definition at line 63 of file utilnumber.h.

◆ MAX_NUMBER_DIGITS

#define MAX_NUMBER_DIGITS   512

Definition at line 65 of file utilnumber.h.

◆ MAX_RADIX

#define MAX_RADIX   36

Definition at line 62 of file utilnumber.h.

◆ MAX_ROMAN_DIGITS

#define MAX_ROMAN_DIGITS   128 /* to handle romannumeral of short int (up to 65 leading 'M') */

Definition at line 64 of file utilnumber.h.

◆ NUMBER_BUFFER_SIZE

#define NUMBER_BUFFER_SIZE   MAX_NUMBER_DIGITS

Definition at line 66 of file utilnumber.h.

◆ radix_to_intlw

#define radix_to_intlw (   s,
  number,
  radix 
)    radix_to_slong(s, number, radix)

Definition at line 216 of file utilnumber.h.

◆ radix_to_uintlw

#define radix_to_uintlw (   s,
  number,
  radix 
)    radix_to_ulong(s, number, radix)

Definition at line 217 of file utilnumber.h.

◆ read_fixed16_16_as

#define read_fixed16_16_as (   s,
  float_type 
)    (((float_type)read_uint32be_as(s, signed int))/(1<<16))

Definition at line 326 of file utilnumber.h.

◆ read_fixed2_14_as

#define read_fixed2_14_as (   s,
  float_type 
)    (((float_type)read_uint16be_as(s, signed short))/(1<<14))

Definition at line 327 of file utilnumber.h.

◆ read_int16_native

#define read_int16_native (   s)    (*((int16_t *)(s)))

Definition at line 312 of file utilnumber.h.

◆ read_int32_native

#define read_int32_native (   s)    (*((int32_t *)(s)))

Definition at line 313 of file utilnumber.h.

◆ read_uint16_native

#define read_uint16_native (   s)    (*((uint16_t *)(s)))

Definition at line 310 of file utilnumber.h.

◆ read_uint16be_as

#define read_uint16be_as (   s,
  int_type 
)    ((int_type)((s[0]<<8)|s[1]))

Definition at line 304 of file utilnumber.h.

◆ read_uint16le_as

#define read_uint16le_as (   s,
  int_type 
)    ((int_type)((s[1]<<8)|s[0]))

Definition at line 307 of file utilnumber.h.

◆ read_uint32_native

#define read_uint32_native (   s)    (*((uint32_t *)(s)))

Definition at line 311 of file utilnumber.h.

◆ read_uint32be_as

#define read_uint32be_as (   s,
  int_type 
)    ((int_type)((s[0]<<24)|(s[1]<<16)|(s[2]<<8)|s[3]))

Definition at line 305 of file utilnumber.h.

◆ read_uint32le_as

#define read_uint32le_as (   s,
  int_type 
)    ((int_type)((s[3]<<24)|(s[2]<<16)|(s[1]<<8)|s[0]))

Definition at line 308 of file utilnumber.h.

◆ scan_fixed16_16_as

#define scan_fixed16_16_as (   s,
  float_type 
)    (((float_type)scan_uint32be_as(s, signed int))/(1<<16))

Definition at line 329 of file utilnumber.h.

◆ scan_fixed2_14_as

#define scan_fixed2_14_as (   s,
  float_type 
)    (((float_type)scan_uint16be_as(s, signed short))/(1<<14))

Definition at line 330 of file utilnumber.h.

◆ scan_int16_native

#define scan_int16_native (   s)    (s += 2, read_int16_native(s-2))

Definition at line 323 of file utilnumber.h.

◆ scan_int32_native

#define scan_int32_native (   s)    (s += 4, read_int32_native(s-4))

Definition at line 324 of file utilnumber.h.

◆ scan_uint16_native

#define scan_uint16_native (   s)    (s += 2, read_uint16_native(s-2))

Definition at line 321 of file utilnumber.h.

◆ scan_uint16be_as

#define scan_uint16be_as (   s,
  int_type 
)    (s += 2, (int_type)((s[-2]<<8)|s[-1]))

Definition at line 315 of file utilnumber.h.

◆ scan_uint16le_as

#define scan_uint16le_as (   s,
  int_type 
)    (s += 2, (int_type)((s[-1]<<8)|s[-2]))

Definition at line 318 of file utilnumber.h.

◆ scan_uint32_native

#define scan_uint32_native (   s)    (s += 4, read_uint32_native(s-4))

Definition at line 322 of file utilnumber.h.

◆ scan_uint32be_as

#define scan_uint32be_as (   s,
  int_type 
)    (s += 4, (int_type)((s[-4]<<24)|(s[-3]<<16)|(s[-2]<<8)|s[-1]))

Definition at line 316 of file utilnumber.h.

◆ scan_uint32le_as

#define scan_uint32le_as (   s,
  int_type 
)    (s += 4, (int_type)((s[-1]<<24)|(s[-2]<<16)|(s[-3]<<8)|s[-4]))

Definition at line 319 of file utilnumber.h.

◆ slong_to_radix

#define slong_to_radix (   number,
  radix,
  uc,
  psize 
)    slong_as_radix(number, radix, uc, util_number_buffer, psize)

Definition at line 163 of file utilnumber.h.

◆ slong_to_string

#define slong_to_string (   number,
  psize 
)    slong_as_string(number, util_number_buffer, psize)

Definition at line 145 of file utilnumber.h.

◆ string_to_intlw

#define string_to_intlw (   s,
  number 
)    string_to_slong(s, number)

Definition at line 213 of file utilnumber.h.

◆ string_to_uintlw

#define string_to_uintlw (   s,
  number 
)    string_to_ulong(s, number)

Definition at line 214 of file utilnumber.h.

◆ uint16_to_alphan

#define uint16_to_alphan (   number,
  uc,
  psize 
)    uint16_as_alphan(number, uc, util_number_buffer, NUMBER_BUFFER_SIZE, psize)

Definition at line 242 of file utilnumber.h.

◆ uint16_to_roman

#define uint16_to_roman (   number,
  uc,
  psize 
)    uint16_as_roman(number, uc, util_number_buffer, psize)

Definition at line 248 of file utilnumber.h.

◆ uint32_to_alpha

#define uint32_to_alpha (   number,
  uc,
  psize 
)    uint32_as_alpha(number, uc, util_number_buffer, psize)

Definition at line 181 of file utilnumber.h.

◆ uint32_to_radix

#define uint32_to_radix (   number,
  radix,
  uc,
  psize 
)    uint32_as_radix(number, radix, uc, util_number_buffer, psize)

Definition at line 171 of file utilnumber.h.

◆ uint32_to_string

#define uint32_to_string (   number,
  psize 
)    uint32_as_string(number, util_number_buffer, psize)

Definition at line 153 of file utilnumber.h.

◆ uint64_to_alpha

#define uint64_to_alpha (   number,
  uc,
  psize 
)    uint64_as_alpha(number, uc, util_number_buffer, psize)

Definition at line 184 of file utilnumber.h.

◆ uint64_to_radix

#define uint64_to_radix (   number,
  radix,
  uc,
  psize 
)    uint64_as_radix(number, radix, uc, util_number_buffer, psize)

Definition at line 174 of file utilnumber.h.

◆ uint64_to_string

#define uint64_to_string (   number,
  psize 
)    uint64_as_string(number, util_number_buffer, psize)

Definition at line 156 of file utilnumber.h.

◆ UINT64F

#define UINT64F   "%llu"

Definition at line 22 of file utilnumber.h.

◆ UINTLW

#define UINTLW (   N)    N##UL

Definition at line 46 of file utilnumber.h.

◆ uintlw_as_alpha

#define uintlw_as_alpha (   number,
  uc,
  ibuf,
  psize 
)    ulong_as_alpha(number, uc, ibuf, psize)

Definition at line 233 of file utilnumber.h.

◆ uintlw_as_radix

#define uintlw_as_radix (   number,
  radix,
  uc,
  ibuf,
  psize 
)    ulong_as_radix(number, radix, uc, ibuf, psize)

Definition at line 228 of file utilnumber.h.

◆ uintlw_as_string

#define uintlw_as_string (   number,
  ibuf,
  psize 
)    ulong_as_string(number, ibuf, psize)

Definition at line 222 of file utilnumber.h.

◆ uintlw_t

#define uintlw_t   unsigned long

Definition at line 44 of file utilnumber.h.

◆ uintlw_to_alpha

#define uintlw_to_alpha (   number,
  uc,
  psize 
)    ulong_to_alpha(number, uc, ibuf, psize)

Definition at line 234 of file utilnumber.h.

◆ uintlw_to_radix

#define uintlw_to_radix (   number,
  radix,
  uc,
  psize 
)    ulong_to_radix(number, radix, uc, psize)

Definition at line 231 of file utilnumber.h.

◆ uintlw_to_string

#define uintlw_to_string (   number,
  psize 
)    ulong_to_string(number, psize)

Definition at line 225 of file utilnumber.h.

◆ UINTLWF

#define UINTLWF   "%lu"

Definition at line 48 of file utilnumber.h.

◆ ulong_to_alpha

#define ulong_to_alpha (   number,
  uc,
  psize 
)    ulong_as_alpha(number, uc, util_number_buffer, psize)

Definition at line 182 of file utilnumber.h.

◆ ulong_to_radix

#define ulong_to_radix (   number,
  radix,
  uc,
  psize 
)    ulong_as_radix(number, radix, uc, util_number_buffer, psize)

Definition at line 172 of file utilnumber.h.

◆ ulong_to_string

#define ulong_to_string (   number,
  psize 
)    ulong_as_string(number, util_number_buffer, psize)

Definition at line 154 of file utilnumber.h.

◆ usize_to_alpha

#define usize_to_alpha (   number,
  uc,
  psize 
)    usize_as_alpha(number, uc, util_number_buffer, psize)

Definition at line 183 of file utilnumber.h.

◆ usize_to_radix

#define usize_to_radix (   number,
  radix,
  uc,
  psize 
)    usize_as_radix(number, radix, uc, util_number_buffer, psize)

Definition at line 173 of file utilnumber.h.

◆ usize_to_string

#define usize_to_string (   number,
  psize 
)    usize_as_string(number, util_number_buffer, psize)

Definition at line 155 of file utilnumber.h.

Function Documentation

◆ alpha_to_uint32()

const char* alpha_to_uint32 ( const char *  s,
uint32_t number 
)

Definition at line 478 of file utilnumber.c.

◆ alpha_to_uint64()

const char* alpha_to_uint64 ( const char *  s,
uint64_t number 
)

Definition at line 499 of file utilnumber.c.

◆ alpha_to_ulong()

const char* alpha_to_ulong ( const char *  s,
unsigned long *  number 
)

Definition at line 485 of file utilnumber.c.

◆ alpha_to_usize()

const char* alpha_to_usize ( const char *  s,
size_t number 
)

Definition at line 492 of file utilnumber.c.

◆ alphan_to_uint16()

const char* alphan_to_uint16 ( const char *  s,
uint16_t number 
)

Definition at line 562 of file utilnumber.c.

◆ bytes_to_hex_lc()

size_t bytes_to_hex_lc ( const void input,
size_t  size,
uint8_t output 
)

Definition at line 1127 of file utilnumber.c.

◆ bytes_to_hex_uc()

size_t bytes_to_hex_uc ( const void input,
size_t  size,
uint8_t output 
)

Definition at line 1140 of file utilnumber.c.

◆ convert_to_double()

const char* convert_to_double ( const char *  s,
double *  number 
)

Definition at line 1091 of file utilnumber.c.

◆ convert_to_float()

const char* convert_to_float ( const char *  s,
float *  number 
)

Definition at line 1108 of file utilnumber.c.

◆ double_as_string()

char* double_as_string ( double  number,
int  digits,
char  nbuf[512],
size_t psize 
)

Definition at line 979 of file utilnumber.c.

◆ float_as_string()

char* float_as_string ( float  number,
int  digits,
char  nbuf[512],
size_t psize 
)

Definition at line 1010 of file utilnumber.c.

◆ hex_to_bytes()

size_t hex_to_bytes ( const void input,
size_t  size,
uint8_t output 
)

Definition at line 1153 of file utilnumber.c.

◆ int32_as_radix()

char* int32_as_radix ( int32_t  number,
int  radix,
int  uc,
char  ibuf[65],
size_t psize 
)

Definition at line 423 of file utilnumber.c.

◆ int32_as_string()

char* int32_as_string ( int32_t  number,
char  ibuf[65],
size_t psize 
)

Definition at line 328 of file utilnumber.c.

◆ int64_as_radix()

char* int64_as_radix ( int64_t  number,
int  radix,
int  uc,
char  ibuf[65],
size_t psize 
)

Definition at line 443 of file utilnumber.c.

◆ int64_as_string()

char* int64_as_string ( int64_t  number,
char  ibuf[65],
size_t psize 
)

Definition at line 340 of file utilnumber.c.

◆ print_as_hex()

void print_as_hex ( const void input,
size_t  bytes 
)

Definition at line 1172 of file utilnumber.c.

◆ radix_to_int32()

const char* radix_to_int32 ( const char *  s,
int32_t number,
int  radix 
)

Definition at line 154 of file utilnumber.c.

◆ radix_to_int64()

const char* radix_to_int64 ( const char *  s,
int64_t number,
int  radix 
)

Definition at line 172 of file utilnumber.c.

◆ radix_to_slong()

const char* radix_to_slong ( const char *  s,
long *  number,
int  radix 
)

Definition at line 163 of file utilnumber.c.

◆ radix_to_uint32()

const char* radix_to_uint32 ( const char *  s,
uint32_t number,
int  radix 
)

Definition at line 181 of file utilnumber.c.

◆ radix_to_uint64()

const char* radix_to_uint64 ( const char *  s,
uint64_t number,
int  radix 
)

Definition at line 202 of file utilnumber.c.

◆ radix_to_ulong()

const char* radix_to_ulong ( const char *  s,
unsigned long *  number,
int  radix 
)

Definition at line 188 of file utilnumber.c.

◆ radix_to_usize()

const char* radix_to_usize ( const char *  s,
size_t number,
int  radix 
)

Definition at line 195 of file utilnumber.c.

◆ roman_to_uint16()

const char* roman_to_uint16 ( const char *  s,
uint16_t number 
)

Definition at line 223 of file utilnumber.c.

◆ slong_as_radix()

char* slong_as_radix ( long  number,
int  radix,
int  uc,
char  ibuf[65],
size_t psize 
)

Definition at line 429 of file utilnumber.c.

◆ slong_as_string()

char* slong_as_string ( long  number,
char  ibuf[65],
size_t psize 
)

Definition at line 334 of file utilnumber.c.

◆ string_to_double()

const char* string_to_double ( const char *  s,
double *  number 
)

Definition at line 1045 of file utilnumber.c.

◆ string_to_float()

const char* string_to_float ( const char *  s,
float *  number 
)

Definition at line 1067 of file utilnumber.c.

◆ string_to_int32()

const char* string_to_int32 ( const char *  s,
int32_t number 
)

Definition at line 99 of file utilnumber.c.

◆ string_to_int64()

const char* string_to_int64 ( const char *  s,
int64_t number 
)

Definition at line 117 of file utilnumber.c.

◆ string_to_slong()

const char* string_to_slong ( const char *  s,
long *  number 
)

Definition at line 108 of file utilnumber.c.

◆ string_to_uint32()

const char* string_to_uint32 ( const char *  s,
uint32_t number 
)

Definition at line 126 of file utilnumber.c.

◆ string_to_uint64()

const char* string_to_uint64 ( const char *  s,
uint64_t number 
)

Definition at line 147 of file utilnumber.c.

◆ string_to_ulong()

const char* string_to_ulong ( const char *  s,
unsigned long *  number 
)

Definition at line 133 of file utilnumber.c.

◆ string_to_usize()

const char* string_to_usize ( const char *  s,
size_t number 
)

Definition at line 140 of file utilnumber.c.

◆ uint16_as_alphan()

char* uint16_as_alphan ( uint16_t  number,
int  uc,
char  ibuf[],
size_t  size,
size_t psize 
)

Definition at line 593 of file utilnumber.c.

◆ uint16_as_roman()

char* uint16_as_roman ( uint16_t  number,
int  uc,
char  ibuf[128],
size_t psize 
)

Definition at line 606 of file utilnumber.c.

◆ uint32_as_alpha()

char* uint32_as_alpha ( uint32_t  number,
int  uc,
char  ibuf[65],
size_t psize 
)

Definition at line 526 of file utilnumber.c.

◆ uint32_as_radix()

char* uint32_as_radix ( uint32_t  number,
int  radix,
int  uc,
char  ibuf[65],
size_t psize 
)

Definition at line 449 of file utilnumber.c.

◆ uint32_as_string()

char* uint32_as_string ( uint32_t  number,
char  ibuf[65],
size_t psize 
)

Definition at line 346 of file utilnumber.c.

◆ uint64_as_alpha()

char* uint64_as_alpha ( uint64_t  number,
int  uc,
char  ibuf[65],
size_t psize 
)

Definition at line 544 of file utilnumber.c.

◆ uint64_as_radix()

char* uint64_as_radix ( uint64_t  number,
int  radix,
int  uc,
char  ibuf[65],
size_t psize 
)

Definition at line 467 of file utilnumber.c.

◆ uint64_as_string()

char* uint64_as_string ( uint64_t  number,
char  ibuf[65],
size_t psize 
)

Definition at line 364 of file utilnumber.c.

◆ ulong_as_alpha()

char* ulong_as_alpha ( unsigned long  number,
int  uc,
char  ibuf[65],
size_t psize 
)

Definition at line 532 of file utilnumber.c.

◆ ulong_as_radix()

char* ulong_as_radix ( unsigned long  number,
int  radix,
int  uc,
char  ibuf[65],
size_t psize 
)

Definition at line 455 of file utilnumber.c.

◆ ulong_as_string()

char* ulong_as_string ( unsigned long  number,
char  ibuf[65],
size_t psize 
)

Definition at line 352 of file utilnumber.c.

◆ usize_as_alpha()

char* usize_as_alpha ( size_t  number,
int  uc,
char  ibuf[65],
size_t psize 
)

Definition at line 538 of file utilnumber.c.

◆ usize_as_radix()

char* usize_as_radix ( size_t  number,
int  radix,
int  uc,
char  ibuf[65],
size_t psize 
)

Definition at line 461 of file utilnumber.c.

◆ usize_as_string()

char* usize_as_string ( size_t  number,
char  ibuf[65],
size_t psize 
)

Definition at line 358 of file utilnumber.c.

Variable Documentation

◆ base10_lookup

const int base10_lookup[]
extern

Definition at line 11 of file utilnumber.c.

◆ base16_lookup

const int base16_lookup[]
extern

Definition at line 30 of file utilnumber.c.

◆ base26_lookup

const int base26_lookup[]
extern

Definition at line 49 of file utilnumber.c.

◆ base36_lookup

const int base36_lookup[]
extern

Definition at line 68 of file utilnumber.c.

◆ double_decimal_negpower10

const double double_decimal_negpower10[]
extern

Definition at line 779 of file utilnumber.c.

◆ double_decimal_power10

const double double_decimal_power10[]
extern

Definition at line 738 of file utilnumber.c.

◆ float_decimal_negpower10

const float float_decimal_negpower10[]
extern

Definition at line 813 of file utilnumber.c.

◆ float_decimal_power10

const float float_decimal_power10[]
extern

Definition at line 772 of file utilnumber.c.

◆ util_number_buffer

char util_number_buffer[ 512]
extern

Definition at line 89 of file utilnumber.c.