Enable memory alignment management via compiler options

This commit is contained in:
Dmitry Babokin
2013-05-17 22:15:57 +04:00
parent 7bedb4a081
commit 1a7ac8b804
4 changed files with 14 additions and 0 deletions

4
ispc.h
View File

@@ -551,6 +551,10 @@ struct Globals {
/** Additional user-provided directories to search when processing
#include directives in the preprocessor. */
std::vector<std::string> includePath;
/** Indicates that alignment in memory allocation routines should be
forced to have given value. -1 value means natural alignment for the platforms. */
int forceAlignment;
};
enum {