Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
67484e02
Commit
67484e02
authored
Apr 04, 2014
by
vbystricky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix function names (log, exp)
parent
566f7839
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
mathfuncs.cpp
modules/core/src/mathfuncs.cpp
+18
-18
No files found.
modules/core/src/mathfuncs.cpp
View file @
67484e02
...
...
@@ -896,7 +896,7 @@ static const double exp_prescale = 1.4426950408889634073599246810019 * (1 << EXP
static
const
double
exp_postscale
=
1.
/
(
1
<<
EXPTAB_SCALE
);
static
const
double
exp_max_val
=
3000.
*
(
1
<<
EXPTAB_SCALE
);
// log10(DBL_MAX) < 3000
static
void
Exp_32f
noipp
(
const
float
*
_x
,
float
*
y
,
int
n
)
static
void
Exp_32f
(
const
float
*
_x
,
float
*
y
,
int
n
)
{
static
const
float
A4
=
(
float
)(
1.000000000000002438532970795181890933776
/
EXPPOLY_32F_A0
),
...
...
@@ -1096,7 +1096,7 @@ static void Exp_32fnoipp( const float *_x, float *y, int n )
}
static
void
Exp_64f
noipp
(
const
double
*
_x
,
double
*
y
,
int
n
)
static
void
Exp_64f
(
const
double
*
_x
,
double
*
y
,
int
n
)
{
static
const
double
A5
=
.99999999999999999998285227504999
/
EXPPOLY_32F_A0
,
...
...
@@ -1274,22 +1274,22 @@ static void Exp_64fnoipp( const double *_x, double *y, int n )
#undef EXPPOLY_32F_A0
#ifdef HAVE_IPP
static
void
Exp_32f
(
const
float
*
x
,
float
*
y
,
int
n
)
static
void
Exp_32f
_ipp
(
const
float
*
x
,
float
*
y
,
int
n
)
{
if
(
ippStsNoErr
==
ippsExp_32f_A21
(
x
,
y
,
n
))
return
;
Exp_32f
noipp
(
x
,
y
,
n
);
Exp_32f
(
x
,
y
,
n
);
}
static
void
Exp_64f
(
const
double
*
x
,
double
*
y
,
int
n
)
static
void
Exp_64f
_ipp
(
const
double
*
x
,
double
*
y
,
int
n
)
{
if
(
ippStsNoErr
==
ippsExp_64f_A50
(
x
,
y
,
n
))
return
;
Exp_64f
noipp
(
x
,
y
,
n
);
Exp_64f
(
x
,
y
,
n
);
}
#else
#define Exp_32f Exp_32fno
ipp
#define Exp_64f Exp_64fno
ipp
#define Exp_32f Exp_32f_
ipp
#define Exp_64f Exp_64f_
ipp
#endif
...
...
@@ -1593,7 +1593,7 @@ static const double CV_DECL_ALIGNED(16) icvLogTab[] = {
#define LOGTAB_TRANSLATE(x,h) (((x) - 1.)*icvLogTab[(h)+1])
static
const
double
ln_2
=
0.69314718055994530941723212145818
;
static
void
Log_32f
noipp
(
const
float
*
_x
,
float
*
y
,
int
n
)
static
void
Log_32f
(
const
float
*
_x
,
float
*
y
,
int
n
)
{
static
const
float
shift
[]
=
{
0
,
-
1.
f
/
512
};
static
const
float
...
...
@@ -1742,7 +1742,7 @@ static void Log_32fnoipp( const float *_x, float *y, int n )
}
static
void
Log_64f
noipp
(
const
double
*
x
,
double
*
y
,
int
n
)
static
void
Log_64f
(
const
double
*
x
,
double
*
y
,
int
n
)
{
static
const
double
shift
[]
=
{
0
,
-
1.
/
512
};
static
const
double
...
...
@@ -1932,22 +1932,22 @@ static void Log_64fnoipp( const double *x, double *y, int n )
}
#ifdef HAVE_IPP
static
void
Log_32f
(
const
float
*
x
,
float
*
y
,
int
n
)
static
void
Log_32f
_ipp
(
const
float
*
x
,
float
*
y
,
int
n
)
{
if
(
ippStsNoErr
==
ippsLn_32f_A21
(
x
,
y
,
n
))
return
;
Log_32f
noipp
(
x
,
y
,
n
);
Log_32f
(
x
,
y
,
n
);
}
static
void
Log_64f
(
const
double
*
x
,
double
*
y
,
int
n
)
static
void
Log_64f
_ipp
(
const
double
*
x
,
double
*
y
,
int
n
)
{
if
(
ippStsNoErr
==
ippsLn_64f_A50
(
x
,
y
,
n
))
return
;
Log_64f
noipp
(
x
,
y
,
n
);
Log_64f
(
x
,
y
,
n
);
}
#else
#define Log_32f Log_32fno
ipp
#define Log_64f Log_64fno
ipp
#define Log_32f Log_32f_
ipp
#define Log_64f Log_64f_
ipp
#endif
void
log
(
InputArray
_src
,
OutputArray
_dst
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment