Wireshark
4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
wsutil
ws_roundup.h
Go to the documentation of this file.
1
10
#ifndef __WS_ROUNDUP_H__
11
#define __WS_ROUNDUP_H__
12
13
/*
14
* Round up to various powers of 2.
15
*/
16
23
#define WS_ROUNDUP_2(n) (((n) + ((unsigned)(2U-1U))) & (~((unsigned)(2U-1U))))
24
31
#define WS_ROUNDUP_4(n) (((n) + ((unsigned)(4U-1U))) & (~((unsigned)(4U-1U))))
32
39
#define WS_ROUNDUP_8(n) (((n) + ((unsigned)(8U-1U))) & (~((unsigned)(8U-1U))))
40
47
#define WS_ROUNDUP_16(n) (((n) + ((unsigned)(16U-1U))) & (~((unsigned)(16U-1U))))
48
55
#define WS_ROUNDUP_32(n) (((n) + ((unsigned)(32U-1U))) & (~((unsigned)(32U-1U))))
56
57
58
#endif
/* __WS_ROUNDUP_H__ */
Generated by
1.9.8