media/libopus/celt/arm/armcpu.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* Copyright (c) 2010 Xiph.Org Foundation
     2  * Copyright (c) 2013 Parrot */
     3 /*
     4    Redistribution and use in source and binary forms, with or without
     5    modification, are permitted provided that the following conditions
     6    are met:
     8    - Redistributions of source code must retain the above copyright
     9    notice, this list of conditions and the following disclaimer.
    11    - Redistributions in binary form must reproduce the above copyright
    12    notice, this list of conditions and the following disclaimer in the
    13    documentation and/or other materials provided with the distribution.
    15    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    16    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    17    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    18    A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
    19    OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    20    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
    21    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
    22    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
    23    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
    24    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    25    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    26 */
    28 #if !defined(ARMCPU_H)
    29 # define ARMCPU_H
    31 # if defined(OPUS_ARM_MAY_HAVE_EDSP)
    32 #  define MAY_HAVE_EDSP(name) name ## _edsp
    33 # else
    34 #  define MAY_HAVE_EDSP(name) name ## _c
    35 # endif
    37 # if defined(OPUS_ARM_MAY_HAVE_MEDIA)
    38 #  define MAY_HAVE_MEDIA(name) name ## _media
    39 # else
    40 #  define MAY_HAVE_MEDIA(name) MAY_HAVE_EDSP(name)
    41 # endif
    43 # if defined(OPUS_ARM_MAY_HAVE_NEON)
    44 #  define MAY_HAVE_NEON(name) name ## _neon
    45 # else
    46 #  define MAY_HAVE_NEON(name) MAY_HAVE_MEDIA(name)
    47 # endif
    49 # if defined(OPUS_ARM_PRESUME_EDSP)
    50 #  define PRESUME_EDSP(name) name ## _edsp
    51 # else
    52 #  define PRESUME_EDSP(name) name ## _c
    53 # endif
    55 # if defined(OPUS_ARM_PRESUME_MEDIA)
    56 #  define PRESUME_MEDIA(name) name ## _media
    57 # else
    58 #  define PRESUME_MEDIA(name) PRESUME_EDSP(name)
    59 # endif
    61 # if defined(OPUS_ARM_PRESUME_NEON)
    62 #  define PRESUME_NEON(name) name ## _neon
    63 # else
    64 #  define PRESUME_NEON(name) PRESUME_MEDIA(name)
    65 # endif
    67 # if defined(OPUS_HAVE_RTCD)
    68 int opus_select_arch(void);
    69 # endif
    71 #endif

mercurial