comparison libtwamr/pow2.h @ 337:190c4c9a3693

libtwamr: integrate pow2.c
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 18 Apr 2024 23:06:59 +0000
parents
children
comparison
equal deleted inserted replaced
336:7f99b8ed30e5 337:190c4c9a3693
1 /*
2 ********************************************************************************
3 *
4 * GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001
5 * R99 Version 3.3.0
6 * REL-4 Version 4.1.0
7 *
8 ********************************************************************************
9 *
10 * File : pow2.h
11 * Purpose : computes L_x = pow(2.0, exponent.fraction)
12 *
13 ********************************************************************************
14 */
15 #ifndef pow2_h
16 #define pow2_h "$Id $"
17
18 /*
19 ********************************************************************************
20 * INCLUDE FILES
21 ********************************************************************************
22 */
23 #include "typedef.h"
24
25 /*
26 ********************************************************************************
27 * DEFINITION OF DATA TYPES
28 ********************************************************************************
29 */
30
31 /*
32 ********************************************************************************
33 * DECLARATION OF PROTOTYPES
34 ********************************************************************************
35 */
36 Word32 Pow2 ( /* (o) : result (range: 0<=val<=0x7fffffff) */
37 Word16 exponent, /* (i) : Integer part. (range: 0<=val<=30) */
38 Word16 fraction /* (i) : Fractional part. (range: 0.0<=val<1.0) */
39 );
40
41 #endif