1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 02:16:34 +08:00

Windows ifdef

This commit is contained in:
biagio montesano
2014-07-31 16:08:49 +02:00
parent 0df499115b
commit 20b8bb4a2c

View File

@@ -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[] =