URI:
       tutility.h - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
  HTML git clone git://src.adamsgaard.dk/sphere
   DIR Log
   DIR Files
   DIR Refs
   DIR LICENSE
       ---
       tutility.h (510B)
       ---
            1 #ifndef UTILITY_H_
            2 #define UTILITY_H_
            3 
            4 // MISC. UTILITY FUNCTIONS
            5 
            6 
            7 //Round a / b to nearest higher integer value
            8 unsigned int iDivUp(unsigned int a, unsigned int b);
            9 
           10 // Swap two arrays pointers
           11 void swapFloatArrays(Float* arr1, Float* arr2);
           12 
           13 // Get minimum/maximum value in 1D or 3D array 
           14 Float minVal(Float* arr, int length);
           15 Float minVal(Float3* arr, int length);
           16 Float maxVal(Float* arr, int length);
           17 Float maxVal(Float3* arr, int length);
           18 
           19 #endif
           20 // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4