phi               444 core/gps_math.c double sin (double phi) {
phi               445 core/gps_math.c     long periode = (long) floor (phi / PIBY2 + 0.5);
phi               446 core/gps_math.c     double reduced = phi - PIBY2 * periode;
phi               459 core/gps_math.c double cos (double phi) {
phi               460 core/gps_math.c     long periode = floor (phi / PIBY2 + 0.125);
phi               461 core/gps_math.c     double reduced = phi - PIBY2 * periode;
phi                13 core/gps_math.h extern double ceil (double phi);
phi                14 core/gps_math.h extern double floor (double phi);
phi                82 core/gps_math.h extern double sin (double phi);
phi                83 core/gps_math.h extern double cos (double phi);
phi               212 lib/lua/lfmathlib.c static void sincosCordic(double phi, double *sinphi, double *cosphi) {
phi               214 lib/lua/lfmathlib.c     phi = fmod(fmod(phi, M_PI * 2.0) + (M_PI * 2.0), M_PI * 2.0);
phi               215 lib/lua/lfmathlib.c     int q = (int)(phi / (M_PI / 2.0)) + 1;
phi               217 lib/lua/lfmathlib.c         case 2: phi = M_PI - phi; break;
phi               218 lib/lua/lfmathlib.c         case 3: phi = phi - M_PI; break;
phi               219 lib/lua/lfmathlib.c         case 4: phi = M_PI * 2.0 - phi; break;
phi               222 lib/lua/lfmathlib.c     double x = INV_GAIN_CIRCLE, y = 0, z = phi;
phi               234 lib/lua/lfmathlib.c static void atanhypCordic(double x, double y, double *phi, double *hyp) {
phi               237 lib/lua/lfmathlib.c         *phi = 0;
phi               266 lib/lua/lfmathlib.c     *phi = z;
phi               434 lib/lua/lfmathlib.c     double phi, hyp;
phi               435 lib/lua/lfmathlib.c     atanhypCordic(x, y, &phi, &hyp);
phi               436 lib/lua/lfmathlib.c     newval(L, phi);
phi               453 lib/lua/lfmathlib.c     double phi, hyp;
phi               454 lib/lua/lfmathlib.c     atanhypCordic(px, py, &phi, &hyp);
phi               456 lib/lua/lfmathlib.c     newval(L, phi);
phi                87 modules/cordic_math.c static void sincosCordic(tangle t, fixed phi, fixed *sinphi, fixed *cosphi) {
phi                89 modules/cordic_math.c     phi = (phi % FULL_CIRCLE[t] + FULL_CIRCLE[t]) % FULL_CIRCLE[t];
phi                90 modules/cordic_math.c     int q = phi / QUART_CIRCLE[t] + 1;
phi                92 modules/cordic_math.c         case 2: phi = HALF_CIRCLE[t] - phi; break;
phi                93 modules/cordic_math.c         case 3: phi = phi - HALF_CIRCLE[t]; break;
phi                94 modules/cordic_math.c         case 4: phi = FULL_CIRCLE[t] - phi; break;
phi                96 modules/cordic_math.c     fixed x = INV_GAIN_CIRCLE[t], y = 0, z = phi;
phi               106 modules/cordic_math.c static void atanhypCordic(tangle t, fixed px, fixed py, fixed *phi, fixed *hyp) {
phi               129 modules/cordic_math.c         *phi = 0;
phi               140 modules/cordic_math.c         *phi = z;
phi               146 modules/cordic_math.c static fixed sinCordic(tangle t, fixed phi) {
phi               148 modules/cordic_math.c     sincosCordic(t, phi, &_sin, &_cos);
phi               152 modules/cordic_math.c static fixed cosCordic(tangle t, fixed phi) {
phi               154 modules/cordic_math.c     sincosCordic(t, phi, &_sin, &_cos);
phi               158 modules/cordic_math.c static fixed tanCordic(tangle t, fixed phi) {
phi               160 modules/cordic_math.c     sincosCordic(t, phi, &_sin, &_cos);
phi               173 modules/cordic_math.c     fixed phi, hyp;
phi               175 modules/cordic_math.c     atanhypCordic(t, _cos, x, &phi, &hyp);
phi               176 modules/cordic_math.c     return phi;
phi               180 modules/cordic_math.c     fixed phi, hyp;
phi               182 modules/cordic_math.c     atanhypCordic(t, x, _sin, &phi, &hyp);
phi               183 modules/cordic_math.c     return phi;
phi               187 modules/cordic_math.c     fixed phi, hyp;
phi               188 modules/cordic_math.c     atanhypCordic(t, CORDIC_SCALE, x, &phi, &hyp);
phi               189 modules/cordic_math.c     return phi;
phi               193 modules/cordic_math.c     fixed phi, hyp;
phi               194 modules/cordic_math.c     atanhypCordic(t, px, py, &phi, &hyp);
phi               195 modules/cordic_math.c     *theta = phi;
phi               201 modules/cordic_math.c LUALIB_API fixed sind(fixed phi) {
phi               202 modules/cordic_math.c     return sinCordic(DEG, phi);
phi               205 modules/cordic_math.c LUALIB_API fixed cosd(fixed phi) {
phi               206 modules/cordic_math.c     return cosCordic(DEG, phi);
phi               209 modules/cordic_math.c LUALIB_API fixed tand(fixed phi) {
phi               210 modules/cordic_math.c     return tanCordic(DEG, phi);
phi               234 modules/cordic_math.c LUALIB_API fixed sinr(fixed phi) {
phi               235 modules/cordic_math.c     return sinCordic(RAD, phi);
phi               238 modules/cordic_math.c LUALIB_API fixed cosr(fixed phi) {
phi               239 modules/cordic_math.c     return cosCordic(RAD, phi);
phi               242 modules/cordic_math.c LUALIB_API fixed tanr(fixed phi) {
phi               243 modules/cordic_math.c     return tanCordic(RAD, phi);
phi                75 modules/cordic_math.h LUALIB_API fixed sind(fixed phi);
phi                76 modules/cordic_math.h LUALIB_API fixed cosd(fixed phi);
phi                77 modules/cordic_math.h LUALIB_API fixed tand(fixed phi);
phi                84 modules/cordic_math.h LUALIB_API fixed sinr(fixed phi);
phi                85 modules/cordic_math.h LUALIB_API fixed cosr(fixed phi);
phi                86 modules/cordic_math.h LUALIB_API fixed tanr(fixed phi);