added tcc finite math function to avoid portability problems