Optimized []
authorJayant DeSouza <jdesouza@uiuc.edu>
Mon, 21 Jun 2004 04:02:53 +0000 (04:02 +0000)
committerJayant DeSouza <jdesouza@uiuc.edu>
Mon, 21 Jun 2004 04:02:53 +0000 (04:02 +0000)
src/langs/jade/JArray.h

index 9f8ee64a4036959b9ba4efa9cc35b3c1c9f649d3..519189af9bd43c3abc46298198d4be098846c8c3 100644 (file)
@@ -231,6 +231,9 @@ public:
 
        // 2D
        inline T& getElement(int i, int j) {
+               return data[i*dimSize[0]+j];
+       }
+       inline T& getElementSlow(int i, int j) {
                uint idx[] = { i, j };
                return getElement(idx);
        }