https://github.com/datenwolf/linmath.h/blob/05387571f57224f8cbc2b390b423dab6b9158988/linmath.h#L599 Usage of acos() function instead of acosf() makes compiler do a float-to-double conversion and back without needs.