mirror of
https://github.com/projectatomic/bubblewrap.git
synced 2026-02-05 15:45:22 +01:00
utils: Add doc-comments for xadd, xmul
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
8
utils.c
8
utils.c
@@ -952,6 +952,10 @@ mount_strerror (int errsv)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Return a + b if it would not overflow.
|
||||
* Die with an "out of memory" error if it would.
|
||||
*/
|
||||
static size_t
|
||||
xadd (size_t a, size_t b)
|
||||
{
|
||||
@@ -961,6 +965,10 @@ xadd (size_t a, size_t b)
|
||||
return result;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return a * b if it would not overflow.
|
||||
* Die with an "out of memory" error if it would.
|
||||
*/
|
||||
static size_t
|
||||
xmul (size_t a, size_t b)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user