HomeSort by relevance Sort by last modified time
    Searched refs:CONSTEXPR (Results 1 - 16 of 16) sorted by null

  /system/core/libutils/include/utils/
Timers.h 38 static CONSTEXPR inline nsecs_t seconds_to_nanoseconds(nsecs_t secs)
43 static CONSTEXPR inline nsecs_t milliseconds_to_nanoseconds(nsecs_t secs)
48 static CONSTEXPR inline nsecs_t microseconds_to_nanoseconds(nsecs_t secs)
53 static CONSTEXPR inline nsecs_t nanoseconds_to_seconds(nsecs_t secs)
58 static CONSTEXPR inline nsecs_t nanoseconds_to_milliseconds(nsecs_t secs)
63 static CONSTEXPR inline nsecs_t nanoseconds_to_microseconds(nsecs_t secs)
68 static CONSTEXPR inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);}
69 static CONSTEXPR inline nsecs_t ms2ns(nsecs_t v) {return milliseconds_to_nanoseconds(v);}
70 static CONSTEXPR inline nsecs_t us2ns(nsecs_t v) {return microseconds_to_nanoseconds(v);}
71 static CONSTEXPR inline nsecs_t ns2s(nsecs_t v) {return nanoseconds_to_seconds(v);
    [all...]
Compat.h 56 * Needed for cases where something should be constexpr if possible, but not
57 * being constexpr is fine if in pre-C++11 code (such as a const static float
61 #define CONSTEXPR constexpr
63 #define CONSTEXPR
  /external/clang/test/CXX/basic/basic.start/basic.start.init/
p3.cpp 11 #elif CONSTEXPR
12 constexpr // expected-error {{'main' is not allowed to be declared constexpr}}
  /frameworks/native/libs/math/include/math/
mat2.h 27 #define CONSTEXPR constexpr
29 #define CONSTEXPR
88 static constexpr size_t COL_SIZE = col_type::SIZE; // size of a column (i.e.: number of rows)
89 static constexpr size_t ROW_SIZE = row_type::SIZE; // size of a row (i.e.: number of columns)
90 static constexpr size_t NUM_ROWS = COL_SIZE;
91 static constexpr size_t NUM_COLS = ROW_SIZE;
112 inline constexpr col_type const& operator[](size_t column) const {
114 // only possible in C++0x14 with constexpr
138 explicit constexpr TMat22(no_init
    [all...]
mat4.h 32 #define CONSTEXPR constexpr
34 #define CONSTEXPR
101 static constexpr size_t COL_SIZE = col_type::SIZE; // size of a column (i.e.: number of rows)
102 static constexpr size_t ROW_SIZE = row_type::SIZE; // size of a row (i.e.: number of columns)
103 static constexpr size_t NUM_ROWS = COL_SIZE;
104 static constexpr size_t NUM_COLS = ROW_SIZE;
125 inline constexpr col_type const& operator[](size_t column) const {
127 // only possible in C++0x14 with constexpr
149 explicit constexpr TMat44(no_init
    [all...]
mat3.h 28 #define CONSTEXPR constexpr
30 #define CONSTEXPR
95 static constexpr size_t COL_SIZE = col_type::SIZE; // size of a column (i.e.: number of rows)
96 static constexpr size_t ROW_SIZE = row_type::SIZE; // size of a row (i.e.: number of columns)
97 static constexpr size_t NUM_ROWS = COL_SIZE;
98 static constexpr size_t NUM_COLS = ROW_SIZE;
119 inline constexpr col_type const& operator[](size_t column) const {
121 // only possible in C++0x14 with constexpr
145 explicit constexpr TMat33(no_init
    [all...]
TVecHelpers.h 31 #define CONSTEXPR constexpr
33 #define CONSTEXPR
110 friend inline constexpr VECTOR<T> PURE operator +(VECTOR<T> lv, const VECTOR<RT>& rv) {
115 friend inline constexpr VECTOR<T> PURE operator -(VECTOR<T> lv, const VECTOR<RT>& rv) {
126 friend inline constexpr VECTOR<T> PURE operator +(VECTOR<T> lv, const VECTOR<T>& rv) {
130 friend inline constexpr VECTOR<T> PURE operator -(VECTOR<T> lv, const VECTOR<T>& rv) {
191 friend inline constexpr VECTOR<T> PURE operator *(VECTOR<T> lv, const VECTOR<RT>& rv) {
196 friend inline constexpr VECTOR<T> PURE operator /(VECTOR<T> lv, const VECTOR<RT>& rv) {
207 friend inline constexpr VECTOR<T> PURE operator *(VECTOR<T> lv, const VECTOR<T>& rv)
    [all...]
half.h 36 #define CONSTEXPR constexpr
38 #define CONSTEXPR
60 explicit constexpr fp16() noexcept : bits(0) { }
61 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { }
65 constexpr unsigned int getS() const noexcept { return bits >> 15u; }
66 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; }
67 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; }
74 explicit constexpr fp32() noexcept : bits(0) { }
75 explicit constexpr fp32(float f) noexcept : fp(f) {
    [all...]
TMatHelpers.h 47 #define CONSTEXPR constexpr
49 #define CONSTEXPR
69 inline constexpr int transpose(int v) { return v; }
70 inline constexpr float transpose(float v) { return v; }
71 inline constexpr double transpose(double v) { return v; }
73 inline constexpr int trace(int v) { return v; }
74 inline constexpr float trace(float v) { return v; }
75 inline constexpr double trace(double v) { return v; }
83 static constexpr unsigned int N = MATRIX::NUM_ROWS
    [all...]
  /frameworks/av/cmds/stagefright/
SineSource.h 28 static const CONSTEXPR double kFrequency = 500.0;
  /frameworks/av/media/libaudioprocessing/include/media/
AudioResampler.h 52 static const CONSTEXPR float UNITY_GAIN_FLOAT = 1.0f;
  /frameworks/av/media/libaudioprocessing/
AudioResamplerFirGen.h 183 * We use a bit of template math here, constexpr would probably be
192 static const CONSTEXPR double value = I0Term<N-1>::value / (4. * N * N);
197 static const CONSTEXPR double value = 1.;
202 static const CONSTEXPR double value = I0ATerm<N-1>::value * (2.*N-1.) * (2.*N-1.) / (8. * N);
207 static const CONSTEXPR double value =
  /system/extras/tests/memtest/
bandwidth.h 97 static const CONSTEXPR double _NUM_NS_PER_SEC = 1000000000.0;
98 static const CONSTEXPR double _BYTES_PER_MB = 1024.0* 1024.0;
  /frameworks/av/media/libaudioclient/include/media/
ToneGenerator.h 220 static const CONSTEXPR float TONEGEN_GAIN = 0.9; // Default gain passed to WaveGenerator().
AudioMixer.h 61 static const CONSTEXPR float UNITY_GAIN_FLOAT = 1.0f;
  /frameworks/av/services/camera/libcameraservice/api1/client2/
Parameters.h 203 static const CONSTEXPR float ASPECT_RATIO_TOLERANCE = 0.001;

Completed in 517 milliseconds