Tizen RT Libs&Environment  v1.1 D4
FIXEDMATH
Collaboration diagram for FIXEDMATH:

Macros

#define b8HUNDRED   0x6400 /* 100 */
 
#define b8TEN   0x0a00 /* 10 */
 
#define b8ONE   0x0100 /* 1 */
 
#define b8HALF   0x0080 /* 0.5 */
 
#define b8ONETENTH   0x001a /* 0.1 (acutally 0.1015625) */
 
#define b8ONEHUNDRTH   0x0003 /* 0.01 (actualy 0.0117198765) */
 
#define b8HALFPI   0x0192 /* 1.5703125 */
 
#define b8PI   0x0324 /* 3.1406250 */
 
#define b8TWOPI   0x0648 /* 6.2812500 */
 
#define b8MAX   0x7fff /* Max value of b8_t */
 
#define ub8MAX   0xffff /* Max value of rb8_t */
 
#define b8MIN   0x8000 /* Min value of b8_t */
 
#define ub8MIN   0x0000 /* Min value of ub8_t */
 
#define b16THOUSAND   0x03e80000 /* 1000 */
 
#define b16HUNDRED   0x00640000 /* 100 */
 
#define b16TEN   0x000a0000 /* 10 */
 
#define b16ONE   0x00010000 /* 1 */
 
#define b16HALF   0x00008000 /* 0.5 */
 
#define b16ONETENTH   0x0000199a /* 0.1 (actually 0.100006..) */
 
#define b16ONEHUNDRTH   0x0000028f /* 0.01 (actually 0.0099945..) */
 
#define b16ONETHOUSTH   0x00000042 /* 0.001 (actually 0.000100708..) */
 
#define b16HALFPI   0x0001921f /* 1.57078552246 */
 
#define b16PI   0x0003243f /* 3.14158630371 */
 
#define b16TWOPI   0x0006487b /* 6.28312683105 */
 
#define b16MAX   0x7fffffff /* Max value of b16_t */
 
#define ub16MAX   0xffffffff /* Max value of ub16_t */
 
#define b16MIN   0x80000000 /* Min value of b16_t */
 
#define ub16MIN   0x00000000 /* Min value of ub16_t */
 
#define b32MILLION   0x000f424000000000 /* 1000000 */
 
#define b32THOUSAND   0x000003e800000000 /* 1000 */
 
#define b32HUNDRED   0x0000006400000000 /* 100 */
 
#define b32TEN   0x0000000a00000000 /* 10 */
 
#define b32ONE   0x0000000100000000 /* 1 */
 
#define b32HALF   0x0000000080000000 /* 0.5 */
 
#define b32ONETENTH   0x000000001999999a /* 0.1 */
 
#define b32ONEHUNDRTH   0x00000000028f5c29 /* 0.01 */
 
#define b32ONETHOUSTH   0x0000000000418937 /* 0.001 */
 
#define b32ONETENTHOU   0x0000000000068db9 /* 0.0001 */
 
#define b32HALFPI   0x00000001921eb9ff /* 1.57078134990 */
 
#define b32PI   0x00000003243f6b4f /* 3.14159269980 */
 
#define b32TWOPI   0x00000006487ae7fd /* 6.28312539984 */
 
#define b32MAX   0x7fffffffffffffff /* Max value of b16_t */
 
#define ub32MAX   0xffffffffffffffff /* Max value of ub16_t */
 
#define b32MIN   0x8000000000000000 /* Min value of b16_t */
 
#define ub32MIN   0x0000000000000000 /* Min value of ub16_t */
 
#define b8tob16(b)   (((b16_t)(b)) << 8)
 
#define ub8toub16(b)   (((ub16_t)(b)) << 8)
 
#define b16tob8(b)   (b8_t)(((b)+0x0080)>>8)
 
#define ub16toub8(b)   (ub8_t)(((b)+0x0080)>>8)
 
#define b8tob32(b)   (((b32_t)(b)) << 24)
 
#define ub8toub32(b)   (((ub32_t)(b)) << 24)
 
#define b16tob32(b)   (((b32_t)(b)) << 16)
 
#define ub16toub32(b)   (((ub32_t)(b)) << 16)
 
#define b32tob16(b)   (b16_t)(((b) + 0x0000000000008000)>>16)
 
#define ub32toub16(b)   (ub16_t)(((b) + 0x0000000000008000)>>16)
 
#define b32tob8(b)   (b8_t)(((b) + 0x0000000000000080)>>8)
 
