aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/source')
-rw-r--r--externals/grill/flext/source/flsupport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h
index b1ec43cd..b6bb4eaa 100644
--- a/externals/grill/flext/source/flsupport.h
+++ b/externals/grill/flext/source/flsupport.h
@@ -76,6 +76,9 @@ public:
//! Get an aligned memory block
static void *NewAligned(size_t bytes,int bitalign = 128);
+ // same with templated type
+ template<typename T>
+ static T *NewAligned(size_t times,int bitalign = 128) { return static_cast<T *>(NewAligned(times*sizeof(T),bitalign)); }
//! Free an aligned memory block
static void FreeAligned(void *blk);
//! Test for alignment