From a7bde0ac21a716bc1cbf08e1bc1545cce898b3fe Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 4 Jul 2003 02:32:44 +0000 Subject: "" svn path=/trunk/; revision=745 --- externals/grill/flext/source/flsupport.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'externals/grill/flext/source/flsupport.h') 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(ptr)&(bitalign-1)) == 0; } //! @} FLEXT_S_MEMORY -- cgit v1.2.1