#define b8toi(a)   ((a) >> 8) /* Conversion to integer */
 
#define itob8(i)   (((b8_t)(i)) << 8) /* Conversion from integer */
 
#define uitoub8(i)   (((ub8_t)(i)) << 8) /* Conversion from unsigned integer */
 
#define b8tof(b)   (((float)b)/256.0) /* Conversion to float */
 
#define ftob8(f)   (b8_t)(((f)*256.0)) /* Conversion from float */
 
#define b8trunc(a)   ((a) & 0xff00) /* Truncate to integer b8 */
 
#define b8round(a)   (((a)+0x0080) & 0xff00) /* Round to integer b8 */
 
#define b8frac(a)   ((a) & 0x00ff) /* Take fractional part */
 
#define ub8inv(b)   (0x8000/((b)>>1)) /* Inversion (b8=b15/b7) */
 
#define b8inv(b)   (0x4000/((b)>>2)) /* Inversion (b8=b14/b6) */
 
#define b8addb8(a, b)   ((a)+(b)) /* Addition */
 
#define b8addi(a, i)   ((a)+itob8(i)) /* Add integer from b16 */
 
#define b8subb8(a, b)   ((a)-(b)) /* Subtraction */
 
#define b8subi(a, i)   ((a)-itob8(i)) /* Subtract integer from b8 */
 
#define b8mulb8(a, b)   b16tob8((b16_t)(a)*(b16_t)(b) /* Muliplication */
 
#define ub8mulub8(a, b)   ub16toub8((ub16_t)(a)*(ub16_t)(b) /* Muliplication */
 
#define b8muli(a, i)   ((a)*(i)) /* Simple multiplication by integer */
 
#define b8sqr(a)   b8mulb8(a, a) /* Square */
 
#define ub8sqr(a)   ub8mulub8(a, a) /* Square */
 
#define b8divb8(a, b)   b8tob16(a)/(b16_t)(b) /* Division */
 
#define ub8divub8(a, b)   ub8toub16(a)/(ub16_t)(b) /* Division */
 
#define b8divi(a, i)   ((a)/(i)) /* Simple division by integer */
 
#define b8idiv(i, j)   (((i)<<8)/j) /* Division of integer, b8 result */
 
#define b16toi(a)   ((a) >> 16) /* Conversion to integer */
 
#define itob16(i)   (((b16_t)(i)) << 16) /* Conversion from integer */
 
#define uitoub16(i)   (((ub16_t)(i)) << 16) /* Conversion from unsigned integer */
 
#define b16tof(b)   (((float)b)/65536.0) /* Conversion to float */
 
#define ftob16(f)   (b16_t)(((f)*65536.0)) /* Conversion from float */
 
#define b16trunc(a)   ((a) & 0xffff0000) /* Truncate to integer */
 
#define b16round(a)   (((a)+0x00008000) & 0xffff0000)
 
#define b16frac(a)   ((a) & 0x0000ffff) /* Take fractional part */
 
#define ub16inv(b)   (0x80000000/((b)>>1)) /* Inversion (b16=b31/b15) */
 
#define b16inv(b)   (0x40000000/((b)>>2)) /* Inversion (b16=b30/b14) */
 
#define b16addb16(a, b)   ((a)+(b)) /* Addition */
 
#define b16addi(a, i)   ((a)+itob16(i)) /* Add integer to b16 */
 
#define b16subb16(a, b)   ((a)-(b)) /* Subtraction */
 
#define b16subi(a, i)   ((a)-itob16(i)) /* Subtract integer from b16 */
 
#define b16muli(a, i)   ((a)*(i)) /* Simple multiplication by integer */
 
#define b16divi(a, i)   ((a)/(i)) /* Simple division by integer */
 
#define b16idiv(i, j)   (((i)<<16)/j) /* Division of integer, b16 result */
 
#define b16mulb16(a, b)   b32tob16((b32_t)(a)*(b32_t)(b))
 
#define ub16mulub16(a, b)   ub32toub16((ub32_t)(a)*(ub32_t)(b))
 
#define b16sqr(a)   b16mulb16(a, a)
 
#define ub16sqr(a)   ub16mulub16(a, a)
 
#define b16divb16(a, b)   (b16_t)(b16tob32(a)/(b32_t)(b))
 
#define ub16divub16(a, b)   (ub16_t)(ub16toub32(a)/(ub32_t)(b))
 
#define EXTERN   extern
 

Typedefs

typedef int16_t b8_t
 
typedef uint16_t ub8_t
 
