Linux-libre 5.4.49-gnu
[librecmc/linux-libre.git] / drivers / net / wireless / broadcom / brcm80211 / brcmsmac / phy / phy_qmath.h
1 // SPDX-License-Identifier: ISC
2 /*
3  * Copyright (c) 2010 Broadcom Corporation
4  */
5
6 #ifndef _BRCM_QMATH_H_
7 #define _BRCM_QMATH_H_
8
9 #include <types.h>
10
11 u16 qm_mulu16(u16 op1, u16 op2);
12
13 s16 qm_muls16(s16 op1, s16 op2);
14
15 s32 qm_add32(s32 op1, s32 op2);
16
17 s16 qm_add16(s16 op1, s16 op2);
18
19 s16 qm_sub16(s16 op1, s16 op2);
20
21 s32 qm_shl32(s32 op, int shift);
22
23 s16 qm_shl16(s16 op, int shift);
24
25 s16 qm_shr16(s16 op, int shift);
26
27 s16 qm_norm32(s32 op);
28
29 void qm_log10(s32 N, s16 qN, s16 *log10N, s16 *qLog10N);
30
31 #endif                          /* #ifndef _BRCM_QMATH_H_ */