This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] [WebAssembly] Disassembler support
- From: Nick Clifton <nickc at redhat dot com>
- To: Pip Cet <pipcet at gmail dot com>, Simon Marchi <simon dot marchi at ericsson dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 7 Apr 2017 10:32:51 +0100
- Subject: Re: [PATCH] [WebAssembly] Disassembler support
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=nickc at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com A530781243
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com A530781243
- References: <a61586e5-c3b0-df91-9086-1f60236d40a4@ericsson.com> <CAOqdjBej2WFigorAJ8uL8maWkczc7SixuXykL2Qxsdj_5Z8azg@mail.gmail.com>
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