Message ID | 20180221110523.859-8-alex.bennee@linaro.org |
---|---|
State | Accepted |
Commit | 78b5a3e653c90b56ba650f54c07fc18f7b7bd905 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp493673ljc; Wed, 21 Feb 2018 03:09:25 -0800 (PST) X-Google-Smtp-Source: AH8x227+AZSFf8Mn/NLMf6TMICd84kUiIy7X+8dKlwdWj5Hhx/OA//dGvVaDaFXOV/k8VkPlepHN X-Received: by 2002:a25:4986:: with SMTP id w128-v6mr1854548yba.131.1519211365672; Wed, 21 Feb 2018 03:09:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519211365; cv=none; d=google.com; s=arc-20160816; b=eqcDaWPS762QnuoNfRUmtmEHRnTdamRrICrKnkn4MnbnZav2Qbc1JpCsZZbWuBKA+D GpPtlWoEtMjtxAuJaslIJRljpUvGRyWm1TrkHHTxAE0ET7vg1j9oXdPdzgnIwVfg5j1Z NnxfeqMCFrANHu/e4yfavqEDqcu8lUDt4y1ZNp+TL+G2V8LF4mRTvOuOZ5BPNKYfSB+5 SNaR7PuTkj3JXkAWvFIq5lUzp41NDQMHY0HOAVvC4ANgHdOZeZikUwoweQp9THQ2v6wg fa94bi5kEHCNjVV4ECSRX5woqaSnqJ2l6+lOC84TIrtU8PHgm7q06uSETSXxiDANGLaz dZpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=vXkNsIDqo1oNimk5xnCFWIScB/6Sj4wc1llJWSRVUwE=; b=KE0guowaehOg/g8I/V3NrJsCsxEY9n2mwA5uRhM5Rz2MbyNp4F1kMfFlELAZqoGGBg +OvdJCWMpKAPKWsnhK714OjEoer6YCQytzkGTehvE6j73zSL35AfEycy8fPbWUfbeRRl O//KsQ7QlNybW2RDMfrtaMKZYzESkllj+jHoRySKaw2vCcKbUCpYaRxjddHcgmtXoHkZ GGq2sxJ01DPXK2tA1WACZj9PqK+Uw3uqGI/pMyNU8o1oLS8OMXkE91H82JSUTBTaPAq4 jj9tJ3RXIIdHfzWPH8gdncUwTAk3+m+/stIDnoDilsEXMrTk6BGcFmKqus57eFpjSj2r SR3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=e72hcJBb; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id k123si2169356ybf.412.2018.02.21.03.09.25 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 21 Feb 2018 03:09:25 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=e72hcJBb; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60051 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1eoSH7-0006aP-1y for patch@linaro.org; Wed, 21 Feb 2018 06:09:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1eoSDX-0003wt-Jm for qemu-devel@nongnu.org; Wed, 21 Feb 2018 06:05:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1eoSDT-0006fw-PE for qemu-devel@nongnu.org; Wed, 21 Feb 2018 06:05:43 -0500 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:35064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1eoSDT-0006fh-IK for qemu-devel@nongnu.org; Wed, 21 Feb 2018 06:05:39 -0500 Received: by mail-wr0-x241.google.com with SMTP id l43so3289700wrc.2 for <qemu-devel@nongnu.org>; Wed, 21 Feb 2018 03:05:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vXkNsIDqo1oNimk5xnCFWIScB/6Sj4wc1llJWSRVUwE=; b=e72hcJBbhCJgtlhl6UjBJ/sjVxkAckPXmae11e8DR4eE1vuYSBZuqe0TUdHvBV2PDP S16chsjtuYmx4bKs55zDUnsL30z8raVPN7LsWjUcC3V1Xcoaqc6iwIoEKk3zH4hsfjhb oCK/XXfx68G2V+i+hR9aZYQ2iDvGusN5Y4AiY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vXkNsIDqo1oNimk5xnCFWIScB/6Sj4wc1llJWSRVUwE=; b=tYMBZgaiJshGZQWtKXuk5opcvmdzNfWdQGFYOKTAaN8PRMJBIZwtt5RyAON+3xRAUD K63YaImkKaZFxSZvYg/+vE5WTF3qPtcErc+nrlEe77Qj+48F3GBKNG8HAXLOCEMIQcjL BBC9/Nu5UcRQplRta8i4VDzD5V3wvszM71lk9zpgt3OqvB5OWiLEzLCpPTVzdcJm0zRN 0aV2dFvkNxIsCVrGV+HyQDsayYyzvJuWTZd1jZ83z2r2M8s6HtpWWTtVpfbc1d2yhs6i RMO2S1EsVwHbSoqWtiVoKGFzwYXWufoxz18FHU9oNi0halzLULEoUNl0CGqxDVuCiHRm ezKw== X-Gm-Message-State: APf1xPDdvgfu9I2gd3ZAz7QrYK72nDwDnrOxwvl+MlpbmhM1eoJb5uEg j/voPuklXUn52k6xM1lkswMp7A== X-Received: by 10.28.245.25 with SMTP id t25mr1652429wmh.77.1519211138507; Wed, 21 Feb 2018 03:05:38 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id z1sm26971517wre.25.2018.02.21.03.05.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2018 03:05:32 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id C0BC13E047D; Wed, 21 Feb 2018 11:05:23 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: peter.maydell@linaro.org Date: Wed, 21 Feb 2018 11:05:07 +0000 Message-Id: <20180221110523.859-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180221110523.859-1-alex.bennee@linaro.org> References: <20180221110523.859-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PULL 07/22] include/fpu/softfloat: implement float16_set_sign helper X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, qemu-devel@nongnu.org, Aurelien Jarno <aurelien@aurel32.net> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
re-factor softfloat and add fp16 functions
|
expand
|
diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index f75aa59100..59c06ef192 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -281,6 +281,11 @@ static inline float16 float16_chs(float16 a) return make_float16(float16_val(a) ^ 0x8000); } +static inline float16 float16_set_sign(float16 a, int sign) +{ + return make_float16((float16_val(a) & 0x7fff) | (sign << 15)); +} + /*---------------------------------------------------------------------------- | The pattern for a default generated half-precision NaN. *----------------------------------------------------------------------------*/