2016-08-17 17:58:21 -07:00
|
|
|
/*
|
|
|
|
* Authors:
|
2016-11-02 16:56:21 -06:00
|
|
|
* Jon Trulson <jtrulson@ics.com>
|
2016-08-17 17:58:21 -07:00
|
|
|
* Copyright (c) 2016 Intel Corporation.
|
|
|
|
*
|
2019-07-30 19:41:32 -07:00
|
|
|
* This program and the accompanying materials are made available under the
|
|
|
|
* terms of the The MIT License which is available at
|
|
|
|
* https://opensource.org/licenses/MIT.
|
2016-08-17 17:58:21 -07:00
|
|
|
*
|
2019-07-30 19:41:32 -07:00
|
|
|
* SPDX-License-Identifier: MIT
|
2016-08-17 17:58:21 -07:00
|
|
|
*/
|
|
|
|
#ifndef UPM_MATH_H_
|
|
|
|
#define UPM_MATH_H_
|
|
|
|
|
2016-11-02 16:56:21 -06:00
|
|
|
#include <upm_platform.h>
|
|
|
|
|
2016-08-17 17:58:21 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2016-11-02 16:56:21 -06:00
|
|
|
#if defined(UPM_PLATFORM_LINUX) || defined(UPM_PLATFORM_ZEPHYR)
|
2016-08-17 17:58:21 -07:00
|
|
|
#include <math.h>
|
|
|
|
#endif
|
|
|
|
|
2016-10-20 17:44:57 -06:00
|
|
|
#ifndef M_PI
|
|
|
|
#define M_PI (3.14159265358979323846)
|
|
|
|
#endif
|
|
|
|
|
2016-08-17 17:58:21 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* UPM_MATH_H_ */
|