fp.h 527 B

1234567891011121314151617181920212223
  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 */
  5. /**
  6. * \file fp.h
  7. *
  8. * \brief Header for fp.c
  9. **/
  10. #ifndef TOR_FP_H
  11. #define TOR_FP_H
  12. #include "lib/cc/compat_compiler.h"
  13. #include "lib/cc/torint.h"
  14. double tor_mathlog(double d) ATTR_CONST;
  15. long tor_lround(double d) ATTR_CONST;
  16. int64_t tor_llround(double d) ATTR_CONST;
  17. int64_t clamp_double_to_int64(double number);
  18. #endif