linux/include/linux/win_minmax.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * win_minmax.h: windowed min/max tracker by Kathleen Nichols.
 *
 */
#ifndef MINMAX_H
#define MINMAX_H

#include <linux/types.h>

/* A single data point for our parameterized min-max tracker */
struct minmax_sample {};

/* State for the parameterized min-max tracker */
struct minmax {};

static inline u32 minmax_get(const struct minmax *m)
{}

static inline u32 minmax_reset(struct minmax *m, u32 t, u32 meas)
{}

u32 minmax_running_max(struct minmax *m, u32 win, u32 t, u32 meas);
u32 minmax_running_min(struct minmax *m, u32 win, u32 t, u32 meas);

#endif