Commit 20b8bb4a authored by biagio montesano's avatar biagio montesano

Windows ifdef

parent 0df49911
...@@ -43,9 +43,15 @@ ...@@ -43,9 +43,15 @@
#ifndef __OPENCV_BITOPTS_HPP #ifndef __OPENCV_BITOPTS_HPP
#define __OPENCV_BITOPTS_HPP #define __OPENCV_BITOPTS_HPP
#define popcntll __builtin_popcountll #ifdef __MSC_VER
#define popcnt __builtin_popcount # include <intrin.h>
# define popcnt __popcnt
# define popcntll __popcount64
#else
# define popcntll __builtin_popcountll
# define popcnt __builtin_popcount
#endif
/* LUT */ /* LUT */
const int lookup[] = const int lookup[] =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment