annotate src/core/ngx_murmurhash.h @ 4434:80df7b82d3c9
stable-1.0
Merge r4336:
Microoptimization of sendfile(2) usage under FreeBSD.
FreeBSD kernel checks headers/trailers pointer against NULL, not
corresponding count. Passing NULL if there are no headers/trailers
helps to avoid unneeded work in kernel, as well as unexpected 0 bytes
GIO in traces.
author |
Maxim Dounin <mdounin@mdounin.ru> |
date |
Sun, 05 Feb 2012 12:42:36 +0000 |
parents |
203eb026ec07 |
children |
d620f497c50f |
rev |
line source |
3891
|
1
|
|
2 /*
|
|
3 * Copyright (C) Igor Sysoev
|
|
4 */
|
|
5
|
|
6
|
|
7 #ifndef _NGX_MURMURHASH_H_INCLUDED_
|
|
8 #define _NGX_MURMURHASH_H_INCLUDED_
|
|
9
|
|
10
|
|
11 #include <ngx_config.h>
|
|
12 #include <ngx_core.h>
|
|
13
|
|
14
|
|
15 uint32_t ngx_murmur_hash2(u_char *data, size_t len);
|
|
16
|
|
17
|
|
18 #endif /* _NGX_CRC_H_INCLUDED_ */
|