#include <stdio.h>
#include <stdint.h>
#include <array>
#include <utility>
#include <cmath>
#include <cstddef>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <cassert>
Go to the source code of this file.
◆ _USE_MATH_DEFINES
#define _USE_MATH_DEFINES |
This code is an adaptation of the Shawn's DSP Tutorials.
In particular, I started from this link. https://sestevenson.wordpress.com/2009/10/08/implementation-of-fir-filtering-in-c-part-2/ The first relevant change is in the initialization of coeffs variable done by exploiting constexpr described by the c++14 standard. The second change is on the number of samples that can be handled by a function call. Here we assume a single sample per function call.
- Author
- Fabrizio Ferrandi - Politecnico di Milano
Definition at line 9 of file coef1.cpp.
◆ FILTER_LEN
◆ __attribute__()
short int __attribute__ |
( |
(noinline) |
| ) |
|
◆ main()