]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
include: kill MIN and MAX macros
authorSage Weil <sage@redhat.com>
Wed, 14 Mar 2018 02:16:42 +0000 (21:16 -0500)
committerSage Weil <sage@redhat.com>
Wed, 14 Mar 2018 02:16:42 +0000 (21:16 -0500)
Use std::min and std::max instead.

Signed-off-by: Sage Weil <sage@redhat.com>
src/include/intarith.h
src/include/interval_set.h

index d0e33a339b82d3e798427bcf5d9d54759fde8def..b2fb849db310549c617b71f141305c05db1a5def 100644 (file)
 
 #include <type_traits>
 
-#ifndef MIN
-#define MIN(a,b) ((a) < (b) ? (a):(b))
-#endif
-
-#ifndef MAX
-#define MAX(a,b) ((a) > (b) ? (a):(b))
-#endif
-
 #ifndef DIV_ROUND_UP
 #define DIV_ROUND_UP(n, d)  (((n) + (d) - 1) / (d))
 #endif
index 4fcd60eb06588b97bcb72b67a46c1196c1f06c2b..14f9ba82e7269cc23be82d27b4353def9d5d0b69 100644 (file)
  * flat_map and btree_map).
  */
 
-#ifndef MIN
-# define MIN(a,b)  ((a)<=(b) ? (a):(b))
-#endif
-#ifndef MAX
-# define MAX(a,b)  ((a)>=(b) ? (a):(b))
-#endif
-
-
 template<typename T, typename Map = std::map<T,T>>
 class interval_set {
  public: