mirror of
https://github.com/samba-team/samba.git
synced 2025-01-06 13:18:07 +03:00
6ef6ddce5a
read_hex_bytes() is going to be used in lib/util/rfc1738.c. parse_guid_string() is shifted for two reasons: Firstly, it is called very often in some operations, sometimes constituting a few percent of the CPU load, and it makes several calls to read_hex_bytes(). We want the compiler to be able to inline those calls if it thinks that is wise. Secondly, there are other places that could do with fast GUID parsing. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
11 lines
291 B
C
11 lines
291 B
C
#include "../libcli/util/ntstatus.h"
|
|
|
|
NTSTATUS read_hex_bytes(const char *s, uint hexchars, uint64_t *dest);
|
|
|
|
NTSTATUS parse_guid_string(const char *s,
|
|
uint32_t *time_low,
|
|
uint32_t *time_mid,
|
|
uint32_t *time_hi_and_version,
|
|
uint32_t *clock_seq,
|
|
uint32_t *node);
|