Home | History | Annotate | Download | only in sbc
      1 /*
      2  *
      3  *  Bluetooth low-complexity, subband codec (SBC) library
      4  *
      5  *  Copyright (C) 2008-2010  Nokia Corporation
      6  *  Copyright (C) 2004-2010  Marcel Holtmann <marcel (at) holtmann.org>
      7  *  Copyright (C) 2004-2005  Henryk Ploetz <henryk (at) ploetzli.ch>
      8  *  Copyright (C) 2005-2006  Brad Midgley <bmidgley (at) xmission.com>
      9  *
     10  *
     11  *  This library is free software; you can redistribute it and/or
     12  *  modify it under the terms of the GNU Lesser General Public
     13  *  License as published by the Free Software Foundation; either
     14  *  version 2.1 of the License, or (at your option) any later version.
     15  *
     16  *  This library is distributed in the hope that it will be useful,
     17  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     18  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     19  *  Lesser General Public License for more details.
     20  *
     21  *  You should have received a copy of the GNU Lesser General Public
     22  *  License along with this library; if not, write to the Free Software
     23  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     24  *
     25  */
     26 
     27 #ifndef __SBC_PRIMITIVES_ARMV6_H
     28 #define __SBC_PRIMITIVES_ARMV6_H
     29 
     30 #include "sbc_primitives.h"
     31 
     32 #if defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || \
     33 	defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) || \
     34 	defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_6T2__) || \
     35 	defined(__ARM_ARCH_6M__) || defined(__ARM_ARCH_7__) || \
     36 	defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7R__) || \
     37 	defined(__ARM_ARCH_7M__)
     38 #define SBC_HAVE_ARMV6 1
     39 #endif
     40 
     41 #if !defined(SBC_HIGH_PRECISION) && (SCALE_OUT_BITS == 15) && \
     42 	defined(__GNUC__) && defined(SBC_HAVE_ARMV6) && \
     43 	defined(__ARM_EABI__) && !defined(__ARM_NEON__) && \
     44 	(!defined(__thumb__) || defined(__thumb2__))
     45 
     46 #define SBC_BUILD_WITH_ARMV6_SUPPORT
     47 
     48 void sbc_init_primitives_armv6(struct sbc_encoder_state *encoder_state);
     49 
     50 #endif
     51 
     52 #endif
     53