From patchwork Wed Dec 12 22:34:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 1012394 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-98291-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="tPrxrf1n"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43FWnr2lBFz9s3Z for ; Thu, 13 Dec 2018 09:34:24 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=oeqzbHesghkxpapsok8Ddk6oz7EUl UKURklkbVu8wvRSfW5FxD2zdh8Osorv4HPeDuTahPDsGTdBSN7ZlPYCRunLg3gZO Y/VNe373JzJTl4Tb1Tug8ZliT6up2lLsE2PLD0MfQOwC7gmqDH/KAGU1xykidwvX hFLmTJ4DWGXizM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=uLO39RQu/rZGaVwtp72Hk+EBj9Y=; b=tPr xrf1nc04pK8H0iPbG+3An3a1HxdQlzfph/iZDq0AK3YYToH+eXdPGtIFChpZ9A4C SQ/GXUbnev/WyQN+DAlrq3LJOZiWphECCTOocGzi6v7EXn8uAwc8p1t05o4hvVnE bZqnUic4f8LX9BnpceDBdQdR56gAB4qZBCcsLUnY= Received: (qmail 31532 invoked by alias); 12 Dec 2018 22:34:18 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 31356 invoked by uid 89); 12 Dec 2018 22:34:16 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1125 X-HELO: relay1.mentorg.com Date: Wed, 12 Dec 2018 22:34:09 +0000 From: Joseph Myers To: Subject: Remove x86 mathinline.h hypot inline [committed] Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Continuing the removal of bits/mathinline.h inlines that would better be done by the compiler, this patch removes an x86 inline for hypot functions (only for fast-math, only for non-SSE 32-bit x86). I've filed for adding such an inline as an optimization in GCC. Tested for x86_64 and x86. Committed. 2018-12-12 Joseph Myers * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline definition. diff --git a/sysdeps/x86/fpu/bits/mathinline.h b/sysdeps/x86/fpu/bits/mathinline.h index 91ece8dfb8..8eae3707be 100644 --- a/sysdeps/x86/fpu/bits/mathinline.h +++ b/sysdeps/x86/fpu/bits/mathinline.h @@ -298,10 +298,6 @@ __inline_mathcodeNP (atanh, __x, \ register long double __y = __fabsl (__x); \ return -0.5 * log1pl (-(__y + __y) / (1.0 + __y)) * __sgn1l (__x)) -/* The argument range of the inline version of hypotl is slightly reduced. */ -__inline_mathcodeNP2 (hypot, __x, __y, - return __libc_sqrtl (__x * __x + __y * __y)) - # endif # endif