| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
ws_padding_to.h
Go to the documentation of this file.
1
10#ifndef __WS_PADDING_TO_H__
11#define __WS_PADDING_TO_H__
12
19#define WS_PADDING_TO_2(n) ((2U - ((n) % 2U)) % 2U)
20
27#define WS_PADDING_TO_4(n) ((4U - ((n) % 4U)) % 4U)
28
35#define WS_PADDING_TO_8(n) ((8U - ((n) % 8U)) % 8U)
36
43#define WS_PADDING_TO_16(n) ((16U - ((n) % 16U)) % 16U)
44
51#define WS_PADDING_TO_32(n) ((32U - ((n) % 32U)) % 32U)
52
53
54#endif /* __WS_PADDING_TO_H__ */