typedef int32_t b16_t
 
typedef uint32_t ub16_t
 
typedef int64_t b32_t
 
typedef uint64_t ub32_t
 

Functions

b16_t b16sin (b16_t rad)
 Trigonometric sine operation. More...
 
b16_t b16cos (b16_t rad)
 Trigonometric cosine operation. More...
 
b16_t b16atan2 (b16_t y, b16_t x)
 Trigonometric tangent operation. More...
 

Detailed Description

Macro Definition Documentation

◆ b16addb16

#define b16addb16 (   a,
 
)    ((a)+(b)) /* Addition */

Definition at line 190 of file fixedmath.h.

◆ b16addi

#define b16addi (   a,
 
)    ((a)+itob16(i)) /* Add integer to b16 */

Definition at line 191 of file fixedmath.h.

◆ b16divb16

#define b16divb16 (   a,
 
)    (b16_t)(b16tob32(a)/(b32_t)(b))

Definition at line 211 of file fixedmath.h.

◆ b16divi

#define b16divi (   a,
 
)    ((a)/(i)) /* Simple division by integer */

Definition at line 195 of file fixedmath.h.

◆ b16frac

#define b16frac (   a)    ((a) & 0x0000ffff) /* Take fractional part */

Definition at line 184 of file fixedmath.h.

◆ b16HALF

#define b16HALF   0x00008000 /* 0.5 */

Definition at line 93 of file fixedmath.h.

◆ b16HALFPI

#define b16HALFPI   0x0001921f /* 1.57078552246 */

Definition at line 97 of file fixedmath.h.

◆ b16HUNDRED

#define b16HUNDRED   0x00640000 /* 100 */

Definition at line 90 of file fixedmath.h.

◆ b16idiv

#define b16idiv (   i,
 
)    (((i)<<16)/j) /* Division of integer, b16 result */

Definition at line 196 of file fixedmath.h.

◆ b16inv

#define b16inv (   b)    (0x40000000/((b)>>2)) /* Inversion (b16=b30/b14) */

Definition at line 189 of file fixedmath.h.

◆ b16MAX

#define b16MAX   0x7fffffff /* Max value of b16_t */

Definition at line 101 of file fixedmath.h.

◆ b16MIN

#define b16MIN   0x80000000 /* Min value of b16_t */

Definition at line 103 of file fixedmath.h.

◆ b16mulb16

#define b16mulb16 (   a,
 
)    b32tob16((b32_t)(a)*(b32_t)(b))

Definition at line 201 of file fixedmath.h.

◆ b16muli

#define b16muli (   a,
 
)    ((a)*(i)) /* Simple multiplication by integer */

Definition at line 194 of file fixedmath.h.

◆ b16ONE

#define b16ONE   0x00010000 /* 1 */

Definition at line 92 of file fixedmath.h.

◆ b16ONEHUNDRTH

#define b16ONEHUNDRTH   0x0000028f /* 0.01 (actually 0.0099945..) */

Definition at line 95 of file fixedmath.h.

◆ b16ONETENTH

#define b16ONETENTH   0x0000199a /* 0.1 (actually 0.100006..) */

Definition at line 94 of file fixedmath.h.

◆ b16ONETHOUSTH

#define b16ONETHOUSTH   0x00000042 /* 0.001 (actually 0.000100708..) */

Definition at line 96 of file fixedmath.h.

◆ b16PI

#define b16PI   0x0003243f /* 3.14158630371 */

Definition at line 98 of file fixedmath.h.

◆ b16round

#define b16round (   a)    (((a)+0x00008000) & 0xffff0000)

Definition at line 183 of file fixedmath.h.

◆ b16sqr

#define b16sqr (   a)    b16mulb16(a, a)

Definition at line 206 of file fixedmath.h.

◆ b16subb16

#define b16subb16 (   a,
 
)    ((a)-(b)) /* Subtraction */

Definition at line 192 of file fixedmath.h.

◆ b16subi

#define b16subi (   a,
 
)    ((a)-itob16(i)) /* Subtract integer from b16 */

Definition at line 193 of file fixedmath.h.

◆ b16TEN

#define b16TEN   0x000a0000 /* 10 */

Definition at line 91 of file fixedmath.h.

◆ b16THOUSAND

#define b16THOUSAND   0x03e80000 /* 1000 */

Definition at line 89 of file fixedmath.h.

◆ b16tob32

#define b16tob32 (   b)    (((b32_t)(b)) << 16)

