| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003-2011, Broadcom Corporation |
|---|
| 3 | * All Rights Reserved |
|---|
| 4 | * Confidential Property of Broadcom Corporation |
|---|
| 5 | * |
|---|
| 6 | * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | * |
|---|
| 10 | * $brcm_Workfile: bmth.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/5 $ |
|---|
| 12 | * $brcm_Date: 4/20/11 1:28p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/commonutils/mth/bmth.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/5 4/20/11 1:28p farshidf |
|---|
| 21 | * SWDTV-6190: add the 35233 files |
|---|
| 22 | * |
|---|
| 23 | * Hydra_Software_Devel/5 4/20/11 11:42a farshidf |
|---|
| 24 | * SWDTV-6190: add BMTH_2560log10 |
|---|
| 25 | * |
|---|
| 26 | * Hydra_Software_Devel/4 12/10/07 12:38p albertl |
|---|
| 27 | * PR37989: Removed functions using floats that are no longer needed. |
|---|
| 28 | * |
|---|
| 29 | * Hydra_Software_Devel/3 6/11/07 6:51p albertl |
|---|
| 30 | * PR28893: Added new hi lo 64-bit operations. |
|---|
| 31 | * |
|---|
| 32 | * Hydra_Software_Devel/2 9/8/03 6:25p dlwin |
|---|
| 33 | * Updated API function parameter comment for DocJet. |
|---|
| 34 | * |
|---|
| 35 | * Hydra_Software_Devel/1 9/3/03 3:31p dlwin |
|---|
| 36 | * Initial version |
|---|
| 37 | * |
|---|
| 38 | ***************************************************************************/ |
|---|
| 39 | |
|---|
| 40 | /*= Module Overview ********************************************************* |
|---|
| 41 | <verbatim> |
|---|
| 42 | |
|---|
| 43 | Overview |
|---|
| 44 | This common utility module provides the required math functions. |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | Design |
|---|
| 48 | none |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | Usage |
|---|
| 52 | none |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | Sample Code |
|---|
| 56 | none |
|---|
| 57 | |
|---|
| 58 | |
|---|
| 59 | </verbatim> |
|---|
| 60 | ***************************************************************************/ |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | #ifndef BMTH_H__ |
|---|
| 64 | #define BMTH_H__ |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | #ifdef __cplusplus |
|---|
| 68 | extern "C" { |
|---|
| 69 | #endif |
|---|
| 70 | |
|---|
| 71 | |
|---|
| 72 | void BMTH_HILO_64TO64_Neg(uint32_t xhi, uint32_t xlo, uint32_t *pouthi, uint32_t *poutlo); |
|---|
| 73 | void BMTH_HILO_32TO64_Mul(uint32_t x, uint32_t y, uint32_t *pouthi, uint32_t *poutlo); |
|---|
| 74 | void BMTH_HILO_64TO64_Mul(uint32_t xhi, uint32_t xlo, uint32_t yhi, uint32_t ylo, uint32_t *pouthi, uint32_t *poutlo); |
|---|
| 75 | void BMTH_HILO_64TO64_Add(uint32_t xhi, uint32_t xlo, uint32_t yhi, uint32_t ylo, uint32_t *pouthi, uint32_t *poutlo); |
|---|
| 76 | void BMTH_HILO_64TO64_Div32(uint32_t xhi, uint32_t xlo, uint32_t y, uint32_t *pouthi, uint32_t *poutlo); |
|---|
| 77 | uint32_t BMTH_2560log10(uint32_t x); |
|---|
| 78 | |
|---|
| 79 | #ifdef __cplusplus |
|---|
| 80 | } |
|---|
| 81 | #endif |
|---|
| 82 | |
|---|
| 83 | #endif |
|---|
| 84 | |
|---|
| 85 | |
|---|
| 86 | |
|---|