NativeJIT icon indicating copy to clipboard operation
NativeJIT copied to clipboard

Division Node is missing

Open christoph-hart opened this issue 8 years ago • 6 comments

I realized there is no node for division. Is there a reason for this (I am wondering because it's such a basic operation).

christoph-hart avatar Feb 23 '17 19:02 christoph-hart

Let me investigate the reason for this. If I recall correctly, the integer divide instruction had some requirements for input/output registers that were harder to satisfy. I believe the node can be added, but that we just did all of the binary operators that didn't have the register restriction. I will see how much work it would be to implement this.

As a workaround, you can call a C-function that either computes 1/x or x/y.

MikeHopcroft avatar Feb 23 '17 21:02 MikeHopcroft

Still wondering the same :)

ConsoleTVs avatar Jun 13 '18 13:06 ConsoleTVs

Any progress in division?

mackrol avatar Sep 06 '18 09:09 mackrol

A the moment, this work is prioritized lower than work we're doing in the BitFunnel repo. Could you give us an idea of how important this work is to your use case, as this might boost the priority for divide?

MikeHopcroft avatar Sep 07 '18 16:09 MikeHopcroft

I use div function for now but that's suboptimal in terms of register allocation. I'm just curious / worried whether the project is alive.

mackrol avatar Sep 07 '18 20:09 mackrol

I am also requesting support for a division node. Thanks for your work so far though!

josephjaspers avatar Nov 02 '18 14:11 josephjaspers