Definition at line 135 of file fixedmath.h.

◆ b16tob8

#define b16tob8 (   b)    (b8_t)(((b)+0x0080)>>8)

Definition at line 129 of file fixedmath.h.

◆ b16tof

#define b16tof (   b)    (((float)b)/65536.0) /* Conversion to float */

Definition at line 180 of file fixedmath.h.

◆ b16toi

#define b16toi (   a)    ((a) >> 16) /* Conversion to integer */

Definition at line 177 of file fixedmath.h.

◆ b16trunc

#define b16trunc (   a)    ((a) & 0xffff0000) /* Truncate to integer */

Definition at line 182 of file fixedmath.h.

◆ b16TWOPI

#define b16TWOPI   0x0006487b /* 6.28312683105 */

Definition at line 99 of file fixedmath.h.

◆ b32HALF

#define b32HALF   0x0000000080000000 /* 0.5 */

Definition at line 111 of file fixedmath.h.

◆ b32HALFPI

#define b32HALFPI   0x00000001921eb9ff /* 1.57078134990 */

Definition at line 116 of file fixedmath.h.

◆ b32HUNDRED

#define b32HUNDRED   0x0000006400000000 /* 100 */

Definition at line 108 of file fixedmath.h.

◆ b32MAX

#define b32MAX   0x7fffffffffffffff /* Max value of b16_t */

Definition at line 120 of file fixedmath.h.

◆ b32MILLION

#define b32MILLION   0x000f424000000000 /* 1000000 */

Definition at line 106 of file fixedmath.h.

◆ b32MIN

#define b32MIN   0x8000000000000000 /* Min value of b16_t */

Definition at line 122 of file fixedmath.h.

◆ b32ONE

#define b32ONE   0x0000000100000000 /* 1 */

Definition at line 110 of file fixedmath.h.

◆ b32ONEHUNDRTH

#define b32ONEHUNDRTH   0x00000000028f5c29 /* 0.01 */

Definition at line 113 of file fixedmath.h.

◆ b32ONETENTH

#define b32ONETENTH   0x000000001999999a /* 0.1 */

Definition at line 112 of file fixedmath.h.

◆ b32ONETENTHOU

#define b32ONETENTHOU   0x0000000000068db9 /* 0.0001 */

Definition at line 115 of file fixedmath.h.

◆ b32ONETHOUSTH

#define b32ONETHOUSTH   0x0000000000418937 /* 0.001 */

Definition at line 114 of file fixedmath.h.

◆ b32PI

#define b32PI   0x00000003243f6b4f /* 3.14159269980 */

Definition at line 117 of file fixedmath.h.

◆ b32TEN

#define b32TEN   0x0000000a00000000 /* 10 */

Definition at line 109 of file fixedmath.h.

◆ b32THOUSAND

#define b32THOUSAND   0x000003e800000000 /* 1000 */

Definition at line 107 of file fixedmath.h.

◆ b32tob16

#define b32tob16 (   b)    (b16_t)(((b) + 0x0000000000008000)>>16)

Definition at line 137 of file fixedmath.h.

◆ b32tob8

#define b32tob8 (   b)    (b8_t)(((b) + 0x0000000000000080)>>8)

Definition at line 139 of file fixedmath.h.

◆ b32TWOPI

#define b32TWOPI   0x00000006487ae7fd /* 6.28312539984 */

Definition at line 118 of file fixedmath.h.

◆ b8addb8

#define b8addb8 (   a,
 
)    ((a)+(b)) /* Addition */

Definition at line 159 of file fixedmath.h.

◆ b8addi

#define b8addi (   a,
 
)    ((a)+itob8(i)) /* Add integer from b16 */

Definition at line 160 of file fixedmath.h.

◆ b8divb8

#define b8divb8 (   a,
 
)    b8tob16(a)/(b16_t)(b) /* Division */

Definition at line 168 of file fixedmath.h.

◆ b8divi

#define b8divi (   a,
 
)    ((a)/(i)) /* Simple division by integer */

Definition at line 170 of file fixedmath.h.

◆ b8frac

#define b8frac (   a)    ((a) & 0x00ff) /* Take fractional part */

Definition at line 153 of file fixedmath.h.

◆ b8HALF

#define b8HALF   0x0080 /* 0.5 */

Definition at line 77 of file fixedmath.h.

◆ b8HALFPI

#define b8HALFPI   0x0192 /* 1.5703125 */

Definition at line 80 of file fixedmath.h.

◆ b8HUNDRED

