I found two remaining max_t macros. Remove them, and adjust one call
site that was still using that.
Change-Id: Icaedcaea1a88e87262bfa544691db398a1bfd203
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
#include "ust-clock.hpp"
#include "ust-app.hpp"
-#ifndef max_t
-#define max_t(type, a, b) ((type) ((a) > (b) ? (a) : (b)))
-#endif
-
#define NR_CLOCK_OFFSET_SAMPLES 10
struct offset_sample {
char *newptr;
new_alloc_len =
- max_t(size_t, 1U << get_count_order(new_alloc_len), old_alloc_len << 1);
+ std::max<size_t>(1U << get_count_order(new_alloc_len), old_alloc_len << 1);
newptr = (char *) realloc(session->metadata, new_alloc_len);
if (!newptr)
return -ENOMEM;
#include "filter-ast.hpp"
#include "filter-ir.hpp"
-#ifndef max_t
-#define max_t(type, a, b) ((type) ((a) > (b) ? (a) : (b)))
-#endif
-
static
int recursive_visit_gen_bytecode(struct filter_parser_ctx *ctx,
struct ir_op *node);