bug#25785: scm_c_make_polar broken on APPLE

2017-02-21 Thread Andy Wingo
On Sat 18 Feb 2017 18:37, Matt Wette writes: > Patch includes (and attached) for guile-2.1.7. This uses macOS __sincos(). Thank you for this patch! Applied. The config.h.in is indeed autogenerated (by autoheader, I think). Andy

bug#25785: scm_c_make_polar broken on APPLE

2017-02-21 Thread Andy Wingo
Thanks!

bug#25785: scm_c_make_polar broken on APPLE

2017-02-18 Thread Matt Wette
numbers.c:scm_c_make_polar in guile-2.1.7 breaks on APPLE (macOS 10.12).Reason: APPLE does not have sincos(), and gcc will optimize sin/cos to use cexp(), and cexp() does not preserve sign of zero.Patch includes (and attached) for guile-2.1.7.  This uses macOS __sincos().Example:In scm_c_make_polar