Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
ITABase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
ITABase
Commits
e6ad5b9e
Commit
e6ad5b9e
authored
Apr 05, 2018
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing some include-related bugs and namespace problems with math.h
parent
21965b75
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
include/ITANumericUtils.h
include/ITANumericUtils.h
+1
-0
src/ITAHDFTSpectrum.cpp
src/ITAHDFTSpectrum.cpp
+6
-5
src/ITAInterpolation.cpp
src/ITAInterpolation.cpp
+3
-1
No files found.
include/ITANumericUtils.h
View file @
e6ad5b9e
...
...
@@ -45,6 +45,7 @@ ITA_BASE_API bool isPow2( unsigned int x );
ITA_BASE_API
unsigned
int
nextPow2
(
unsigned
int
x
);
// Rundung auf Compilern definieren die dies nicht standardmäßig mitliefern
// not so nice!! consider namespacing this very typical function names
#ifndef HAVE_ROUND
ITA_BASE_API
inline
double
round
(
double
x
)
...
...
src/ITAHDFTSpectrum.cpp
View file @
e6ad5b9e
#include <ITAHDFTSpectrum.h>
#include <ITAFastMath.h>
#include <stdio.h>
#include <ITAException.h>
#include <ITAStringUtils.h>
#include <cmath>
#include <complex>
#include <math.h>
#include <ITANumericUtils.h>
#include "ITASampleBuffer.h"
#include <ITASampleBuffer.h>
#include <cmath>
#include <cmath>
#include <stdio.h>
ITAHDFTSpectrum
::
ITAHDFTSpectrum
()
:
m_iSize
(
0
)
...
...
src/ITAInterpolation.cpp
View file @
e6ad5b9e
...
...
@@ -2,8 +2,10 @@
#include <ITAConstants.h>
#include <ITASampleBuffer.h>
#include <ITANumericUtils.h>
#include <cassert>
// Calculate cubic spline set (second derivatives, ypp) for equidistant data
void
spline_cubic_set_equidistant
(
const
int
n
,
const
float
*
y
,
float
*
ypp
);
...
...
@@ -98,7 +100,7 @@ bool CITASampleLinearInterpolation::Interpolate( const ITASampleBuffer* pInput,
if
(
i
==
iOutputLength
-
1
)
{
assert
(
x_input
==
(
float
)
iInputLength
-
iInputStartOffset
);
assert
(
std
::
lroundf
(
x_input
)
==
iInputLength
-
iInputStartOffset
);
}
// Linkes/rechtes Nachbarsample in der Eingabe
...
...
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