All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
int.H File Reference

System integer. More...

Include dependency graph for int.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define MAXMIN(retType, type1, type2)
 

Functions

int8_t max (const int8_t s1, const int8_t s2)
 
int8_t min (const int8_t s1, const int8_t s2)
 
int16_t max (const int16_t s1, const int16_t s2)
 
int16_t min (const int16_t s1, const int16_t s2)
 
int32_t max (const int32_t s1, const int32_t s2)
 
int32_t min (const int32_t s1, const int32_t s2)
 
int64_t max (const int64_t s1, const int32_t s2)
 
int64_t min (const int64_t s1, const int32_t s2)
 
int64_t max (const int32_t s1, const int64_t s2)
 
int64_t min (const int32_t s1, const int64_t s2)
 
int64_t max (const int64_t s1, const int64_t s2)
 
int64_t min (const int64_t s1, const int64_t s2)
 
int readInt (Istream &)
 

Detailed Description

System integer.

Original source file int.H

Source files

Definition in file int.H.

Macro Definition Documentation

◆ MAXMIN

#define MAXMIN (   retType,
  type1,
  type2 
)
Value:
\
inline retType max(const type1 s1, const type2 s2) \
{ \
return (s1 > s2)? s1: s2; \
} \
\
inline retType min(const type1 s1, const type2 s2) \
{ \
return (s1 < s2)? s1: s2; \
}
int64_t min(const int64_t s1, const int64_t s2)
Definition: int.H:65
int64_t max(const int64_t s1, const int64_t s2)
Definition: int.H:65

Definition at line 46 of file int.H.