equal
deleted
inserted
replaced
119 nl = xdl_mmfile_size(mf) / (tsize / nl); |
119 nl = xdl_mmfile_size(mf) / (tsize / nl); |
120 |
120 |
121 return nl + 1; |
121 return nl + 1; |
122 } |
122 } |
123 |
123 |
124 int xdl_recmatch(const char *l1, int64_t s1, const char *l2, int64_t s2, int64_t flags) |
124 int xdl_recmatch(const char *l1, int64_t s1, const char *l2, int64_t s2) |
125 { |
125 { |
126 if (s1 == s2 && !memcmp(l1, l2, s1)) |
126 if (s1 == s2 && !memcmp(l1, l2, s1)) |
127 return 1; |
127 return 1; |
128 return 0; |
128 return 0; |
129 } |
129 } |
130 |
130 |
131 uint64_t xdl_hash_record(char const **data, char const *top, int64_t flags) { |
131 uint64_t xdl_hash_record(char const **data, char const *top) { |
132 uint64_t ha = 5381; |
132 uint64_t ha = 5381; |
133 char const *ptr = *data; |
133 char const *ptr = *data; |
134 |
134 |
135 for (; ptr < top && *ptr != '\n'; ptr++) { |
135 for (; ptr < top && *ptr != '\n'; ptr++) { |
136 ha += (ha << 5); |
136 ha += (ha << 5); |