<div dir="ltr">Hi there,<div><br></div><div>C11 introduced a couple of new constants in <float.h> called FLT_DECIMAL_DIG, DBL_DECIMAL_DIG and LDBL_DECIMAL_DIG. The attached patch adds support these. While there, it simply replaces __DECIMAL_DIG__ by an alias to __LDBL_DECIMAL_DIG__, which seems fair in my opinion.</div><div><br></div><div>I've also updated the tests. I somewhat have the feeling that the existing tests were just based on dumps of the preprocessor and have not been inspected manually. For example, in case of TCE, we even define DECIMAL_DIG to a negative number, which is obviously incorrect. Because of that, I have decided to add tests for the platform I'm most familiar with: FreeBSD. The values have been checked against FreeBSD's copy of <float.h>.</div><div><br></div><div>Thanks,<br>-- <br><div class="gmail_signature">Ed Schouten <<a href="mailto:ed@80386.nl" target="_blank">ed@80386.nl</a>></div>
</div></div>