Commit decb1371 authored by marina.kolpakova's avatar marina.kolpakova

use long seeds only for 64 bit systems

parent 5f082b98
...@@ -76,7 +76,17 @@ void sft::write(cv::FileStorage& fs, const string&, const ICF& f) ...@@ -76,7 +76,17 @@ void sft::write(cv::FileStorage& fs, const string&, const ICF& f)
sft::ICFFeaturePool::~ICFFeaturePool(){} sft::ICFFeaturePool::~ICFFeaturePool(){}
#define USE_LONG_SEEDS #if defined _WIN32 && (_WIN32 || _WIN64)
# if _WIN64
# define USE_LONG_SEEDS
# endif
#endif
#if defined (__GNUC__) &&__GNUC__
# if defined(__x86_64__) || defined(__ppc64__)
# define USE_LONG_SEEDS
# endif
#endif
#if defined USE_LONG_SEEDS #if defined USE_LONG_SEEDS
# define FEATURE_RECT_SEED 8854342234LU # define FEATURE_RECT_SEED 8854342234LU
#else #else
......
...@@ -239,7 +239,17 @@ void cv::Octave::processPositives(const Dataset* dataset, const FeaturePool* poo ...@@ -239,7 +239,17 @@ void cv::Octave::processPositives(const Dataset* dataset, const FeaturePool* poo
nnegatives = cvRound(nnegatives * total / (double)npositives); nnegatives = cvRound(nnegatives * total / (double)npositives);
} }
#define USE_LONG_SEEDS #if defined _WIN32 && (_WIN32 || _WIN64)
# if _WIN64
# define USE_LONG_SEEDS
# endif
#endif
#if defined (__GNUC__) &&__GNUC__
# if defined(__x86_64__) || defined(__ppc64__)
# define USE_LONG_SEEDS
# endif
#endif
#if defined USE_LONG_SEEDS #if defined USE_LONG_SEEDS
# define INDEX_ENGINE_SEED 764224349868LU # define INDEX_ENGINE_SEED 764224349868LU
#else #else
......
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