A.8 frac8_t
The
type is a signed 8-bit fractional type. It is able to store the variables within
the range <-1 ; 1). Its definition is as follows:
typedef char frac8_t;
The following figure shows the way in which the data is stored by this type:
Table A-8. Data storage
7
6
5
4
3
2
1
0
Value
Sign
Fractional
0.99219
0
1
1
1
1
1
1
1
7
F
-1.0
1
0
0
0
0
0
0
0
8
0
0.46875
0
0
1
1
1
1
0
0
3
C
-0.75781
1
0
0
1
1
1
1
1
9
F
A.9 frac16_t
The
type is a signed 16-bit fractional type. It is able to store the variables within
the range <-1 ; 1). Its definition is as follows:
typedef short frac16_t;
The following figure shows the way in which the data is stored by this type:
Table A-9. Data storage
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Value
Sign
Fractional
0.99997
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
7
F
F
F
-1.0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Table continues on the next page...
Appendix A Library types
GMCLIB User's Guide, Rev. 2, 10/2015
Freescale Semiconductor, Inc.
69
Содержание DSP56800E
Страница 1: ...GMCLIB User s Guide DSP56800E Document Number DSP56800EGMCLIBUG Rev 2 10 2015 ...
Страница 2: ...GMCLIB User s Guide Rev 2 10 2015 2 Freescale Semiconductor Inc ...
Страница 4: ...GMCLIB User s Guide Rev 2 10 2015 4 Freescale Semiconductor Inc ...
Страница 64: ...GMCLIB_SvmU7n GMCLIB User s Guide Rev 2 10 2015 64 Freescale Semiconductor Inc ...
Страница 78: ...GMCLIB User s Guide Rev 2 10 2015 78 Freescale Semiconductor Inc ...