Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
compiler_support.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define REALM_NOEXCEPT   noexcept
 
#define REALM_CUDA_HD
 
#define REALM_LIKELY(expr)   __builtin_expect((expr), true)
 
#define REALM_UNLIKELY(expr)   __builtin_expect((expr), false)
 
#define REALM_EXPECT(expr, expval)   __builtin_expect((expr), (expval))
 
#define REALM_ATTR_UNUSED(thing)   thing __attribute__((unused))
 
#define REALM_ATTR_WARN_UNUSED(thing)   thing __attribute__((warn_unused_result))
 
#define REALM_ATTR_PRINTF_FORMAT(thing, stridx, first)    thing __attribute__((format(printf, stridx, first)))
 
#define REALM_ATTR_NORETURN(thing)   thing __attribute__((noreturn))
 
#define REALM_ATTR_DEPRECATED(msg, thing)   thing __attribute__((deprecated(msg)))
 
#define REALM_ATTR_DEPRECATED2(msg, thing1, thing2)    thing1, thing2 __attribute__((deprecated(msg)))
 
#define REALM_ALIGNOF(type)   alignof(type)
 
#define REALM_ALIGNED_TYPE_SAMEAS(newtype, origtype, reftype)    typedef origtype __attribute__((aligned(__alignof__(reftype)))) newtype
 
#define REALM_ALIGNED_TYPE_CONST(newtype, origtype, bytes)    typedef origtype __attribute__((aligned((bytes) + 0))) newtype
 
#define REALM_HAVE_CXXABI_H
 
#define REALM_PUBLIC_API
 
#define REALM_INTERNAL_API_EXTERNAL_LINKAGE
 
#define REALM_INTERNAL_API
 

Macro Definition Documentation

◆ REALM_ALIGNED_TYPE_CONST

#define REALM_ALIGNED_TYPE_CONST (   newtype,
  origtype,
  bytes 
)     typedef origtype __attribute__((aligned((bytes) + 0))) newtype

◆ REALM_ALIGNED_TYPE_SAMEAS

#define REALM_ALIGNED_TYPE_SAMEAS (   newtype,
  origtype,
  reftype 
)     typedef origtype __attribute__((aligned(__alignof__(reftype)))) newtype

◆ REALM_ALIGNOF

#define REALM_ALIGNOF (   type)    alignof(type)

◆ REALM_ATTR_DEPRECATED

#define REALM_ATTR_DEPRECATED (   msg,
  thing 
)    thing __attribute__((deprecated(msg)))

◆ REALM_ATTR_DEPRECATED2

#define REALM_ATTR_DEPRECATED2 (   msg,
  thing1,
  thing2 
)     thing1, thing2 __attribute__((deprecated(msg)))

◆ REALM_ATTR_NORETURN

#define REALM_ATTR_NORETURN (   thing)    thing __attribute__((noreturn))

◆ REALM_ATTR_PRINTF_FORMAT

#define REALM_ATTR_PRINTF_FORMAT (   thing,
  stridx,
  first 
)     thing __attribute__((format(printf, stridx, first)))

◆ REALM_ATTR_UNUSED

#define REALM_ATTR_UNUSED (   thing)    thing __attribute__((unused))

◆ REALM_ATTR_WARN_UNUSED

#define REALM_ATTR_WARN_UNUSED (   thing)    thing __attribute__((warn_unused_result))

◆ REALM_CUDA_HD

#define REALM_CUDA_HD

◆ REALM_EXPECT

#define REALM_EXPECT (   expr,
  expval 
)    __builtin_expect((expr), (expval))

◆ REALM_HAVE_CXXABI_H

#define REALM_HAVE_CXXABI_H

◆ REALM_INTERNAL_API

#define REALM_INTERNAL_API

◆ REALM_INTERNAL_API_EXTERNAL_LINKAGE

#define REALM_INTERNAL_API_EXTERNAL_LINKAGE

◆ REALM_LIKELY

#define REALM_LIKELY (   expr)    __builtin_expect((expr), true)

◆ REALM_NOEXCEPT

#define REALM_NOEXCEPT   noexcept

◆ REALM_PUBLIC_API

#define REALM_PUBLIC_API

◆ REALM_UNLIKELY

#define REALM_UNLIKELY (   expr)    __builtin_expect((expr), false)