From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44538 invoked by alias); 19 Jan 2018 13:17:25 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 44411 invoked by uid 89); 19 Jan 2018 13:17:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=H*UA:https X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Jan 2018 13:17:21 +0000 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "Cc" Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3942EAD45; Fri, 19 Jan 2018 13:17:19 +0000 (UTC) From: Martin Jambor To: Joseph Myers Cc: gcc@gcc.gnu.org Cc: Subject: Re: Google Summer of Code 2018: Call for mentors and ideas In-Reply-To: References: User-Agent: Notmuch/0.25.1 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-suse-linux-gnu) Date: Fri, 19 Jan 2018 13:17:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2018-01/txt/msg00130.txt.bz2 Hi Joseph, On Wed, Jan 17 2018, Joseph Myers wrote: > On Wed, 17 Jan 2018, Martin Jambor wrote: > >> 3?) Joseph Myers brought up idea to do "built-in functions for TS 18661 >> floating-point functions - which has the feature that there are a >> lot of similar built-in functions for C99/C11 functions to serve as >> a guide for how to implement things)" ...Joseph, would you be >> willing to mentor it? > > Yes, provided at least one other mentor is available as well as I may not > be around all the time during the GSoC period, including one of the > evaluation periods. Thank you (but please think who that other mentor could be :-) > > (The outline I put on the wiki page is: > > GCC supports built-in functions for math.h and complex.h functions in > the C99/C11 standards (both folding calls for constant arguments, and > expanding inline when the processor supports appropriate functionality). > More such functions have been added in ISO/IEC TS 18661, supporting > features of IEEE 754-2008. It would be useful to have built-in functions > for those, both folding for constant arguments, and expanding inline > where appropriate (e.g. for roundeven and the functions rounding result > to narrower type, on some processors; roundeven can be inlined on x86 > for SSE4.1 and later, and the narrowing functions on IA64 and POWER8, > for example). Existing built-in functions would provide a guide for how > to do this. > > This project has the feature that there are lots of smaller subprojects > each of which would be a useful enhancement to GCC, so a student could > start off with e.g. roundeven built-in functions, closely following how > existing code handles round / floor / ceil / trunc, before going on to > more complicated functions such as the narrowing ones or the fromfp > functions - with scope for functions from TS 18661-3 and TS 18661-4 if > they run out of useful functions from TS 18661-1. If a student were > interested I could provide more detailed lists of possible subprojects.) That is a very nice feature indeed, Martin