haproxy/include
Willy Tarreau 3f2d696d72 MINOR: ist: add functions to copy/uppercase/lowercase into a buffer or string
The ist functions were missing functions to copy an IST into a target
buffer, making some code have to resort to memcpy(), which tends to be
overkill for small strings, that the compiler cannot guess. In addition
sometimes there is a need to turn a string to lower or upper case so it
had to be overwritten after the operation.

This patch adds 6 functions to copy an ist to a buffer, as binary or as a
string (i.e. a zero is or is not appended), and optionally to apply a
lower case or upper case transformation on the fly.

A number of tests were performed to optimize the processing for small
strings. The loops are marked unlikely to dissuade the compilers from
over-optimizing them and switching to SIMD instructions. The lower case
or upper case transformations used to rely on external functions for
each character and to crappify the code due to clobbered registers,
which is not acceptable when we know that only a certain class of chars
has to be transformed, so the test was open-coded.
2018-12-07 13:25:59 +01:00
..
common MINOR: ist: add functions to copy/uppercase/lowercase into a buffer or string 2018-12-07 13:25:59 +01:00
import
proto BUG/MEDIUM: stream-int: don't attempt to receive if the connection is not established 2018-12-06 15:25:58 +01:00
types BUG/MEDIUM: connections: Split CS_FL_RCV_MORE into 2 flags. 2018-12-06 16:36:05 +01:00