/device/google/contexthub/firmware/os/algos/common/math/ |
D | vec.h | 53 float x, y, z, w; member 65 static inline void vec3Add(struct Vec3 *v, const struct Vec3 *w) { in vec3Add() argument 67 ASSERT_NOT_NULL(w); in vec3Add() 68 v->x += w->x; in vec3Add() 69 v->y += w->y; in vec3Add() 70 v->z += w->z; in vec3Add() 75 const struct Vec3 *w) { in vec3AddVecs() argument 78 ASSERT_NOT_NULL(w); in vec3AddVecs() 79 u->x = v->x + w->x; in vec3AddVecs() 80 u->y = v->y + w->y; in vec3AddVecs() [all …]
|
D | vec.c | 54 void vecAdd(float *u, const float *v, const float *w, size_t dim) { in vecAdd() argument 57 ASSERT_NOT_NULL(w); 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 66 ASSERT_NOT_NULL(w); 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 76 ASSERT_NOT_NULL(w); in vecSub() 79 u[i] = v[i] - w[i]; in vecSub() 111 float vecDot(const float *v, const float *w, size_t dim) { in vecDot() argument [all …]
|
D | quat.c | 29 q->w = sqrtf(clamp(Hx + My + Az + 1.0f) * 0.25f); in initQuat() 36 float q0 = q->w; in quatToMatrix() 62 if (q->w < 0.0f) { in quatNormalize() 66 q->w = -q->w; in quatNormalize() 70 1.0f / sqrtf(q->x * q->x + q->y * q->y + q->z * q->z + q->w * q->w); in quatNormalize() 75 q->w *= invNorm; in quatNormalize()
|
/device/google/contexthub/firmware/lib/libm/ |
D | sf_fpclassify.c | 12 __uint32_t w; in __fpclassifyf() local 14 GET_FLOAT_WORD(w,x); in __fpclassifyf() 16 if (w == 0x00000000 || w == 0x80000000) in __fpclassifyf() 18 else if ((w >= 0x00800000 && w <= 0x7f7fffff) || in __fpclassifyf() 19 (w >= 0x80800000 && w <= 0xff7fffff)) in __fpclassifyf() 21 else if ((w >= 0x00000001 && w <= 0x007fffff) || in __fpclassifyf() 22 (w >= 0x80000001 && w <= 0x807fffff)) in __fpclassifyf() 24 else if (w == 0x7f800000 || w == 0xff800000) in __fpclassifyf()
|
D | ef_asin.c | 47 float t,w,p,q,c,r,s; local 63 w = p/q; 64 return x+x*w; 68 w = one-fabsf(x); 69 t = w*(float)0.5; 74 w = p/q; 75 t = pio2_hi-((float)2.0*(s+s*w)-pio2_lo); 78 w = s; 79 GET_FLOAT_WORD(iw,w); 80 SET_FLOAT_WORD(w,iw&0xfffff000); [all …]
|
D | sf_round.c | 21 __uint32_t w; local 25 GET_FLOAT_WORD(w, x); 28 exponent_less_127 = (int)((w & 0x7f800000) >> 23) - 127; 34 w &= 0x80000000; 37 w |= ((__uint32_t)127 << 23); 42 if ((w & exponent_mask) == 0) 46 w += 0x00400000 >> exponent_less_127; 47 w &= ~exponent_mask; 58 SET_FLOAT_WORD(x, w);
|
D | sf_atan.c | 74 float w,s1,s2,z; local 106 w = z*z; 108 s1 = z*(aT[0]+w*(aT[2]+w*(aT[4]+w*(aT[6]+w*(aT[8]+w*aT[10]))))); 109 s2 = w*(aT[1]+w*(aT[3]+w*(aT[5]+w*(aT[7]+w*aT[9]))));
|
D | ef_rem_pio2.c | 105 float z,w,t,r,fn; local 144 w = fn*pio2_1t; /* 1st round good to 40 bit */ 146 y[0] = r-w; /* quick check no cancellation */ 150 y[0] = r-w; 155 w = fn*pio2_2; 156 r = t-w; 157 w = fn*pio2_2t-((t-r)-w); 158 y[0] = r-w; 163 w = fn*pio2_3; 164 r = t-w; [all …]
|
/device/linaro/hikey/hifi/xaf/host-apf/include/os/android/ |
D | xf-osal.h | 87 static inline void __xf_wait_init(xf_wait_t *w) in __xf_wait_init() argument 89 pthread_cond_init(&w->wait, NULL); in __xf_wait_init() 90 pthread_mutex_init(&w->mutex, NULL); in __xf_wait_init() 94 static inline void __xf_wait_prepare(xf_wait_t *w) in __xf_wait_prepare() argument 96 pthread_mutex_lock(&w->mutex); in __xf_wait_prepare() 99 #define __xf_wait_prepare(w) \ argument 102 (__xf_wait_prepare)(w); \ 106 static inline int __xf_wait(xf_wait_t *w, u32 timeout) in __xf_wait() argument 115 r = -pthread_cond_wait(&w->wait, &w->mutex); in __xf_wait() 128 r = -pthread_cond_timedwait(&w->wait, &w->mutex, &ts); in __xf_wait() [all …]
|
/device/linaro/hikey/hifi/xaf/host-apf/include/os/xos/ |
D | xf-osal.h | 81 static inline void __xf_wait_init(xf_wait_t *w) 83 pthread_cond_init(&w->wait, NULL); 84 pthread_mutex_init(&w->mutex, NULL); 88 static inline void __xf_wait_prepare(xf_wait_t *w) 90 pthread_mutex_lock(&w->mutex); 93 #define __xf_wait_prepare(w) \ 96 (__xf_wait_prepare)(w); \ 100 static inline int __xf_wait(xf_wait_t *w, u32 timeout) 109 r = -pthread_cond_wait(&w->wait, &w->mutex); 122 r = -pthread_cond_timedwait(&w->wait, &w->mutex, &ts); [all …]
|
/device/linaro/dragonboard/qcom/qrtr/src/ |
D | waiter.c | 134 struct waiter *w; in waiter_create() local 136 w = calloc(1, sizeof(*w)); in waiter_create() 137 if (w == NULL) in waiter_create() 140 list_init(&w->tickets); in waiter_create() 141 return w; in waiter_create() 144 void waiter_destroy(struct waiter *w) in waiter_destroy() argument 150 list_for_each_safe(&w->tickets, node, safe) { in waiter_destroy() 155 if (w->pollset) in waiter_destroy() 156 pollset_destroy(w->pollset); in waiter_destroy() 157 free(w); in waiter_destroy() [all …]
|
D | waiter.h | 15 void waiter_destroy(struct waiter *w); 20 void waiter_wait(struct waiter *w); 27 int waiter_wait_timeout(struct waiter *w, unsigned int ms); 32 void waiter_synchronize(struct waiter *w); 41 struct waiter_ticket *waiter_add_null(struct waiter *w); 48 struct waiter_ticket *waiter_add_fd(struct waiter *w, int fd); 55 struct waiter_ticket *waiter_add_timeout(struct waiter *w, unsigned int ms);
|
/device/generic/goldfish/MultiDisplayProvider/src/com/android/emulator/multidisplay/ |
D | MultiDisplayService.java | 76 public void set(int w, int h, int d, int f) { in set() argument 77 width = w; in set() 83 public boolean match(int w, int h, int d, int f) { in match() argument 84 return (w == width && h == height && d == dpi && f == flag); in match() 141 private void createVirtualDisplay(int displayId, int w, int h, int dpi, int flag) { in createVirtualDisplay() argument 142 mMultiDisplay[displayId].surface = nativeCreateSurface(displayId, w, h); in createVirtualDisplay() 145 DISPLAY_NAME, w, h, dpi, in createVirtualDisplay() 150 mMultiDisplay[displayId].set(w, h, dpi, flag); in createVirtualDisplay() 153 private void addVirtualDisplay(int displayId, int w, int h, int dpi, int flag) { in addVirtualDisplay() argument 154 if (mMultiDisplay[displayId].match(w, h, dpi, flag)) { in addVirtualDisplay() [all …]
|
/device/google/contexthub/lib/nanohub/ |
D | sha2.c | 72 state->w[i] = __builtin_bswap32(state->w[i]); in sha2processBlock() 76 uint32_t s0 = ror(state->w[i-15], 7) ^ ror(state->w[i-15], 18) ^ (state->w[i-15] >> 3); in sha2processBlock() 77 uint32_t s1 = ror(state->w[i-2], 17) ^ ror(state->w[i-2], 19) ^ (state->w[i-2] >> 10); in sha2processBlock() 78 state->w[i] = state->w[i - 16] + s0 + state->w[i - 7] + s1; in sha2processBlock() 95 uint32_t temp1 = h + s1 + ch + k[i] + state->w[i]; in sha2processBlock()
|
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/ |
D | s_atanf.c | 51 float w,s1,s2,z; in atanf() local 83 w = z*z; in atanf() 85 s1 = z*(aT[0]+w*(aT[2]+w*aT[4])); in atanf() 86 s2 = w*(aT[1]+w*aT[3]); in atanf()
|
/device/amlogic/yukawa/hal/gralloc/ |
D | mali_gralloc_bufferaccess.h | 25 …k(const mali_gralloc_module *m, buffer_handle_t buffer, uint64_t usage, int l, int t, int w, int h, 27 …ck_ycbcr(const mali_gralloc_module *m, buffer_handle_t buffer, uint64_t usage, int l, int t, int w, 32 …ck_async(const mali_gralloc_module *m, buffer_handle_t buffer, uint64_t usage, int l, int t, int w, 35 int w, int h, android_ycbcr *ycbcr, int32_t fence_fd); 37 … int w, int h, struct android_flex_layout *flex_layout, int32_t fence_fd);
|
D | mali_gralloc_module.cpp | 92 …lock(gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, in gralloc_lock() argument 97 return mali_gralloc_lock(m, handle, usage, l, t, w, h, vaddr); in gralloc_lock() 100 …_lock_ycbcr(gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, in gralloc_lock_ycbcr() argument 105 return mali_gralloc_lock_ycbcr(m, handle, usage, l, t, w, h, ycbcr); in gralloc_lock_ycbcr() 115 …_lock_async(gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, in gralloc_lock_async() argument 120 return mali_gralloc_lock_async(m, handle, usage, l, t, w, h, vaddr, fence_fd); in gralloc_lock_async() 124 int w, int h, android_ycbcr *ycbcr, int32_t fence_fd) in gralloc_lock_ycbcr_async() argument 128 return mali_gralloc_lock_ycbcr_async(m, handle, usage, l, t, w, h, ycbcr, fence_fd); in gralloc_lock_ycbcr_async()
|
/device/linaro/hikey/gralloc960/ |
D | mali_gralloc_bufferaccess.h | 25 …k(const mali_gralloc_module *m, buffer_handle_t buffer, uint64_t usage, int l, int t, int w, int h, 27 …ck_ycbcr(const mali_gralloc_module *m, buffer_handle_t buffer, uint64_t usage, int l, int t, int w, 32 …ck_async(const mali_gralloc_module *m, buffer_handle_t buffer, uint64_t usage, int l, int t, int w, 35 int w, int h, android_ycbcr *ycbcr, int32_t fence_fd); 37 … int w, int h, struct android_flex_layout *flex_layout, int32_t fence_fd);
|
D | mali_gralloc_module.cpp | 92 …lock(gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, in gralloc_lock() argument 97 return mali_gralloc_lock(m, handle, usage, l, t, w, h, vaddr); in gralloc_lock() 100 …_lock_ycbcr(gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, in gralloc_lock_ycbcr() argument 105 return mali_gralloc_lock_ycbcr(m, handle, usage, l, t, w, h, ycbcr); in gralloc_lock_ycbcr() 115 …_lock_async(gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, in gralloc_lock_async() argument 120 return mali_gralloc_lock_async(m, handle, usage, l, t, w, h, vaddr, fence_fd); in gralloc_lock_async() 124 int w, int h, android_ycbcr *ycbcr, int32_t fence_fd) in gralloc_lock_ycbcr_async() argument 128 return mali_gralloc_lock_ycbcr_async(m, handle, usage, l, t, w, h, ycbcr, fence_fd); in gralloc_lock_ycbcr_async()
|
/device/google/cuttlefish/host/libs/wayland/ |
D | wayland_compositor.cpp | 40 int32_t w, in region_add() argument 46 << " w=" << w in region_add() 52 region->w = w; in region_add() 60 int32_t w, in region_subtract() argument 66 << " w=" << w in region_subtract() 99 int32_t w, in surface_damage() argument 105 << " w=" << w in surface_damage() 161 int32_t w, in surface_damage_buffer() argument 167 << " w=" << w in surface_damage_buffer()
|
D | wayland_shell.cpp | 38 int32_t w, in zxdg_positioner_v6_set_size() argument 42 << " w=" << w in zxdg_positioner_v6_set_size() 50 int32_t w, in zxdg_positioner_v6_set_anchor_rect() argument 56 << " w=" << w in zxdg_positioner_v6_set_anchor_rect() 173 int32_t w, in zxdg_toplevel_v6_set_max_size() argument 177 << " w=" << w in zxdg_toplevel_v6_set_max_size() 183 int32_t w, in zxdg_toplevel_v6_set_min_size() argument 187 << " w=" << w in zxdg_toplevel_v6_set_min_size() 306 int32_t w, in zxdg_surface_v6_set_window_geometry() argument 312 << " w=" << w in zxdg_surface_v6_set_window_geometry()
|
/device/google/cuttlefish/guest/hals/gralloc/legacy/ |
D | gralloc.cpp | 50 alloc_device_t* /*dev*/, int format, int w, int h, in gralloc_alloc_buffer() argument 64 bytes_per_line = ScreenRegionView::align(bytes_per_pixel * w); in gralloc_alloc_buffer() 66 bytes_per_line = ScreenRegionView::align(bytes_per_pixel * w); in gralloc_alloc_buffer() 68 size = roundUpToPageSize(size + formatToBytesPerFrame(format, w, h)); in gralloc_alloc_buffer() 82 new private_handle_t(fd, size, format, w, h, stride_in_pixels, 0); in gralloc_alloc_buffer() 99 static int gralloc_alloc(alloc_device_t* dev, int w, int h, int format, in gralloc_alloc() argument 105 int err = gralloc_alloc_buffer(dev, format, w, h, pHandle, pStrideInPixels); in gralloc_alloc()
|
D | gralloc_vsoc_priv.h | 277 static inline int formatToBytesPerFrame(int format, int w, int h) { in formatToBytesPerFrame() argument 288 return bytes_per_pixel * w * h; in formatToBytesPerFrame() 294 formatToYcbcr(format, w, h, NULL, &strides); in formatToBytesPerFrame() 305 w16 = cuttlefish::screen::ScreenRegionView::align(w); in formatToBytesPerFrame() 315 int l, int t, int w, int h, 330 int l, int t, int w, int h, 339 uint32_t w, uint32_t h, int32_t format, int usage,
|
/device/linaro/hikey/hifi/xaf/hifi-dpf/build_hikey/ |
D | xa_hikey.img | 33 …v��v��v��v��v��v��v��v��v��y� w��y��v�hx��v�x��v��v��v��w��v��v��v��y��v… 37 �M�-�m��]�=�}��C�#�c��S�3�s��K�+�k��[�;�{��G�'�g��W�7�w��O�/�o��_�?��… 40 …��˥���C�G�#����\0$-7fK�`�wL�O�����g$H�mk�w�… 43 …wx)K�~�����G��W ��¯�.�Y�lM�[�����p�f�" �5M�I[R_'v�w��\�m��O�=���!… 56 …�~:�~�2�~�d�~V���~�U�~���~{+n�~-]݆~ێ9~���w~/��o~�#�g~vU… 58 …��{0> [�{�n ��{p� ��{� �{�!�{*1!�{�a!�{7�!�{��!�w{0�!bj{�#"]{T"�O… 61 …*i�x4+��x�N+�sx�}+�bx�+cQxN�+3@x�,�.x�:,�x�i,3x��,��w�,,�w)�,��w5&-…
|
/device/linaro/hikey/hifi/firmware/ |
D | hifi-hikey960.img | 33 …v��v��v��v��v��v��v��v��v��y� w��y��v�hx��v�x��v��v��v��w��v��v��v��y��v… 39 �M�-�m��]�=�}��C�#�c��S�3�s��K�+�k��[�;�{��G�'�g��W�7�w��O�/�o��_�?��… 42 …��˥���C�G�#����\0$-7fK�`�wL�O�����g$H�mk�w�… 45 …wx)K�~�����G��W ��¯�.�Y�lM�[�����p�f�" �5M�I[R_'v�w��\�m��O�=���!… 58 …�~:�~�2�~�d�~V���~�U�~���~{+n�~-]݆~ێ9~���w~/��o~�#�g~vU… 60 …��{0> [�{�n ��{p� ��{� �{�!�{*1!�{�a!�{7�!�{��!�w{0�!bj{�#"]{T"�O… 63 …*i�x4+��x�N+�sx�}+�bx�+cQxN�+3@x�,�.x�:,�x�i,3x��,��w�,,�w)�,��w5&-…
|