Clojure

Better primitive support for floats

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Minor 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 float-add/subtract/multiply/divide and more efficient coversion from integers to floating points numbers.

  1. floats.diff
    26/Sep/13 9:04 AM
    5 kB
    Christophe Grand
  2. floats-intrinsics.diff
    05/Feb/14 4:20 PM
    3 kB
    Christophe Grand

Activity

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated: