21 lines
605 B
C
Raw Normal View History

2024-11-01 08:40:57 +01:00
/* Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
2023-02-05 07:34:23 +01:00
* All rights reserved.
* Use of this source code is governed by a MIT-style
2024-11-01 08:40:57 +01:00
* license that can be found in the LICENSE file. */
2023-02-05 07:34:23 +01:00
#ifndef __UTIL_H_
#define __UTIL_H_
2024-11-01 08:40:57 +01:00
#define HLINE \
"----------------------------------------------------------------------------\n"
2023-02-05 07:34:23 +01:00
#ifndef MIN
2024-11-01 08:40:57 +01:00
#define MIN(x, y) ((x) < (y) ? (x) : (y))
2023-02-05 07:34:23 +01:00
#endif
#ifndef MAX
2024-11-01 08:40:57 +01:00
#define MAX(x, y) ((x) > (y) ? (x) : (y))
2023-02-05 07:34:23 +01:00
#endif
#ifndef ABS
#define ABS(a) ((a) >= 0 ? (a) : -(a))
#endif
#endif // __UTIL_H_