fsfw/src/fsfw/globalfunctions/sign.h
Robin Mueller ddcac2bbac
All checks were successful
fsfw/fsfw/pipeline/pr-development This commit looks good
reapply clang format
2022-02-02 10:29:30 +01:00

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_ */