Last change
on this file since 466 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
467 bytes
|
Line | |
---|
1 | |
---|
2 | /* @(#)z_cos.c 1.0 98/08/13 */ |
---|
3 | /****************************************************************** |
---|
4 | * Cosine |
---|
5 | * |
---|
6 | * Input: |
---|
7 | * x - floating point value |
---|
8 | * |
---|
9 | * Output: |
---|
10 | * cosine of x |
---|
11 | * |
---|
12 | * Description: |
---|
13 | * This routine returns the cosine of x. |
---|
14 | * |
---|
15 | *****************************************************************/ |
---|
16 | |
---|
17 | #include "fdlibm.h" |
---|
18 | #include "zmath.h" |
---|
19 | |
---|
20 | #ifndef _DOUBLE_IS_32BITS |
---|
21 | |
---|
22 | double |
---|
23 | cos (double x) |
---|
24 | { |
---|
25 | return (sine (x, 1)); |
---|
26 | } |
---|
27 | |
---|
28 | #endif /* _DOUBLE_IS_32BITS */ |
---|
Note: See
TracBrowser
for help on using the repository browser.