blob: 0a7a6854852815db3dc8a310a8072b583467e281 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* Copyright (c) 2003, Roger Dingledine
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file fp.h
*
* \brief Header for fp.c
**/
#ifndef TOR_FP_H
#define TOR_FP_H
#include "lib/cc/compat_compiler.h"
#include "lib/cc/torint.h"
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 /* !defined(TOR_FP_H) */
|