/device/google/contexthub/firmware/os/core/ |
D | sensors.c | 93 struct Sensor *s; in sensorRegisterEx() local 108 s = mSensors + idx; in sensorRegisterEx() 109 s->si = si; in sensorRegisterEx() 110 s->currentRate = SENSOR_RATE_OFF; in sensorRegisterEx() 111 s->currentLatency = SENSOR_LATENCY_INVALID; in sensorRegisterEx() 112 s->callInfo = callInfo; in sensorRegisterEx() 114 s->callData = callData; in sensorRegisterEx() 115 s->initComplete = initComplete ? 1 : 0; in sensorRegisterEx() 117 s->handle = handle; in sensorRegisterEx() 118 s->hasOnchange = 0; in sensorRegisterEx() [all …]
|
/device/google/contexthub/firmware/lib/builtins/ |
D | udivmoddi4.c | 36 if (n.s.high == 0) in __udivmoddi4() 38 if (d.s.high == 0) in __udivmoddi4() 45 *rem = n.s.low % d.s.low; in __udivmoddi4() 46 return n.s.low / d.s.low; in __udivmoddi4() 53 *rem = n.s.low; in __udivmoddi4() 57 if (d.s.low == 0) in __udivmoddi4() 59 if (d.s.high == 0) in __udivmoddi4() 66 *rem = n.s.high % d.s.low; in __udivmoddi4() 67 return n.s.high / d.s.low; in __udivmoddi4() 70 if (n.s.low == 0) in __udivmoddi4() [all …]
|
D | moddi3.c | 23 di_int s = b >> bits_in_dword_m1; /* s = b < 0 ? -1 : 0 */ in __moddi3() local 24 b = (b ^ s) - s; /* negate if s == -1 */ in __moddi3() 25 s = a >> bits_in_dword_m1; /* s = a < 0 ? -1 : 0 */ in __moddi3() 26 a = (a ^ s) - s; /* negate if s == -1 */ in __moddi3() 29 return ((di_int)r ^ s) - s; /* negate if s == -1 */ in __moddi3()
|
D | aeabi_llsr.c | 32 result.s.high = 0; in __aeabi_llsr() 33 result.s.low = input.s.high >> (b - bits_in_word); in __aeabi_llsr() 39 result.s.high = input.s.high >> b; in __aeabi_llsr() 40 result.s.low = (input.s.high << (bits_in_word - b)) | (input.s.low >> b); in __aeabi_llsr()
|
/device/generic/vulkan-cereal/third-party/stb/include/stb/ |
D | stb_image.h | 820 static void stbi__refill_buffer(stbi__context *s); 823 static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len) in stbi__start_mem() argument 825 s->io.read = NULL; in stbi__start_mem() 826 s->read_from_callbacks = 0; in stbi__start_mem() 827 s->callback_already_read = 0; in stbi__start_mem() 828 s->img_buffer = s->img_buffer_original = (stbi_uc *) buffer; in stbi__start_mem() 829 s->img_buffer_end = s->img_buffer_original_end = (stbi_uc *) buffer+len; in stbi__start_mem() 833 static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user) in stbi__start_callbacks() argument 835 s->io = *c; in stbi__start_callbacks() 836 s->io_user_data = user; in stbi__start_callbacks() [all …]
|
D | stb_image_write.h | 276 static void stbi__start_write_callbacks(stbi__write_context *s, stbi_write_func *c, void *context) in stbi__start_write_callbacks() argument 278 s->func = c; in stbi__start_write_callbacks() 279 s->context = context; in stbi__start_write_callbacks() 332 static int stbi__start_write_file(stbi__write_context *s, const char *filename) in stbi__start_write_file() argument 335 stbi__start_write_callbacks(s, stbi__stdio_write, (void *) f); in stbi__start_write_file() 339 static void stbi__end_write_file(stbi__write_context *s) in stbi__end_write_file() argument 341 fclose((FILE *)s->context); in stbi__end_write_file() 349 static void stbiw__writefv(stbi__write_context *s, const char *fmt, va_list v) in stbiw__writefv() argument 355 s->func(s->context,&x,1); in stbiw__writefv() 361 s->func(s->context,b,2); in stbiw__writefv() [all …]
|
/device/generic/vulkan-cereal/third-party/astc-encoder/Source/ |
D | stb_image.h | 820 static void stbi__refill_buffer(stbi__context *s); 823 static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len) in stbi__start_mem() argument 825 s->io.read = NULL; in stbi__start_mem() 826 s->read_from_callbacks = 0; in stbi__start_mem() 827 s->callback_already_read = 0; in stbi__start_mem() 828 s->img_buffer = s->img_buffer_original = (stbi_uc *) buffer; in stbi__start_mem() 829 s->img_buffer_end = s->img_buffer_original_end = (stbi_uc *) buffer+len; in stbi__start_mem() 833 static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user) in stbi__start_callbacks() argument 835 s->io = *c; in stbi__start_callbacks() 836 s->io_user_data = user; in stbi__start_callbacks() [all …]
|
D | stb_image_write.h | 276 static void stbi__start_write_callbacks(stbi__write_context *s, stbi_write_func *c, void *context) in stbi__start_write_callbacks() argument 278 s->func = c; in stbi__start_write_callbacks() 279 s->context = context; in stbi__start_write_callbacks() 332 static int stbi__start_write_file(stbi__write_context *s, const char *filename) in stbi__start_write_file() argument 335 stbi__start_write_callbacks(s, stbi__stdio_write, (void *) f); in stbi__start_write_file() 339 static void stbi__end_write_file(stbi__write_context *s) in stbi__end_write_file() argument 341 fclose((FILE *)s->context); in stbi__end_write_file() 349 static void stbiw__writefv(stbi__write_context *s, const char *fmt, va_list v) in stbiw__writefv() argument 355 s->func(s->context,&x,1); in stbiw__writefv() 361 s->func(s->context,b,2); in stbiw__writefv() [all …]
|
/device/generic/vulkan-cereal/third-party/glm/include/glm/gtx/ |
D | string_cast.inl | 137 return detail::format("bvec1(%s)", 147 return detail::format("bvec2(%s, %s)", 158 return detail::format("bvec3(%s, %s, %s)", 170 return detail::format("bvec4(%s, %s, %s, %s)", 185 std::string FormatStr(detail::format("%svec1(%s)", 200 std::string FormatStr(detail::format("%svec2(%s, %s)", 215 std::string FormatStr(detail::format("%svec3(%s, %s, %s)", 230 std::string FormatStr(detail::format("%svec4(%s, %s, %s, %s)", 246 std::string FormatStr(detail::format("%smat2x2((%s, %s), (%s, %s))", 264 std::string FormatStr(detail::format("%smat2x3((%s, %s, %s), (%s, %s, %s))", [all …]
|
D | simd_mat4.inl | 50 GLM_FUNC_QUALIFIER fmat4x4SIMD::fmat4x4SIMD(float const & s) argument 52 this->Data[0] = fvec4SIMD(s, 0, 0, 0); 53 this->Data[1] = fvec4SIMD(0, s, 0, 0); 54 this->Data[2] = fvec4SIMD(0, 0, s, 0); 55 this->Data[3] = fvec4SIMD(0, 0, 0, s); 172 float const & s argument 175 __m128 Operand = _mm_set_ps1(s); 185 float const & s argument 188 __m128 Operand = _mm_set_ps1(s); 198 float const & s argument [all …]
|
D | simd_quat.inl | 60 vec3 s = glm::sin(eulerAngles * 0.5f); local 63 (c.x * c.y * c.z) + (s.x * s.y * s.z), 64 (c.x * c.y * s.z) - (s.x * s.y * c.z), 65 (c.x * s.y * c.z) + (s.x * c.y * s.z), 66 (s.x * c.y * c.z) - (c.x * s.y * s.z)); 81 GLM_FUNC_QUALIFIER fquatSIMD& fquatSIMD::operator*=(float const & s) argument 83 this->Data = _mm_mul_ps(this->Data, _mm_set_ps1(s)); 87 GLM_FUNC_QUALIFIER fquatSIMD& fquatSIMD::operator/=(float const & s) argument 89 this->Data = _mm_div_ps(Data, _mm_set1_ps(s)); 197 GLM_FUNC_QUALIFIER fquatSIMD operator* (fquatSIMD const & q, float s) argument [all …]
|
D | spline.inl | 13 typename genType::value_type const & s argument 16 typename genType::value_type s1 = s; 17 typename genType::value_type s2 = pow2(s); 18 typename genType::value_type s3 = pow3(s); 20 typename genType::value_type f1 = -s3 + typename genType::value_type(2) * s2 - s; 22 …::value_type f3 = typename genType::value_type(-3) * s3 + typename genType::value_type(4) * s2 + s; 36 typename genType::value_type const & s argument 39 typename genType::value_type s1 = s; 40 typename genType::value_type s2 = pow2(s); 41 typename genType::value_type s3 = pow3(s); [all …]
|
D | simd_mat4.hpp | 59 explicit fmat4x4SIMD(float const & s); 94 fmat4x4SIMD & operator+= (float const & s); 96 fmat4x4SIMD & operator-= (float const & s); 98 fmat4x4SIMD & operator*= (float const & s); 100 fmat4x4SIMD & operator/= (float const & s); 107 fmat4x4SIMD operator+ (fmat4x4SIMD const & m, float const & s); 108 fmat4x4SIMD operator+ (float const & s, fmat4x4SIMD const & m); 111 fmat4x4SIMD operator- (fmat4x4SIMD const & m, float const & s); 112 fmat4x4SIMD operator- (float const & s, fmat4x4SIMD const & m); 115 fmat4x4SIMD operator* (fmat4x4SIMD const & m, float const & s); [all …]
|
D | matrix_decompose.inl | 150 T s, t, x, y, z, w; local 156 s = static_cast<T>(0.5) / sqrt(t); 157 w = static_cast<T>(0.25) / s; 158 x = (Row[2][1] - Row[1][2]) * s; 159 y = (Row[0][2] - Row[2][0]) * s; 160 z = (Row[1][0] - Row[0][1]) * s; 164 s = sqrt (static_cast<T>(1) + Row[0][0] - Row[1][1] - Row[2][2]) * static_cast<T>(2); // S=4*qx 165 x = static_cast<T>(0.25) * s; 166 y = (Row[0][1] + Row[1][0]) / s; 167 z = (Row[0][2] + Row[2][0]) / s; [all …]
|
/device/generic/goldfish/camera/ |
D | metadata_utils.cpp | 154 int s = 0; in prettyPrintCameraMetadata() local 156 value.resize(s + 4); in prettyPrintCameraMetadata() 157 s += snprintf(&value[s], value.size() - s, "%s%u", in prettyPrintCameraMetadata() 163 int s = 0; in prettyPrintCameraMetadata() local 165 value.resize(s + 12); in prettyPrintCameraMetadata() 166 s += snprintf(&value[s], value.size() - s, "%s%d", in prettyPrintCameraMetadata() 172 int s = 0; in prettyPrintCameraMetadata() local 174 value.resize(s + 12); in prettyPrintCameraMetadata() 175 s += snprintf(&value[s], value.size() - s, "%s%g", in prettyPrintCameraMetadata() 181 int s = 0; in prettyPrintCameraMetadata() local [all …]
|
D | CameraDeviceSession.cpp | 181 for (const auto& s : cfg.streams) { in configureStreams() local 182 const uint32_t dataspaceBits = static_cast<uint32_t>(s.dataSpace); in configureStreams() 200 s.id, static_cast<unsigned>(s.streamType), s.width, s.height, in configureStreams() 201 pixelFormatToStr(s.format, pixelFormatStrBuf, sizeof(pixelFormatStrBuf)), in configureStreams() 202 static_cast<uint64_t>(s.usage), in configureStreams() 204 static_cast<unsigned>(s.rotation), in configureStreams() 205 s.physicalCameraId.c_str(), s.bufferSize, s.groupId, in configureStreams() 206 static_cast<unsigned>(s.dynamicRangeProfile) in configureStreams() 277 const Status s = processOneCaptureRequest(r); in processCaptureRequest() local 278 if (s == Status::OK) { in processCaptureRequest() [all …]
|
/device/generic/vulkan-cereal/third-party/glm/include/glm/detail/ |
D | type_mat4x3.inl | 47 GLM_FUNC_QUALIFIER tmat4x3<T, P>::tmat4x3(T const & s) argument 49 this->value[0] = col_type(s, 0, 0); 50 this->value[1] = col_type(0, s, 0); 51 this->value[2] = col_type(0, 0, s); 250 GLM_FUNC_QUALIFIER tmat4x3<T, P> & tmat4x3<T, P>::operator+=(U s) argument 252 this->value[0] += s; 253 this->value[1] += s; 254 this->value[2] += s; 255 this->value[3] += s; 272 GLM_FUNC_QUALIFIER tmat4x3<T, P> & tmat4x3<T, P>::operator-=(U s) argument [all …]
|
D | type_mat4x4.inl | 49 GLM_FUNC_QUALIFIER tmat4x4<T, P>::tmat4x4(T const & s) argument 51 this->value[0] = col_type(s, 0, 0, 0); 52 this->value[1] = col_type(0, s, 0, 0); 53 this->value[2] = col_type(0, 0, s, 0); 54 this->value[3] = col_type(0, 0, 0, s); 284 GLM_FUNC_QUALIFIER tmat4x4<T, P>& tmat4x4<T, P>::operator+=(U s) argument 286 this->value[0] += s; 287 this->value[1] += s; 288 this->value[2] += s; 289 this->value[3] += s; [all …]
|
D | type_half.inl | 36 int s = (value >> 15) & 0x00000001; local 49 result.i = (unsigned int)(s << 31); 77 result.i = (unsigned int)((s << 31) | 0x7f800000); 87 result.i = (unsigned int)((s << 31) | 0x7f800000 | (m << 13)); 100 // Assemble s, e and m. 104 Result.i = (unsigned int)((s << 31) | (e << 23) | m); 117 // the sign, s, the exponent, e, and the significand, m. 118 // Shift s into the position where it will go in in the 124 int s = (i >> 16) & 0x00008000; local 129 // Now reassemble s, e and m into a half: [all …]
|
/device/generic/vulkan-cereal/stream-servers/gl/glestranslator/GLcommon/ |
D | PaletteTexture.cpp | 80 short s; in paletteColor() local 88 s = *((short *)(pallete+index)); in paletteColor() 89 return Color((s >> 11)*255/31,((s >> 5) & 0x3f)*255/63 ,(s & 0x1f)*255/31,0); in paletteColor() 97 s = *((short *)(pallete+index)); in paletteColor() 98 …return Color(((s >> 12) & 0xf)*255/15,((s >> 8) & 0xf)*255/15,((s >> 4) & 0xf)*255/15 ,(s & 0xf)*2… in paletteColor() 101 s = *((short *)(pallete+index)); in paletteColor() 102 …return Color(((s >> 11) & 0x1f)*255/31,((s >> 6) & 0x1f)*255/31,((s >> 1) & 0x1f)*255/31 ,(s & 0x1… in paletteColor()
|
/device/generic/vulkan-cereal/fake-android-guest/utils/ |
D | TypeHelpers.h | 157 copy_type(TYPE* d, const TYPE* s, size_t n) { 158 memcpy(d,s,n*sizeof(TYPE)); 164 copy_type(TYPE* d, const TYPE* s, size_t n) { 167 new(d) TYPE(*s); 168 d++, s++; 197 move_forward_type(TYPE* d, const TYPE* s, size_t n = 1) { 198 memmove(d, s, n*sizeof(TYPE)); 204 move_forward_type(TYPE* d, const TYPE* s, size_t n = 1) { 206 s += n; 209 --d, --s; [all …]
|
D | FastStrcmp.h | 42 template <int (*cmp)(const char* l, const char* r, const size_t s)> 43 static inline int fastcmp(const char* l, const char* r, const size_t s) { in fastcmp() argument 44 const ssize_t n = s; // To help reject negative sizes, treat like zero in fastcmp() 49 template <int (*cmp)(const char* l, const char* r, const size_t s)> 50 static inline int fasticmp(const char* l, const char* r, const size_t s) { in fasticmp() argument 51 const ssize_t n = s; // To help reject negative sizes, treat like zero in fasticmp() 56 template <int (*cmp)(const void* l, const void* r, const size_t s)> 57 static inline int fastcmp(const void* lv, const void* rv, const size_t s) { in fastcmp() argument 60 const ssize_t n = s; // To help reject negative sizes, treat like zero in fastcmp()
|
/device/generic/vulkan-cereal/third-party/glm/include/glm/gtc/ |
D | quaternion.inl | 43 static tquat<T, P> call(tquat<T, P> const& q, T s) 45 return tquat<T, P>(q.w * s, q.x * s, q.y * s, q.z * s); 52 static tquat<T, P> call(tquat<T, P> const& q, T s) 54 return tquat<T, P>(q.w / s, q.x / s, q.y / s, q.z / s); 115 GLM_FUNC_QUALIFIER GLM_CONSTEXPR tquat<T, P>::tquat(T const & s, tvec3<T, P> const & v) argument 116 : x(v.x), y(v.y), z(v.z), w(s) 145 // tvec3<valType> s = glm::sin(eulerAngle * valType(0.5)); 147 // this->w = c.x * c.y * c.z + s.x * s.y * s.z; 148 // this->x = s.x * c.y * c.z - c.x * s.y * s.z; 149 // this->y = c.x * s.y * c.z + s.x * c.y * s.z; [all …]
|
/device/generic/vulkan-cereal/stream-servers/gl/glestranslator/GLES_V2/ |
D | ProgramData.cpp | 108 for (auto& s : attachedShaders) { in ProgramData() local 109 s.localName = stream->getBe32(); in ProgramData() 110 s.linkedSource = stream->getString(); in ProgramData() 346 for (const auto& s : attachedShaders) { in onSave() local 347 stream->putBe32(s.localName); in onSave() 348 stream->putString(s.linkedSource); in onSave() 372 for (auto& s : attachedShaders) { in postLoad() local 373 if (s.localName) { in postLoad() 374 s.shader = (ShaderParser*)getObjDataPtr( in postLoad() 375 NamedObjectType::SHADER_OR_PROGRAM, s.localName).get(); in postLoad() [all …]
|
/device/google/contexthub/firmware/lib/libm/ |
D | ef_pow.c | 67 float y1,t1,t2,r,s,t,u,v,w; local 168 s = u*v; 169 s_h = s; 177 s2 = s*s; 179 r += s_l*(s_h+s); 187 v = s_l*t_h+t_l*s; 203 s = one; /* s (sign of result -ve**odd) = -1 else = 1 */ 205 s = -one; /* (-ve)**(odd int) */ 217 return s*huge*huge; /* overflow */ 219 if(p_l+ovt>z-p_h) return s*huge*huge; /* overflow */ [all …]
|