diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-07-04 02:32:44 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-07-04 02:32:44 +0000 |
commit | a7bde0ac21a716bc1cbf08e1bc1545cce898b3fe (patch) | |
tree | 154c9b217a0d8c6b8e57791c0609e54ed3efa0a9 /externals/grill/flext/source/flsupport.h | |
parent | 59fa798c7217f1ef0262786bcb71bab104bceb8f (diff) |
""
svn path=/trunk/; revision=745
Diffstat (limited to 'externals/grill/flext/source/flsupport.h')
-rw-r--r-- | externals/grill/flext/source/flsupport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h index 9a886a17..457ed4d0 100644 --- a/externals/grill/flext/source/flsupport.h +++ b/externals/grill/flext/source/flsupport.h @@ -84,6 +84,8 @@ public: static void *NewAligned(size_t bytes,int bitalign = 128); //! Free an aligned memory block static void FreeAligned(void *blk); + //! Test for alignment + static bool IsAligned(void *ptr,int bitalign = 128) { return (reinterpret_cast<unsigned long>(ptr)&(bitalign-1)) == 0; } //! @} FLEXT_S_MEMORY |