Go to the source code of this file.
Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
◆ WS_ROUNDUP_16
| #define WS_ROUNDUP_16 |
( |
| n | ) |
|
Value:(((n) + ((unsigned)(16U-1U))) & (~((unsigned)(16U-1U))))
Round up to the next multiple of 16.
- Parameters
-
- Returns
- Rounded-up value aligned to 16 bytes.
◆ WS_ROUNDUP_2
| #define WS_ROUNDUP_2 |
( |
| n | ) |
|
Value:(((n) + ((unsigned)(2U-1U))) & (~((unsigned)(2U-1U))))
Round up to the next multiple of 2.
- Parameters
-
- Returns
- Rounded-up value aligned to 2 bytes.
◆ WS_ROUNDUP_32
| #define WS_ROUNDUP_32 |
( |
| n | ) |
|
Value:(((n) + ((unsigned)(32U-1U))) & (~((unsigned)(32U-1U))))
Round up to the next multiple of 32.
- Parameters
-
- Returns
- Rounded-up value aligned to 32 bytes.
◆ WS_ROUNDUP_4
| #define WS_ROUNDUP_4 |
( |
| n | ) |
|
Value:(((n) + ((unsigned)(4U-1U))) & (~((unsigned)(4U-1U))))
Round up to the next multiple of 4.
- Parameters
-
- Returns
- Rounded-up value aligned to 4 bytes.
◆ WS_ROUNDUP_8
| #define WS_ROUNDUP_8 |
( |
| n | ) |
|
Value:(((n) + ((unsigned)(8U-1U))) & (~((unsigned)(8U-1U))))
Round up to the next multiple of 8.
- Parameters
-
- Returns
- Rounded-up value aligned to 8 bytes.