This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [WebAssembly] Disassembler support


Hi Pip,

> +/* Number of decimal digits, n, such that any floating-point number in the
> +   widest supported floating type with pmax radix b digits can be rounded
> +   to a floating-point number with n decimal digits and back again without
> +   change to the value,
> +
> +    pmax * log10(b)            if b is a power of 10
> +    ceil(1 + pmax * log10(b))    otherwise
> +*/
> +#define DECIMAL_DIG_IEEE754 17

Wouldn't it just be easier to provide a value for DECIMAL_DIG if it is not
currently defined ?  That way, if it is defined, you can be sure that you
are getting the correct value for the host system.

Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]