11539Srgrimes#include <config.h> 21539Srgrimes#include "../printf/gmp-impl.h" 31539Srgrimes 41539Srgrimes 51539Srgrimes/* Definitions according to limb size used. */ 61539Srgrimes#if BITS_PER_MP_LIMB == 32 71539Srgrimes# define MAX_DIG_PER_LIMB 9 81539Srgrimes# define MAX_FAC_PER_LIMB 1000000000UL 91539Srgrimes#elif BITS_PER_MP_LIMB == 64 101539Srgrimes# define MAX_DIG_PER_LIMB 19 111539Srgrimes# define MAX_FAC_PER_LIMB 10000000000000000000ULL 121539Srgrimes#else 131539Srgrimes# error "mp_limb_t size " BITS_PER_MP_LIMB "not accounted for" 141539Srgrimes#endif 151539Srgrimes 161539Srgrimes 171539Srgrimes/* Local data structure. */ 181539Srgrimesconst mp_limb_t __quadmath_tens_in_limb[MAX_DIG_PER_LIMB + 1] attribute_hidden 191539Srgrimes= 201539Srgrimes{ 0, 10, 100, 211539Srgrimes 1000, 10000, 100000L, 221539Srgrimes 1000000L, 10000000L, 100000000L, 231539Srgrimes 1000000000L 241539Srgrimes#if BITS_PER_MP_LIMB > 32 251539Srgrimes , 10000000000ULL, 100000000000ULL, 261539Srgrimes 1000000000000ULL, 10000000000000ULL, 100000000000000ULL, 271539Srgrimes 1000000000000000ULL, 10000000000000000ULL, 100000000000000000ULL, 281539Srgrimes 1000000000000000000ULL, 10000000000000000000ULL 291539Srgrimes#endif 301539Srgrimes#if BITS_PER_MP_LIMB > 64 311539Srgrimes #error "Need to expand tens_in_limb table to" MAX_DIG_PER_LIMB 321539Srgrimes#endif 331539Srgrimes}; 3483047Sobrien