From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 51F1A3858404 for ; Mon, 14 Nov 2022 15:01:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 51F1A3858404 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668438093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+83cnt288OnYgAEnCgp35D6pXoIPbUQK83Wkh3Hmnps=; b=P2cZdjNF6AvL7bNflEwx49tfmvlhm+CXOgw7vxPDeExcRCzvXt8iy/5uQobzeTxg3KDRnO JqZAPpzW8bmw2ZkaHqHgWZuEA/OLUWzAWIYekXUnxTbxLNTliUJwoTxXx4l/0N/Q9qBL4u mpvxkgYcDLwXk3CGT6KzET4zSdsxDRs= Received: from mail-yb1-f199.google.com (mail-yb1-f199.google.com [209.85.219.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-252-0p9fTE_yPn6RPN2IjfQteA-1; Mon, 14 Nov 2022 10:01:31 -0500 X-MC-Unique: 0p9fTE_yPn6RPN2IjfQteA-1 Received: by mail-yb1-f199.google.com with SMTP id j132-20020a25238a000000b006da635e2073so10541154ybj.2 for ; Mon, 14 Nov 2022 07:01:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+83cnt288OnYgAEnCgp35D6pXoIPbUQK83Wkh3Hmnps=; b=x5mt9ioJeN1uSa8WJCU8+Qjv/nWTG4JWn/UZCtXVD2IGGaZpv4uDhZXR2Yy7LOa1B0 3d1FCBnYZgultYVRpxE9Eikdf6gWGCkskbDzSrjasWsKL+UQE1GnS/m38llFn5i7mgNS pWANGCAzVNY/kU2Z4JFZH0fXOwABgb6g55qNr1bxuckgNsukpBGkylhkPF/kKk1GAW8O JyA1nv6pgstPSD8G9UTWwoJru7BXeW1giZRh9VRXk+/6seJT1l0Y4ofLo4iIG2+wXOTZ PtlIfbk+ngfSkxzlB3JX0IESrujNC3q8TpdP+vgt4lDjl25x7umFl2nZKFG+eblj40jh 9Szg== X-Gm-Message-State: ANoB5pkwQ6TMwbzKBrxHrlDAhYspibtqRSQQpMMlWby6r4kyN11oFoce j3nhieapBTMmOz3Z/B8Ngfs9pM5o48CB0r/cvBG77Dce0EgPWHYg6EBSL+R8SzVKvP5l4S4H2aT l0LfwixXHr7JMFmqYAKIyPEo8WgLJ4CAcrw== X-Received: by 2002:a81:6a42:0:b0:36d:1162:5dd with SMTP id f63-20020a816a42000000b0036d116205ddmr13092795ywc.462.1668438090748; Mon, 14 Nov 2022 07:01:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gQwfjmtyWAWuYibtu5Pv01IPjYY500r4n1P2UzbpkHGoUQF1OYCuW7SoMfHENPDzm0U/Q/l6Cw0D0i5Y6m2w= X-Received: by 2002:a81:6a42:0:b0:36d:1162:5dd with SMTP id f63-20020a816a42000000b0036d116205ddmr13092774ywc.462.1668438090472; Mon, 14 Nov 2022 07:01:30 -0800 (PST) MIME-Version: 1.0 References: <20221113200553.440728-1-aldyh@redhat.com> <6909e534-616b-035d-47fd-705a4e9fa86e@gmail.com> In-Reply-To: From: Aldy Hernandez Date: Mon, 14 Nov 2022 16:01:19 +0100 Message-ID: Subject: Re: [PATCH] [range-ops] Implement sqrt. To: Jakub Jelinek Cc: Jeff Law , "Joseph S. Myers" , GCC patches , Andrew MacLeod X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/alternative; boundary="000000000000b6732205ed6f834d" X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000b6732205ed6f834d Content-Type: text/plain; charset="UTF-8" Huh...no argument from me. Thanks. Aldy On Mon, Nov 14, 2022, 15:35 Jakub Jelinek wrote: > On Mon, Nov 14, 2022 at 07:30:18AM -0700, Jeff Law via Gcc-patches wrote: > > To Jakub's concern. I thought sqrt was treated like +-/* WRT accuracy > > requirements by IEEE. ie, for any input there is a well defined answer > for > > a confirming IEEE implementation. In fact, getting to that .5ulp bound > is > > a significant amount of the cost for a NR or Goldschmidt (or hybrid) > > implementation if you've got a reasonable (say 12 or 14 bit) estimator > and > > high performance fmacs. > > That might be the case (except for the known libquadmath sqrtq case > PR105101 which fortunately is not a builtin). > But we'll need to ulps infrastructure for other functions anyway and > it would be nice to write a short testcase first that will test > sqrt{,f,l,f32,f64,f128} and can be easily adjusted to test other functions. > I'll try to cook something up tomorrow. > > Jakub > > --000000000000b6732205ed6f834d--