Cordio Stack and Cordio Profiles
r2p3-02rel0
Main Page
Usage and Description
Reference
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
* ARM Ltd. confidential and proprietary.
9
*
10
* IMPORTANT. Your use of this file is governed by a Software License Agreement
11
* ("Agreement") that must be accepted in order to download or otherwise receive a
12
* copy of this file. You may not use or copy this file for any purpose other than
13
* as described in the Agreement. If you do not agree to all of the terms of the
14
* Agreement do not use this file and delete all copies in your possession or control;
15
* if you do not have a copy of the Agreement, you must contact ARM Ltd. prior
16
* to any use, copying or further distribution of this software.
17
*/
18
/*************************************************************************************************/
19
#ifndef WSF_MATH_H
20
#define WSF_MATH_H
21
22
#include "
wsf_types.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
/*! \addtogroup WSF_MATH_API
29
* \{ */
30
31
/**************************************************************************************************
32
Macros
33
**************************************************************************************************/
34
35
/*! \brief Returns the minimum of two values. */
36
#define WSF_MIN(a,b) ((a) < (b) ? (a) : (b))
37
38
/*! \brief Returns the maximum of two values. */
39
#define WSF_MAX(a,b) ((a) > (b) ? (a) : (b))
40
41
/*! \} */
/* WSF_MATH_API */
42
43
#ifdef __cplusplus
44
};
45
#endif
46
47
#endif
/* WSF_MATH_H */
wsf_types.h
Platform-independent data types.
Copyright © 2017-2018 Arm Ltd. All rights reserved.
Arm Confidential
Cordio Stack and Cordio Profiles