Robin Mueller
ddcac2bbac
All checks were successful
fsfw/fsfw/pipeline/pr-development This commit looks good
10 lines
135 B
C++
10 lines
135 B
C++
#ifndef SIGN_H_
|
|
#define SIGN_H_
|
|
|
|
template <typename T>
|
|
int sign(T val) {
|
|
return (T(0) < val) - (val < T(0));
|
|
}
|
|
|
|
#endif /* SIGN_H_ */
|