upm/include/upm_math.h
Mihai Tudor Panu 89d5de43e0 license: update to SPDX style license text throughout
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2020-03-05 15:13:36 -08:00

34 lines
632 B
C

/*
* Authors:
* Jon Trulson <jtrulson@ics.com>
* Copyright (c) 2016 Intel Corporation.
*
* 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.
*
* SPDX-License-Identifier: MIT
*/
#ifndef UPM_MATH_H_
#define UPM_MATH_H_
#include <upm_platform.h>
#ifdef __cplusplus
extern "C" {
#endif
#if defined(UPM_PLATFORM_LINUX) || defined(UPM_PLATFORM_ZEPHYR)
#include <math.h>
#endif
#ifndef M_PI
#define M_PI (3.14159265358979323846)
#endif
#ifdef __cplusplus
}
#endif
#endif /* UPM_MATH_H_ */