OS_Memory.h File Reference#include "ace/OS_Errno.h" #include "ace/Basic_Types.h" #include "ace/os_include/os_stddef.h" #include "ace/OS_NS_stdlib.h"
Include dependency graph for OS_Memory.h:
Detailed Description
Define Documentation
Value: do { POINTER = new CONSTRUCTOR; \ if (POINTER == 0) { errno = ENOMEM; return; } \ } while (0)
Value: do { POINTER = new CONSTRUCTOR; \ if (POINTER == 0) { errno = ENOMEM; } \ } while (0)
Value: do { POINTER = new CONSTRUCTOR; \ if (POINTER == 0) { errno = ENOMEM; return RET_VAL; } \ } while (0)
Value: void* gcc_will_complain_if_literal_0_is_returned = 0; \ return gcc_will_complain_if_literal_0_is_returned
Function Documentation
Return the next integer aligned to a required boundary. Efficiently align "value" up to "alignment", knowing that all such boundaries are binary powers and that we're using two's complement arithmetic. Since the alignment is a power of two its binary representation is: alignment = 0...010...0 hence alignment - 1 = 0...001...1 = T1 so the complement is: ~(alignment - 1) = 1...110...0 = T2 Notice that there is a multiple of <alignment> in the range [ , + T1], also notice that if X = ( + T1 ) & T2 then <= X <= + T1 because the & operator only changes the last bits, and since X is a multiple of <alignment> (its last bits are zero) we have found the multiple we wanted.
Return the next address aligned to a required boundary.
Return the next address aligned to a required boundary.
Variable Documentation
Generated on Mon Sep 15 07:02:56 2008 for ACE by 1.5.5 |