fp.h (577B)
1 /* Copyright (c) 2003, Roger Dingledine 2 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. 3 * Copyright (c) 2007-2021, The Tor Project, Inc. */ 4 /* See LICENSE for licensing information */ 5 6 /** 7 * \file fp.h 8 * 9 * \brief Header for fp.c 10 **/ 11 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) */