F
Frederick Gotham
I've mentioned his name a few times here lately, but over on comp.lang.c,
Hallvard B Furuseth has come up with a Log-base-2 function that serves as a
compile-time constant.
I'm not going to pretend to even begin to understand how it works, but if
anyone's interested, here's a link to the post:
http://groups.google.ie/group/comp.lang.c/msg/706324f25e4a60b0?hl=en&
Next time there's a rainy day, I might sit down with a pen and paper and
try to figure it out.
Hallvard B Furuseth has come up with a Log-base-2 function that serves as a
compile-time constant.
I'm not going to pretend to even begin to understand how it works, but if
anyone's interested, here's a link to the post:
http://groups.google.ie/group/comp.lang.c/msg/706324f25e4a60b0?hl=en&
Next time there's a rainy day, I might sit down with a pen and paper and
try to figure it out.