From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16599 invoked by alias); 25 Jul 2011 18:02:28 -0000 Received: (qmail 16580 invoked by uid 22791); 25 Jul 2011 18:02:27 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_JN X-Spam-Check-By: sourceware.org Received: from mail-fx0-f51.google.com (HELO mail-fx0-f51.google.com) (209.85.161.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 25 Jul 2011 18:02:04 +0000 Received: by fxh10 with SMTP id 10so9562864fxh.10 for ; Mon, 25 Jul 2011 11:02:02 -0700 (PDT) Received: by 10.223.95.153 with SMTP id d25mr7239322fan.4.1311616922810; Mon, 25 Jul 2011 11:02:02 -0700 (PDT) Received: from sg-laptop ([178.123.134.191]) by mx.google.com with ESMTPS id w15sm3920147faj.47.2011.07.25.11.01.59 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Jul 2011 11:02:01 -0700 (PDT) Date: Mon, 25 Jul 2011 18:02:00 -0000 From: Sergei Gavrikov To: Visar Zejnullahu cc: ecos-devel@ecos.sourceware.org Subject: Re: Testing newlib In-Reply-To: <4E2D53B4.1060108@siva.mk> Message-ID: References: <4E2D53B4.1060108@siva.mk> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2011-07/txt/msg00006.txt.bz2 On Mon, 25 Jul 2011, Visar Zejnullahu wrote: > Hi. > > As announced here: > http://sourceware.org/ml/ecos-devel/2011-07/msg00003.html we are working > on a port of Newlib's single precision floating point math library > (float vs double...). > > I know part of the questions should be addressed to the Newlib's mailing > list (which I have done as well), but I am asking help on the Ecos part > of the problems. Hi Visar, [cut set of Q that I do not have the expertise] > And lastly, about the gamma function - I've used the tests provided > from Newlib, and when I try to compile the test files about this > function, I get the error > ecos/packages/language/c/libm/current/src/double/ieee754-api/w_gamma.c:99: > undefined reference to `signgam'. Can anyone help on this? Look, please, at ecos math.h:160 #ifdef CYGSEM_LIBM_THREAD_SAFE_GAMMA_FUNCTIONS // FIXME: these need to be documented and signgam mentioned as non-ISO // This returns the address of the signgam variable used by the gamma*() and // lgamma*() functions externC int * cyg_libm_get_signgam_p( void ); #define signgam (*cyg_libm_get_signgam_p()) I think you will get it. Also, the next point to look on libm.cdl:125:cdl_option CYGSEM_LIBM_THREAD_SAFE_GAMMA_FUNCTIONS IMHO, the option's description attribute is the very informative. Sergei