Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 25 of 82) sorted by relevance

1234

/hardware/google/apf/v7/
Dapf_checksum.h5 FUNC(u16 calc_csum(u32 sum, const u8* const buf, const s32 len)) { in FUNC() argument
8 for (i = 0; i < len; ++i) sum += buf[i] * ((i & 1) ? 1u : 256u); in FUNC()
10 sum = (sum & 0xFFFF) + (sum >> 16); /* max after this is 1FFFE */ in FUNC()
11 csum = sum + (sum >> 16); in FUNC()
/hardware/google/apf/
Dapf_checksum.h5 FUNC(u16 calc_csum(u32 sum, const u8* const buf, const s32 len)) { in FUNC() argument
8 for (i = 0; i < len; ++i) sum += buf[i] * ((i & 1) ? 1u : 256u); in FUNC()
10 sum = (sum & 0xFFFF) + (sum >> 16); /* max after this is 1FFFE */ in FUNC()
11 csum = sum + (sum >> 16); in FUNC()
/hardware/google/gfxstream/guest/mesa/src/util/
Dbigmath.h40 uint64_t sum = carry; in _ubm_add_u32arr() local
42 sum += a[i]; in _ubm_add_u32arr()
44 sum += b[i]; in _ubm_add_u32arr()
45 dst[i] = sum; in _ubm_add_u32arr()
46 carry = sum >> 32; in _ubm_add_u32arr()
/hardware/google/gfxstream/guest/mesa/src/util/format/
Du_format_fxt1.c258 int32_t sum = 0; in fxt1_choose() local
262 sum += input[k][i]; in fxt1_choose()
278 if (minSum > sum) { in fxt1_choose()
279 minSum = sum; in fxt1_choose()
282 if (maxSum < sum) { in fxt1_choose()
283 maxSum = sum; in fxt1_choose()
337 int32_t sum[MAX_VECT][MAX_COMP]; /* used to accumulate closest texels */ in fxt1_lloyd() local
348 sum[j][i] = 0; in fxt1_lloyd()
378 sum[best][i] += input[k][i]; in fxt1_lloyd()
398 vec[j][i] = div * sum[j][i]; in fxt1_lloyd()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/util/
DQCameraDisplay.cpp200 nsecs_t sum; in computeAverageVsyncInterval() local
211 sum = mVsyncIntervalHistory[0]; in computeAverageVsyncInterval()
215 sum += mVsyncIntervalHistory[j]; in computeAverageVsyncInterval()
222 sum = sum - vsyncMaxOutlier - vsyncMinOutlier; in computeAverageVsyncInterval()
223 mAvgVsyncInterval = sum / (CAMERA_NUM_VSYNC_INTERVAL_HISTORY - 2); in computeAverageVsyncInterval()
/hardware/google/gchips/gralloc4/src/core/
Dformat_info.h80 int sum = 0; in total_components() local
83 sum += n; in total_components()
85 return sum; in total_components()
/hardware/qcom/display/msm8909/libqdutils/
Dprofiler.cpp179 nsecs_t sum = 0; in calc_fps() local
181 sum += debug_fps_metadata.framearrivals[i]; in calc_fps()
183 (float)sum)); in calc_fps()
/hardware/qcom/display/msm8226/libqdutils/
Dprofiler.cpp178 nsecs_t sum = 0; in calc_fps() local
180 sum += debug_fps_metadata.framearrivals[i]; in calc_fps()
182 (float)sum)); in calc_fps()
/hardware/qcom/display/msm8960/libqdutils/
Dprofiler.cpp174 nsecs_t sum = 0; in calc_fps() local
176 sum += debug_fps_metadata.framearrivals[i]; in calc_fps()
177 print_fps((debug_fps_metadata.period * float(1000000))/float(sum)); in calc_fps()
/hardware/qcom/display/msm8996/libqdutils/
Dprofiler.cpp178 nsecs_t sum = 0; in calc_fps() local
180 sum += debug_fps_metadata.framearrivals[i]; in calc_fps()
182 (float)sum)); in calc_fps()
/hardware/qcom/display/msm8084/libqdutils/
Dprofiler.cpp178 nsecs_t sum = 0; in calc_fps() local
180 sum += debug_fps_metadata.framearrivals[i]; in calc_fps()
182 (float)sum)); in calc_fps()
/hardware/qcom/display/msm8998/libqdutils/
Dprofiler.cpp179 nsecs_t sum = 0; in calc_fps() local
181 sum += debug_fps_metadata.framearrivals[i]; in calc_fps()
183 (float)sum)); in calc_fps()
/hardware/qcom/display/msm8909w_3100/libqdutils/
Dprofiler.cpp179 nsecs_t sum = 0; in calc_fps() local
181 sum += debug_fps_metadata.framearrivals[i]; in calc_fps()
183 (float)sum)); in calc_fps()
/hardware/qcom/display/msm8994/libqdutils/
Dprofiler.cpp178 nsecs_t sum = 0; in calc_fps() local
180 sum += debug_fps_metadata.framearrivals[i]; in calc_fps()
182 (float)sum)); in calc_fps()
/hardware/google/graphics/common/libhwc2.1/libvrr/RefreshRateCalculator/
DVideoFrameRateCalculator.cpp102 int sum = std::accumulate(std::begin(mHistory), std::end(mHistory), 0); in onReportRefreshRate() local
103 mLastPeriodFrameRate = std::round(sum / static_cast<float>(mHistory.size())); in onReportRefreshRate()
/hardware/google/gfxstream/guest/mesa/src/util/tests/
Dfast_idiv_by_const_test.cpp76 uint64_t sum = a + b; in uadd_sat() local
79 return sum < a ? UINT64_MAX : sum; in uadd_sat()
82 return (sum >> num_bits) ? u_uintN_max(num_bits) : sum; in uadd_sat()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dml_math_func.c472 float d[6][6], sum = 0; in inv_matrix_det() local
480 sum = in inv_matrix_det()
481 sum + *(p + 6 * i + j) * SIGNM(i + in inv_matrix_det()
486 return (sum); in inv_matrix_det()
491 double d[6][6], sum = 0; in inv_matrix_detd() local
499 sum = in inv_matrix_detd()
500 sum + *(p + 6 * i + j) * SIGNM(i + in inv_matrix_detd()
505 return (sum); in inv_matrix_detd()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dml_math_func.c472 float d[6][6], sum = 0; in inv_matrix_det() local
480 sum = in inv_matrix_det()
481 sum + *(p + 6 * i + j) * SIGNM(i + in inv_matrix_det()
486 return (sum); in inv_matrix_det()
491 double d[6][6], sum = 0; in inv_matrix_detd() local
499 sum = in inv_matrix_detd()
500 sum + *(p + 6 * i + j) * SIGNM(i + in inv_matrix_detd()
505 return (sum); in inv_matrix_detd()
/hardware/interfaces/tests/memory/2.0/
DIMemoryInterface.hal9 // equal size, the first contains the byte-wise sum and the other the byte-
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/spec_tools/
Dmacro_checker.py187 return sum((f.numDiagnostics() for f in self.files))
191 return sum((f.numErrors() for f in self.files))
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/reflow-tests/
Dsrc-new-vuid-attribute.adoc26 * For each element of pname:pRegions, if the sum of pname:imageOffset.x
28 * For each element of pname:pRegions, if the sum of pname:imageOffset.y
31 * For each element of pname:pRegions, if the sum of pname:imageOffset.z
Dexpect-new-vuid-attribute-novuid.adoc36 * For each element of pname:pRegions, if the sum of pname:imageOffset.x
41 * For each element of pname:pRegions, if the sum of pname:imageOffset.y
46 * For each element of pname:pRegions, if the sum of pname:imageOffset.z
Dexpect-new-vuid-attribute-noreflow-novuid.adoc26 * For each element of pname:pRegions, if the sum of pname:imageOffset.x
28 * For each element of pname:pRegions, if the sum of pname:imageOffset.y
31 * For each element of pname:pRegions, if the sum of pname:imageOffset.z
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/chapters/commonvalidity/
Dcopy_bufferimage_to_imagebuffer_common.adoc43 For each element of pname:pRegions, if the sum of pname:{imageoffset}.x
49 For each element of pname:pRegions, if the sum of pname:{imageoffset}.y
55 For each element of pname:pRegions, if the sum of pname:{imageoffset}.z
/hardware/google/apf/devtools/
Dapf_interpreter.c523 FUNC(u16 apf_internal_calc_csum(u32 sum, const u8* const buf, const s32 len)) { in FUNC() argument
526 for (i = 0; i < len; ++i) sum += buf[i] * ((i & 1) ? 1u : 256u); in FUNC()
528 sum = (sum & 0xFFFF) + (sum >> 16); /* max after this is 1FFFE */ in FUNC()
529 csum = sum + (sum >> 16); in FUNC()

1234