From owner-freebsd-numerics@FreeBSD.ORG Wed Jun 26 23:45:55 2013 Return-Path: Delivered-To: freebsd-numerics@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AC8ADFFA for ; Wed, 26 Jun 2013 23:45:55 +0000 (UTC) (envelope-from enh@google.com) Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) by mx1.freebsd.org (Postfix) with ESMTP id 43AAC1726 for ; Wed, 26 Jun 2013 23:45:55 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id y10so56808wgg.20 for ; Wed, 26 Jun 2013 16:45:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=tXjXL/AsXYU9vx0HK9AaryOlV5bGy4YrjFrO51FaQx0=; b=YJ/Rm0lDqb0lVv66pOBQ+Zy8D33fBovDS3DrV5iiV/TTYdh2p65PkLAtLT7K5zUh7w fUQsvgHNseLhexXblQTc+WQYNLu2brt5xDnBSwoLjrXzAG2FTRNdyIRYgaNxtFmeMA6v q83vdUGNatEv/T2c2l8ihjkruxLrJupdu+XcozG/Y6lqa3CZ4T3kOG6doXlp8SlZJbzC sZR6yVl7Gd10iOPd9tkG7yBzr+6jaML/NzDGDMvA1+h4cUCjPOLjR6jmjhSsnolXOdDc pao6pHG1xwKMtyPB+HncbppEM3DHq3fyy0c0YymVMNCJyJY1oQlJZxOYdB/9pM7KFyff xO8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :x-gm-message-state; bh=tXjXL/AsXYU9vx0HK9AaryOlV5bGy4YrjFrO51FaQx0=; b=QPI6e6s9OjmnJfFrEF5PbJ5maqAEL8GKNdlP2vdzoh6iHEwDF3EYl8ydf/mgYSudPA +rbL+ADsHhR8XafeNNRuzJsjJlIUi5htMrpKL/OSoaavVXF0v3YuZWTaIh6Jc8eFleas aiVwuiMpPvfyvjlK4DOjI01QsxvfRXQs4fdCXHyzxxZ/A3XReWacmLrep1UdRg72lFT2 oG5kptYgb7s0yfFVddWr7iYDVeayFS0a2eR/HZ4YdwNMb5F5UHvYk4Nyvhv3cCA7d/LM hW8yIoDf52IMIWPNWAtuYhq5TIXYeot2SVm9ptLfsok5tURa+Lm5J+DZqzIuvB5/gEEn ILBw== X-Received: by 10.180.7.164 with SMTP id k4mr4153966wia.40.1372290354426; Wed, 26 Jun 2013 16:45:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.137.244 with HTTP; Wed, 26 Jun 2013 16:45:34 -0700 (PDT) From: enh Date: Wed, 26 Jun 2013 16:45:34 -0700 Message-ID: Subject: sincos? To: freebsd-numerics@freebsd.org X-Gm-Message-State: ALoCoQkVgLKFtpOcsV/gzjJLBSite6V1kI48ALfd6g459IEQmy5u+MK/HjnRsYiG2n6ycqTpTNg1ff5oEzX9rOCrlGdk8x+49/NLaaNNvu0NPlLegKotNM510MIFPWV9V+qhDlXm+b0QOi5eZYYZuZkOUkpb5gZ7DxWFshqJ3Rmg29pSs3gSK7jGC4rrFbC12tkQkezXuyJfPNDFiiQffnp943Jn9PWISA== Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jun 2013 23:45:55 -0000 i'm a recent lurker on this list; i've inherited Android's C library, and among other things i'm trying to track FreeBSD's lib/msun much more closely than we have traditionally. i was just reminded of the existence of a change submitted to us (Android) a while back that adds a sincos/sincosf implementation cobbled together from your s_sin.c/s_sinf.c and s_cos.c/s_cosf.c implementations: https://android-review.googlesource.com/#/c/47585/ the submitter (Intel) rightly points out that at the moment GCC carefully optimizes paired sin/cos calls into a sincos call which we deoptimize back into separate sin/cos calls. i personally don't want to take on maintenance of this, but i would be happy to include you guys' sincos implementation if you had one. is there a reason you don't have one? what's the clang story with this optimization (it's my understanding you're moving away from GCC in favor of clang)? --elliott