@@ -191,26 +191,14 @@ namespace cuBQL {
191191
192192 typename int_type_of<scalar_t >::type lower[box_t ::numDims];
193193 typename int_type_of<scalar_t >::type upper[box_t ::numDims];
194- // int32_t lower[box_t::numDims];
195- // int32_t upper[box_t::numDims];
196-
197- // inline static __device__ int32_t encode(float f);
198- // inline static __device__ float decode(int32_t bits);
199194 };
200195
201196 template <typename box_t >
202197 inline __device__ typename AtomicBox<box_t >::scalar_t
203198 AtomicBox<box_t >::get_center(int dim) const
204199 {
205200 return (get_lower (dim)+get_upper (dim))/(AtomicBox<box_t >::scalar_t )2 ;
206- // return 0.5f*(decode(lower[dim])+decode(upper[dim]));
207201 }
208- // template<typename box_t>
209- // inline __device__ float AtomicBox<box_t>::get_center(int dim) const
210- // {
211- // return 0.5f*(get_lower(dim)+get_upper(dim));
212- // // return 0.5f*(decode(lower[dim])+decode(upper[dim]));
213- // }
214202
215203 template <typename box_t >
216204 inline __device__ box_t AtomicBox<box_t >::make_box() const
@@ -225,23 +213,6 @@ namespace cuBQL {
225213 return box;
226214 }
227215
228- // template<typename box_t>
229- // inline __device__ int32_t AtomicBox<box_t>::encode(float f)
230- // {
231- // const int32_t sign = 0x80000000;
232- // int32_t bits = __float_as_int(f);
233- // if (bits & sign) bits ^= 0x7fffffff;
234- // return bits;
235- // }
236-
237- // template<typename box_t>
238- // inline __device__ float AtomicBox<box_t>::decode(int32_t bits)
239- // {
240- // const int32_t sign = 0x80000000;
241- // if (bits & sign) bits ^= 0x7fffffff;
242- // return __int_as_float(bits);
243- // }
244-
245216 template <typename box_t >
246217 inline __device__ void AtomicBox<box_t >::set_empty()
247218 {
0 commit comments