#define b8HUNDRED   0x6400 /* 100 */

Definition at line 74 of file fixedmath.h.

◆ b8idiv

#define b8idiv (   i,
 
)    (((i)<<8)/j) /* Division of integer, b8 result */

Definition at line 171 of file fixedmath.h.

◆ b8inv

#define b8inv (   b)    (0x4000/((b)>>2)) /* Inversion (b8=b14/b6) */

Definition at line 158 of file fixedmath.h.

◆ b8MAX

#define b8MAX   0x7fff /* Max value of b8_t */

Definition at line 84 of file fixedmath.h.

◆ b8MIN

#define b8MIN   0x8000 /* Min value of b8_t */

Definition at line 86 of file fixedmath.h.

◆ b8mulb8

#define b8mulb8 (   a,
 
)    b16tob8((b16_t)(a)*(b16_t)(b) /* Muliplication */

Definition at line 163 of file fixedmath.h.

◆ b8muli

#define b8muli (   a,
 
)    ((a)*(i)) /* Simple multiplication by integer */

Definition at line 165 of file fixedmath.h.

◆ b8ONE

#define b8ONE   0x0100 /* 1 */

Definition at line 76 of file fixedmath.h.

◆ b8ONEHUNDRTH

#define b8ONEHUNDRTH   0x0003 /* 0.01 (actualy 0.0117198765) */

Definition at line 79 of file fixedmath.h.

◆ b8ONETENTH

#define b8ONETENTH   0x001a /* 0.1 (acutally 0.1015625) */

Definition at line 78 of file fixedmath.h.

◆ b8PI

#define b8PI   0x0324 /* 3.1406250 */

Definition at line 81 of file fixedmath.h.

◆ b8round

#define b8round (   a)    (((a)+0x0080) & 0xff00) /* Round to integer b8 */

Definition at line 152 of file fixedmath.h.

◆ b8sqr

#define b8sqr (   a)    b8mulb8(a, a) /* Square */

Definition at line 166 of file fixedmath.h.

◆ b8subb8

#define b8subb8 (   a,
 
)    ((a)-(b)) /* Subtraction */

Definition at line 161 of file fixedmath.h.

◆ b8subi

#define b8subi (   a,
 
)    ((a)-itob8(i)) /* Subtract integer from b8 */

Definition at line 162 of file fixedmath.h.

◆ b8TEN

#define b8TEN   0x0a00 /* 10 */

Definition at line 75 of file fixedmath.h.

◆ b8tob16

#define b8tob16 (   b)    (((b16_t)(b)) << 8)

Definition at line 127 of file fixedmath.h.

◆ b8tob32

#define b8tob32 (   b)    (((b32_t)(b)) << 24)

Definition at line 133 of file fixedmath.h.

◆ b8tof

#define b8tof (   b)    (((float)b)/256.0) /* Conversion to float */

Definition at line 149 of file fixedmath.h.

◆ b8toi

#define b8toi (   a)    ((a) >> 8) /* Conversion to integer */

Definition at line 146 of file fixedmath.h.

◆ b8trunc

#define b8trunc (   a)    ((a) & 0xff00) /* Truncate to integer b8 */

Definition at line 151 of file fixedmath.h.

◆ b8TWOPI

#define b8TWOPI   0x0648 /* 6.2812500 */

Definition at line 82 of file fixedmath.h.

◆ EXTERN

#define EXTERN   extern

Definition at line 237 of file fixedmath.h.

◆ ftob16

#define ftob16 (   f)    (b16_t)(((f)*65536.0)) /* Conversion from float */

Definition at line 181 of file fixedmath.h.

◆ ftob8

#define ftob8 (   f)    (b8_t)(((f)*256.0)) /* Conversion from float */

Definition at line 150 of file fixedmath.h.

◆ itob16

#define itob16 (   i)    (((b16_t)(i)) << 16) /* Conversion from integer */

Definition at line 178 of file fixedmath.h.

◆ itob8

#define itob8 (   i)    (((b8_t)(i)) << 8) /* Conversion from integer */

Definition at line 147 of file fixedmath.h.

◆ ub16divub16

#define ub16divub16 (   a,
 
)    (ub16_t)(ub16toub32(a)/(ub32_t)(b))

Definition at line 212 of file fixedmath.h.

◆ ub16inv

#define ub16inv (   b)    (0x80000000/((b)>>1)) /* Inversion (b16=b31/b15) */

Definition at line 188 of file fixedmath.h.

◆ ub16MAX

