1
0
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:
Simon McVittie
2024-10-16 17:28:16 +01:00
parent ff33964f33
commit c1bfc72043

View File

@@ -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)
{