equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 //----IMAAMI---- |
|
21 //************************************************************************* |
|
22 //DCDefines.h |
|
23 // |
|
24 //Version 1.00 |
|
25 // |
|
26 //Contains: |
|
27 // _Defines_H |
|
28 // Defines the parameter values used in the IMAAMI algorithms. |
|
29 // |
|
30 //History: |
|
31 // 19.08.2003 version 1.00 created using existing IMAAMI algorithms |
|
32 //************************************************************************* |
|
33 |
|
34 |
|
35 |
|
36 #ifndef _Defines_H |
|
37 #define _Defines_H |
|
38 |
|
39 #define EXPO_SHIFT 13 // Accuracy in exponent table |
|
40 #define EXPO_MULTI (1 << EXPO_SHIFT) // Multiplier for exponent |
|
41 #define EXPO_SIZE (3 * EXPO_MULTI) // Size of exponent table |
|
42 #define EXPO_ACCU 12 // Accuracy of weight value |
|
43 #define EXPO_MULT (1 << EXPO_ACCU) |
|
44 #define EXPO_DIFF (2 * SHIFT_PLACE - EXPO_SHIFT) |
|
45 |
|
46 #define SHIFT_COEFF (16) // Accuracy of float to integer (coeff) |
|
47 #define SHIFT_PLACE ( 8) // Accuracy of float to integer (place) |
|
48 #define SHIFT_DIFF ( 8) // Accuracy reduction (SHIFT_COEFF - SHIFT_PLACE) |
|
49 |
|
50 #define EXPO_SIZE2 (384) // Size of exponent table ((3 * (1 << EXPO_SHIFT2)) >> 1) |
|
51 #define EXPO_DIFF2 ( 8) // Reduction of accuracy (SHIFT_COEFF - EXPO_SHIFT2) |
|
52 |
|
53 |
|
54 #endif // ifndef _Defines_H |
|
55 //----IMAAMI---- |
|