Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Any idea why this file was listed under x86_ARCH_SOURCES? But only seems to active for ARCH_PPC?
I think the reason we noticed this being missing under wasm is because we (somewhat unusually) use fp128 for long double
compiler-rt/lib/builtins/CMakeLists.txt | ||
---|---|---|
147 ↗ | (On Diff #243345) | powixf2.c is, in fact, x86-specific. At first glance it might not look like that, but the "x" in the name powixf2 refers exclusively to x86 long double. |
compiler-rt/lib/builtins/powitf2.c | ||
16 | Please change this so it matches the other 128 long double routines: it should include fp_lib.h, it should use the condition #if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT), and it should use fp_t instead of explicitly writing out "long double". |
compiler-rt/lib/builtins/CMakeLists.txt | ||
---|---|---|
147 ↗ | (On Diff #243345) | Indeed, sorry I misread/misunderstood. |
compiler-rt/lib/builtins/powitf2.c | ||
16 | Great those macros looks like what I'm looking for. Would you mind doing the fp_t change as a followup? I don't know this codebase well enough to feel confident doing that part. |
Please change this so it matches the other 128 long double routines: it should include fp_lib.h, it should use the condition #if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT), and it should use fp_t instead of explicitly writing out "long double".