From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/15122 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] math: move more x86-family lrint functions to C Date: Sat, 11 Jan 2020 11:07:01 -0500 Message-ID: <20200111160701.GC30412@brightrain.aerifal.cx> References: <20200111152354.5743-1-amonakov@ispras.ru> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="250438"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-15138-gllmg-musl=m.gmane-mx.org@lists.openwall.com Sat Jan 11 17:07:55 2020 Return-path: Envelope-to: gllmg-musl@m.gmane-mx.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iqJIE-000v9t-Ah for gllmg-musl@m.gmane-mx.org; Sat, 11 Jan 2020 17:07:18 +0100 Original-Received: (qmail 19535 invoked by uid 550); 11 Jan 2020 16:07:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 19515 invoked from network); 11 Jan 2020 16:07:13 -0000 Content-Disposition: inline In-Reply-To: <20200111152354.5743-1-amonakov@ispras.ru> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:15122 Archived-At: On Sat, Jan 11, 2020 at 06:23:54PM +0300, Alexander Monakov wrote: > --- > It was news to me that GCC inline asm conventions allow to specify > effect on x87 register stack. Here a clobber tells the compiler > that the asm pops the topmost element off the stack. Is this documented/reliable/supported by other compilers (clang, pcc, old gcc)? It looks very nice and I hope we can do it; otherwise it looks like a gratuitous instruction would be needed. But I want to make sure it's safe. Rich