tor  0.4.2.1-alpha-dev
fp.h
Go to the documentation of this file.
1 /* Copyright (c) 2003, Roger Dingledine
2  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3  * Copyright (c) 2007-2019, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
5 
12 #ifndef TOR_FP_H
13 #define TOR_FP_H
14 
15 #include "lib/cc/compat_compiler.h"
16 #include "lib/cc/torint.h"
17 
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);
23 
24 #endif /* !defined(TOR_FP_H) */
long tor_lround(double d) ATTR_CONST
Definition: fp.c:31
int64_t clamp_double_to_int64(double number)
Definition: fp.c:61
double tor_mathlog(double d) ATTR_CONST
Definition: fp.c:22
Integer definitions used throughout Tor.
Utility macros to handle different features and behavior in different compilers.
int64_t tor_llround(double d) ATTR_CONST
Definition: fp.c:46