summaryrefslogtreecommitdiff
path: root/src/lib/math/fp.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2018-11-27 01:56:23 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2019-01-02 15:25:55 +0200
commit2ccf3268375cd46e8c948e94ba58e0d2f03fe722 (patch)
treea6a820abe9af9a65f7648c2fae8a36ff0d81d607 /src/lib/math/fp.h
parent8ad497bb578b13c66489843905764a60545e6388 (diff)
downloadtor-2ccf3268375cd46e8c948e94ba58e0d2f03fe722.tar.gz
tor-2ccf3268375cd46e8c948e94ba58e0d2f03fe722.zip
Implement and test probability distributions used by WTF-PAD.
This project introduces the prob_distr.c subsystem which implements all the probability distributions that WTF-PAD needs. It also adds unittests for all of them. Code and tests courtesy of Riastradh. Co-authored-by: Taylor R Campbell <campbell+tor@mumble.net> Co-authored-by: Mike Perry <mikeperry-git@torproject.org>
Diffstat (limited to 'src/lib/math/fp.h')
-rw-r--r--src/lib/math/fp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/math/fp.h b/src/lib/math/fp.h
index e27b8f8d80..ddf3ed24d6 100644
--- a/src/lib/math/fp.h
+++ b/src/lib/math/fp.h
@@ -19,5 +19,6 @@ double tor_mathlog(double d) ATTR_CONST;
long tor_lround(double d) ATTR_CONST;
int64_t tor_llround(double d) ATTR_CONST;
int64_t clamp_double_to_int64(double number);
+int tor_isinf(double x);
#endif