proxygen
Math.h File Reference
#include <stdint.h>
#include <limits>
#include <type_traits>

Go to the source code of this file.

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 
 folly::detail
 

Typedefs

template<typename N , typename D >
using folly::detail::IdivResultType = typename std::enable_if< std::is_integral< N >::value &&std::is_integral< D >::value &&!std::is_same< N, bool >::value &&!std::is_same< D, bool >::value, decltype(N{1}/D{1})>::type
 

Functions

template<typename T >
constexpr T folly::detail::divFloorBranchless (T num, T denom)
 
template<typename T >
constexpr T folly::detail::divFloorBranchful (T num, T denom)
 
template<typename T >
constexpr T folly::detail::divCeilBranchless (T num, T denom)
 
template<typename T >
constexpr T folly::detail::divCeilBranchful (T num, T denom)
 
template<typename T >
constexpr T folly::detail::divRoundAwayBranchless (T num, T denom)
 
template<typename T >
constexpr T folly::detail::divRoundAwayBranchful (T num, T denom)
 
template<typename N , typename D >
constexpr detail::IdivResultType< N, Dfolly::divFloor (N num, D denom)
 
template<typename N , typename D >
constexpr detail::IdivResultType< N, Dfolly::divCeil (N num, D denom)
 
template<typename N , typename D >
constexpr detail::IdivResultType< N, Dfolly::divTrunc (N num, D denom)
 
template<typename N , typename D >
constexpr detail::IdivResultType< N, Dfolly::divRoundAway (N num, D denom)
 

Variables

constexpr auto folly::kIntegerDivisionGivesRemainder = true