Replies: 1 comment 1 reply
-
We have not had anyone ask for About polyfills, I don't think they'd be too hard to add. I added some in #213 for Have you tried out if calling libm just works for i128 emulation? Note that we're stuck at |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I faced a small challenge: my CPU code I'm trying to run on a GPU naturally maps onto
u64
andu128
, but evenu64
apparently requiresOpCapability Int64
, let aloneu128
.Now writing polyfills that work around that feels like a job that compiler should do for me, though I appreciate that it at least tells me that there isn't a native way to run that and I should think about what to do with it.
I'm wondering it it'd be possible to either have a compilation flag that automatically inserts polyfills for such types. It will be an explicit opt-in feature, but otherwise require the least amount of effort for those who do need it. I believe LLVM is capable of this.
I'm really not looking forward to writing polyfills for
u128
using a bunch ofu32
s.Beta Was this translation helpful? Give feedback.
All reactions