MISRA Discussion Forums
Deviation from rule 1.1 in mc2_types.h? - Printable Version

+- MISRA Discussion Forums (https://forum.misra.org.uk)
+-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4)
+--- Forum: MISRA-C:2004 Exemplar Suite (https://forum.misra.org.uk/forumdisplay.php?fid=116)
+--- Thread: Deviation from rule 1.1 in mc2_types.h? (/showthread.php?tid=436)



Deviation from rule 1.1 in mc2_types.h? - mhabermann - 31-12-2007

mc2_types.h states:

typedef signed long int64_t;
/* ... */
typedef unsigned long uint64_t;
/* ... */
typedef long double float128_t;

Violate these three types Rule 1.1 (C90 - compliance)?


Re: Deviation from rule 1.1 in mc2_types.h? - misra-c - 21-05-2008

These examples are compliant with C90, but would only be available on some systems. 64 bit integer types and 128 bit floating types are available on some systems. The file mc2_types.h file may need to be modified to suit your machine, but will have additional side-effects.