Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  22 Sep 2020, Frederik Wauters, Forum, INT INT32 in experim.h 
    Reply  22 Sep 2020, Konstantin Olchanski, Forum, INT INT32 in experim.h 
       Reply  09 Mar 2021, Andreas Suter, Forum, INT INT32 in experim.h 
          Reply  10 Mar 2021, Stefan Ritt, Forum, INT INT32 in experim.h 
             Reply  15 Mar 2021, Frederik Wauters, Forum, INT INT32 in experim.h 
                Reply  30 Mar 2021, Konstantin Olchanski, Forum, INT INT32 in experim.h 
Message ID: 2139     Entry time: 30 Mar 2021     In reply to: 2131
Author: Konstantin Olchanski 
Topic: Forum 
Subject: INT INT32 in experim.h 
> > 
> > /* define integer types with explicit widths */
> > #ifndef NO_INT_TYPES_DEFINE
> > typedef unsigned char      UINT8;
> > typedef char               INT8;
> > typedef unsigned short     UINT16;
> > typedef short              INT16;
> > typedef unsigned int       UINT32;
> > typedef int                INT32;
> > typedef unsigned long long UINT64;
> > typedef long long          INT64;
> > #endif
> > 

NIH at work. In C and C++ the standard fixed bit length data types are available
in #include <stdint.h> as uint8_t, uint16_t, uint32_t, uint64_t & co.

BTW, the definition of UINT32 as "unsigned int" is technically incorrect, on 16-bit machines
"int" is 16-bit wide and on some 64-bit machines "int" is 64-bit wide.

K.O.
ELOG V3.1.4-2e1708b5