Levi's Lisp Log

Thoughts and links relating to Lisp and computer theory

Floating Point Math in C++ Templates

For a truly evil abuse of C++ template metaprogramming, see this implementation of floating point arithmetic in C++ templates. Apparently it is ridiculously slow to compile (even compared to other C++ code, which is slow to compile to begin with), but beats a hand-coded C floating point implementation in execution speed. C++ is truly a complex and bewildering beast, but definitely powerful in a way that C just isn't.

# Posted by: Levi at 4:36 PM on Wednesday, August 3, 2005
   Comments: (0) Categories: C

Post a Comment

Name:
Email:
URL:
What is the square root of 4?:
Comment: