   #else
     #define CV_PI_F ((float)CV_PI)
   #endif
-#endif
-
-#ifndef div_up
-#define div_up(n, grain) (((n) + (grain) - 1) / (grain))
 #endif
 
 // Other values are not supported

    }

    if (threadIdx.x == 0)
        labels[blockIdx.y * img_win_width + blockIdx.x * blockDim.z + win_x] 
            = (product + free_coef >= threshold);

}



}


void extract_descrs_by_rows(int win_height, int win_width, int block_stride_y, int block_stride_x, int win_stride_y, int win_stride_x, 
							int height, int width, float* block_hists, DevMem2Df descriptors)
{
    const int nthreads = 256;

