OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:constexpr
(Results
201 - 225
of
5263
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/utilities/propagate_const/propagate_const.nonmembers/propagate_const.relops/
less_equal.pass.cpp
14
// template <class T>
constexpr
bool operator<=(const propagate_const<T>& x, const propagate_const<T>& y);
15
// template <class T>
constexpr
bool operator<=(const T& x, const propagate_const<T>& y);
16
// template <class T>
constexpr
bool operator<=(const propagate_const<T>& x, const T& y);
24
constexpr
bool operator<=(const X &lhs, const X &rhs) {
29
constexpr
X x1_1(1);
30
constexpr
X x2_1(1);
31
constexpr
X x3_2(2);
39
constexpr
P p1_1(1);
40
constexpr
P p2_1(1);
41
constexpr
P p3_2(2)
[
all
...]
less_than.pass.cpp
14
// template <class T>
constexpr
bool operator<(const propagate_const<T>& x, const propagate_const<T>& y);
15
// template <class T>
constexpr
bool operator<(const T& x, const propagate_const<T>& y);
16
// template <class T>
constexpr
bool operator<(const propagate_const<T>& x, const T& y);
24
constexpr
bool operator<(const X &lhs, const X &rhs) {
29
constexpr
X x1_1(1);
30
constexpr
X x2_1(1);
31
constexpr
X x3_2(2);
38
constexpr
P p1_1(1);
39
constexpr
P p2_1(1);
40
constexpr
P p3_2(2)
[
all
...]
/system/netd/libbpf/include/bpf/
BpfUtils.h
101
constexpr
const int COOKIE_UID_MAP_SIZE = 10000;
102
constexpr
const int UID_COUNTERSET_MAP_SIZE = 2000;
103
constexpr
const int UID_STATS_MAP_SIZE = 10000;
104
constexpr
const int TAG_STATS_MAP_SIZE = 10000;
105
constexpr
const int IFACE_INDEX_NAME_MAP_SIZE = 1000;
106
constexpr
const int IFACE_STATS_MAP_SIZE = 1000;
107
constexpr
const int UID_OWNER_MAP_SIZE = 2000;
109
constexpr
const char* BPF_EGRESS_PROG_PATH = BPF_PATH "/egress_prog";
110
constexpr
const char* BPF_INGRESS_PROG_PATH = BPF_PATH "/ingress_prog";
111
constexpr
const char* XT_BPF_INGRESS_PROG_PATH = BPF_PATH "/xt_bpf_ingress_prog"
[
all
...]
/external/clang/test/SemaTemplate/
instantiate-var-template.cpp
4
template <typename T>
constexpr
T pi = T(3.14);
5
template <typename T>
constexpr
T tau = 2 * pi<T>;
6
constexpr
double tau_double = tau<double>;
11
template<typename T>
constexpr
T var = 12345;
12
template<typename T>
constexpr
T f() { return var<T>; }
13
constexpr
int k = f<int>();
18
template<typename T>
constexpr
T a = 0;
19
template<typename T>
constexpr
T b = a<int>;
27
template<int>
constexpr
int a = 1;
28
template<typename T>
constexpr
T b = a<sizeof(sizeof(f(T())))>; // expected-error {{invalid application of 'sizeof' to an incompl (…)
[
all
...]
/art/compiler/utils/
managed_register.h
53
constexpr
ManagedRegister(const ManagedRegister& other) = default;
57
constexpr
arm::ArmManagedRegister AsArm() const;
58
constexpr
arm64::Arm64ManagedRegister AsArm64() const;
59
constexpr
mips::MipsManagedRegister AsMips() const;
60
constexpr
mips64::Mips64ManagedRegister AsMips64() const;
61
constexpr
x86::X86ManagedRegister AsX86() const;
62
constexpr
x86_64::X86_64ManagedRegister AsX86_64() const;
65
constexpr
bool Equals(const ManagedRegister& other) const {
69
constexpr
bool IsNoRegister() const {
73
static
constexpr
ManagedRegister NoRegister()
[
all
...]
/art/compiler/optimizing/
scheduler_arm64.h
25
static
constexpr
uint32_t kArm64MemoryLoadLatency = 5;
26
static
constexpr
uint32_t kArm64MemoryStoreLatency = 3;
28
static
constexpr
uint32_t kArm64CallInternalLatency = 10;
29
static
constexpr
uint32_t kArm64CallLatency = 5;
33
static
constexpr
uint32_t kArm64IntegerOpLatency = 2;
34
static
constexpr
uint32_t kArm64FloatingPointOpLatency = 5;
37
static
constexpr
uint32_t kArm64DataProcWithShifterOpLatency = 3;
38
static
constexpr
uint32_t kArm64DivDoubleLatency = 30;
39
static
constexpr
uint32_t kArm64DivFloatLatency = 15;
40
static
constexpr
uint32_t kArm64DivIntegerLatency = 5
[
all
...]
/external/clang/test/SemaCXX/
constexpr-nqueens.cpp
9
constexpr
Board() : State(0), Failed(false) {}
10
constexpr
Board(const Board &O) : State(O.State), Failed(O.Failed) {}
11
constexpr
Board(uint64_t State, bool Failed = false) :
13
constexpr
Board addQueen(int Row, int Col) const {
16
constexpr
int getQueenRow(int Col) const {
19
constexpr
bool ok(int Row, int Col) const {
22
constexpr
bool okRecurse(int Row, int Col, int CheckCol) const {
29
constexpr
bool at(int Row, int Col) const {
32
constexpr
bool check(const char *, int=0, int=0) const;
35
constexpr
Board buildBoardRecurse(int N, int Col, const Board &B)
[
all
...]
cxx1z-constexpr-lambdas.cpp
10
auto L = [](NonLit NL)
constexpr
{ }; //expected-error{{not a literal type}}
14
auto L = [](int I)
constexpr
{ asm("non-
constexpr
"); }; //expected-error{{not allowed in
constexpr
function}}
31
auto L = [](auto a) { asm("non-
constexpr
"); return a; }; //expected-note{{declared here}}
32
constexpr
int I = //expected-error{{must be initialized by a constant expression}}
33
L(3); //expected-note{{non-
constexpr
function}}
/external/libmojo/ui/gfx/range/
range.h
41
constexpr
Range() : Range(0) {}
44
constexpr
Range(uint32_t start, uint32_t end) : start_(start), end_(end) {}
47
constexpr
explicit Range(uint32_t position) : Range(position, position) {}
59
static
constexpr
Range InvalidRange() {
64
constexpr
bool IsValid() const { return *this != InvalidRange(); }
67
constexpr
uint32_t start() const { return start_; }
70
constexpr
uint32_t end() const { return end_; }
74
constexpr
uint32_t length() const { return GetMax() - GetMin(); }
76
constexpr
bool is_reversed() const { return start() > end(); }
77
constexpr
bool is_empty() const { return start() == end();
[
all
...]
/bionic/tests/
byteswap_test.cpp
21
static
constexpr
uint16_t le16 = 0x1234;
22
static
constexpr
uint32_t le32 = 0x12345678;
23
static
constexpr
uint64_t le64 = 0x123456789abcdef0;
25
static
constexpr
uint16_t be16 = 0x3412;
26
static
constexpr
uint32_t be32 = 0x78563412;
27
static
constexpr
uint64_t be64 = 0xf0debc9a78563412;
/external/clang/test/CXX/drs/
dr16xx.cpp
14
constexpr
int f() { return 0; } // expected-warning 0-1{{will not be implicitly 'const'}}
16
constexpr
int f(NonLiteral &) { return 0; }
17
constexpr
int f(NonLiteral) { return 0; } // expected-error {{not a literal type}}
50
constexpr
A(int, float = 0); // expected-note 2{{candidate}}
59
constexpr
B a(0); // expected-error {{ambiguous}}
60
constexpr
B b(0, 0); // expected-error {{ambiguous}}
/external/libcxx/test/libcxx/utilities/meta/meta.unary/meta.unary.prop/
__has_operator_addressof.pass.cpp
28
constexpr
B* operator&() const;
41
constexpr
C operator&() const;
45
constexpr
F* operator&(F const &) { return nullptr; }
48
constexpr
G* operator&(G &&) { return nullptr; }
51
constexpr
H* operator&(H const &&) { return nullptr; }
55
constexpr
J* operator&() const &&;
/frameworks/base/tools/aapt2/xml/
XmlUtil.h
28
constexpr
const char* kSchemaAuto = "http://schemas.android.com/apk/res-auto";
29
constexpr
const char* kSchemaPublicPrefix = "http://schemas.android.com/apk/res/";
30
constexpr
const char* kSchemaPrivatePrefix = "http://schemas.android.com/apk/prv/res/";
31
constexpr
const char* kSchemaAndroid = "http://schemas.android.com/apk/res/android";
32
constexpr
const char* kSchemaTools = "http://schemas.android.com/tools";
33
constexpr
const char* kSchemaAapt = "http://schemas.android.com/aapt";
/hardware/google/av/codec2/vndk/include/
C2ErrnoUtils.h
24
template<int N>
constexpr
c2_status_t _c2_errno2status_impl();
25
template<>
constexpr
c2_status_t _c2_errno2status_impl<0>() { return C2_OK; }
26
template<>
constexpr
c2_status_t _c2_errno2status_impl<EINVAL>() { return C2_BAD_VALUE; }
27
template<>
constexpr
c2_status_t _c2_errno2status_impl<EACCES>() { return C2_REFUSED; }
28
template<>
constexpr
c2_status_t _c2_errno2status_impl<EPERM>() { return C2_REFUSED; }
29
template<>
constexpr
c2_status_t _c2_errno2status_impl<ENOMEM>() { return C2_NO_MEMORY; }
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/libcxx/utilities/meta/meta.unary/meta.unary.prop/
__has_operator_addressof.pass.cpp
28
constexpr
B* operator&() const;
41
constexpr
C operator&() const;
45
constexpr
F* operator&(F const &) { return nullptr; }
48
constexpr
G* operator&(G &&) { return nullptr; }
51
constexpr
H* operator&(H const &&) { return nullptr; }
55
constexpr
J* operator&() const &&;
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/optional/optional.comp_with_t/
equal.pass.cpp
13
// template <class T>
constexpr
bool operator==(const optional<T>& x, const T& v);
14
// template <class T>
constexpr
bool operator==(const T& v, const optional<T>& x);
24
constexpr
X(int i) : i_(i) {}
27
constexpr
bool operator == ( const X &lhs, const X &rhs )
36
constexpr
T val(2);
37
constexpr
O o1; // disengaged
38
constexpr
O o2{1}; // engaged
39
constexpr
O o3{val}; // engaged
greater.pass.cpp
13
// template <class T>
constexpr
bool operator>(const optional<T>& x, const T& v);
14
// template <class T>
constexpr
bool operator>(const T& v, const optional<T>& x);
24
constexpr
X(int i) : i_(i) {}
27
constexpr
bool operator < ( const X &lhs, const X &rhs )
36
constexpr
T val(2);
37
constexpr
O o1; // disengaged
38
constexpr
O o2{1}; // engaged
39
constexpr
O o3{val}; // engaged
greater_equal.pass.cpp
13
// template <class T>
constexpr
bool operator>=(const optional<T>& x, const T& v);
14
// template <class T>
constexpr
bool operator>=(const T& v, const optional<T>& x);
24
constexpr
X(int i) : i_(i) {}
27
constexpr
bool operator < ( const X &lhs, const X &rhs )
36
constexpr
T val(2);
37
constexpr
O o1; // disengaged
38
constexpr
O o2{1}; // engaged
39
constexpr
O o3{val}; // engaged
less_equal.pass.cpp
13
// template <class T>
constexpr
bool operator<=(const optional<T>& x, const T& v);
14
// template <class T>
constexpr
bool operator<=(const T& v, const optional<T>& x);
24
constexpr
X(int i) : i_(i) {}
27
constexpr
bool operator < ( const X &lhs, const X &rhs )
36
constexpr
T val(2);
37
constexpr
O o1; // disengaged
38
constexpr
O o2{1}; // engaged
39
constexpr
O o3{val}; // engaged
less_than.pass.cpp
13
// template <class T>
constexpr
bool operator<(const optional<T>& x, const T& v);
14
// template <class T>
constexpr
bool operator<(const T& v, const optional<T>& x);
24
constexpr
X(int i) : i_(i) {}
27
constexpr
bool operator < ( const X &lhs, const X &rhs )
36
constexpr
T val(2);
37
constexpr
O o1; // disengaged
38
constexpr
O o2{1}; // engaged
39
constexpr
O o3{val}; // engaged
not_equal.pass.cpp
13
// template <class T>
constexpr
bool operator!=(const optional<T>& x, const T& v);
14
// template <class T>
constexpr
bool operator!=(const T& v, const optional<T>& x);
24
constexpr
X(int i) : i_(i) {}
27
constexpr
bool operator == ( const X &lhs, const X &rhs )
36
constexpr
T val(2);
37
constexpr
O o1; // disengaged
38
constexpr
O o2{1}; // engaged
39
constexpr
O o3{val}; // engaged
/system/core/fastboot/
udp.h
40
constexpr
int kDefaultPort = 5554;
49
constexpr
uint16_t kProtocolVersion = 1;
52
constexpr
uint16_t kHostMaxPacketSize = 8192;
57
constexpr
int kResponseTimeoutMs = 500;
58
constexpr
int kMaxConnectAttempts = 4;
59
constexpr
int kMaxTransmissionAttempts = 60 * 1000 / kResponseTimeoutMs;
/bionic/linker/
linker_logger.h
41
constexpr
const uint32_t kLogErrors = 1 << 0;
42
constexpr
const uint32_t kLogDlopen = 1 << 1;
43
constexpr
const uint32_t kLogDlsym = 1 << 2;
/external/clang/test/Modules/
redecl-templates.cpp
9
template<int N>
constexpr
void f() {}
10
template<int N>
constexpr
void g() { f<N>(); }
31
template<>
constexpr
void f<1>() {}
/external/libcxx/test/std/language.support/support.types/byteops/
not.pass.cpp
15
//
constexpr
byte operator~(byte b) noexcept;
18
constexpr
std::byte b1{static_cast<std::byte>(1)};
19
constexpr
std::byte b2{static_cast<std::byte>(2)};
20
constexpr
std::byte b8{static_cast<std::byte>(8)};
Completed in 565 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>