Mistake on this page?
Report an issue in GitHub or email us
wsf_math.h
Go to the documentation of this file.
1 /*************************************************************************************************/
2 /*!
3  * \file wsf_math.h
4  *
5  * \brief Common math utilities.
6  *
7  * Copyright (c) 2013-2018 Arm Ltd. All Rights Reserved.
8  *
9  * Copyright (c) 2019 Packetcraft, Inc.
10  *
11  * Licensed under the Apache License, Version 2.0 (the "License");
12  * you may not use this file except in compliance with the License.
13  * You may obtain a copy of the License at
14  *
15  * http://www.apache.org/licenses/LICENSE-2.0
16  *
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an "AS IS" BASIS,
19  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  */
23 /*************************************************************************************************/
24 #ifndef WSF_MATH_H
25 #define WSF_MATH_H
26 
27 #include "wsf_types.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 /*! \addtogroup WSF_MATH_API
34  * \{ */
35 
36 /**************************************************************************************************
37  Macros
38 **************************************************************************************************/
39 
40 /*! \brief Returns the minimum of two values. */
41 #define WSF_MIN(a,b) ((a) < (b) ? (a) : (b))
42 
43 /*! \brief Returns the maximum of two values. */
44 #define WSF_MAX(a,b) ((a) > (b) ? (a) : (b))
45 
46 /*! \} */ /* WSF_MATH_API */
47 
48 #ifdef __cplusplus
49 };
50 #endif
51 
52 #endif /* WSF_MATH_H */
Platform-independent data types.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.