#define ub16MAX   0xffffffff /* Max value of ub16_t */

Definition at line 102 of file fixedmath.h.

◆ ub16MIN

#define ub16MIN   0x00000000 /* Min value of ub16_t */

Definition at line 104 of file fixedmath.h.

◆ ub16mulub16

#define ub16mulub16 (   a,
 
)    ub32toub16((ub32_t)(a)*(ub32_t)(b))

Definition at line 202 of file fixedmath.h.

◆ ub16sqr

#define ub16sqr (   a)    ub16mulub16(a, a)

Definition at line 207 of file fixedmath.h.

◆ ub16toub32

#define ub16toub32 (   b)    (((ub32_t)(b)) << 16)

Definition at line 136 of file fixedmath.h.

◆ ub16toub8

#define ub16toub8 (   b)    (ub8_t)(((b)+0x0080)>>8)

Definition at line 130 of file fixedmath.h.

◆ ub32MAX

#define ub32MAX   0xffffffffffffffff /* Max value of ub16_t */

Definition at line 121 of file fixedmath.h.

◆ ub32MIN

#define ub32MIN   0x0000000000000000 /* Min value of ub16_t */

Definition at line 123 of file fixedmath.h.

◆ ub32toub16

#define ub32toub16 (   b)    (ub16_t)(((b) + 0x0000000000008000)>>16)

Definition at line 138 of file fixedmath.h.

◆ ub8divub8

#define ub8divub8 (   a,
 
)    ub8toub16(a)/(ub16_t)(b) /* Division */

Definition at line 169 of file fixedmath.h.

◆ ub8inv

#define ub8inv (   b)    (0x8000/((b)>>1)) /* Inversion (b8=b15/b7) */

Definition at line 157 of file fixedmath.h.

◆ ub8MAX

#define ub8MAX   0xffff /* Max value of rb8_t */

Definition at line 85 of file fixedmath.h.

◆ ub8MIN

#define ub8MIN   0x0000 /* Min value of ub8_t */

Definition at line 87 of file fixedmath.h.

◆ ub8mulub8

#define ub8mulub8 (   a,
 
)    ub16toub8((ub16_t)(a)*(ub16_t)(b) /* Muliplication */

Definition at line 164 of file fixedmath.h.

◆ ub8sqr

#define ub8sqr (   a)    ub8mulub8(a, a) /* Square */

Definition at line 167 of file fixedmath.h.

◆ ub8toub16

#define ub8toub16 (   b)    (((ub16_t)(b)) << 8)

Definition at line 128 of file fixedmath.h.

◆ ub8toub32

#define ub8toub32 (   b)    (((ub32_t)(b)) << 24)

Definition at line 134 of file fixedmath.h.

◆ uitoub16

#define uitoub16 (   i)    (((ub16_t)(i)) << 16) /* Conversion from unsigned integer */

Definition at line 179 of file fixedmath.h.

◆ uitoub8

#define uitoub8 (   i)    (((ub8_t)(i)) << 8) /* Conversion from unsigned integer */

Definition at line 148 of file fixedmath.h.

Typedef Documentation

◆ b16_t

typedef int32_t b16_t

Definition at line 221 of file fixedmath.h.

◆ b32_t

typedef int64_t b32_t

Definition at line 224 of file fixedmath.h.

◆ b8_t

typedef int16_t b8_t

Definition at line 219 of file fixedmath.h.

◆ ub16_t

typedef uint32_t ub16_t

Definition at line 222 of file fixedmath.h.

◆ ub32_t

typedef uint64_t ub32_t

Definition at line 225 of file fixedmath.h.

◆ ub8_t

typedef uint16_t ub8_t

Definition at line 220 of file fixedmath.h.

Function Documentation

◆ b16atan2()

b16_t b16atan2 ( b16_t  y,
b16_t  x 
)

Trigonometric tangent operation.

#include <fixedmath.h>
calculates the arctangent of y/x

Parameters
[in]ya radian y value
[in]xa radian x value
Returns
the result of tangent operation
Since
Tizen RT v1.1

◆ b16cos()

b16_t b16cos ( b16_t  rad)

Trigonometric cosine operation.

#include <fixedmath.h>

Parameters
[in]rada radian value
Returns
the result of cosine operation
Since
Tizen RT v1.1

◆ b16sin()

b16_t b16sin ( b16_t  rad)

Trigonometric sine operation.

#include <fixedmath.h>

Parameters
[in]rada radian value
Returns
the result of sine operation
Since
Tizen RT v1.1