Today's the day. Renamed platform to framework.
This commit is contained in:
8
globalfunctions/sign.h
Normal file
8
globalfunctions/sign.h
Normal file
@ -0,0 +1,8 @@
|
||||
#ifndef SIGN_H_
|
||||
#define SIGN_H_
|
||||
|
||||
template <typename T> int sign(T val) {
|
||||
return (T(0) < val) - (val < T(0));
|
||||
}
|
||||
|
||||
#endif /* SIGN_H_ */
|
Reference in New Issue
Block a user