X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fdepth.h;h=ab88f652a4bda753fdeeaac42478027767920276;hp=35430bc55b983e4030d800e4eb9e3bb2f3526d00;hb=80bee85d5f48cc1e06f16236a73c86a14c1d0756;hpb=4f96f420a33422d3ab09b7a1b9fada9af3d021d7 diff --git a/src/depth.h b/src/depth.h index 35430bc5..ab88f652 100644 --- a/src/depth.h +++ b/src/depth.h @@ -34,18 +34,4 @@ enum Depth { }; -//// -//// Inline functions -//// - -inline void operator+= (Depth &d1, Depth d2) { d1 = Depth(int(d1) + int(d2)); } -inline void operator*= (Depth &d, int i) { d = Depth(int(d) * i); } -inline void operator/= (Depth &d, int i) { d = Depth(int(d) / i); } - -inline Depth operator+ (Depth d1, Depth d2) { return Depth(int(d1) + int(d2)); } -inline Depth operator- (Depth d1, Depth d2) { return Depth(int(d1) - int(d2)); } -inline Depth operator* (int i, Depth d) { return Depth(int(d) * i); } -inline Depth operator/ (Depth d, int i) { return Depth(int(d) / i); } - - #endif // !defined(DEPTH_H_INCLUDED)