2005/5/9

     
 

sys_h

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

sys.h File Reference

#include <stddef.h>
#include "core_threadsys.h"

Namespaces

namespace  acdk
namespace  acdk::lang
namespace  acdk::lang::sys

Defines

#define ACDK_CAST_PTR2INT(ptr)   (int)(jlong)((void*)ptr)
 internal macro to cast from pointer to a int

#define ACDK_CAST_INT2PTR(T, ival)   (T*)(jlong)(ival)
 internal macro to cast from an integer type (jlong) to a pointer.

#define aligned(size)   (((size) + (8 - 1)) & ~(8 - 1))
 returned the size with aligment.

#define ACDK_CAST_PTR2INT(ptr)   (int)(jlong)((void*)ptr)
 internal macro to cast from pointer to a int

#define ACDK_CAST_INT2PTR(T, ival)   (T*)(jlong)(ival)
 internal macro to cast from an integer type (jlong) to a pointer.

#define aligned(size)   size
 returned the size with aligment.

#define ALIGNEDSIZEOF(o)   aligned(sizeof(o))
 returns the machine aligned size


Define Documentation

#define ACDK_CAST_INT2PTR T,
ival   )     (T*)(jlong)(ival)
 

internal macro to cast from an integer type (jlong) to a pointer.

#define ACDK_CAST_PTR2INT ptr   )     (int)(jlong)((void*)ptr)
 

internal macro to cast from pointer to a int

#define aligned size   )     size
 

returned the size with aligment.

On sparc pointer should be aligned to 8 bytes.