I don't believe there is an option to make long double 64 bits, since that would be an ABI-breaking change. If you're recompiling all your code, though, I suppose you could use a hack like using a macro to redefine `long double` to just `double`.
On Fri, Nov 4, 2022 at 2:20 PM Piotr Grochowski < [email protected]> wrote: > > sizeof(long double) > 16 > LDBL_MANT_DIG > 113 > > This completely throws me off since I use long double in my code expecting > it to be native (for example, on Digital Mars on Windows, sizeof(long > double) is 10, and LDBL_MANT_DIG is 64). And quadruple precision is not > native in many computers. This certainly should be warned about in > https://emscripten.org/docs/porting/guidelines/portability_guidelines.html#code-that-compiles-but-might-run-slowly > . So how do I get long double to be double precision instead (sizeof(long > double) being 8, and LDBL_MANT_DIG being 53)? > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/23b05bb2-1164-4885-9eb4-cacd7d337f3dn%40googlegroups.com > <https://groups.google.com/d/msgid/emscripten-discuss/23b05bb2-1164-4885-9eb4-cacd7d337f3dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAJZD_EXUZKf9q3L4SsqXFR4zbFPZY7TQZwvh5ySDr2icKKYuzA%40mail.gmail.com.
