These should be available in your programming language of choice. Arduino (used here) makes use of the avr-libc math library to perform the calculations.
It is a tinyAVR 1-series MCU, classified in GCC under avrxmega3 architecture. Recent GCC versions support it as a target, but current avr-libc (2.0.0) does not (yet?), which requires the workaround ...