summaryrefslogtreecommitdiff
path: root/src/libultra/gu/coss.c
blob: cd134d07bc82fe9a42b148d2806529317e57034c (plain)
1
2
3
4
5
6
7
8
#include "ultra64.h"

/**
 * Compute the sine of a hex angle and return a short, using the formula cos(x) = sin(x+pi).
 */
s16 coss(u16 x) {
    return sins(x + 0x4000);
}