fastmath.h File Reference

Go to the source code of this file.

Data Structures

union  _intfloat_conv
 union to reinterpret bits in a word as an integer and a float. More...
#define fast_apply_bin_int_func(_ta, _a, _tb, _b, _op, _ret)
 Ease writing of arithmetic opcodes.
#define fast_apply_bin_func(_ta, _a, _tb, _b, _opi, _opf, _ret, _ret_typ)
 Ease writing of arithmetic opcodes.

Defines

#define BIAS_HEX   ( ((23+127)<<23) + (1<<22) )
 Magic converting bias, hex version.
#define BIAS_INT   ((long int)BIAS_HEX)
 Converting bias as an int.
#define BIAS_FLOAT   ((float)12582912.0f)
 Converting bias as a float.

Typedefs

typedef union
_intfloat_conv 
_IFC

Functions

static long int f2i (float f)
 Convert from float to int.
static float i2f (long int i)
 Convert from int to float.


Generated on Wed Feb 6 14:46:05 2008 for TinyaML by  doxygen 1.5.3