Home | History | Annotate | Download | only in aacdec
      1 /* ------------------------------------------------------------------
      2  * Copyright (C) 1998-2009 PacketVideo
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
     13  * express or implied.
     14  * See the License for the specific language governing permissions
     15  * and limitations under the License.
     16  * -------------------------------------------------------------------
     17  */
     18 /*
     19 
     20  Pathname: pv_sqrt.h
     21 
     22 ------------------------------------------------------------------------------
     23  REVISION HISTORY
     24 
     25  Who:                                       Date:
     26  Description:
     27 ------------------------------------------------------------------------------
     28  INCLUDE DESCRIPTION
     29 
     30 ------------------------------------------------------------------------------
     31 */
     32 
     33 #ifndef PV_SQRT_H
     34 #define PV_SQRT_H
     35 
     36 #ifdef __cplusplus
     37 extern "C"
     38 {
     39 #endif
     40 
     41     /*----------------------------------------------------------------------------
     42     ; INCLUDES
     43     ----------------------------------------------------------------------------*/
     44 
     45 #include "pv_audio_type_defs.h"
     46 
     47     /*----------------------------------------------------------------------------
     48     ; MACROS
     49     ; Define module specific macros here
     50     ----------------------------------------------------------------------------*/
     51 
     52     /*----------------------------------------------------------------------------
     53     ; EXTERNAL VARIABLES REFERENCES
     54     ----------------------------------------------------------------------------*/
     55 
     56     /*----------------------------------------------------------------------------
     57     ; DEFINES AND SIMPLE TYPEDEF'S
     58     ----------------------------------------------------------------------------*/
     59 
     60     struct intg_sqrt
     61     {
     62         Int32 root;
     63         Int32 shift_factor;
     64     };
     65     typedef struct intg_sqrt Root_sq;
     66 
     67     void pv_sqrt(Int32 man, Int32 exp, Root_sq *result, Int32 *sqrt_cache);
     68 
     69 
     70 #ifdef __cplusplus
     71 }
     72 #endif
     73 
     74 #endif  /* PV_SQRT_H */
     75