Commit a2affe70 authored by Olexa Bilaniuk's avatar Olexa Bilaniuk

Deleted last remnants of restrict keyword.

parent b229d6b7
...@@ -256,14 +256,14 @@ static inline unsigned sacCalcIterBound (double confidence, ...@@ -256,14 +256,14 @@ static inline unsigned sacCalcIterBound (double confidence,
unsigned sampleSize, unsigned sampleSize,
unsigned maxIterBound); unsigned maxIterBound);
static inline void hFuncRefC (float* packedPoints, float* H); static inline void hFuncRefC (float* packedPoints, float* H);
static inline void sacCalcJacobianErrors(const float* restrict H, static inline void sacCalcJacobianErrors(const float* H,
const float* restrict src, const float* src,
const float* restrict dst, const float* dst,
const char* restrict inl, const char* inl,
unsigned N, unsigned N,
float (* restrict JtJ)[8], float (* JtJ)[8],
float* restrict Jte, float* Jte,
float* restrict Sp); float* Sp);
static inline float sacLMGain (const float* dH, static inline float sacLMGain (const float* dH,
const float* Jte, const float* Jte,
const float S, const float S,
...@@ -1935,14 +1935,14 @@ inline void RHO_HEST_REFC::refine(void){ ...@@ -1935,14 +1935,14 @@ inline void RHO_HEST_REFC::refine(void){
* nevertheless be vectorized if need be. * nevertheless be vectorized if need be.
*/ */
static inline void sacCalcJacobianErrors(const float* restrict H, static inline void sacCalcJacobianErrors(const float* H,
const float* restrict src, const float* src,
const float* restrict dst, const float* dst,
const char* restrict inl, const char* inl,
unsigned N, unsigned N,
float (* restrict JtJ)[8], float (* JtJ)[8],
float* restrict Jte, float* Jte,
float* restrict Sp){ float* Sp){
unsigned i; unsigned i;
float S; float S;
......
...@@ -57,12 +57,6 @@ ...@@ -57,12 +57,6 @@
/* Defines */ /* Defines */
/* C++ does not have the restrict keyword. */
#ifdef restrict
#undef restrict
#endif
#define restrict
/* Flags */ /* Flags */
#ifndef RHO_FLAG_NONE #ifndef RHO_FLAG_NONE
...@@ -256,10 +250,10 @@ void rhoRefCFini(RHO_HEST_REFC* p); ...@@ -256,10 +250,10 @@ void rhoRefCFini(RHO_HEST_REFC* p);
* inliers for acceptance was reached; 0 otherwise. * inliers for acceptance was reached; 0 otherwise.
*/ */
unsigned rhoRefC(RHO_HEST_REFC* restrict p, /* Homography estimation context. */ unsigned rhoRefC(RHO_HEST_REFC* p, /* Homography estimation context. */
const float* restrict src, /* Source points */ const float* src, /* Source points */
const float* restrict dst, /* Destination points */ const float* dst, /* Destination points */
char* restrict inl, /* Inlier mask */ char* inl, /* Inlier mask */
unsigned N, /* = src.length = dst.length = inl.length */ unsigned N, /* = src.length = dst.length = inl.length */
float maxD, /* 3.0 */ float maxD, /* 3.0 */
unsigned maxI, /* 2000 */ unsigned maxI, /* 2000 */
......
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