Last change
on this file since 543 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
401 bytes
|
Rev | Line | |
---|
[444] | 1 | /* sincos -- currently no more efficient than two separate calls to |
---|
| 2 | sin and cos. */ |
---|
| 3 | |
---|
| 4 | #include "fdlibm.h" |
---|
| 5 | #include <errno.h> |
---|
| 6 | |
---|
| 7 | #ifndef _DOUBLE_IS_32BITS |
---|
| 8 | |
---|
| 9 | #ifdef __STDC__ |
---|
| 10 | void sincos(double x, double *sinx, double *cosx) |
---|
| 11 | #else |
---|
| 12 | void sincos(x, sinx, cosx) |
---|
| 13 | double x; |
---|
| 14 | double *sinx; |
---|
| 15 | double *cosx; |
---|
| 16 | #endif |
---|
| 17 | { |
---|
| 18 | *sinx = sin (x); |
---|
| 19 | *cosx = cos (x); |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | #endif /* defined(_DOUBLE_IS_32BITS) */ |
---|
Note: See
TracBrowser
for help on using the repository browser.