uint.H File Reference

System uinteger. More...

Include dependency graph for uint.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

uint8_t max (const uint8_t s1, const uint8_t s2)
 
uint8_t min (const uint8_t s1, const uint8_t s2)
 
uint16_t max (const uint16_t s1, const uint16_t s2)
 
uint16_t min (const uint16_t s1, const uint16_t s2)
 
uint32_t max (const uint32_t s1, const uint32_t s2)
 
uint32_t min (const uint32_t s1, const uint32_t s2)
 
uint64_t max (const uint64_t s1, const uint32_t s2)
 
uint64_t min (const uint64_t s1, const uint32_t s2)
 
uint64_t max (const uint32_t s1, const uint64_t s2)
 
uint64_t min (const uint32_t s1, const uint64_t s2)
 
uint64_t max (const uint64_t s1, const uint64_t s2)
 
uint64_t min (const uint64_t s1, const uint64_t s2)
 
unsigned int readUint (Istream &)
 

Detailed Description

System uinteger.

Original source file uint.H

Source files

Definition in file uint.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; \
}
uint64_t max(const uint64_t s1, const uint64_t s2)
Definition: uint.H:65
uint64_t min(const uint64_t s1, const uint64_t s2)
Definition: uint.H:65

Definition at line 46 of file uint.H.