takagi / cl-cuda

Cl-cuda is a library to use NVIDIA CUDA in Common Lisp programs.
MIT License
280 stars 24 forks source link

Appropriately compile single and double precision float values. #60

Closed takagi closed 8 years ago

takagi commented 8 years ago

Compile single float values to be explicitly typed to avoid being compiled as double float values.

before

0.0

after

0.0f

Additionally, fix double float values which are now compiled as (double)0.0 to 0.0, double float literal.

before

(double)0.0

after

0.0