repo.or.cz
/
httpd-crcsyncproxy.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Switch from GPL CRC code to public domain CRC code
[httpd-crcsyncproxy.git]
/
crccache
/
hashes.py
blob
51cc89ae184ff8963d4044e1d4fdda01f6f56dda
1
#!/usr/bin/python
2
3
for
N
in
(
20
,
40
):
4
for
S
in
(
1024
,
102400
,
1024000
):
5
X
=
N
*
S
*(
1.0
-
1.0
/
N
)
6
for
H
in
(
16
,
24
,
30
,
32
,
48
,
60
,
64
):
7
R
= (
2
**
H
)/
X
8
print
"N=
%d
, S=
%d
, H=
%d
, 1 in
%f
"
% (
N
,
S
,
H
,
R
)
9