| /*! |
| * \file sketch_support.h |
| * |
| * \brief header file for sketch support routines |
| */ |
| #ifndef SKETCH_SUPPORT_H |
| #define SKETCH_SUPPORT_H |
| |
| #define MD5_HASHLEN_BITS 16*8 /*! md5 hash length in bits */ |
| |
| #ifndef MAXINT8LEN |
| #define MAXINT8LEN 25 /*! number of chars to hold an int8 */ |
| #endif |
| |
| Datum array_set_bit_in_place(bytea *, int4, int4, int4, int4); |
| uint32 rightmost_one(uint8 *, size_t, size_t, size_t); |
| uint32 leftmost_zero(uint8 *, size_t, size_t, size_t); |
| uint32 ui_rightmost_one(uint32 v); |
| void hex_to_bytes(char *hex, uint8 *bytes, size_t); |
| void bit_print(uint8 *c, int numbytes); |
| Datum md5_datum(char *); |
| int4 safe_log2(int64); |
| #endif /* SKETCH_SUPPORT_H */ |