From patchwork Mon Jun 8 17:19:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Senkevich X-Patchwork-Id: 481943 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 8FCD614016A for ; Tue, 9 Jun 2015 03:19:46 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=sourceware.org header.i=@sourceware.org header.b=Hhp/UN1D; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; q=dns; s=default; b=Uf0K JkUFQQYryh/jd1PBD9J2o8LQccTVMKfUNnyFKqmMuoLjp30tSvYw/nmmRcdufort mF1UfrpaGUGiTdv9EVPZ+rT7uDiAZs8tMCiUSJs65f62cYmhpChcnB9/yOlgp0IB URAghs1KExiVQX3faYoUh+zkjeMgc/UVtJPnDyI= 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; s=default; bh=Ia8Mux0Etv +XfTot3Br1c6OnAfI=; b=Hhp/UN1DZJyP60cDifvuvB9phgQP52heyvKma319l+ OdipUka8xfFXl39Dl+d08hcHiaTl2Hqs3x7PDZjrsG/Kn8KI0MNMcoRzeRfHleF8 yusRRaeWRVh1BTXZfLg1RD/OVSQqjg2qotwXJshDetvuLiwoCS0602FugZyQxuku U= Received: (qmail 30438 invoked by alias); 8 Jun 2015 17:19:41 -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 30429 invoked by uid 89); 8 Jun 2015 17:19:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f46.google.com X-Received: by 10.112.42.16 with SMTP id j16mr17818398lbl.98.1433783975812; Mon, 08 Jun 2015 10:19:35 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Andrew Senkevich Date: Mon, 8 Jun 2015 20:19:04 +0300 Message-ID: Subject: Re: [PATCH 1/14] [x86_64] Vector math functions (vector cos) To: Joseph Myers Cc: libc-alpha 2015-06-08 20:08 GMT+03:00 Joseph Myers : > On Mon, 8 Jun 2015, Andrew Senkevich wrote: > >> diff --git a/NEWS b/NEWS >> index 881e61c..5e223a1 100644 >> --- a/NEWS >> +++ b/NEWS >> @@ -50,6 +50,14 @@ Version 2.22 >> * CVE-2014-8121 The NSS backends shared internal state between the getXXent >> and getXXbyYY NSS calls for the same database, causing a denial-of-service >> condition in some applications. >> + >> +* Added vector math library named libmvec with the following vectorized x86_64 >> + implementations: cos. >> + The library can be disabled with --disable-mathvec. Use of the functions is >> + enabled with -fopenmp -ffast-math starting from -O1 for GCC version >= 4.9.0. >> + The library is linked in as needed when using -lm (no need to specify -lmvec >> + explicitly). >> + Visit for detailed information. > > This seems reasonable as a starting point (given install.texi updated as > well). The release manager may wish to edit the NEWS entries, of course. Update of install.texi is: These options are for cross-compiling. If you specify both options and --- WBR, Andrew diff --git a/manual/install.texi b/manual/install.texi index bb09199..42ee467 100644 --- a/manual/install.texi +++ b/manual/install.texi @@ -181,6 +181,10 @@ version of GCC than this version of @theglibc{} was tested with, so new warnings cause the build with @option{-Werror} to fail), you can configure with @option{--disable-werror}. +@item --disable-mathvec +By default for x86_64, @theglibc{} is built with vector math library. +Use this option to disable vector math library. + @item --build=@var{build-system} @itemx --host=@var{host-system}