2018-06-28 18:24:45 +02:00
|
|
|
/* Copyright (c) 2003, Roger Dingledine
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2019-01-16 18:33:22 +01:00
|
|
|
* Copyright (c) 2007-2019, The Tor Project, Inc. */
|
2018-06-28 18:24:45 +02:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
2018-07-02 02:22:55 +02:00
|
|
|
/**
|
|
|
|
* \file fp.h
|
|
|
|
*
|
|
|
|
* \brief Header for fp.c
|
|
|
|
**/
|
|
|
|
|
2018-06-28 18:24:45 +02:00
|
|
|
#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);
|
2018-11-27 00:56:23 +01:00
|
|
|
int tor_isinf(double x);
|
2018-06-28 18:24:45 +02:00
|
|
|
|
2019-06-05 15:33:35 +02:00
|
|
|
#endif /* !defined(TOR_FP_H) */
|