fp.h 474 B

1234567891011121314151617
  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. #ifndef TOR_FP_H
  6. #define TOR_FP_H
  7. #include "lib/cc/compat_compiler.h"
  8. #include "lib/cc/torint.h"
  9. double tor_mathlog(double d) ATTR_CONST;
  10. long tor_lround(double d) ATTR_CONST;
  11. int64_t tor_llround(double d) ATTR_CONST;
  12. int64_t clamp_double_to_int64(double number);
  13. #endif