summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-11-12 11:40:58 -0500
committerNick Mathewson <nickm@torproject.org>2015-11-12 11:40:58 -0500
commitd20a3d07e3904d777b5395ad7e52930138634257 (patch)
treeb89d1bd0778155be567fa8e1a501f9034ea81d6f /src/common/util.h
parent0a3eed5f204dc9759e5001c7cf2bb448015d6891 (diff)
parent1f7ba115a46743ea09402a30a7b11e4b6d2ee52e (diff)
downloadtor-d20a3d07e3904d777b5395ad7e52930138634257.tar.gz
tor-d20a3d07e3904d777b5395ad7e52930138634257.zip
Merge branch 'karsten_bug13192_026_03_teor'
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 8bb4505e86..165bc0dcb3 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -185,6 +185,7 @@ int64_t sample_laplace_distribution(double mu, double b, double p);
int64_t add_laplace_noise(int64_t signal, double random, double delta_f,
double epsilon);
int n_bits_set_u8(uint8_t v);
+int64_t clamp_double_to_int64(double number);
/* Compute the CEIL of <b>a</b> divided by <b>b</b>, for nonnegative <b>a</b>
* and positive <b>b</b>. Works on integer types only. Not defined if a+b can