Set linkage to internal for math functions