1#include <Functions/FunctionFactory.h>
2#include <Functions/FunctionBitTestMany.h>
3
4namespace DB
5{
6
7struct BitTestAllImpl
8{
9 template <typename A, typename B>
10 static inline UInt8 apply(A a, B b) { return (a & b) == b; }
11};
12
13struct NameBitTestAll { static constexpr auto name = "bitTestAll"; };
14using FunctionBitTestAll = FunctionBitTestMany<BitTestAllImpl, NameBitTestAll>;
15
16void registerFunctionBitTestAll(FunctionFactory & factory)
17{
18 factory.registerFunction<FunctionBitTestAll>();
19}
20
21}
22