/hardware/google/gfxstream/guest/mesa/src/util/tests/ |
D | timespec_test.cpp | 35 struct timespec a, b, r; in TEST() local 37 a.tv_sec = 1; in TEST() 38 a.tv_nsec = NSEC_PER_SEC - 1; in TEST() 41 timespec_add(&r, &a, &b); in TEST() 48 struct timespec a, b, r; in TEST() local 50 a.tv_sec = 1; in TEST() 51 a.tv_nsec = 1; in TEST() 54 timespec_sub(&r, &a, &b); in TEST() 61 struct timespec a; in TEST() local 63 a.tv_sec = 4; in TEST() [all …]
|
/hardware/google/gfxstream/third-party/astc-encoder/Source/ |
D | astcenc_vecmathlib_none_4.h | 81 ASTCENC_SIMD_INLINE explicit vfloat4(float a) in vfloat4() 83 m[0] = a; in vfloat4() 84 m[1] = a; in vfloat4() 85 m[2] = a; in vfloat4() 86 m[3] = a; in vfloat4() 94 ASTCENC_SIMD_INLINE explicit vfloat4(float a, float b, float c, float d) in vfloat4() 96 m[0] = a; in vfloat4() 113 template <int l> ASTCENC_SIMD_INLINE void set_lane(float a) in set_lane() 115 m[l] = a; in set_lane() 224 ASTCENC_SIMD_INLINE explicit vint4(int a, int b, int c, int d) in vint4() [all …]
|
D | astcenc_vecmathlib_common_4.h | 42 ASTCENC_SIMD_INLINE bool any(vmask4 a) in any() argument 44 return mask(a) != 0; in any() 50 ASTCENC_SIMD_INLINE bool all(vmask4 a) in all() argument 52 return mask(a) == 0xF; in all() 62 ASTCENC_SIMD_INLINE vint4 operator+(vint4 a, int b) 64 return a + vint4(b); 70 ASTCENC_SIMD_INLINE vint4& operator+=(vint4& a, const vint4& b) 72 a = a + b; 73 return a; 79 ASTCENC_SIMD_INLINE vint4 operator-(vint4 a, int b) [all …]
|
D | astcenc_vecmathlib_avx2_8.h | 72 ASTCENC_SIMD_INLINE explicit vfloat8(float a) in vfloat8() 74 m = _mm256_set1_ps(a); in vfloat8() 83 float a, float b, float c, float d, in vfloat8() 86 m = _mm256_set_ps(h, g, f, e, d, c, b, a); in vfloat8() 92 ASTCENC_SIMD_INLINE explicit vfloat8(__m256 a) in vfloat8() 94 m = a; in vfloat8() 188 ASTCENC_SIMD_INLINE explicit vint8(int a) in vint8() 190 m = _mm256_set1_epi32(a); in vint8() 199 int a, int b, int c, int d, in vint8() 202 m = _mm256_set_epi32(h, g, f, e, d, c, b, a); in vint8() [all …]
|
D | astcenc_vecmathlib_sse_4.h | 73 ASTCENC_SIMD_INLINE explicit vfloat4(float a) in vfloat4() 75 m = _mm_set1_ps(a); in vfloat4() 83 ASTCENC_SIMD_INLINE explicit vfloat4(float a, float b, float c, float d) in vfloat4() 85 m = _mm_set_ps(d, c, b, a); in vfloat4() 91 ASTCENC_SIMD_INLINE explicit vfloat4(__m128 a) in vfloat4() 93 m = a; in vfloat4() 107 template <int l> ASTCENC_SIMD_INLINE void set_lane(float a) in set_lane() 110 __m128 v = _mm_set1_ps(a); in set_lane() 115 idx[l] = a; in set_lane() 233 ASTCENC_SIMD_INLINE explicit vint4(int a) in vint4() [all …]
|
D | astcenc_vecmathlib_neon_4.h | 72 ASTCENC_SIMD_INLINE explicit vfloat4(float a) in vfloat4() 74 m = vdupq_n_f32(a); in vfloat4() 82 ASTCENC_SIMD_INLINE explicit vfloat4(float a, float b, float c, float d) in vfloat4() 84 float v[4] { a, b, c, d }; in vfloat4() 91 ASTCENC_SIMD_INLINE explicit vfloat4(float32x4_t a) in vfloat4() 93 m = a; in vfloat4() 107 template <int l> ASTCENC_SIMD_INLINE void set_lane(float a) in set_lane() 109 m = vld1q_lane_f32(&a, m, l); in set_lane() 217 ASTCENC_SIMD_INLINE explicit vint4(int a) in vint4() 219 m = vdupq_n_s32(a); in vint4() [all …]
|
D | astcenc_vecmathlib.h | 213 ASTCENC_SIMD_INLINE vfloat change_sign(vfloat a, vfloat b) in change_sign() argument 215 vint ia = float_as_int(a); in change_sign() 275 static ASTCENC_SIMD_INLINE vfloat4 vfloat3(float a, float b, float c) in vfloat3() argument 277 return vfloat4(a, b, c, 0.0f); in vfloat3() 283 static ASTCENC_SIMD_INLINE vfloat4 vfloat2(float a, float b) in vfloat2() argument 285 return vfloat4(a, b, 0.0f, 0.0f); in vfloat2() 291 static ASTCENC_SIMD_INLINE vfloat4 normalize(vfloat4 a) in normalize() argument 293 vfloat4 length = dot(a, a); in normalize() 294 return a / sqrt(length); in normalize() 300 static ASTCENC_SIMD_INLINE vfloat4 normalize_safe(vfloat4 a, vfloat4 safe) in normalize_safe() argument [all …]
|
/hardware/google/gfxstream/third-party/astc-encoder/Source/UnitTest/ |
D | test_simd.cpp | 160 vfloat a(-1.0f, 1.0f, -3.12f, 3.12f); in TEST() local 162 vfloat r = change_sign(a, b); in TEST() 172 vfloat a(-0.15f, 0.0f, 0.9f, 2.1f); in TEST() local 173 vfloat r = atan(a); in TEST() 183 vfloat a(-0.15f, 0.0f, 0.9f, 2.1f); in TEST() local 185 vfloat r = atan2(a, b); in TEST() 199 vfloat a(-1.0f, 1.0f, -3.12f, 3.12f, -1.0f, 1.0f, -3.12f, 3.12f); in TEST() local 201 vfloat r = change_sign(a, b); in TEST() 215 vfloat a(-0.15f, 0.0f, 0.9f, 2.1f, -0.15f, 0.0f, 0.9f, 2.1f); in TEST() local 216 vfloat r = atan(a); in TEST() [all …]
|
/hardware/google/gfxstream/guest/mesa/src/util/ |
D | timespec.h | 53 const struct timespec *a, const struct timespec *b) in timespec_add() argument 55 r->tv_sec = a->tv_sec + b->tv_sec; in timespec_add() 56 r->tv_nsec = a->tv_nsec + b->tv_nsec; in timespec_add() 72 const struct timespec *a, const struct timespec *b) in timespec_sub() argument 74 r->tv_sec = a->tv_sec - b->tv_sec; in timespec_sub() 75 r->tv_nsec = a->tv_nsec - b->tv_nsec; in timespec_sub() 95 timespec_add_nsec(struct timespec *r, const struct timespec *a, uint64_t b) in timespec_add_nsec() argument 100 ((uint64_t)a->tv_sec > (uint64_t)TIME_T_MAX - b_sec); in timespec_add_nsec() 102 r->tv_sec = (uint64_t)a->tv_sec + b_sec; in timespec_add_nsec() 103 r->tv_nsec = (uint64_t)a->tv_nsec + b_nsec; in timespec_add_nsec() [all …]
|
/hardware/google/gfxstream/host/apigen-codec-common/X11/extensions/ |
D | syncconst.h | 88 #define _XSyncValueGreaterThan(a, b)\ argument 89 ((a).hi>(b).hi || ((a).hi==(b).hi && (a).lo>(b).lo)) 90 #define _XSyncValueLessThan(a, b)\ argument 91 ((a).hi<(b).hi || ((a).hi==(b).hi && (a).lo<(b).lo)) 92 #define _XSyncValueGreaterOrEqual(a, b)\ argument 93 ((a).hi>(b).hi || ((a).hi==(b).hi && (a).lo>=(b).lo)) 94 #define _XSyncValueLessOrEqual(a, b)\ argument 95 ((a).hi<(b).hi || ((a).hi==(b).hi && (a).lo<=(b).lo)) 96 #define _XSyncValueEqual(a, b) ((a).lo==(b).lo && (a).hi==(b).hi) argument 98 #define _XSyncValueIsZero(a) ((a).lo==0 && (a).hi==0) argument [all …]
|
/hardware/google/gfxstream/guest/mesa/src/util/sha1/ |
D | sha1.c | 57 uint32_t a, b, c, d, e; in SHA1Transform() local 64 a = state[0]; in SHA1Transform() 71 R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); in SHA1Transform() 72 R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); in SHA1Transform() 73 R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); in SHA1Transform() 74 R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); in SHA1Transform() 75 R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); in SHA1Transform() 76 R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); in SHA1Transform() 77 R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); in SHA1Transform() 78 R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); in SHA1Transform() [all …]
|
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/ |
D | TriStateTest.cpp | 30 tri_uint32_t a; in TEST() local 31 EXPECT_FALSE(a.isSet()); in TEST() 33 a += 1; in TEST() 34 EXPECT_FALSE(a.isSet()); in TEST() 36 a -= 1; in TEST() 37 EXPECT_FALSE(a.isSet()); in TEST() 39 a *= 1; in TEST() 40 EXPECT_FALSE(a.isSet()); in TEST() 42 a /= 1; in TEST() 43 EXPECT_FALSE(a.isSet()); in TEST() [all …]
|
D | TestHidSensorSpec.h | 835 #define HID_USAGE_PAGE(a) 0x05,a argument 836 #define HID_USAGE(a) 0x09,a argument 837 #define HID_USAGE16(a,b) 0x0A,a,b argument 838 #define HID_USAGE_SENSOR_DATA(a,b) a|b //This or-s the mod into usage argument 839 #define HID_COLLECTION(a) 0xA1,a argument 840 #define HID_REPORT_ID(a) 0x85,a argument 841 #define HID_REPORT_SIZE(a) 0x75,a argument 842 #define HID_REPORT_COUNT(a) 0x95,a argument 843 #define HID_USAGE_MIN_8(a) 0x19,a argument 844 #define HID_USAGE_MIN_16(a,b) 0x1A,a,b argument [all …]
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | Utils.h | 22 #define REF_BASE(a) ::android::RefBase argument 23 #define SP(a) sp<a> argument 24 #define WP(a) wp<a> argument 26 #define PROMOTE(a) (a).promote() argument 29 #define REF_BASE(a) std::enable_shared_from_this<a> argument 30 #define SP(a) std::shared_ptr<a> argument 31 #define WP(a) std::weak_ptr<a> argument 33 #define PROMOTE(a) (a).lock() argument
|
/hardware/google/gfxstream/guest/vulkan_enc/ |
D | vk_util.h | 105 static inline void __vk_outarray_init(struct __vk_outarray* a, void* data, uint32_t* len) { in __vk_outarray_init() argument 106 a->data = data; in __vk_outarray_init() 107 a->cap = *len; in __vk_outarray_init() 108 a->filled_len = len; in __vk_outarray_init() 109 *a->filled_len = 0; in __vk_outarray_init() 110 a->wanted_len = 0; in __vk_outarray_init() 112 if (a->data == NULL) a->cap = UINT32_MAX; in __vk_outarray_init() 115 static inline VkResult __vk_outarray_status(const struct __vk_outarray* a) { in __vk_outarray_status() argument 116 if (*a->filled_len < a->wanted_len) in __vk_outarray_status() 122 static inline void* __vk_outarray_next(struct __vk_outarray* a, size_t elem_size) { in __vk_outarray_next() argument [all …]
|
/hardware/google/gfxstream/guest/mesa/include/d3dadapter/ |
D | present.h | 110 #define ID3DPresent_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) argument 114 #define ID3DPresent_GetPresentParameters(p,a) (p)->lpVtbl->GetPresentParameters(p,a) argument 115 #define ID3DPresent_SetPresentParameters(p,a,b) (p)->lpVtbl->SetPresentParameters(p,a,b) argument 116 …ne ID3DPresent_NewD3DWindowBufferFromDmaBuf(p,a,b,c,d,e,f,g) (p)->lpVtbl->NewD3DWindowBufferFromDm… argument 117 #define ID3DPresent_DestroyD3DWindowBuffer(p,a) (p)->lpVtbl->DestroyD3DWindowBuffer(p,a) argument 118 #define ID3DPresent_WaitBufferReleased(p,a) (p)->lpVtbl->WaitBufferReleased(p,a) argument 119 #define ID3DPresent_FrontBufferCopy(p,a) (p)->lpVtbl->FrontBufferCopy(p,a) argument 120 #define ID3DPresent_PresentBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->PresentBuffer(p,a,b,c,d,e,f) argument 121 #define ID3DPresent_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a) argument 122 #define ID3DPresent_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b) argument [all …]
|
/hardware/google/gfxstream/guest/mesa/include/D3D9/ |
D | d3d9.h | 467 #define IDirect3D9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) argument 471 #define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a) argument 473 #define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c) argument 474 #define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b) argument 475 #define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d) argument 476 #define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b) argument 477 #define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e) argument 478 #define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f) argument 479 #define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleTyp… argument 480 #define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,… argument [all …]
|
/hardware/interfaces/media/bufferpool/1.0/ |
D | README.md | 4 Without a buffer pool, a process calls a synchronous method of the other 5 process and waits until the call finishes transferring a buffer. This adds 6 unwanted latency due to context switching. With help from a buffer pool, a 9 Passing an interface and a handle adds extra latency also. To mitigate the 11 rogue clients, FMQ is used to communicate between a buffer pool and a client 12 process. FMQ is used to send buffer ownership change status from a client 13 process to a buffer pool. Except FMQ, a buffer pool does not use any shared 18 FMQ is used to send buffer ownership status changes to a buffer pool from a 19 buffer pool client. A buffer pool synchronizes FMQ messages when there is a 24 FMQ messages are sent when a buffer is acquired or released. Also, FMQ messages [all …]
|
/hardware/interfaces/media/bufferpool/2.0/ |
D | README.md | 4 Without a buffer pool, a process calls a synchronous method of the other 5 process and waits until the call finishes transferring a buffer. This adds 6 unwanted latency due to context switching. With help from a buffer pool, a 9 Passing an interface and a handle adds extra latency also. To mitigate the 11 rogue clients, FMQ is used to communicate between a buffer pool and a client 12 process. FMQ is used to send buffer ownership change status from a client 13 process to a buffer pool. Except FMQ, a buffer pool does not use any shared 18 FMQ is used to send buffer ownership status changes to a buffer pool from a 19 buffer pool client. A buffer pool synchronizes FMQ messages when there is a 24 FMQ messages are sent when a buffer is acquired or released. Also, FMQ messages [all …]
|
/hardware/google/gfxstream/guest/mesa/src/vulkan/util/ |
D | vk_util.h | 179 __vk_outarray_init(struct __vk_outarray *a, in __vk_outarray_init() argument 182 a->data = data; in __vk_outarray_init() 183 a->cap = *len; in __vk_outarray_init() 184 a->filled_len = len; in __vk_outarray_init() 185 *a->filled_len = 0; in __vk_outarray_init() 186 a->wanted_len = 0; in __vk_outarray_init() 188 if (a->data == NULL) in __vk_outarray_init() 189 a->cap = UINT32_MAX; in __vk_outarray_init() 193 __vk_outarray_status(const struct __vk_outarray *a) in __vk_outarray_status() argument 195 if (*a->filled_len < a->wanted_len) in __vk_outarray_status() [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/ |
D | VK_KHR_win32_surface.adoc | 34 It provides a mechanism to create a slink:VkSurfaceKHR object (defined by 35 the `apiext:VK_KHR_surface` extension) that refers to a Win32 code:HWND, as 36 well as a query to determine support for rendering to the windows desktop. 42 1) Does Win32 need a way to query for compatibility between a particular 43 physical device and a specific screen? Compatibility between a physical 44 device and a window generally only depends on what screen the window is on. 45 However, there is not an obvious way to identify a screen without already 46 having a window on the screen. 49 While it may be useful, there is not a clear way to do this on Win32. 50 However, a method was added to query support for presenting to the windows [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/VK_EXT_display_control/ |
D | fence_events.adoc | 7 Besides submitting a fence to a queue as part of a 8 <<devsandqueues-submission, queue submission>> command, a fence may: also be 9 signaled when a particular event occurs on a device or display. 11 [open,refpage='vkRegisterDeviceEventEXT',desc='Signal a fence when a device event occurs',type='pro… 15 To create a fence that will be signaled when an event occurs on a device, 20 * pname:device is a logical device on which the event may: occur. 21 * pname:pDeviceEventInfo is a pointer to a slink:VkDeviceEventInfoEXT 25 * pname:pFence is a pointer to a handle in which the resulting fence 33 [open,refpage='VkDeviceEventInfoEXT',desc='Describe a device event to create',type='structs'] 39 * pname:sType is a elink:VkStructureType value identifying this structure. [all …]
|
/hardware/google/gfxstream/third-party/glm/include/glm/gtx/ |
D | io.inl | 14 GLM_FUNC_QUALIFIER format_punct<CTy>::format_punct(size_t a) argument 15 : std::locale::facet(a) 28 GLM_FUNC_QUALIFIER format_punct<CTy>::format_punct(format_punct const& a) argument 30 , formatted(a.formatted) 31 , precision(a.precision) 32 , width(a.width) 33 , separator(a.separator) 34 , delim_left(a.delim_left) 35 , delim_right(a.delim_right) 36 , space(a.space) [all …]
|
/hardware/qcom/sm7250/display/sdm/libs/utils/ |
D | utils.cpp | 41 float gcd(float a, float b) { in gcd() argument 42 if (a < b) { in gcd() 43 std::swap(a, b); in gcd() 48 b = fmodf(a, b); in gcd() 49 a = tmp; in gcd() 52 return a; in gcd() 55 float lcm(float a, float b) { in lcm() argument 56 return (a * b) / gcd(a, b); in lcm()
|
/hardware/qcom/sm8150/display/sdm/libs/utils/ |
D | utils.cpp | 41 float gcd(float a, float b) { in gcd() argument 42 if (a < b) { in gcd() 43 std::swap(a, b); in gcd() 48 b = fmodf(a, b); in gcd() 49 a = tmp; in gcd() 52 return a; in gcd() 55 float lcm(float a, float b) { in lcm() argument 56 return (a * b) / gcd(a, b); in lcm()
|