/********************************************************************************
*
*      File             : log2.h
*      Purpose          : Computes log2(L_x)
*
********************************************************************************
*/
#ifndef log2_h
#define log2_h "$Id $"
 
/*
********************************************************************************
*                         INCLUDE FILES
********************************************************************************
*/
#include "typedef.h"
#include "log2.h"
 
/*
********************************************************************************
*                         DEFINITION OF DATA TYPES
********************************************************************************
*/
 
/*
********************************************************************************
*                         DECLARATION OF PROTOTYPES
********************************************************************************
*/
Word16 Log2_norm_lc ( /* (o) : Fractional part of Log2. (range: 0<=val<1)  */
    Word32 L_x        /* (i) : input value (normalized)                    */
);

Word32 log10_fx(Word32 Linput);
Word32 pow_10(Word32 x, Word16 *Q);
Word16 Log2_lc(         /* (o) : Fractional part of Log2. (range: 0<=val<1)  */
    Word32 L_x,         /* (i) : input value                                 */
    Word16 *exponent    /* (o) : Integer part of Log2.   (range: 0<=val<=30) */
);
#endif