This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Handle BINOP_INTDIV in valarith.c
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Pierre Muller <muller at ics dot u-strasbg dot fr>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 17 Jan 2008 03:57:41 -0800
- Subject: Re: [RFA] Handle BINOP_INTDIV in valarith.c
- References: <002d01c85849$ef420f80$cdc62e80$@u-strasbg.fr>
For the record, I asked myself about the reason for using both BINOP_DIV
and BINOP_INTDIV if both have the same semantics. I looked at some
Pascal web sites, and the only difference between the '/' operator
and the 'div' operator is the fact that '/' returns a real whereas
"div" only operates on integers an returns an integer. So the distinction
is indeed necessary.
> 2008-01-16 Pierre Muller <muller@ics.u-strasbg.fr>
>
> * valarith.c (value_binop): Handle BINOP_INTDIV
> for unsigned and signed integers.
This patch is approved.
--
Joel