1 | /* |
2 | * rt_nonfinite.h |
3 | * |
4 | * Classroom License -- for classroom instructional use only. Not for |
5 | * government, commercial, academic research, or other organizational use. |
6 | * |
7 | * Code generation for model "RaspberryPrediction". |
8 | * |
9 | * Model version : 1.13 |
10 | * Simulink Coder version : 8.11 (R2016b) 25-Aug-2016 |
11 | * C source code generated on : Tue Dec 20 13:49:58 2016 |
12 | * |
13 | * Target selection: ert.tlc |
14 | * Note: GRT includes extra infrastructure and instrumentation for prototyping |
15 | * Embedded hardware selection: ARM Compatible->ARM Cortex |
16 | * Code generation objectives: Unspecified |
17 | * Validation result: Not run |
18 | */ |
19 | |
20 | #ifndef RTW_HEADER_rt_nonfinite_h_ |
21 | #define RTW_HEADER_rt_nonfinite_h_ |
22 | #include <stddef.h> |
23 | #include "rtwtypes.h" |
24 | |
25 | extern real_T rtInf; |
26 | extern real_T rtMinusInf; |
27 | extern real_T rtNaN; |
28 | extern real32_T rtInfF; |
29 | extern real32_T rtMinusInfF; |
30 | extern real32_T rtNaNF; |
31 | extern void rt_InitInfAndNaN(size_t realSize); |
32 | extern boolean_T rtIsInf(real_T value); |
33 | extern boolean_T rtIsInfF(real32_T value); |
34 | extern boolean_T rtIsNaN(real_T value); |
35 | extern boolean_T rtIsNaNF(real32_T value); |
36 | typedef struct { |
37 | struct { |
38 | uint32_T wordH; |
39 | uint32_T wordL; |
40 | } words; |
41 | } BigEndianIEEEDouble; |
42 | |
43 | typedef struct { |
44 | struct { |
45 | uint32_T wordL; |
46 | uint32_T wordH; |
47 | } words; |
48 | } LittleEndianIEEEDouble; |
49 | |
50 | typedef struct { |
51 | union { |
52 | real32_T wordLreal; |
53 | uint32_T wordLuint; |
54 | } wordL; |
55 | } IEEESingle; |
56 | |
57 | #endif /* RTW_HEADER_rt_nonfinite_h_ */ |
58 |