![]() |
CHDK_DE Vorschauversion
Trunk Rev. 5842
|
#include "limits.h"
gehe zum Quellcode dieser Datei
Makrodefinitionen | |
#define | FIXED(X) (floatToFixed((X))) |
#define | FLOAT(X) ((X) / (double)CORDIC_SCALE) |
#define | INT2FIXED(X) (intToFixed((X), 0)) |
#define | INT2FIXEDR(X) (intToFixed((X), 1)) |
#define | FIXED2INT(X) (fixedToInt((X), 0)) |
#define | FIXED2INTR(X) (fixedToInt((X), 1)) |
Typdefinitionen | |
typedef long | fixed |
typedef int | int4b |
typedef int | fcordic |
typedef int | tangle |
Aufzählungen | |
enum | fcordic { ROTATE, VECTOR } |
enum | tangle { RAD, DEG } |
enum | { FRACTIONBITS = 17, N = 17, M = 9, CORDIC_SCALE = 1 << FRACTIONBITS, CORDIC_INTEGER = ~(CORDIC_SCALE - 1), INT_SCALE = 1000 } |
Variablen | |
LUAI_DATA fixed | FULL_CIRCLE [] |
LUAI_DATA fixed | HALF_CIRCLE [] |
LUAI_DATA fixed | QUART_CIRCLE [] |
#define FIXED | ( | X) | (floatToFixed((X))) |
Definiert in Zeile 55 der Datei cordic_math.h.
#define FIXED2INT | ( | X) | (fixedToInt((X), 0)) |
Definiert in Zeile 59 der Datei cordic_math.h.
#define FIXED2INTR | ( | X) | (fixedToInt((X), 1)) |
Definiert in Zeile 60 der Datei cordic_math.h.
#define FLOAT | ( | X) | ((X) / (double)CORDIC_SCALE) |
Definiert in Zeile 56 der Datei cordic_math.h.
#define INT2FIXED | ( | X) | (intToFixed((X), 0)) |
Definiert in Zeile 57 der Datei cordic_math.h.
#define INT2FIXEDR | ( | X) | (intToFixed((X), 1)) |
Definiert in Zeile 58 der Datei cordic_math.h.
typedef int fcordic |
Definiert in Zeile 40 der Datei cordic_math.h.
typedef long fixed |
Definiert in Zeile 37 der Datei cordic_math.h.
typedef int int4b |
Definiert in Zeile 38 der Datei cordic_math.h.
typedef int tangle |
Definiert in Zeile 42 der Datei cordic_math.h.
anonymous enum |
Aufzählungswerte | |
---|---|
FRACTIONBITS | |
N | |
M | |
CORDIC_SCALE | |
CORDIC_INTEGER | |
INT_SCALE |
Definiert in Zeile 44 der Datei cordic_math.h.
enum fcordic |
enum tangle |
LUALIB_API fixed acosCordic | ( | tangle | t, |
fixed | x | ||
) |
Definiert in Zeile 196 der Datei cordic_math.c.
LUALIB_API fixed acosd | ( | fixed | x) |
Definiert in Zeile 238 der Datei cordic_math.c.
LUALIB_API fixed acosr | ( | fixed | x) |
Definiert in Zeile 271 der Datei cordic_math.c.
LUALIB_API fixed asinCordic | ( | tangle | t, |
fixed | x | ||
) |
Definiert in Zeile 189 der Datei cordic_math.c.
LUALIB_API fixed asind | ( | fixed | x) |
Definiert in Zeile 234 der Datei cordic_math.c.
LUALIB_API fixed asinr | ( | fixed | x) |
Definiert in Zeile 267 der Datei cordic_math.c.
LUALIB_API fixed atanCordic | ( | tangle | t, |
fixed | x | ||
) |
Definiert in Zeile 203 der Datei cordic_math.c.
LUALIB_API fixed atand | ( | fixed | x) |
Definiert in Zeile 242 der Datei cordic_math.c.
Definiert in Zeile 139 der Datei cordic_math.c.
LUALIB_API fixed atanr | ( | fixed | x) |
Definiert in Zeile 275 der Datei cordic_math.c.
LUALIB_API fixed cathetus | ( | fixed | x) |
LUALIB_API void convertFromQ1 | ( | fixed * | x, |
fixed * | y, | ||
int | q | ||
) |
LUALIB_API int convertToQ1 | ( | fixed * | x, |
fixed * | y | ||
) |
Definiert in Zeile 82 der Datei cordic_math.c.
Definiert in Zeile 29 der Datei cordic_math.c.
LUALIB_API fixed cosCordic | ( | tangle | t, |
fixed | phi | ||
) |
Definiert in Zeile 169 der Datei cordic_math.c.
LUALIB_API fixed cosd | ( | fixed | phi) |
Definiert in Zeile 222 der Datei cordic_math.c.
LUALIB_API fixed cosr | ( | fixed | phi) |
Definiert in Zeile 255 der Datei cordic_math.c.
LUALIB_API fixed divScaled | ( | fixed | a, |
fixed | b | ||
) |
Definiert in Zeile 78 der Datei cordic_math.c.
LUALIB_API fixed fceil | ( | fixed | a) |
Definiert in Zeile 288 der Datei cordic_math.c.
LUALIB_API fixed ffloor | ( | fixed | a) |
Definiert in Zeile 293 der Datei cordic_math.c.
LUALIB_API fixed fint | ( | fixed | a) |
Definiert in Zeile 284 der Datei cordic_math.c.
LUALIB_API int4b fixedToInt | ( | fixed | a, |
int | round | ||
) |
Definiert in Zeile 327 der Datei cordic_math.c.
LUALIB_API fixed floatToFixed | ( | double | a) |
Definiert in Zeile 303 der Datei cordic_math.c.
LUALIB_API fixed fround | ( | fixed | a) |
Definiert in Zeile 298 der Datei cordic_math.c.
LUALIB_API fixed intToFixed | ( | int4b | a, |
int | round | ||
) |
Definiert in Zeile 316 der Datei cordic_math.c.
LUALIB_API fixed muldivScaled | ( | fixed | a, |
fixed | b, | ||
fixed | c | ||
) |
Definiert in Zeile 58 der Datei cordic_math.c.
LUALIB_API fixed mulScaled | ( | fixed | a, |
fixed | b | ||
) |
Definiert in Zeile 74 der Datei cordic_math.c.
Definiert in Zeile 209 der Datei cordic_math.c.
LUALIB_API void pold | ( | fixed | px, |
fixed | py, | ||
fixed * | r, | ||
fixed * | theta | ||
) |
Definiert in Zeile 246 der Datei cordic_math.c.
LUALIB_API void polr | ( | fixed | px, |
fixed | py, | ||
fixed * | r, | ||
fixed * | theta | ||
) |
Definiert in Zeile 279 der Datei cordic_math.c.
Definiert in Zeile 181 der Datei cordic_math.c.
LUALIB_API void recd | ( | fixed | r, |
fixed | theta, | ||
fixed * | px, | ||
fixed * | py | ||
) |
Definiert in Zeile 230 der Datei cordic_math.c.
LUALIB_API void recr | ( | fixed | r, |
fixed | theta, | ||
fixed * | px, | ||
fixed * | py | ||
) |
Definiert in Zeile 263 der Datei cordic_math.c.
LUALIB_API void rotateFromQ1 | ( | tangle | t, |
fixed * | phi, | ||
int | q | ||
) |
Definiert in Zeile 116 der Datei cordic_math.c.
LUALIB_API int rotateToQ1 | ( | tangle | t, |
fixed * | phi | ||
) |
Definiert in Zeile 105 der Datei cordic_math.c.
LUALIB_API fixed sinCordic | ( | tangle | t, |
fixed | phi | ||
) |
Definiert in Zeile 163 der Datei cordic_math.c.
LUALIB_API void sincosCordic | ( | tangle | t, |
fixed | phi, | ||
fixed * | sinphi, | ||
fixed * | cosphi | ||
) |
Definiert in Zeile 129 der Datei cordic_math.c.
LUALIB_API fixed sind | ( | fixed | phi) |
Definiert in Zeile 218 der Datei cordic_math.c.
LUALIB_API fixed sinr | ( | fixed | phi) |
Definiert in Zeile 251 der Datei cordic_math.c.
LUALIB_API fixed tanCordic | ( | tangle | t, |
fixed | phi | ||
) |
Definiert in Zeile 175 der Datei cordic_math.c.
LUALIB_API fixed tand | ( | fixed | phi) |
Definiert in Zeile 226 der Datei cordic_math.c.
LUALIB_API fixed tanr | ( | fixed | phi) |
Definiert in Zeile 259 der Datei cordic_math.c.
Definiert in Zeile 88 der Datei cordic_math.h.
Definiert in Zeile 89 der Datei cordic_math.h.
Definiert in Zeile 90 der Datei cordic_math.h.