summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/sys/param.h
blob: 319b7f0f76782c11a9daa4a3809fdc9821243cb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) 2018-2022, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <endian.h>
#include <limits.h>

#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