uc-sdk
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
uc-sdk
Quick Start
uxQueueMessagesWaiting
vQueueDelete
xTaskHandle
taskYIELD
taskENTER_CRITICAL
taskEXIT_CRITICAL
taskDISABLE_INTERRUPTS
taskENABLE_INTERRUPTS
xTaskGetTickCount
uxTaskGetNumberOfTasks
vTaskList
vTaskGetRunTimeStats
vTaskStartTrace
usTaskEndTrace
uC-sdk - a lightweight development kit for embedded micro-controllers
Todo List
Modules
Classes
Files
File List
acorn
arch
config
FreeRTOS
libc
libm
include
src
e_acos.c
e_acosh.c
e_asin.c
e_atan2.c
e_atanh.c
e_cosh.c
e_exp.c
e_fmod.c
e_gamma.c
e_gamma_r.c
e_hypot.c
e_j0.c
e_j1.c
e_jn.c
e_lgamma.c
e_lgamma_r.c
e_log.c
e_log10.c
e_pow.c
e_rem_pio2.c
e_remainder.c
e_scalb.c
e_sinh.c
e_sqrt.c
fdlibm.h
k_cos.c
k_rem_pio2.c
k_sin.c
k_standard.c
k_tan.c
s_asinh.c
s_atan.c
s_cbrt.c
s_ceil.c
s_copysign.c
s_cos.c
s_erf.c
s_expm1.c
s_fabs.c
s_finite.c
s_floor.c
s_frexp.c
s_ilogb.c
s_isnan.c
s_ldexp.c
s_lib_version.c
s_log1p.c
s_logb.c
s_matherr.c
s_modf.c
s_nextafter.c
s_rint.c
s_scalbn.c
s_signgam.c
s_significand.c
s_sin.c
s_tan.c
s_tanh.c
w_acos.c
w_acosh.c
w_asin.c
w_atan2.c
w_atanh.c
w_cosh.c
w_exp.c
w_fmod.c
w_gamma.c
w_gamma_r.c
w_hypot.c
w_j0.c
w_j1.c
w_jn.c
w_lgamma.c
w_lgamma_r.c
w_log.c
w_log10.c
w_pow.c
w_remainder.c
w_scalb.c
w_sinh.c
w_sqrt.c
lwip
os
skel
tools
demo.c
File Members
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
w_atan2.c
Go to the documentation of this file.
1
2
/* @(#)w_atan2.c 1.3 95/01/18 */
3
/*
4
* ====================================================
5
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
6
*
7
* Developed at SunSoft, a Sun Microsystems, Inc. business.
8
* Permission to use, copy, modify, and distribute this
9
* software is freely granted, provided that this notice
10
* is preserved.
11
* ====================================================
12
*
13
*/
14
15
/*
16
* wrapper atan2(y,x)
17
*/
18
19
#include "
fdlibm.h
"
20
21
22
#ifdef __STDC__
23
double
atan2
(
double
y,
double
x)
/* wrapper atan2 */
24
#else
25
double
atan2
(y,x)
/* wrapper atan2 */
26
double y,x;
27
#endif
28
{
29
#ifdef _IEEE_LIBM
30
return
__ieee754_atan2
(y,x);
31
#else
32
double
z;
33
z =
__ieee754_atan2
(y,x);
34
if
(
_LIB_VERSION
==
_IEEE_
||
isnan
(x)||
isnan
(y))
return
z;
35
if
(x==0.0&&y==0.0) {
36
return
__kernel_standard
(y,x,3);
/* atan2(+-0,+-0) */
37
}
else
38
return
z;
39
#endif
40
}
libm
src
w_atan2.c
Generated on Fri Nov 15 2013 05:00:19 for uc-sdk by
1.8.4