mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-11 03:25:25 +02:00
8 lines
130 B
C++
8 lines
130 B
C++
#pragma once
|
|
|
|
namespace dsp::math {
|
|
template <class T>
|
|
inline T step(T x) {
|
|
return (x > 0.0) ? 1.0 : -1.0;
|
|
}
|
|
} |