#include #include namespace DB { template struct BitTestImpl { using ResultType = UInt8; template static inline Result apply(A a, B b) { return (typename NumberTraits::ToInteger::Type(a) >> typename NumberTraits::ToInteger::Type(b)) & 1; } #if USE_EMBEDDED_COMPILER static constexpr bool compilable = false; /// TODO #endif }; struct NameBitTest { static constexpr auto name = "bitTest"; }; using FunctionBitTest = FunctionBinaryArithmetic; void registerFunctionBitTest(FunctionFactory & factory) { factory.registerFunction(); } }