From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6924 invoked by alias); 24 Oct 2007 20:12:15 -0000 Received: (qmail 6907 invoked by uid 22791); 24 Oct 2007 20:12:13 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 24 Oct 2007 20:12:11 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 6408798341; Wed, 24 Oct 2007 20:12:09 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 42DDB981F2; Wed, 24 Oct 2007 20:12:09 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1IkmaG-0004Pu-BW; Wed, 24 Oct 2007 16:12:08 -0400 Date: Wed, 24 Oct 2007 20:12:00 -0000 From: Daniel Jacobowitz To: Thiago Jung Bauermann Cc: gdb-patches@sourceware.org Subject: Re: [patch 3/4] decimal floating point support for expressions Message-ID: <20071024201208.GK10943@caradoc.them.org> Mail-Followup-To: Thiago Jung Bauermann , gdb-patches@sourceware.org References: <20070920215410.062714003@br.ibm.com> <20070920215539.891263549@br.ibm.com> <20071011161645.GD22982@caradoc.them.org> <1192471932.5787.46.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1192471932.5787.46.camel@localhost.localdomain> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00619.txt.bz2 On Mon, Oct 15, 2007 at 04:12:12PM -0200, Thiago Jung Bauermann wrote: > Subject: decimal floating point support for expressions > > 2007-10-15 Wu Zhou > Thiago Jung Bauermann > > * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal > floating point in YYSTYPE union. > (DECFLOAT) Add token and expression element handling code. > (parse_number): Parse DFP constants, which end with suffix 'df', > 'dd' or 'dl'. Return DECFLOAT. > * eval.c (evaluate_subexp_standard): Call value_from_decfloat to > handle OP_DECFLOAT. > * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT) > for DFP constants. > (union exp_element): Add decfloatconst to represent DFP > elements, which is 16 bytes by default. > * parse.c (write_exp_elt_decfloatcst): New function to write a > decimal float const into the expression. > (operator_length_standard): Set operator length for OP_DECFLOAT > to 4. > * parser-defs.h (write_exp_elt_decfloatcst): Prototype. > * valarith.c (value_neg): Add code to handle the negation > operation of DFP values. > * value.c (value_from_decfloat): New function to get the value > from a decimal floating point. > * value.h (value_from_decfloat): Prototype. This one looks OK. -- Daniel Jacobowitz CodeSourcery