andrewm@379
|
1 /*
|
andrewm@379
|
2 * Copyright 2011-15 ARM Limited and Contributors.
|
andrewm@379
|
3 * All rights reserved.
|
andrewm@379
|
4 *
|
andrewm@379
|
5 * Redistribution and use in source and binary forms, with or without
|
andrewm@379
|
6 * modification, are permitted provided that the following conditions are met:
|
andrewm@379
|
7 * * Redistributions of source code must retain the above copyright
|
andrewm@379
|
8 * notice, this list of conditions and the following disclaimer.
|
andrewm@379
|
9 * * Redistributions in binary form must reproduce the above copyright
|
andrewm@379
|
10 * notice, this list of conditions and the following disclaimer in the
|
andrewm@379
|
11 * documentation and/or other materials provided with the distribution.
|
andrewm@379
|
12 * * Neither the name of ARM Limited nor the
|
andrewm@379
|
13 * names of its contributors may be used to endorse or promote products
|
andrewm@379
|
14 * derived from this software without specific prior written permission.
|
andrewm@379
|
15 *
|
andrewm@379
|
16 * THIS SOFTWARE IS PROVIDED BY ARM LIMITED AND CONTRIBUTORS "AS IS" AND
|
andrewm@379
|
17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
andrewm@379
|
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
andrewm@379
|
19 * DISCLAIMED. IN NO EVENT SHALL ARM LIMITED AND CONTRIBUTORS BE LIABLE FOR ANY
|
andrewm@379
|
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
andrewm@379
|
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
andrewm@379
|
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
andrewm@379
|
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
andrewm@379
|
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
andrewm@379
|
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
andrewm@379
|
26 */
|
andrewm@379
|
27
|
andrewm@379
|
28 #include "NE10.h"
|
andrewm@379
|
29
|
andrewm@379
|
30 #ifndef NE10_init_H
|
andrewm@379
|
31 #define NE10_init_H
|
andrewm@379
|
32
|
andrewm@379
|
33 #ifdef __cplusplus
|
andrewm@379
|
34 extern "C" {
|
andrewm@379
|
35 #endif
|
andrewm@379
|
36
|
andrewm@379
|
37 /*!
|
andrewm@379
|
38 This routine returns NE10_OK if the running platform supports NEON, otherwise it returns NE10_ERR
|
andrewm@379
|
39 */
|
andrewm@379
|
40 extern ne10_result_t ne10_HasNEON(void);
|
andrewm@379
|
41
|
andrewm@379
|
42 /*!
|
andrewm@379
|
43 This routine initializes all the function pointers.
|
andrewm@379
|
44 */
|
andrewm@379
|
45 extern ne10_result_t ne10_init(void);
|
andrewm@379
|
46
|
andrewm@379
|
47 /*!
|
andrewm@379
|
48 This routine initializes all the math function pointers defined in "NE10_math.h" with pointers to ARM NEON or ARM VFP implementations.
|
andrewm@379
|
49 */
|
andrewm@379
|
50 extern ne10_result_t ne10_init_math (ne10_int32_t is_NEON_available);
|
andrewm@379
|
51 extern ne10_result_t ne10_init_dsp (ne10_int32_t is_NEON_available);
|
andrewm@379
|
52
|
andrewm@379
|
53 #ifdef __cplusplus
|
andrewm@379
|
54 }
|
andrewm@379
|
55 #endif
|
andrewm@379
|
56
|
andrewm@379
|
57 #endif
|