cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

phy_qmath.h (540B)


      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
     11u16 qm_mulu16(u16 op1, u16 op2);
     12
     13s16 qm_muls16(s16 op1, s16 op2);
     14
     15s32 qm_add32(s32 op1, s32 op2);
     16
     17s16 qm_add16(s16 op1, s16 op2);
     18
     19s16 qm_sub16(s16 op1, s16 op2);
     20
     21s32 qm_shl32(s32 op, int shift);
     22
     23s16 qm_shl16(s16 op, int shift);
     24
     25s16 qm_shr16(s16 op, int shift);
     26
     27s16 qm_norm32(s32 op);
     28
     29void qm_log10(s32 N, s16 qN, s16 *log10N, s16 *qLog10N);
     30
     31#endif				/* #ifndef _BRCM_QMATH_H_ */