Message-ID: <2ff1a98a0802140532v36aed06bnff68387cc04cbec9@domain.hid> Date: Thu, 14 Feb 2008 14:32:42 +0100 From: "Gilles Chanteperdrix" In-Reply-To: <200802141058.2356@domain.hid> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200802141029.19685@domain.hid> <200802141055.1177@domain.hid> <200802141058.2356@domain.hid> Subject: Re: [Xenomai-help] Slow sin function List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Petr Cervenka Cc: xenomai-help On Thu, Feb 14, 2008 at 10:58 AM, Petr Cervenka wrote: > Hello again. > I have another problem and I'm not sure if it is connected with Xenomai , > but perhaps you already met similar problem. > Occasionally the math sin function takes an enormous amount of time > (400-450 us on Athlon A64 X2 4800+). When I detect this and make the sin function > call with the same parameter again, it takes the same (long) time. I > suspect that this function is for some values is unreasonably slow. I'll > try to capture some such values and post them here. > I don't remember such behavior before the transition to newer 64bit linux > distribution (Kubuntu 7.10 amd64 and kernel 2.6.24). > Petr Cervenka I would expect the sin function to be built-in, at least, I think it is built-in on x86_32. Now, looking at glibc code, there seem to be a loop in the implementation of these functions. -- Gilles Chanteperdrix