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
58 * @return Entropy -Sum(p ln p)
70 _Float16 accum=0.0f16,p; in arm_entropy_f16() local
90 blkCnt --; in arm_entropy_f16()
99 p = *pSrcA++; in arm_entropy_f16()
100 accum += p * (_Float16)logf((float32_t)p); in arm_entropy_f16()
102 blkCnt--; in arm_entropy_f16()
106 return (-accum); in arm_entropy_f16()
115 _Float16 accum, p; in arm_entropy_f16() local
124 p = *pIn++; in arm_entropy_f16()
125 accum += p * (_Float16)logf((float32_t)p); in arm_entropy_f16()
127 blkCnt--; in arm_entropy_f16()
131 return(-accum); in arm_entropy_f16()