Lines Matching +full:- +full:p
1 /* ----------------------------------------------------------------------
9 * Target Processor: Cortex-M and Cortex-A cores
10 * -------------------------------------------------------------------- */
12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
14 * SPDX-License-Identifier: Apache-2.0
20 * www.apache.org/licenses/LICENSE-2.0
45 * @return Entropy -Sum(p ln p)
57 float32_t accum=0.0f,p; in arm_entropy_f32() local
77 blkCnt --; in arm_entropy_f32()
86 p = *pSrcA++; in arm_entropy_f32()
87 accum += p * logf(p); in arm_entropy_f32()
89 blkCnt--; in arm_entropy_f32()
93 return (-accum); in arm_entropy_f32()
105 float32_t accum, p; in arm_entropy_f32() local
125 blkCnt--; in arm_entropy_f32()
136 p = *pIn++; in arm_entropy_f32()
137 accum += p * logf(p); in arm_entropy_f32()
139 blkCnt--; in arm_entropy_f32()
143 return(-accum); in arm_entropy_f32()
151 float32_t accum, p; in arm_entropy_f32() local
160 p = *pIn++; in arm_entropy_f32()
161 accum += p * logf(p); in arm_entropy_f32()
163 blkCnt--; in arm_entropy_f32()
167 return(-accum); in arm_entropy_f32()