PORT: feature test macro to get C99 log2()