Blocks Bit Operations

From IPLOG
Jump to: navigation, search

Back to Libraries

Utility library

Bit operations

DWORD_SWAP_WORDS

Returns a DWORD value where the older word swaps its place with the younger word.

in IN dword input value "AABBCCDD"
out dword dword value "CCDDAABB"

GET_BIT_AT

Returns boolean value of bit on given position

in IN word input value
in P int bit position
out bool bit value

WORD_SWAP_BYTES

Returns a WORD value where the older byte swaps its place with the younger byte.

in IN word input value "ABCD"
out word word value "CDAB"