forked from osmocom/wireshark
ac0a69636b
This change implements a unary minus operator. Filter: tcp.window_size_scalefactor == -tcp.dstport Instructions: 00000 READ_TREE tcp.window_size_scalefactor -> reg#0 00001 IF_FALSE_GOTO 6 00002 READ_TREE tcp.dstport -> reg#1 00003 IF_FALSE_GOTO 6 00004 MK_MINUS -reg#1 -> reg#2 00005 ANY_EQ reg#0 == reg#2 00006 RETURN It is supported for integer types, floats and relative time values. The unsigned integer types are promoted to a 32 bit signed integer. Unary plus is implemented as a no-op. The plus sign is simply ignored. Constant arithmetic expressions are computed during compilation. Overflow with constants is a compile time error. Overflow with variables is a run time error and silently ignored. Only a debug message will be printed to the console. Related to #15504. |
||
---|---|---|
.. | ||
.editorconfig | ||
CMakeLists.txt | ||
ftype-bytes.c | ||
ftype-double.c | ||
ftype-guid.c | ||
ftype-ieee-11073-float.c | ||
ftype-integer.c | ||
ftype-ipv4.c | ||
ftype-ipv6.c | ||
ftype-none.c | ||
ftype-protocol.c | ||
ftype-string.c | ||
ftype-time.c | ||
ftypes-int.h | ||
ftypes.c | ||
ftypes.h |