xref: /optee_os/lib/libutee/include/tee_arith_internal.h (revision b501c0084dae12fce75ee851d622337c3df201d0)
1*1bb92983SJerome Forissier /* SPDX-License-Identifier: BSD-2-Clause */
2b0104773SPascal Brand /*
3b0104773SPascal Brand  * Copyright (c) 2014, STMicroelectronics International N.V.
4b0104773SPascal Brand  */
5b0104773SPascal Brand #ifndef GUARD_TEE_MATHAPI_H
6b0104773SPascal Brand #define GUARD_TEE_MATHAPI_H
7b0104773SPascal Brand 
8b0104773SPascal Brand #include <stddef.h>		/* for size_t */
9b0104773SPascal Brand #include <stdint.h>		/* for uint32_t and friends */
10b0104773SPascal Brand #include <stdbool.h>		/* for bool (!) */
11b0104773SPascal Brand 
12b0104773SPascal Brand /*************************************************************
13b0104773SPascal Brand  *
14b0104773SPascal Brand  *  MACRO DEFINITIONS
15b0104773SPascal Brand  *
16b0104773SPascal Brand  *************************************************************/
17b0104773SPascal Brand 
18b0104773SPascal Brand /*------------------------------------------------------------
19b0104773SPascal Brand  *
20b0104773SPascal Brand  *  How functions are exported
21b0104773SPascal Brand  *
22b0104773SPascal Brand  */
23b0104773SPascal Brand #define TEE_MATHAPI_EXPORT
24b0104773SPascal Brand 
25b0104773SPascal Brand /*------------------------------------------------------------
26b0104773SPascal Brand  *
27b0104773SPascal Brand  *  Define IN, OUT, INBUF and OUTBUF to keep format from the spec.
28b0104773SPascal Brand  *
29b0104773SPascal Brand  */
30b0104773SPascal Brand #define IN const
31b0104773SPascal Brand #define OUT
32b0104773SPascal Brand #define INOUT
33b0104773SPascal Brand #define INBUF const
34b0104773SPascal Brand #define OUTBUF
35b0104773SPascal Brand 
36b0104773SPascal Brand /*************************************************************
37b0104773SPascal Brand  *
38b0104773SPascal Brand  *  MEMORY ALLOCATION AND SIZE
39b0104773SPascal Brand  *
40b0104773SPascal Brand  *************************************************************/
41b0104773SPascal Brand 
42b0104773SPascal Brand /*************************************************************
43b0104773SPascal Brand  *
44b0104773SPascal Brand  * INITIALIZATION FUNCTIONS
45b0104773SPascal Brand  *
46b0104773SPascal Brand  *************************************************************/
47b0104773SPascal Brand 
48b0104773SPascal Brand /*
49b0104773SPascal Brand  * !!! This function must be called before you do anything else !!!
50b0104773SPascal Brand  *  NOTE: Not part of the spec
51b0104773SPascal Brand  */
527018ae01SSY Chiu TEE_MATHAPI_EXPORT void _TEE_MathAPI_Init(void);
537018ae01SSY Chiu 
54b0104773SPascal Brand #endif
55