Optimizations and cleanups

(missing float conversion, defines, 1.0 vs 1.f etc.)
This commit is contained in:
Oliver Duis
2011-07-01 14:49:15 +02:00
parent 3856927098
commit a4281a9d87
25 changed files with 143 additions and 243 deletions

View File

@@ -55,6 +55,8 @@
#ifndef ARRAY2D_H_
#define ARRAY2D_H_
#include <csignal> // for raise()
#include <assert.h>
// flags for use
#define ARRAY2D_LOCK_DATA 1
#define ARRAY2D_CLEAR_DATA 2
@@ -154,6 +156,7 @@ public:
// use with indices
T * operator[](size_t index) {
assert(index>=0 && index<y);
return ptr[index];
}