| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Macros
pow2.h File Reference

Go to the source code of this file.

## Macros
#define | pow2(type, m)
#define | pow4(type, m)
#define | pow8(type, m)
#define | pow16(type, m)
#define | pow32(type, m)
#define | pow64(type, m)
#define | pow128(type, m)
#define | pow256(type, m)

## Detailed Description

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

## Macro Definition Documentation

## ◆ pow128

#define pow128 | ( |  | type,
|  |  | m )

Value:
(((type)1U) << (7*(m)))

## ◆ pow16

#define pow16 | ( |  | type,
|  |  | m )

Value:
(((type)1U) << (4*(m)))

## ◆ pow2

#define pow2 | ( |  | type,
|  |  | m )

Value:
(((type)1U) << (m))

## ◆ pow256

#define pow256 | ( |  | type,
|  |  | m )

Value:
(((type)1U) << (8*(m)))

## ◆ pow32

#define pow32 | ( |  | type,
|  |  | m )

Value:
(((type)1U) << (5*(m)))

## ◆ pow4

#define pow4 | ( |  | type,
|  |  | m )

Value:
(((type)1U) << (2*(m)))

## ◆ pow64

#define pow64 | ( |  | type,
|  |  | m )

Value:
(((type)1U) << (6*(m)))

## ◆ pow8

#define pow8 | ( |  | type,
|  |  | m )

Value:
(((type)1U) << (3*(m)))