sbc_types.h revision 5738f83aeb59361a0a2eda2460113f6dc9194271
1/******************************************************************************
2 *
3 *  Copyright (C) 1999-2012 Broadcom Corporation
4 *
5 *  Licensed under the Apache License, Version 2.0 (the "License");
6 *  you may not use this file except in compliance with the License.
7 *  You may obtain a copy of the License at:
8 *
9 *  http://www.apache.org/licenses/LICENSE-2.0
10 *
11 *  Unless required by applicable law or agreed to in writing, software
12 *  distributed under the License is distributed on an "AS IS" BASIS,
13 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 *  See the License for the specific language governing permissions and
15 *  limitations under the License.
16 *
17 ******************************************************************************/
18
19/******************************************************************************
20 *
21 *  Data type declarations.
22 *
23 ******************************************************************************/
24
25#ifndef SBC_TYPES_H
26#define SBC_TYPES_H
27
28#ifdef BUILDCFG
29#include "bt_target.h"
30#endif
31
32#include "data_types.h"
33
34typedef short SINT16;
35typedef long SINT32;
36
37#if (SBC_IPAQ_OPT == TRUE)
38
39#if (SBC_FOR_EMBEDDED_LINUX == TRUE)
40typedef long long SINT64;
41#else
42typedef __int64 SINT64;
43#endif
44
45#elif (SBC_IS_64_MULT_IN_WINDOW_ACCU == TRUE) || (SBC_IS_64_MULT_IN_IDCT == TRUE)
46
47#if (SBC_FOR_EMBEDDED_LINUX == TRUE)
48typedef long long SINT64;
49#else
50typedef __int64 SINT64;
51#endif
52
53#endif
54
55#define abs32(x) ( (x >= 0) ? x : (-x) )
56
57#endif
58