Details

Description

Clojure offers optimized arithmetic functions for long, int and doubles but none for floats.
Plus converting from integers (ints or longs) to floating point numbers (float or double) doesn't use the specialized bytecode.
This patch adds float-add/subtract/multiply/divide and more efficient coversion from integers to floating points numbers.

Alex Miller
added a comment - 05/Feb/14 12:29 PM I think it's unlikely the arithmetic float ops will be accepted.
However, the intrinsics changes could be useful - could you split those into a new ticket?

Alex Miller
added a comment - 05/Feb/14 5:22 PM No, but totally my fault for saying the wrong words.
I think the changes in Compiler to get access to I2D, L2D, I2F, and L2F are potentially useful (most particularly L2D) - these would make sense in a new ticket.
The other changes in Intrinsics and Numbers to support float math are unlikely to be accepted.