Chombo + EB  3.2
Namespaces | Macros | Functions
CH_System.H File Reference

System dependent functions. More...

#include <cstring>
#include "CH_config.H"
#include "BaseNamespaceHeader.H"
#include "BaseNamespaceFooter.H"
Include dependency graph for CH_System.H:

Go to the source code of this file.

Namespaces

 CHSystem
 

Macros

#define _CH_SYSTEM_H_
 
#define BOOST_PP_STRINGIZE_(expr)   #expr
 
#define BOOST_PP_STRINGIZE(expr)   BOOST_PP_STRINGIZE_(expr)
 
#define BOOST_PRAGMA(args)   _Pragma(BOOST_PP_STRINGIZE(args))
 
#define BOOST_BUILTIN_ASSUME(expr)   do { if (!(expr)) __builtin_unreachable(); } while (0) \
 
#define BOOST_BUILTIN_ASSUME_ALIGNED(ptr, align)
 
#define BOOST_DEMAND_VECTORIZATION   BOOST_PRAGMA(GCC ivdep) \
 

Functions

int CHSystem::fileExists (const char *const a_filename)
 Check if a file exists. More...
 
int CHSystem::memalign (void **a_memptr, size_t a_alignment, size_t a_size)
 Allocate aligned memory. More...
 
int CHSystem::popcnt (unsigned i)
 

Detailed Description

System dependent functions.

Macro Definition Documentation

◆ _CH_SYSTEM_H_

#define _CH_SYSTEM_H_

◆ BOOST_PP_STRINGIZE_

#define BOOST_PP_STRINGIZE_ (   expr)    #expr

◆ BOOST_PP_STRINGIZE

#define BOOST_PP_STRINGIZE (   expr)    BOOST_PP_STRINGIZE_(expr)

◆ BOOST_PRAGMA

#define BOOST_PRAGMA (   args)    _Pragma(BOOST_PP_STRINGIZE(args))

◆ BOOST_BUILTIN_ASSUME

#define BOOST_BUILTIN_ASSUME (   expr)    do { if (!(expr)) __builtin_unreachable(); } while (0) \

◆ BOOST_BUILTIN_ASSUME_ALIGNED

#define BOOST_BUILTIN_ASSUME_ALIGNED (   ptr,
  align 
)
Value:
{ \
ptr = reinterpret_cast<decltype(ptr)>( \
__builtin_assume_aligned(ptr, align) \
); \
} \

◆ BOOST_DEMAND_VECTORIZATION

#define BOOST_DEMAND_VECTORIZATION   BOOST_PRAGMA(GCC ivdep) \