rt_nonfinite.h 830 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef RTW_HEADER_rt_nonfinite_h_
  2. #define RTW_HEADER_rt_nonfinite_h_
  3. #include <stddef.h>
  4. #include "rtwtypes.h"
  5. #define NOT_USING_NONFINITE_LITERALS 1
  6. extern real_T rtInf;
  7. extern real_T rtMinusInf;
  8. extern real_T rtNaN;
  9. extern real32_T rtInfF;
  10. extern real32_T rtMinusInfF;
  11. extern real32_T rtNaNF;
  12. extern void rt_InitInfAndNaN(size_t realSize);
  13. extern boolean_T rtIsInf(real_T value);
  14. extern boolean_T rtIsInfF(real32_T value);
  15. extern boolean_T rtIsNaN(real_T value);
  16. extern boolean_T rtIsNaNF(real32_T value);
  17. typedef struct {
  18. struct {
  19. uint32_T wordH;
  20. uint32_T wordL;
  21. } words;
  22. } BigEndianIEEEDouble;
  23. typedef struct {
  24. struct {
  25. uint32_T wordL;
  26. uint32_T wordH;
  27. } words;
  28. } LittleEndianIEEEDouble;
  29. typedef struct {
  30. union {
  31. real32_T wordLreal;
  32. uint32_T wordLuint;
  33. } wordL;
  34. } IEEESingle;
  35. #endif