File: rt_nonfinite.h

    1   /*
    2    * rt_nonfinite.h
    3    *
    4    * Code generation for model "Controller".
    5    *
    6    * Model version              : 1.1303
    7    * Simulink Coder version : 8.3 (R2012b) 20-Jul-2012
    8    * C++ source code generated on : Sun Jun 01 14:58:10 2014
    9    *
   10    * Target selection: grt.tlc
   11    * Note: GRT includes extra infrastructure and instrumentation for prototyping
   12    * Embedded hardware selection: Generic->32-bit x86 compatible
   13    * Code generation objectives: Unspecified
   14    * Validation result: Not run
   15    */
   16   
   17   #ifndef RTW_HEADER_rt_nonfinite_h_
   18   #define RTW_HEADER_rt_nonfinite_h_
   19   #include <stddef.h>
   20   #include "rtwtypes.h"
   21   #ifdef __cplusplus
   22   
   23   extern "C" {
   24   
   25   #endif
   26   
   27     extern real_T rtInf;
   28     extern real_T rtMinusInf;
   29     extern real_T rtNaN;
   30     extern real32_T rtInfF;
   31     extern real32_T rtMinusInfF;
   32     extern real32_T rtNaNF;
   33     extern void rt_InitInfAndNaN(size_t realSize);
   34     extern boolean_T rtIsInf(real_T value);
   35     extern boolean_T rtIsInfF(real32_T value);
   36     extern boolean_T rtIsNaN(real_T value);
   37     extern boolean_T rtIsNaNF(real32_T value);
   38     typedef struct {
   39       struct {
   40         uint32_T wordH;
   41         uint32_T wordL;
   42       } words;
   43     } BigEndianIEEEDouble;
   44   
   45     typedef struct {
   46       struct {
   47         uint32_T wordL;
   48         uint32_T wordH;
   49       } words;
   50     } LittleEndianIEEEDouble;
   51   
   52     typedef struct {
   53       union {
   54         real32_T wordLreal;
   55         uint32_T wordLuint;
   56       } wordL;
   57     } IEEESingle;
   58   
   59   #ifdef __cplusplus
   60   
   61   }                                      /* extern "C" */
   62   #endif
   63   #endif                                 /* RTW_HEADER_rt_nonfinite_h_ */
   64