/device/google/contexthub/firmware/os/algos/common/math/ |
D | vec.h | 57 static inline void initVec3(struct Vec3 *v, float x, float y, float z) { in initVec3() argument 58 ASSERT_NOT_NULL(v); in initVec3() 59 v->x = x; in initVec3() 60 v->y = y; in initVec3() 61 v->z = z; in initVec3() 65 static inline void vec3Add(struct Vec3 *v, const struct Vec3 *w) { in vec3Add() argument 66 ASSERT_NOT_NULL(v); in vec3Add() 68 v->x += w->x; in vec3Add() 69 v->y += w->y; in vec3Add() 70 v->z += w->z; in vec3Add() [all …]
|
D | vec.c | 54 void vecAdd(float *u, const float *v, const float *w, size_t dim) { in vecAdd() argument 56 ASSERT_NOT_NULL(v); in vecAdd() 60 u[i] = v[i] + w[i]; in vecAdd() 64 void vecAddInPlace(float *v, const float *w, size_t dim) { in vecAddInPlace() argument 65 ASSERT_NOT_NULL(v); in vecAddInPlace() 69 v[i] += w[i]; in vecAddInPlace() 73 void vecSub(float *u, const float *v, const float *w, size_t dim) { in vecSub() argument 75 ASSERT_NOT_NULL(v); in vecSub() 79 u[i] = v[i] - w[i]; in vecSub() 83 void vecScalarMul(float *u, const float *v, float c, size_t dim) { in vecScalarMul() argument [all …]
|
D | mat.c | 81 void mat33Apply(struct Vec3 *out, const struct Mat33 *A, const struct Vec3 *v) { in mat33Apply() argument 84 ASSERT_NOT_NULL(v); in mat33Apply() 85 out->x = A->elem[0][0] * v->x + A->elem[0][1] * v->y + A->elem[0][2] * v->z; in mat33Apply() 86 out->y = A->elem[1][0] * v->x + A->elem[1][1] * v->y + A->elem[1][2] * v->z; in mat33Apply() 87 out->z = A->elem[2][0] * v->x + A->elem[2][1] * v->y + A->elem[2][2] * v->z; in mat33Apply() 446 void mat44Apply(struct Vec4 *out, const struct Mat44 *A, const struct Vec4 *v) { in mat44Apply() argument 449 ASSERT_NOT_NULL(v); in mat44Apply() 451 out->x = A->elem[0][0] * v->x + A->elem[0][1] * v->y + A->elem[0][2] * v->z + in mat44Apply() 452 A->elem[0][3] * v->w; in mat44Apply() 454 out->y = A->elem[1][0] * v->x + A->elem[1][1] * v->y + A->elem[1][2] * v->z + in mat44Apply() [all …]
|
D | kasa.c | 104 struct Vec3 v; in kasaFit() local 105 initVec3(&v, out.x, out.y, out.z); in kasaFit() 106 vec3ScalarMul(&v, -0.5f); in kasaFit() 108 float r_square = vec3Dot(&v, &v) - out.w; in kasaFit() 111 initVec3(bias, v.x, v.y, v.z); in kasaFit()
|
/device/linaro/hikey/hifi/xaf/host-apf/include/sys/fio/ |
D | xf-types.h | 78 #define xf_next_power_of_two(v) __xf_power_of_two_1((v) - 1) argument 79 #define __xf_power_of_two_1(v) __xf_power_of_two_2((v) | ((v) >> 1)) argument 80 #define __xf_power_of_two_2(v) __xf_power_of_two_3((v) | ((v) >> 2)) argument 81 #define __xf_power_of_two_3(v) __xf_power_of_two_4((v) | ((v) >> 4)) argument 82 #define __xf_power_of_two_4(v) __xf_power_of_two_5((v) | ((v) >> 8)) argument 83 #define __xf_power_of_two_5(v) __xf_power_of_two_6((v) | ((v) >> 16)) argument 84 #define __xf_power_of_two_6(v) ((v) + 1) argument 87 #define xf_is_power_of_two(v) (((v) & ((v) - 1)) == 0) argument
|
/device/generic/goldfish-opengl/android-emu/android/base/ |
D | ring_buffer.c | 208 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 …]
|
D | ring_buffer.h | 90 struct ring_buffer_view* v, 95 struct ring_buffer_view* v, 102 struct ring_buffer_view* v, 106 struct ring_buffer_view* v, 118 const struct ring_buffer_view* v, 122 const struct ring_buffer_view* v, 128 struct ring_buffer_view* v, 133 struct ring_buffer_view* v, 143 struct ring_buffer_view* v, 150 struct ring_buffer_view* v, [all …]
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/ |
D | xf-debug.h | 51 #define xf_next_power_of_two(v) __xf_power_of_two_1((v) - 1) argument 52 #define __xf_power_of_two_1(v) __xf_power_of_two_2((v) | ((v) >> 1)) argument 53 #define __xf_power_of_two_2(v) __xf_power_of_two_3((v) | ((v) >> 2)) argument 54 #define __xf_power_of_two_3(v) __xf_power_of_two_4((v) | ((v) >> 4)) argument 55 #define __xf_power_of_two_4(v) __xf_power_of_two_5((v) | ((v) >> 8)) argument 56 #define __xf_power_of_two_5(v) __xf_power_of_two_6((v) | ((v) >> 16)) argument 57 #define __xf_power_of_two_6(v) ((v) + 1) argument 60 #define xf_is_power_of_two(v) (((v) & ((v) - 1)) == 0) argument 84 #define C_UNUSED(v) (void)(0 ? (v) = (v), 1 : 0) argument
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/ |
D | xf-hal.h | 94 u32 v; in xf_atomic_test_and_set() local 98 v = *bitmap, *bitmap = v | mask; in xf_atomic_test_and_set() 101 return !(v & mask); in xf_atomic_test_and_set() 107 u32 v; in xf_atomic_test_and_clear() local 111 v = *bitmap, *bitmap = v & ~mask; in xf_atomic_test_and_clear() 114 return (v & mask); in xf_atomic_test_and_clear() 120 u32 v; in xf_atomic_set() local 124 v = *bitmap, *bitmap = (v |= mask); in xf_atomic_set() 127 return v; in xf_atomic_set() 133 u32 v; in xf_atomic_clear() local [all …]
|
D | xf-shmem.h | 116 #define XF_PROXY_WRITE(core, field, v) \ argument 117 __XF_PROXY_WRITE_##field(XF_SHMEM_DATA(core), (v)) 133 #define __XF_PROXY_WRITE_cmd_write_idx(proxy, v) \ argument 134 XF_PROXY_WRITE_ATOMIC(proxy->remote.cmd_write_idx, v) 136 #define __XF_PROXY_WRITE_cmd_read_idx(proxy, v) \ argument 137 XF_PROXY_WRITE_ATOMIC(proxy->local.cmd_read_idx, v) 139 #define __XF_PROXY_WRITE_rsp_read_idx(proxy, v) \ argument 140 XF_PROXY_WRITE_ATOMIC(proxy->remote.rsp_read_idx, v) 142 #define __XF_PROXY_WRITE_rsp_write_idx(proxy, v) \ argument 143 XF_PROXY_WRITE_ATOMIC(proxy->local.rsp_write_idx, v)
|
/device/generic/opengl-transport/host/commands/emugen/ |
D | EntryPoint.cpp | 110 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 …]
|
D | ApiGen.cpp | 1036 Var *v = &e->vars()[i]; in genDecoderImpl() local 1037 … if (!v->isVoid()) printString += (v->isPointer() ? "%p(%u)" : v->type()->printFormat()) + " "; in genDecoderImpl() 1101 Var *v = & evars[j]; in genDecoderImpl() local 1102 if (v->isVoid()) { in genDecoderImpl() 1105 const char* var_name = v->name().c_str(); in genDecoderImpl() 1106 const char* var_type_name = v->type()->name().c_str(); in genDecoderImpl() 1107 const unsigned var_type_bytes = v->type()->bytes(); in genDecoderImpl() 1117 if (v->isPointer() && v->isDMA()) { in genDecoderImpl() 1135 if (!v->isPointer()) { in genDecoderImpl() 1161 if (!v->isDMA()) { in genDecoderImpl() [all …]
|
/device/generic/goldfish/camera/ |
D | Converters.h | 153 R8G8B8ToYUV(uint8_t r, uint8_t g, uint8_t b, uint8_t* y, uint8_t* u, uint8_t* v) in R8G8B8ToYUV() argument 157 *v = RGB2V((int)r, (int)g, (int)b); in R8G8B8ToYUV() 162 RGB565ToYUV(uint16_t rgb, uint8_t* y, uint8_t* u, uint8_t* v) in RGB565ToYUV() argument 164 R8G8B8ToYUV(R16_32(rgb), G16_32(rgb), B16_32(rgb), y, u, v); in RGB565ToYUV() 169 RGB32ToYUV(uint32_t rgb, uint8_t* y, uint8_t* u, uint8_t* v) in RGB32ToYUV() argument 173 R8G8B8ToYUV(rgb_c.r, rgb_c.g, rgb_c.b, y, u, v); in RGB32ToYUV() 199 #define YUV2R(y, u, v) clamp((298 * ((y)-16) + 409 * ((v)-128) + 128) >> 8) argument 200 #define YUV2G(y, u, v) clamp((298 * ((y)-16) - 100 * ((u)-128) - 208 * ((v)-128) + 128) >> 8) argument 201 #define YUV2B(y, u, v) clamp((298 * ((y)-16) + 516 * ((u)-128) + 128) >> 8) argument 206 YUVToRGB565(int y, int u, int v) in YUVToRGB565() argument [all …]
|
/device/google/cuttlefish/guest/hals/camera/ |
D | Converters.h | 170 uint8_t* u, uint8_t* v) { in R8G8B8ToYUV() argument 173 *v = RGB2V((int)r, (int)g, (int)b); in R8G8B8ToYUV() 178 uint8_t* v) { in RGB565ToYUV() argument 179 R8G8B8ToYUV(R16_32(rgb), G16_32(rgb), B16_32(rgb), y, u, v); in RGB565ToYUV() 184 uint8_t* v) { in RGB32ToYUV() argument 187 R8G8B8ToYUV(rgb_c.r, rgb_c.g, rgb_c.b, y, u, v); in RGB32ToYUV() 213 #define YUV2R(y, u, v) clamp((298 * ((y)-16) + 409 * ((v)-128) + 128) >> 8) argument 214 #define YUV2G(y, u, v) \ argument 215 clamp((298 * ((y)-16) - 100 * ((u)-128) - 208 * ((v)-128) + 128) >> 8) 216 #define YUV2B(y, u, v) clamp((298 * ((y)-16) + 516 * ((u)-128) + 128) >> 8) argument [all …]
|
/device/google/contexthub/firmware/os/inc/ |
D | floatRt.h | 29 float floatFromUint64(uint64_t v); 30 float floatFromInt64(int64_t v); 45 static inline float floatFromUint64(uint64_t v) in floatFromUint64() argument 47 return v; in floatFromUint64() 50 static inline float floatFromInt64(int64_t v) in floatFromInt64() argument 52 return v; in floatFromInt64()
|
/device/google/contexthub/firmware/os/core/ |
D | floatRt.c | 126 float floatFromUint64(uint64_t v) in floatFromUint64() argument 128 uint32_t hi = v >> 32, lo = v; in floatFromUint64() 137 float floatFromInt64(int64_t v) in floatFromInt64() argument 139 uint32_t hi = ((uint64_t)v) >> 32, lo = v; in floatFromInt64() 144 return -floatFromUint64(-v); in floatFromInt64() 146 return floatFromUint64(v); in floatFromInt64()
|
/device/google/contexthub/firmware/lib/libm/ |
D | kf_sin.c | 38 float z,r,v; local 45 v = z*x; 47 if(iy==0) return x+v*(S1+z*r); 48 else return x-((z*(half*y-v*r)-y)-v*S1);
|
D | ef_pow.c | 67 float y1,t1,t2,r,s,t,u,v,w; local 145 v = t*ivln2_l-w*ivln2; 146 t1 = u+v; 149 t2 = v-(t1-u); 167 v = one/(ax+bp[k]); 168 s = u*v; 175 s_l = v*((u-s_h*t_h)-s_h*t_l); 187 v = s_l*t_h+t_l*s; 189 p_h = u+v; 192 p_l = v-(p_h-u); [all …]
|
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/ |
D | math_private.h | 147 #define SET_HIGH_WORD(d,v) \ argument 151 sh_u.parts.msw = (v); \ 157 #define SET_LOW_WORD(d,v) \ argument 161 sl_u.parts.lsw = (v); \ 260 #define SET_LDBL_EXPSIGN(d,v) \ argument 264 se_u.xbits.expsign = (v); \ 270 #define LD80C(m, ex, v) { \ argument 272 .xbits.expsign = (0x3fff + (ex)) | ((v) < 0 ? 0x8000 : 0), \ 276 #define LD80C(m, ex, v) { .e = (v), } argument 319 #define RETURNF(v) return (v) argument [all …]
|
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/ |
D | KeyedVectorUtils.h | 21 void clearObjectMap(std::map<GLuint, T>& v) { in clearObjectMap() argument 22 typename std::map<GLuint, T>::iterator it = v.begin(); in clearObjectMap() 23 for (; it != v.end(); ++it) { in clearObjectMap() 26 v.clear(); in clearObjectMap()
|
/device/linaro/hikey/hifi/firmware/ |
D | hifi-hikey960.img | 7 …v���� � b q A���6�:0��8�.2�������`�� d�H… 33 ��y��v��v��v��v��v��v��v��v��v��y� w��y��v�hx��v�x��v��v��v��w��v��v��v��y…
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/build_hikey/ |
D | xa_hikey.img | 7 …v���� � b q A���6�:0��8�.2�������`�� d�H… 33 ��y��v��v��v��v��v��v��v��v��v��y� w��y��v�hx��v�x��v��v��v��w��v��v��v��y…
|
/device/google/bonito/vibrator/cs40l20/wav_wavetable/ |
D | 10_THUD_0503.json | 1 …����>G]eru{yyohYI7����J+���P��Q�v/��=��8��/… 25 >r������=������0�m�����Z����j���I���L���s���a�)�������x�v�������\���j���R���`����;�����b�!�… 50 …30�f�N� �%W������-�s���I����C�;�L���ߟ�l�vܭ���ڧ���ۥ�n�dݗ��ߐ�\�J�i����B�����������v… 52 …������������������fc�+(!/�0�.U'���?��{���E���4�����H��#�'�'�$:v� 60 .�L�.�ׂ�,Բ�D��S����"o+S0�0F,F#%�����������nѵ��W�v��R~#
|
/device/google/crosshatch/vibrator/cs40l20/wav_wavetable/ |
D | 10_THUD_0503.json | 1 …����>G]eru{yyohYI7����J+���P��Q�v/��=��8��/… 25 >r������=������0�m�����Z����j���I���L���s���a�)�������x�v�������\���j���R���`����;�����b�!�… 50 …30�f�N� �%W������-�s���I����C�;�L���ߟ�l�vܭ���ڧ���ۥ�n�dݗ��ߐ�\�J�i����B�����������v… 52 …������������������fc�+(!/�0�.U'���?��{���E���4�����H��#�'�'�$:v� 60 .�L�.�ׂ�,Բ�D��S����"o+S0�0F,F#%�����������nѵ��W�v��R~#
|
/device/google/contexthub/firmware/os/platform/stm32/ |
D | eeData.c | 172 uint32_t v; in eeDataEraseOldVersion() local 178 v = *addr; in eeDataEraseOldVersion() 181 if ((v & EE_DATA_NAME_MAX) != name) in eeDataEraseOldVersion() 185 v &=~ EE_DATA_NAME_MAX; in eeDataEraseOldVersion() 188 return eeWrite(addr, &v, sizeof(v)); in eeDataEraseOldVersion()
|