Replies: 1 comment 5 replies
|
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 |
|
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 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
tracked in #307
I faced a small challenge: my CPU code I'm trying to run on a GPU naturally maps onto
u64andu128, but evenu64apparently 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
u128using a bunch ofu32s.All reactions