Details

Type: Enhancement

Status: Open

Priority: Minor

Resolution: Unresolved

Affects Version/s: Release 1.5

Fix Version/s: None

Component/s: None

Labels:

Patch:Code
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 floatadd/subtract/multiply/divide and more efficient coversion from integers to floating points numbers.
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?