LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
c_math.h
Go to the documentation of this file.
1 /*
2  * LEGO® MINDSTORMS EV3
3  *
4  * Copyright (C) 2010-2013 The LEGO Group
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20 
21 
22 #ifndef C_MATH_H_
23 #define C_MATH_H_
24 
25 #define DegToRad(D) (D * 0.0174532925)
26 
27 #define RadToDeg(R) (R * 57.2957795)
28 
29 
30 void cMathAdd8(void);
31 
32 void cMathAdd16(void);
33 
34 void cMathAdd32(void);
35 
36 void cMathAddF(void);
37 
38 void cMathSub8(void);
39 
40 void cMathSub16(void);
41 
42 void cMathSub32(void);
43 
44 void cMathSubF(void);
45 
46 void cMathMul8(void);
47 
48 void cMathMul16(void);
49 
50 void cMathMul32(void);
51 
52 void cMathMulF(void);
53 
54 void cMathDiv8(void);
55 
56 void cMathDiv16(void);
57 
58 void cMathDiv32(void);
59 
60 void cMathDivF(void);
61 
62 void cMathOr8(void);
63 
64 void cMathOr16(void);
65 
66 void cMathOr32(void);
67 
68 void cMathAnd8(void);
69 
70 void cMathAnd16(void);
71 
72 void cMathAnd32(void);
73 
74 void cMathXor8(void);
75 
76 void cMathXor16(void);
77 
78 void cMathXor32(void);
79 
80 void cMathRl8(void);
81 
82 void cMathRl16(void);
83 
84 void cMathRl32(void);
85 
86 void cMath(void);
87 
88 #endif /* C_MATH_H_ */
void cMathSub32(void)
opSUB32
Definition: c_math.c:196
void cMathDivF(void)
opDIVF
Definition: c_math.c:466
void cMathAnd8(void)
opAND8
Definition: c_math.c:567
void cMathXor16(void)
opXOR16
Definition: c_math.c:667
void cMathMul8(void)
opMUL8
Definition: c_math.c:246
void cMathSub8(void)
opSUB8
Definition: c_math.c:146
void cMathAnd16(void)
opAND16
Definition: c_math.c:592
void cMathMul32(void)
opMUL32
Definition: c_math.c:296
void cMathAdd32(void)
opADD32
Definition: c_math.c:96
void cMath(void)
opMATH
Definition: c_math.c:925
void cMathOr16(void)
opOR16
Definition: c_math.c:517
void cMathAdd16(void)
opADD16
Definition: c_math.c:71
void cMathMul16(void)
opMUL16
Definition: c_math.c:271
void cMathSubF(void)
opSUBF
Definition: c_math.c:221
void cMathXor32(void)
opXOR32
Definition: c_math.c:692
void cMathSub16(void)
opSUB16
Definition: c_math.c:171
void cMathMulF(void)
opMULF
Definition: c_math.c:321
void cMathAnd32(void)
opAND32
Definition: c_math.c:617
void cMathAddF(void)
opADDF
Definition: c_math.c:121
void cMathDiv16(void)
opDIV16
Definition: c_math.c:386
void cMathRl32(void)
opRL32
Definition: c_math.c:767
void cMathAdd8(void)
opADD8
Definition: c_math.c:46
void cMathOr32(void)
opOR32
Definition: c_math.c:542
void cMathDiv8(void)
opDIV8
Definition: c_math.c:346
void cMathXor8(void)
opXOR8
Definition: c_math.c:642
void cMathRl16(void)
opRL16
Definition: c_math.c:742
void cMathRl8(void)
opRL8
Definition: c_math.c:717
void cMathOr8(void)
opOR8
Definition: c_math.c:492
void cMathDiv32(void)
opDIV32
Definition: c_math.c:426