MINGW32 has no sincos
Status: Beta
Brought to you by:
alvarado
in ltiSinCos.h,
#if defined(_LTI_GNUC_3) && !(defined(_LTI_MACOSX))
but above can not be compiled with mingw32, so the
following works:
#if defined(_LTI_GNUC_3) && !(defined(_LTI_MACOSX)) &&
!(defined(_LTI_CYGWIN))
I don't check, but cygwin and mingw may not have sincos.
in 1.9.15 and ltilib1 cvs. no sincos in litlib2 cvs?
Logged In: YES
user_id=728643
sent a mail to ltilib-devel to make this look better.
Logged In: YES
user_id=1341174
As suggested by Mingw users list, the following function
might be implemented.
#if (defined(_LTI_CYGWIN))
void inline sincos_impl(double angle, double& sval,
double& cval)
{
double ss,cc;
__asm__ ("fsincos;" : "=t" (cc), "=u" (ss) :
"0" (angle));
sval=ss;
cval=cc;
}
#endif
Considerations:
http://sourceforge.net/mailarchive/forum.php?thread_id=3204918&forum_id=5119
Solution:
http://sourceforge.net/mailarchive/forum.php?thread_id=3196493&forum_id=5119