RE: set Sx, iy

2002-03-21 Thread Melvin Smith
At 12:25 AM 3/22/2002 -0500, Melvin Smith wrote: >At 08:53 PM 3/21/2002 -0800, Brent Dax wrote: >>Just do "$1=Parrot_sprintf_c(interpreter, "%Vd", $2);". I've already >>implemented this logic there; there's no sense having it in the core >>twice. > >Calling the sprintf routine is kind of expensiv

RE: set Sx, iy

2002-03-21 Thread Melvin Smith
At 08:53 PM 3/21/2002 -0800, Brent Dax wrote: >Just do "$1=Parrot_sprintf_c(interpreter, "%Vd", $2);". I've already >implemented this logic there; there's no sense having it in the core >twice. Calling the sprintf routine is kind of expensive if the op is only to convert an int to a base10 stri

RE: set Sx, iy

2002-03-21 Thread Brent Dax
Melvin Smith: # Just committed the set Sx, iy op. # # Patch at end. # diff -u -r1.60 string.c # --- string.c 21 Mar 2002 09:56:41 - 1.60 # +++ string.c 22 Mar 2002 04:09:34 - # @@ -774,6 +774,35 @@ # return f; # } # # +STRING * # +string_from_int(struct Parrot_Interp

set Sx, iy

2002-03-21 Thread Melvin Smith
Just committed the set Sx, iy op. Patch at end. Cheers, -Melvin Tested with following: # Cola (0.0.1) generated # _START: bsr __Main __END: end __Main: set I31, -123456789 LBL1: ge I31, 123456789, LBL2 set S0, I31