~mingw-w64/mingw-w64/experimental

« back to all changes in this revision

Viewing changes to libw64crt/memory/aligned.h

  • Committer: ktietz70
  • Date: 2009-12-07 19:49:25 UTC
  • Revision ID: svn-v4:4407c894-4637-0410-b4f5-ada5f102cad1:experimental:1611
Rename to iCrt (ironCrate)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _W64ALIGNED_H
2
 
#define _W64ALIGNED_H
3
 
 
4
 
#define SAVED_PTR(x) ((void *)((uintptr_t) ((char *) x - sizeof (void *)) & ~(sizeof (void *) - 1)))
5
 
#define ALIGN_PTR(ptr, alignment, offset) \
6
 
  ((void *) ((((uintptr_t) ((char *) ptr + alignment + sizeof (void *) + offset)) & ~(alignment - 1)) - offset))
7
 
 
8
 
#define SZ_MINUSONE (~((size_t) 0))
9
 
 
10
 
#endif