Implement and test probability distributions used by WTF-PAD.
[tor.git] / src / lib / math / fp.h
blobddf3ed24d68d025b4912fc7d80d36d539e40ba1c
1 /* Copyright (c) 2003, Roger Dingledine
2 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3 * Copyright (c) 2007-2018, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
6 /**
7 * \file fp.h
9 * \brief Header for fp.c
10 **/
12 #ifndef TOR_FP_H
13 #define TOR_FP_H
15 #include "lib/cc/compat_compiler.h"
16 #include "lib/cc/torint.h"
18 double tor_mathlog(double d) ATTR_CONST;
19 long tor_lround(double d) ATTR_CONST;
20 int64_t tor_llround(double d) ATTR_CONST;
21 int64_t clamp_double_to_int64(double number);
22 int tor_isinf(double x);
24 #endif