>>>>> "jg" == Juan Jose Garcia-Ripoll <juanjose.garciarip...@gmail.com> writes:

  jg> ECL uses tanf() for computing the tangent with single-floats. If you have 
a
  jg> look at the code in ecl/src/c/numbers/tan.d you will find the lines below.
  jg> One possibility would be to uncomment safe_tanf() and see whether ECL now
  jg> works. If this is the case then we might have to add another switch for
  jg> your platform :-/

  Thanks for the suggestion. With the patch below, tan seems to work
  correctly.
 


diff --git a/src/c/numbers/tan.d b/src/c/numbers/tan.d
index 511e1e3..5700590 100644
--- a/src/c/numbers/tan.d
+++ b/src/c/numbers/tan.d
@@ -28,7 +28,7 @@
  * solved. Not only that, but if we use tan() on float, GCC automatically
  * and stupidly forces the use of tanf().
  */
-#if defined(__amd64__) && defined(__GLIBC__)
+#if (defined(__amd64__) || defined(__arm__)) && defined(__GLIBC__)
 static double safe_tanf(double x) { return tan(x); }
 #else
 # define safe_tanf(x) tanf(x)

-- 
Eric Marsden


------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to