Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 498) sorted by relevance

12345678910>>...20

/device/google/contexthub/firmware/os/algos/common/math/
Dvec.h58 static inline void initVec3(struct Vec3 *v, float x, float y, float z) { in initVec3() argument
59 CHRE_ASSERT_NOT_NULL(v); in initVec3()
60 v->x = x; in initVec3()
61 v->y = y; in initVec3()
62 v->z = z; in initVec3()
66 static inline void vec3Add(struct Vec3 *v, const struct Vec3 *w) { in vec3Add() argument
67 CHRE_ASSERT_NOT_NULL(v); in vec3Add()
69 v->x += w->x; in vec3Add()
70 v->y += w->y; in vec3Add()
71 v->z += w->z; in vec3Add()
[all …]
Dvec.c55 void vecAdd(float *u, const float *v, const float *w, size_t dim) { in vecAdd() argument
57 CHRE_ASSERT_NOT_NULL(v); in vecAdd()
61 u[i] = v[i] + w[i]; in vecAdd()
65 void vecAddInPlace(float *v, const float *w, size_t dim) { in vecAddInPlace() argument
66 CHRE_ASSERT_NOT_NULL(v); in vecAddInPlace()
70 v[i] += w[i]; in vecAddInPlace()
74 void vecSub(float *u, const float *v, const float *w, size_t dim) { in vecSub() argument
76 CHRE_ASSERT_NOT_NULL(v); in vecSub()
80 u[i] = v[i] - w[i]; in vecSub()
84 void vecScalarMul(float *u, const float *v, float c, size_t dim) { in vecScalarMul() argument
[all …]
/device/generic/vulkan-cereal/third-party/astc-codec/src/decoder/
Dendpoint_codec.cc629 std::array<int, kNumVals> v {}; in UsesBlueContract() local
630 std::copy(vals.begin(), vals.end(), v.begin()); in UsesBlueContract()
631 Unquantize(&v, max_value); in UsesBlueContract()
633 const int s0 = v[0] + v[2] + v[4]; in UsesBlueContract()
634 const int s1 = v[1] + v[3] + v[5]; in UsesBlueContract()
644 std::array<int, kNumVals> v {}; in UsesBlueContract() local
645 std::copy(vals.begin(), vals.end(), v.begin()); in UsesBlueContract()
646 Unquantize(&v, max_value); in UsesBlueContract()
648 BitTransferSigned(&v[1], &v[0]); in UsesBlueContract()
649 BitTransferSigned(&v[3], &v[2]); in UsesBlueContract()
[all …]
/device/generic/vulkan-cereal/include/glm/detail/
Dtype_vec3.inl45 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec3<T, P>::tvec3(tvec3<T, P> const & v) argument
46 : x(v.x), y(v.y), z(v.z)
52 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec3<T, P>::tvec3(tvec3<T, Q> const & v) argument
53 : x(v.x), y(v.y), z(v.z)
126 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec3<T, P>::tvec3(tvec3<U, Q> const & v) : argument
127 x(static_cast<T>(v.x)),
128 y(static_cast<T>(v.y)),
129 z(static_cast<T>(v.z))
134 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec3<T, P>::tvec3(tvec4<U, Q> const & v) : argument
135 x(static_cast<T>(v.x)),
[all …]
Dtype_vec2.inl32 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec2<T, P>::tvec2(tvec2<T, P> const & v) argument
33 : x(v.x), y(v.y)
39 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec2<T, P>::tvec2(tvec2<T, Q> const & v) argument
40 : x(v.x), y(v.y)
79 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec2<T, P>::tvec2(tvec2<U, Q> const & v) argument
80 : x(static_cast<T>(v.x))
81 , y(static_cast<T>(v.y))
86 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec2<T, P>::tvec2(tvec3<U, Q> const & v) argument
87 : x(static_cast<T>(v.x))
88 , y(static_cast<T>(v.y))
[all …]
Dtype_vec1.inl19 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec1<T, P>::tvec1(tvec1<T, P> const & v) argument
20 : x(v.x)
26 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec1<T, P>::tvec1(tvec1<T, Q> const & v) argument
27 : x(v.x)
45 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec1<T, P>::tvec1(tvec1<U, Q> const & v) argument
46 : x(static_cast<T>(v.x))
51 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec1<T, P>::tvec1(tvec2<U, Q> const & v) argument
52 : x(static_cast<T>(v.x))
57 GLM_FUNC_QUALIFIER GLM_CONSTEXPR_CTOR tvec1<T, P>::tvec1(tvec3<U, Q> const & v) argument
58 : x(static_cast<T>(v.x))
[all …]
Dtype_vec4.hpp93 GLM_FUNC_DECL GLM_CONSTEXPR_SIMD tvec4(tvec4<T, P> const& v) GLM_DEFAULT;
95 GLM_FUNC_DECL GLM_CONSTEXPR_SIMD tvec4(tvec4<T, Q> const& v);
149 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR GLM_EXPLICIT tvec4(tvec4<U, Q> const& v);
160 …GLM_FUNC_DECL tvec4(detail::_swizzle<2, T, P, glm::tvec2, E0, E1, -1, -2> const & v, detail::_swiz… in tvec4()
162 *this = tvec4<T, P>(v(), u()); in tvec4()
166 …CL tvec4(T const & x, T const & y, detail::_swizzle<2, T, P, glm::tvec2, E0, E1, -1, -2> const & v) in tvec4()
168 *this = tvec4<T, P>(x, y, v()); in tvec4()
172 …GLM_FUNC_DECL tvec4(T const & x, detail::_swizzle<2, T, P, glm::tvec2, E0, E1, -1, -2> const & v, … in tvec4()
174 *this = tvec4<T, P>(x, v(), w); in tvec4()
178 …GLM_FUNC_DECL tvec4(detail::_swizzle<2, T, P, glm::tvec2, E0, E1, -1, -2> const & v, T const & z, … in tvec4()
[all …]
Dtype_vec1.hpp89 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec1(tvec1<T, P> const & v) GLM_DEFAULT;
91 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR tvec1(tvec1<T, Q> const & v);
102 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR GLM_EXPLICIT tvec1(tvec2<U, Q> const & v);
105 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR GLM_EXPLICIT tvec1(tvec3<U, Q> const & v);
108 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR GLM_EXPLICIT tvec1(tvec4<U, Q> const & v);
112 GLM_FUNC_DECL GLM_CONSTEXPR_CTOR GLM_EXPLICIT tvec1(tvec1<U, Q> const & v);
126 GLM_FUNC_DECL tvec1<T, P> & operator=(tvec1<T, P> const & v) GLM_DEFAULT;
129 GLM_FUNC_DECL tvec1<T, P> & operator=(tvec1<U, P> const & v);
133 GLM_FUNC_DECL tvec1<T, P> & operator+=(tvec1<U, P> const & v);
137 GLM_FUNC_DECL tvec1<T, P> & operator-=(tvec1<U, P> const & v);
[all …]
/device/generic/goldfish-opengl/android-emu/android/base/
Dring_buffer.c208 struct ring_buffer_view* v, in ring_buffer_view_init() argument
216 v->buf = buf; in ring_buffer_view_init()
217 v->size = (1 << shift); in ring_buffer_view_init()
218 v->mask = (1 << shift) - 1; in ring_buffer_view_init()
222 struct ring_buffer_view* v, in ring_buffer_init_view_only() argument
228 v->buf = buf; in ring_buffer_init_view_only()
229 v->size = (1 << shift); in ring_buffer_init_view_only()
230 v->mask = (1 << shift) - 1; in ring_buffer_init_view_only()
234 const struct ring_buffer_view* v, in ring_buffer_view_get_ring_pos() argument
236 return index & v->mask; in ring_buffer_view_get_ring_pos()
[all …]
/device/generic/vulkan-cereal/base/
Dring_buffer.cpp194 struct ring_buffer_view* v, in ring_buffer_view_init() argument
202 v->buf = buf; in ring_buffer_view_init()
203 v->size = (1 << shift); in ring_buffer_view_init()
204 v->mask = (1 << shift) - 1; in ring_buffer_view_init()
208 struct ring_buffer_view* v, in ring_buffer_init_view_only() argument
214 v->buf = buf; in ring_buffer_init_view_only()
215 v->size = (1 << shift); in ring_buffer_init_view_only()
216 v->mask = (1 << shift) - 1; in ring_buffer_init_view_only()
220 const struct ring_buffer_view* v, in ring_buffer_view_get_ring_pos() argument
222 return index & v->mask; in ring_buffer_view_get_ring_pos()
[all …]
Dring_buffer_unittest.cpp241 static void viewWriteTest(ring_buffer* r, ring_buffer_view* v, const uint8_t* data, size_t stepSize… in viewWriteTest() argument
257 ring_buffer_view_write(r, v, in viewWriteTest()
268 static void viewReadTest(ring_buffer* r, ring_buffer_view* v, uint8_t* data, size_t stepSize, size_… in viewReadTest() argument
284 ring_buffer_view_read(r, v, in viewReadTest()
338 ring_buffer_view v; in TEST() local
339 ring_buffer_view_init(&r, &v, buf.data(), buf.size()); in TEST()
341 FunctorThread producer([&r, &v, &elements, stepSize, numSteps]() { in TEST()
342 viewWriteTest(&r, &v, (uint8_t*)elements.data(), stepSize, numSteps); in TEST()
345 FunctorThread consumer([&r, &v, &result, stepSize, numSteps]() { in TEST()
346 viewReadTest(&r, &v, (uint8_t*)result.data(), stepSize, numSteps); in TEST()
[all …]
/device/generic/vulkan-cereal/include/glm/gtc/
Dpacking.inl280 GLM_FUNC_QUALIFIER static tvec1<uint16, P> pack(tvec1<float, P> const & v)
282 int16 const Unpack(detail::toFloat16(v.x));
288 GLM_FUNC_QUALIFIER static tvec1<float, P> unpack(tvec1<uint16, P> const & v)
291 memcpy(&Unpack, &v, sizeof(Unpack));
292 return tvec1<float, P>(detail::toFloat32(v.x));
299 GLM_FUNC_QUALIFIER static tvec2<uint16, P> pack(tvec2<float, P> const & v)
301 tvec2<int16, P> const Unpack(detail::toFloat16(v.x), detail::toFloat16(v.y));
307 GLM_FUNC_QUALIFIER static tvec2<float, P> unpack(tvec2<uint16, P> const & v)
310 memcpy(&Unpack, &v, sizeof(Unpack));
311 return tvec2<float, P>(detail::toFloat32(v.x), detail::toFloat32(v.y));
[all …]
Dpacking.hpp39 GLM_FUNC_DECL uint8 packUnorm1x8(float v);
67 GLM_FUNC_DECL uint16 packUnorm2x8(vec2 const & v);
125 GLM_FUNC_DECL uint16 packSnorm2x8(vec2 const & v);
154 GLM_FUNC_DECL uint16 packUnorm1x16(float v);
183 GLM_FUNC_DECL uint64 packUnorm4x16(vec4 const & v);
212 GLM_FUNC_DECL uint16 packSnorm1x16(float v);
241 GLM_FUNC_DECL uint64 packSnorm4x16(vec4 const & v);
268 GLM_FUNC_DECL uint16 packHalf1x16(float v);
279 GLM_FUNC_DECL float unpackHalf1x16(uint16 v);
292 GLM_FUNC_DECL uint64 packHalf4x16(vec4 const & v);
[all …]
Dround.inl12 GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & v, T)
14 return v;
21 GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & v, T Shift)
23 return v | (v >> Shift);
36 vecType<T, P> v(abs(x)); local
38 v = v - static_cast<T>(1);
39 v = v | (v >> static_cast<T>(1));
40 v = v | (v >> static_cast<T>(2));
41 v = v | (v >> static_cast<T>(4));
42 v = compute_ceilShift<T, P, vecType, sizeof(T) >= 2>::call(v, 8);
[all …]
/device/generic/vulkan-cereal/include/glm/gtx/
Dmatrix_operation.inl9 tvec2<T, P> const & v argument
13 Result[0][0] = v[0];
14 Result[1][1] = v[1];
21 tvec2<T, P> const & v argument
25 Result[0][0] = v[0];
26 Result[1][1] = v[1];
33 tvec2<T, P> const & v argument
37 Result[0][0] = v[0];
38 Result[1][1] = v[1];
45 tvec2<T, P> const & v argument
[all …]
Drotate_vector.inl31 tvec2<T, P> const & v, argument
39 Result.x = v.x * Cos - v.y * Sin;
40 Result.y = v.x * Sin + v.y * Cos;
47 tvec3<T, P> const & v, argument
52 return tmat3x3<T, P>(glm::rotate(angle, normal)) * v;
69 tvec4<T, P> const & v, argument
74 return rotate(angle, normal) * v;
80 tvec3<T, P> const & v, argument
84 tvec3<T, P> Result(v);
88 Result.y = v.y * Cos - v.z * Sin;
[all …]
Drange.hpp31 inline length_t components(tvec1<T, P> const & v) in components() argument
33 return v.length(); in components()
37 inline length_t components(tvec2<T, P> const & v) in components() argument
39 return v.length(); in components()
43 inline length_t components(tvec3<T, P> const & v) in components() argument
45 return v.length(); in components()
49 inline length_t components(tvec4<T, P> const & v) in components() argument
51 return v.length(); in components()
61 inline typename genType::value_type const * begin(genType const & v) in begin() argument
63 return value_ptr(v); in begin()
[all …]
/device/generic/vulkan-cereal/protocols/generic-apigen/
DEntryPoint.cpp110 const VarType *v = TypeFactory::instance()->getVarTypeByName(vartype); in parse() local
111 if (v->id() == 0) { in parse()
115 !(v->name() == "void" && !v->isPointer())) { in parse()
121 m_vars.push_back(Var(varname, v, std::string(""), Var::POINTER_IN, "", "", "")); in parse()
152 Var *v = NULL; in var() local
155 v = &m_vars[i]; in var()
159 return v; in var()
164 const Var *v = NULL; in var() local
167 v = &m_vars[i]; in var()
171 return v; in var()
[all …]
/device/generic/vulkan-cereal/third-party/angle/src/libANGLE/
DContext_gl_1_0_autogen.h25 void color3bv(const GLbyte *v); \
27 void color3dv(const GLdouble *v); \
29 void color3fv(const GLfloat *v); \
31 void color3iv(const GLint *v); \
33 void color3sv(const GLshort *v); \
35 void color3ubv(const GLubyte *v); \
37 void color3uiv(const GLuint *v); \
39 void color3usv(const GLushort *v); \
41 void color4bv(const GLbyte *v); \
43 void color4dv(const GLdouble *v); \
[all …]
DvalidationGL1.cpp71 bool ValidateColor3bv(const Context *, const GLbyte *v) in ValidateColor3bv() argument
81 bool ValidateColor3dv(const Context *, const GLdouble *v) in ValidateColor3dv() argument
91 bool ValidateColor3fv(const Context *, const GLfloat *v) in ValidateColor3fv() argument
101 bool ValidateColor3iv(const Context *, const GLint *v) in ValidateColor3iv() argument
111 bool ValidateColor3sv(const Context *, const GLshort *v) in ValidateColor3sv() argument
121 bool ValidateColor3ubv(const Context *, const GLubyte *v) in ValidateColor3ubv() argument
131 bool ValidateColor3uiv(const Context *, const GLuint *v) in ValidateColor3uiv() argument
141 bool ValidateColor3usv(const Context *, const GLushort *v) in ValidateColor3usv() argument
151 bool ValidateColor4bv(const Context *, const GLbyte *v) in ValidateColor4bv() argument
161 bool ValidateColor4dv(const Context *, const GLdouble *v) in ValidateColor4dv() argument
[all …]
DvalidationGL1_autogen.h41 bool ValidateColor3bv(const Context *context, const GLbyte *v);
43 bool ValidateColor3dv(const Context *context, const GLdouble *v);
45 bool ValidateColor3fv(const Context *context, const GLfloat *v);
47 bool ValidateColor3iv(const Context *context, const GLint *v);
49 bool ValidateColor3sv(const Context *context, const GLshort *v);
51 bool ValidateColor3ubv(const Context *context, const GLubyte *v);
53 bool ValidateColor3uiv(const Context *context, const GLuint *v);
55 bool ValidateColor3usv(const Context *context, const GLushort *v);
57 bool ValidateColor4bv(const Context *context, const GLbyte *v);
63 bool ValidateColor4dv(const Context *context, const GLdouble *v);
[all …]
/device/generic/opengl-transport/host/commands/emugen/
DEntryPoint.cpp110 const VarType *v = TypeFactory::instance()->getVarTypeByName(vartype); in parse() local
111 if (v->id() == 0) { in parse()
115 !(v->name() == "void" && !v->isPointer())) { in parse()
121 m_vars.push_back(Var(varname, v, std::string(""), Var::POINTER_IN, "", "", "")); in parse()
152 Var *v = NULL; in var() local
155 v = &m_vars[i]; in var()
159 return v; in var()
164 const Var *v = NULL; in var() local
167 v = &m_vars[i]; in var()
171 return v; in var()
[all …]
/device/generic/vulkan-cereal/stream-servers/glestranslator/GLcommon/
DScopedGLState.cpp30 StateVector v; in push() local
42 gl.glGetIntegerv(name, v.intData); in push()
45 gl.glGetFloatv(name, v.floatData); in push()
57 v.intData[0] = gl.glIsEnabled(name); in push()
67 mStateMap[name] = v; in push()
100 const StateVector& v = it.second; in ~ScopedGLState() local
103 gl.glBindFramebuffer(GL_DRAW_FRAMEBUFFER, v.intData[0]); in ~ScopedGLState()
105 gl.glBindFramebuffer(GL_READ_FRAMEBUFFER, v.intData[0]); in ~ScopedGLState()
108 gl.glUseProgram(v.intData[0]); in ~ScopedGLState()
111 gl.glBindVertexArray(v.intData[0]); in ~ScopedGLState()
[all …]
/device/generic/vulkan-cereal/third-party/angle/src/libGL/
Dentry_points_gl_1_4_autogen.cpp348 void GL_APIENTRY SecondaryColor3bv(const GLbyte *v) in SecondaryColor3bv() argument
352 (uintptr_t)v); in SecondaryColor3bv()
357 bool isCallValid = (context->skipValidation() || ValidateSecondaryColor3bv(context, v)); in SecondaryColor3bv()
360 context->secondaryColor3bv(v); in SecondaryColor3bv()
362 ANGLE_CAPTURE(SecondaryColor3bv, isCallValid, context, v); in SecondaryColor3bv()
386 void GL_APIENTRY SecondaryColor3dv(const GLdouble *v) in SecondaryColor3dv() argument
390 CID(context), (uintptr_t)v); in SecondaryColor3dv()
395 bool isCallValid = (context->skipValidation() || ValidateSecondaryColor3dv(context, v)); in SecondaryColor3dv()
398 context->secondaryColor3dv(v); in SecondaryColor3dv()
400 ANGLE_CAPTURE(SecondaryColor3dv, isCallValid, context, v); in SecondaryColor3dv()
[all …]
/device/generic/vulkan-cereal/fake-android-guest/utils/
DTimers.h68 static CONSTEXPR inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);} in s2ns() argument
69 static CONSTEXPR inline nsecs_t ms2ns(nsecs_t v) {return milliseconds_to_nanoseconds(v);} in ms2ns() argument
70 static CONSTEXPR inline nsecs_t us2ns(nsecs_t v) {return microseconds_to_nanoseconds(v);} in us2ns() argument
71 static CONSTEXPR inline nsecs_t ns2s(nsecs_t v) {return nanoseconds_to_seconds(v);} in ns2s() argument
72 static CONSTEXPR inline nsecs_t ns2ms(nsecs_t v) {return nanoseconds_to_milliseconds(v);} in ns2ms() argument
73 static CONSTEXPR inline nsecs_t ns2us(nsecs_t v) {return nanoseconds_to_microseconds(v);} in ns2us() argument
75 static CONSTEXPR inline nsecs_t seconds(nsecs_t v) { return s2ns(v); } in seconds() argument
76 static CONSTEXPR inline nsecs_t milliseconds(nsecs_t v) { return ms2ns(v); } in milliseconds() argument
77 static CONSTEXPR inline nsecs_t microseconds(nsecs_t v) { return us2ns(v); } in microseconds() argument

12345678910>>...20