Mark math functions const/pure if possible.

This facilitates readnone/readonly optimizations in LLVM.

Change-Id: I9528e6428b35e3983a532155cc41ee552323bf1d
2 files changed