attractivechaos / klib

A standalone and lightweight C library
http://attractivechaos.github.io/klib/
MIT License
4.18k stars 556 forks source link

Allow the use of single-precision floating point math. #132

Open larseggert opened 5 years ago

larseggert commented 5 years ago

Need to define kfloat as float and pass -fsingle-precision-constant (or similar for other compilers.)

larseggert commented 5 years ago

Rather than -fsingle-precision-constant, define the constant as 0.77F.