From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13625 invoked by alias); 4 Apr 2003 17:08:06 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 13604 invoked from network); 4 Apr 2003 17:08:05 -0000 Received: from unknown (HELO mx03.uni-tuebingen.de) (134.2.3.13) by sources.redhat.com with SMTP; 4 Apr 2003 17:08:05 -0000 Received: from juist (semeai.Informatik.Uni-Tuebingen.De [134.2.15.66]) by mx03.uni-tuebingen.de (8.12.3/8.12.3) with ESMTP id h34H82jB029165; Fri, 4 Apr 2003 19:08:03 +0200 Received: from falk by juist with local (Exim 3.36 #1 (Debian)) id 191UEC-0005BI-00; Fri, 04 Apr 2003 18:39:44 +0200 To: "Kean Johnston" Cc: Subject: Re: __builtin_generic References: <046901c2fa48$27483c70$03419384@shrike> From: Falk Hueffner Date: Fri, 04 Apr 2003 18:49:00 -0000 In-Reply-To: <046901c2fa48$27483c70$03419384@shrike> Message-ID: <87fzoyfc8f.fsf@student.uni-tuebingen.de> User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (cabbage) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-AntiVirus: checked by AntiVir Milter 1.0.0.8; AVE 6.19.0.3; VDF 6.19.0.5 X-SW-Source: 2003-04/txt/msg00184.txt.bz2 "Kean Johnston" writes: > I doubt I explained this propperly so consider this > example: > > __builtin_generic (x, "ld:cosld;f:cosf;:cos"); > > If 'x' is of type long double ("ld"), then cosld() will be > called. If it is of type float ("f") then cosf() will be > called. Otherwise, for any other type, simple cos() will be called. Thhis should be doable with __builtin_types_compatible_p, which already exists in recent gccs. -- Falk