Fixed Point Arithmetic  0
Fixed-point math library.
Macros

Macros

#define MFRAC_1_V   (INT16_MAX >> 8)
 mfrac representing 1. More...
 
#define MFRAC_minus1_V   (INT16_MIN >> 8)
 mfrac representing -1. More...
 
#define MFRAC_MAX_V   INT16_MAX
 Maximum (most positive) value for a frac. More...
 
#define MFRAC_MIN_V   INT16_MIN
 Minimum (most negative) value for a frac. More...
 

Detailed Description

Macro Definition Documentation

◆ MFRAC_1_V

#define MFRAC_1_V   (INT16_MAX >> 8)

mfrac representing 1.

Definition at line 174 of file types.h.

◆ MFRAC_MAX_V

#define MFRAC_MAX_V   INT16_MAX

Maximum (most positive) value for a frac.

Represents the value 1**7 - 2**(-8) or "almost 128"

Definition at line 183 of file types.h.

◆ MFRAC_MIN_V

#define MFRAC_MIN_V   INT16_MIN

Minimum (most negative) value for a frac.

Represents the value -128

Definition at line 187 of file types.h.

◆ MFRAC_minus1_V

#define MFRAC_minus1_V   (INT16_MIN >> 8)

mfrac representing -1.

Definition at line 179 of file types.h.