Browse Source

numparm, speedup modernizeex() for the common case

pre-master-46
Henrik Forstén 13 years ago
committed by rlar
parent
commit
c9c23342bc
  1. 5
      src/frontend/numparam/spicenum.c

5
src/frontend/numparam/spicenum.c

@ -243,6 +243,11 @@ modernizeex(SPICE_DSTRINGPTR dstr_p)
state = 0;
ls = spice_dstring_length(dstr_p);
s = spice_dstring_value(dstr_p);
/* check if string might need modernizing */
if (!memchr(s, Intro, (size_t) ls))
return;
spice_dstring_init(&t);
while (i < ls) {

Loading…
Cancel
Save