Fix: futex wait: handle spurious futex wakeups
[lttng-tools.git] / src / common / string-utils / format.hpp
CommitLineData
40804255 1/*
ab5be9fa 2 * Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
40804255 3 *
ab5be9fa 4 * SPDX-License-Identifier: LGPL-2.1-only
40804255 5 *
40804255
JG
6 */
7
8#ifndef _STRING_UTILS_FORMAT_H
9#define _STRING_UTILS_FORMAT_H
10
11/*
12 * Maximal length of `val` when formatted in decimal.
13 *
14 * Note that this is an upper bound that can exceed the length
15 * required to hold the largest textual value of `val`. Note that this length
16 * assumes that no grouping/locale-aware formatting is performed (i.e. using
17 * the `'` specifier in POSIX formatting functions).
18 */
19#define MAX_INT_DEC_LEN(val) ((3 * sizeof(val)) + 2)
20
21#endif /* _STRING_UTILS_FORMAT_H */
This page took 0.052827 seconds and 4 git commands to generate.