107107#define GDT_TERMINAL_RESET " \033 [0m"
108108#define GDT_TERMINAL_DEFAULT GDT_TERMINAL_RESET
109109#define GDT_TERMINAL_BOLD " \033 [1;1m"
110-
110+
111111
112112
113113
@@ -118,15 +118,7 @@ namespace gdt {
118118#ifdef __CUDACC__
119119 using ::min;
120120 using ::max;
121- // inline __both__ float abs(float f) { return fabsf(f); }
122- // inline __both__ double abs(double f) { return fabs(f); }
123121 using std::abs;
124- // inline __both__ float sin(float f) { return ::sinf(f); }
125- // inline __both__ double sin(double f) { return ::sin(f); }
126- // inline __both__ float cos(float f) { return ::cosf(f); }
127- // inline __both__ double cos(double f) { return ::cos(f); }
128-
129- using ::saturate;
130122#else
131123 using std::min;
132124 using std::max;
@@ -139,12 +131,12 @@ namespace gdt {
139131 // inline __both__ double abs(double f) { return fabs(f); }
140132 inline __both__ float rcp (float f) { return 1 .f /f; }
141133 inline __both__ double rcp (double d) { return 1 ./d; }
142-
134+
143135 inline __both__ int32_t divRoundUp (int32_t a, int32_t b) { return (a+b-1 )/b; }
144136 inline __both__ uint32_t divRoundUp (uint32_t a, uint32_t b) { return (a+b-1 )/b; }
145137 inline __both__ int64_t divRoundUp (int64_t a, int64_t b) { return (a+b-1 )/b; }
146138 inline __both__ uint64_t divRoundUp (uint64_t a, uint64_t b) { return (a+b-1 )/b; }
147-
139+
148140#ifdef __CUDACC__
149141 using ::sin; // this is the double version
150142 // inline __both__ float sin(float f) { return ::sinf(f); }
@@ -174,7 +166,7 @@ namespace gdt {
174166#else
175167# define osp_snprintf snprintf
176168#endif
177-
169+
178170 /* ! added pretty-print function for large numbers, printing 10000000 as "10M" instead */
179171 inline std::string prettyDouble (const double val) {
180172 const double absVal = abs (val);
@@ -195,7 +187,7 @@ namespace gdt {
195187
196188 return result;
197189 }
198-
190+
199191
200192
201193 inline std::string prettyNumber (const size_t s)
@@ -214,7 +206,7 @@ namespace gdt {
214206 }
215207 return buf;
216208 }
217-
209+
218210 inline double getCurrentTime ()
219211 {
220212#ifdef _WIN32
0 commit comments