OpenImageIO
 All Classes Files Friends Macros Pages
Macros
sysutil.h File Reference

Platform-independent utilities for various OS, hardware, and system resource functionality, all in namespace Sysutil. More...

#include <string>
#include "export.h"
#include "version.h"

Go to the source code of this file.

Macros

#define ALLOCA(type, size)   ((type*)alloca((size) * sizeof (type)))
 allocates memory, equivalent of C99 type var_name[size]
#define OIIO_CACHE_LINE_SIZE   64
#define OIIO_CACHE_ALIGN   OIIO_ALIGN(OIIO_CACHE_LINE_SIZE)
#define OIIO_LIKELY(x)   (x)
#define OIIO_UNLIKELY(x)   (x)

Detailed Description

Platform-independent utilities for various OS, hardware, and system resource functionality, all in namespace Sysutil.


Macro Definition Documentation

#define ALLOCA (   type,
  size 
)    ((type*)alloca((size) * sizeof (type)))

allocates memory, equivalent of C99 type var_name[size]