aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flsupport.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-07-04 02:32:44 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-07-04 02:32:44 +0000
commita7bde0ac21a716bc1cbf08e1bc1545cce898b3fe (patch)
tree154c9b217a0d8c6b8e57791c0609e54ed3efa0a9 /externals/grill/flext/source/flsupport.h
parent59fa798c7217f1ef0262786bcb71bab104bceb8f (diff)
""
svn path=/trunk/; revision=745
Diffstat (limited to 'externals/grill/flext/source/flsupport.h')
-rw-r--r--externals/grill/flext/source/flsupport.h2
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