From owner-freebsd-arm@FreeBSD.ORG Mon Jan 13 21:34:38 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 234A59D9 for ; Mon, 13 Jan 2014 21:34:38 +0000 (UTC) Received: from mail-ig0-f175.google.com (mail-ig0-f175.google.com [209.85.213.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E0E511A63 for ; Mon, 13 Jan 2014 21:34:37 +0000 (UTC) Received: by mail-ig0-f175.google.com with SMTP id uq10so3950340igb.2 for ; Mon, 13 Jan 2014 13:34:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=izVDfxAweviO2bfxWfaMszpsnDg0M0KK60oT3zzoaCs=; b=KcE1HNFTHFD6s6UivB3L2rU0Sabv5JsEqaNzuQYzFRuKhX8wDWb1Nxhm+qKyNlUCgR wKa3lpUfG89JMRCWRkMoIc2smJ+Dswu0KPq5u1gwy2IgyntdaH/9jKBM8ip8p4qVo1mY RYoibVD7270b9A+VW+dTHaitR4B++TfD1RKYUylAvy2oEQeVStQKWW1/jO2cnSGbSk7D g+J5wBGdun/GisLrhVJf2YdWHl1mHg6D7ICv54rTEflpr4vA145cy75TijeKwd7mpGNC Lw7ub7N94TEt/wVxv0A1/NCICa5qoA4uKhJ9nvULa4Squzd4mLOJQdnhLABnXgvJYL7x p/vg== X-Gm-Message-State: ALoCoQnH0b3xIUhwdj9hvWYF9chExyWudMq62RVzaMFkyVk0wm0mvDcH76vudVI0jyX9uKK7Wmx8 X-Received: by 10.50.100.170 with SMTP id ez10mr21023278igb.15.1389648871013; Mon, 13 Jan 2014 13:34:31 -0800 (PST) Received: from fusionlt2834a.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPSA id gc2sm20434930igd.6.2014.01.13.13.34.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 Jan 2014 13:34:30 -0800 (PST) Sender: Warner Losh Subject: Re: Using VFP registers in the msun fenv functions Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20140112194532.27366e43@bender.Home> Date: Mon, 13 Jan 2014 14:34:28 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <1EEB0662-E528-4E36-8A39-B5804AD89132@bsdimp.com> References: <20140112194532.27366e43@bender.Home> To: Andrew Turner X-Mailer: Apple Mail (2.1085) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jan 2014 21:34:38 -0000 Hi Andrew, Thanks for tackling this... On Jan 12, 2014, at 12:45 PM, Andrew Turner wrote: > [1] http://people.freebsd.org/~andrew/armv6fenv2.diff I noticed several constructs like +int feclearexcept(int __excepts) +{ + + if (_libc_arm_fpu_present) + __vfp_feclearexcept(__excepts); + __softfp_feclearexcept(__excepts); + + return (0); +} where you do the softfp thing unconditionally. Why is that, and is it = intentional? Warner