This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Handle BINOP_INTDIV in valarith.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]