Can I ask what type of thing you are using `long double` for?      We
haven't seen muck codebases that use (mostly just printf when it wants to
print one).   If you are expecting it to be the same as `double` why not
just use `double`?



On Fri, Nov 4, 2022 at 12: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/CAL_va28biHc85u%2BrMvqeKWw_tYes0jJE8ibGF%2BHmBTQa9%2B771w%40mail.gmail.com.

Reply via email to