Home | History | Annotate | Download | only in include
      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 #include <stdint.h>
     29 
     30 #ifdef BUILDCFG
     31 #include "bt_target.h"
     32 #endif
     33 
     34 #include "bt_types.h"
     35 
     36 typedef short SINT16;
     37 typedef long SINT32;
     38 
     39 #if (SBC_IPAQ_OPT == TRUE)
     40 
     41 #if (SBC_FOR_EMBEDDED_LINUX == TRUE)
     42 typedef long long SINT64;
     43 #else
     44 typedef int64_t SINT64;
     45 #endif
     46 
     47 #elif (SBC_IS_64_MULT_IN_WINDOW_ACCU == TRUE) || (SBC_IS_64_MULT_IN_IDCT == TRUE)
     48 
     49 #if (SBC_FOR_EMBEDDED_LINUX == TRUE)
     50 typedef long long SINT64;
     51 #else
     52 typedef int64_t SINT64;
     53 #endif
     54 
     55 #endif
     56 
     57 #define abs32(x) ( (x >= 0) ? x : (-x) )
     58 
     59 #endif
     60