2020-01-18 09:38:21 +01:00
|
|
|
/*
|
2022-04-29 20:29:05 +02:00
|
|
|
* Copyright (c) 2018-2022, Andreas Kling <kling@serenityos.org>
|
2020-01-18 09:38:21 +01:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 09:38:21 +01:00
|
|
|
*/
|
|
|
|
|
|
2018-11-05 16:40:48 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <endian.h>
|
2018-11-06 15:59:57 +01:00
|
|
|
#include <limits.h>
|
2022-04-29 20:29:05 +02:00
|
|
|
|
|
|
|
|
#ifndef MIN
|
|
|
|
|
# define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef MAX
|
|
|
|
|
# define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef howmany
|
|
|
|
|
# define howmany(x, y) (((x) + ((y)-1)) / (y))
|
|
|
|
|
#endif
|