HomeSort by relevance Sort by last modified time
    Searched refs:constexpr (Results 151 - 175 of 1197) sorted by null

1 2 3 4 5 67 8 91011>>

  /external/clang/test/SemaCXX/
discrim-union.cpp 7 template<typename T> constexpr T &&forward(typename remove_reference<T>::type &t) noexcept { return static_cast<T&&>(t); }
8 template<typename T> constexpr T &&forward(typename remove_reference<T>::type &&t) noexcept { return static_cast<T&&>(t); }
9 template<typename T> constexpr typename remove_reference<T>::type &&move(T &&t) noexcept { return static_cast<typename remove_reference<T>::type&&>(t); }
31 constexpr either_impl(select<0>, T &&t) : val(move(t)) {}
34 constexpr either_impl(select<N>, U &&u) : rest(select<N-1>(), move(u)) {}
36 constexpr static unsigned index(type<T>) { return 0; }
38 constexpr static unsigned index(type<U> t) {
49 constexpr const T &get(select<0>) { return val; }
50 template<unsigned N> constexpr const decltype(static_cast<const rest_t&>(rest).get(select<N-1>{})) get(select<N>) {
60 constexpr a(U &&...u) : value{forward<U>(u)...} {
    [all...]
constexpr-duffs-device.cpp 4 constexpr void copy(const char *from, unsigned long count, char *to) {
21 constexpr S() : stuff{} {
26 constexpr bool streq(const char *a, const char *b) {
  /external/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/
ctor.pass.cpp 19 // constexpr atomic<T>::atomic(T value)
29 constexpr explicit UserType(int d) noexcept : i(d) {}
40 constexpr Tp t(42);
42 constexpr Atomic a(t);
46 constexpr Atomic a{t};
50 constexpr Atomic a = ATOMIC_VAR_INIT(t);
  /external/libcxx/test/std/experimental/optional/optional.object/optional.object.observe/
op_arrow_const.pass.cpp 12 // constexpr const T* optional<T>::operator->() const;
28 constexpr int test() const {return 3;}
39 constexpr int test() const {return 1;}
48 constexpr optional<X> opt(X{});
52 constexpr optional<Y> opt(Y{});
56 constexpr optional<Z> opt(Z{});
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.object/optional.object.observe/
op_arrow_const.pass.cpp 12 // constexpr const T* optional<T>::operator->() const;
28 constexpr int test() const {return 3;}
39 constexpr int test() const {return 1;}
48 constexpr optional<X> opt(X{});
52 constexpr optional<Y> opt(Y{});
56 constexpr optional<Z> opt(Z{});
  /art/runtime/
dex_instruction_utils.h 54 constexpr bool IsInstructionDirectConst(Instruction::Code opcode) {
58 constexpr bool IsInstructionConstWide(Instruction::Code opcode) {
62 constexpr bool IsInstructionReturn(Instruction::Code opcode) {
66 constexpr bool IsInstructionInvoke(Instruction::Code opcode) {
71 constexpr bool IsInstructionQuickInvoke(Instruction::Code opcode) {
76 constexpr bool IsInstructionInvokeStatic(Instruction::Code opcode) {
80 constexpr bool IsInstructionGoto(Instruction::Code opcode) {
84 constexpr bool IsInstructionIfCc(Instruction::Code opcode) {
88 constexpr bool IsInstructionIfCcZ(Instruction::Code opcode) {
92 constexpr bool IsInstructionIGet(Instruction::Code code)
    [all...]
verify_object.h 50 static constexpr bool kVerifyStack = kIsDebugBuild;
51 static constexpr VerifyObjectFlags kDefaultVerifyFlags = kVerifyNone;
52 static constexpr VerifyObjectMode kVerifyObjectSupport =
  /art/runtime/arch/
instruction_set.h 40 static constexpr InstructionSet kRuntimeISA = kArm;
42 static constexpr InstructionSet kRuntimeISA = kArm64;
44 static constexpr InstructionSet kRuntimeISA = kMips;
46 static constexpr InstructionSet kRuntimeISA = kMips64;
48 static constexpr InstructionSet kRuntimeISA = kX86;
50 static constexpr InstructionSet kRuntimeISA = kX86_64;
52 static constexpr InstructionSet kRuntimeISA = kNone;
56 static constexpr size_t kArmPointerSize = 4;
57 static constexpr size_t kArm64PointerSize = 8;
58 static constexpr size_t kMipsPointerSize = 4
    [all...]
  /art/runtime/arch/x86/
quick_method_frame_info_x86.h 39 static constexpr uint32_t kX86CalleeSaveRefSpills =
41 static constexpr uint32_t kX86CalleeSaveArgSpills =
43 static constexpr uint32_t kX86CalleeSaveFpArgSpills =
47 constexpr uint32_t X86CalleeSaveCoreSpills(Runtime::CalleeSaveType type) {
52 constexpr uint32_t X86CalleeSaveFpSpills(Runtime::CalleeSaveType type) {
56 constexpr uint32_t X86CalleeSaveFrameSize(Runtime::CalleeSaveType type) {
62 constexpr QuickMethodFrameInfo X86CalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) {
  /device/google/contexthub/util/nanotool/
apptohostevent.h 33 constexpr uint64_t MakeAppId(uint64_t vendorId, uint32_t appId) {
37 constexpr uint64_t kAppIdVendorGoogle = 0x476f6f676cULL; // "Googl"
39 constexpr uint64_t kAppIdBoschBmi160Bmm150 = MakeAppId(kAppIdVendorGoogle, 2);
40 constexpr uint64_t kAppIdBoschBmp280 = MakeAppId(kAppIdVendorGoogle, 5);
41 constexpr uint64_t kAppIdAmsTmd2772 = MakeAppId(kAppIdVendorGoogle, 9);
42 constexpr uint64_t kAppIdRohmRpr0521 = MakeAppId(kAppIdVendorGoogle, 10);
43 constexpr uint64_t kAppIdAmsTmd4903 = MakeAppId(kAppIdVendorGoogle, 12);
  /external/libcxx/test/std/experimental/optional/optional.relops/
equal.pass.cpp 12 // template <class T> constexpr bool operator==(const optional<T>& x, const optional<T>& y);
26 constexpr X(int i) : i_(i) {}
29 constexpr bool operator == ( const X &lhs, const X &rhs )
41 constexpr O o1; // disengaged
42 constexpr O o2; // disengaged
43 constexpr O o3{1}; // engaged
44 constexpr O o4{2}; // engaged
45 constexpr O o5{1}; // engaged
greater_equal.pass.cpp 12 // template <class T> constexpr bool operator>= (const optional<T>& x, const optional<T>& y);
24 constexpr X(int i) : i_(i) {}
27 constexpr bool operator < ( const X &lhs, const X &rhs )
38 constexpr O o1; // disengaged
39 constexpr O o2; // disengaged
40 constexpr O o3{1}; // engaged
41 constexpr O o4{2}; // engaged
42 constexpr O o5{1}; // engaged
greater_than.pass.cpp 12 // template <class T> constexpr bool operator> (const optional<T>& x, const optional<T>& y);
24 constexpr X(int i) : i_(i) {}
27 constexpr bool operator < ( const X &lhs, const X &rhs )
38 constexpr O o1; // disengaged
39 constexpr O o2; // disengaged
40 constexpr O o3{1}; // engaged
41 constexpr O o4{2}; // engaged
42 constexpr O o5{1}; // engaged
less_equal.pass.cpp 12 // template <class T> constexpr bool operator<= (const optional<T>& x, const optional<T>& y);
24 constexpr X(int i) : i_(i) {}
27 constexpr bool operator < ( const X &lhs, const X &rhs )
38 constexpr O o1; // disengaged
39 constexpr O o2; // disengaged
40 constexpr O o3{1}; // engaged
41 constexpr O o4{2}; // engaged
42 constexpr O o5{1}; // engaged
less_than.pass.cpp 12 // template <class T> constexpr bool operator< (const optional<T>& x, const optional<T>& y);
24 constexpr X(int i) : i_(i) {}
27 constexpr bool operator < ( const X &lhs, const X &rhs )
38 constexpr O o1; // disengaged
39 constexpr O o2; // disengaged
40 constexpr O o3{1}; // engaged
41 constexpr O o4{2}; // engaged
42 constexpr O o5{1}; // engaged
not_equal.pass.cpp 12 // template <class T> constexpr bool operator!=(const optional<T>& x, const optional<T>& y);
26 constexpr X(int i) : i_(i) {}
29 constexpr bool operator == ( const X &lhs, const X &rhs )
41 constexpr O o1; // disengaged
42 constexpr O o2; // disengaged
43 constexpr O o3{1}; // engaged
44 constexpr O o4{2}; // engaged
45 constexpr O o5{1}; // engaged
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.relops/
equal.pass.cpp 12 // template <class T> constexpr bool operator==(const optional<T>& x, const optional<T>& y);
26 constexpr X(int i) : i_(i) {}
29 constexpr bool operator == ( const X &lhs, const X &rhs )
41 constexpr O o1; // disengaged
42 constexpr O o2; // disengaged
43 constexpr O o3{1}; // engaged
44 constexpr O o4{2}; // engaged
45 constexpr O o5{1}; // engaged
less_than.pass.cpp 12 // template <class T> constexpr bool operator< (const optional<T>& x, const optional<T>& y);
24 constexpr X(int i) : i_(i) {}
27 constexpr bool operator < ( const X &lhs, const X &rhs )
38 constexpr O o1; // disengaged
39 constexpr O o2; // disengaged
40 constexpr O o3{1}; // engaged
41 constexpr O o4{2}; // engaged
42 constexpr O o5{1}; // engaged
  /external/clang/test/CodeGenCXX/
explicit-instantiation.cpp 24 constexpr int constexpr_function() { return 0; }
29 constexpr int a = S<char>().constexpr_function();
34 constexpr int c = S<int>().constexpr_function();
44 template<typename T> constexpr int constexpr_function() { return 0; }
48 constexpr int e = constexpr_function<char>();
54 constexpr int g = constexpr_function<int>();
72 template<typename T> struct S { constexpr int f() { return 0; } };
73 template<typename T> constexpr int f() { return 0; }
94 // The linkage of a used constexpr member function can change from linkonce_odr
100 __attribute__((used)) constexpr int f() { return 0;
    [all...]
  /external/clang/test/SemaTemplate/
instantiate-self.cpp 20 friend constexpr int operator+(int, C) { return 4; }
50 // FIXME: PR12298: Recursive constexpr function template instantiation leads to
55 constexpr T f(T k) { return g(k); }
56 constexpr T g(T k) {
61 constexpr int x = A<int>().f(5);
65 template<typename T> constexpr T f(T);
66 template<typename T> constexpr T g(T t) {
70 template<typename T> constexpr T f(T t) {
79 template<typename T> constexpr T g(T t) {
82 template<typename T> constexpr T f(T t)
    [all...]
  /external/libcxx/test/std/experimental/optional/optional.object/optional.object.ctor/
rvalue_T.pass.cpp 12 // constexpr optional(T&& v);
36 constexpr Y(int i) : i_(i) {}
37 constexpr Y(Y&& x) : i_(x.i_) {}
39 friend constexpr bool operator==(const Y& x, const Y& y) {return x.i_ == y.i_;}
57 constexpr optional<T> opt(T(5));
64 constexpr test_constexpr_ctor(T&&) {}
69 constexpr optional<T> opt(T(3));
76 constexpr test_constexpr_ctor(T&&) {}
87 constexpr optional<T> opt(T(3));
94 constexpr test_constexpr_ctor(T&&) {
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.object/optional.object.ctor/
rvalue_T.pass.cpp 12 // constexpr optional(T&& v);
36 constexpr Y(int i) : i_(i) {}
37 constexpr Y(Y&& x) : i_(x.i_) {}
39 friend constexpr bool operator==(const Y& x, const Y& y) {return x.i_ == y.i_;}
57 constexpr optional<T> opt(T(5));
64 constexpr test_constexpr_ctor(T&&) {}
69 constexpr optional<T> opt(T(3));
76 constexpr test_constexpr_ctor(T&&) {}
87 constexpr optional<T> opt(T(3));
94 constexpr test_constexpr_ctor(T&&) {
    [all...]
  /art/runtime/arch/mips/
quick_method_frame_info_mips.h 28 static constexpr uint32_t kMipsCalleeSaveAlwaysSpills =
30 static constexpr uint32_t kMipsCalleeSaveRefSpills =
33 static constexpr uint32_t kMipsCalleeSaveArgSpills =
35 static constexpr uint32_t kMipsCalleeSaveAllSpills =
38 static constexpr uint32_t kMipsCalleeSaveFpAlwaysSpills = 0;
39 static constexpr uint32_t kMipsCalleeSaveFpRefSpills = 0;
40 static constexpr uint32_t kMipsCalleeSaveFpArgSpills =
42 static constexpr uint32_t kMipsCalleeSaveAllFPSpills =
47 constexpr uint32_t MipsCalleeSaveCoreSpills(Runtime::CalleeSaveType type) {
53 constexpr uint32_t MipsCalleeSaveFPSpills(Runtime::CalleeSaveType type)
    [all...]
  /external/clang/test/Modules/Inputs/
cxx-templates-c.h 10 static constexpr int f();
11 static constexpr int g();
13 template<typename T> constexpr int MergeTemplateDefinitions<T>::g() { return 2; }
  /external/clang/test/PCH/
cxx1y-default-initializer.cpp 14 template<typename T> constexpr A make() { return A {}; }
15 template<typename T> constexpr A make(T t) { return A { t }; }
19 constexpr B(int k) : z1(k) {}

Completed in 1472 milliseconds

1 2 3 4 5 67 8 91011>>