Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 4 Sep 2005 09:53:54 +1000 From: Erik de Castro Lopo To: cygwin AT cygwin DOT com Subject: Re: [patch] lrint/lrintf oddity Message-Id: <20050904095354.02fc91a4.erikd@mega-nerd.com> In-Reply-To: <4319E40B.F2219D3@dessent.net> References: <20050903185145 DOT 5bb6c57e DOT cygwin-erikd AT mega-nerd DOT com> <4319C016 DOT 2958BC77 AT dessent DOT net> <20050904023143 DOT 48fed0c5 DOT cygwin-erikd AT mega-nerd DOT com> <4319E40B DOT F2219D3 AT dessent DOT net> x-gpg-fingerprint: 7357 1E85 C19F 4281 D8C9 7AA8 6CA4 1A77 43B8 D6C8 x-gpg-key: 43B8D6C8 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Brian Dessent wrote: > Linux uses glibc, Cygwin uses newlib. They're not the same thing. OK. > Glibc is highly optimized and tweaked, newlib is designed as a small and > portable libc for embedded systems. Is the target small source code size or small executable size? If its small executable size, a single inline asm instruction will be smaller than than a function call. > . The newlib mailing list is right > over there --> Thats nice, but I've already spend an unreasonably large amount of time trying to get my project running on windows, a platform I personally never use (other than to make source my software runs on it). > Be aware that newlib supports a wide variety of platforms, some with no > FPU, so you can't just go yanking stuff out. The existing code can be kept for targets with no FPU. > If you don't care about portability you could probably #define the > inline asm versions of the functions. Thats the course of action I'll take. Cygwin is currently the only platform that I'm interested in that doesn't have a fast, working lrint/lrintf implementation. Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo nospam AT mega-nerd DOT com (Yes it's valid) +-----------------------------------------------------------+ "I don't think any MS Exec will ever die of old age. Satan doesn't need the competition." -- Digital Wokan on LinuxToday.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/