This is a faster implementation of cosine that utilises six static const double variables (C1, C2, C3, C4, C5, C6) to speed things up. These variables represent the coefficients of a polynomial approximation for the cosine function.
For the genuine article, check out: https://github.com/ifduyue/musl/blob/master/src/math/cos.c