We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e925346 commit b9c09b9Copy full SHA for b9c09b9
1 file changed
entries/abouchez/src/brcmormot.lpr
@@ -193,22 +193,21 @@ procedure TBrcThread.Execute;
193
if p[2] = ord('.') then // xx.x
194
begin
195
v := (p[0] * 100 + p[1] * 10 + p[3] - (ord('0') * 111)) * neg;
196
- inc(PByte(p), 6);
+ inc(PByte(p), 8);
197
end
198
else
199
200
v := (p[0] * 10 + p[2] - (ord('0') * 11)) * neg; // x.x
201
- inc(PByte(p), 5);
+ inc(PByte(p), 7);
202
end;
203
+ start := PUtf8Char(p) - 2;
204
// store the value
205
inc(s^.Sum, v);
206
inc(s^.Count);
207
if v < s^.Min then
208
s^.Min := v; // branchless cmovg/cmovl is not better
209
if v > s^.Max then
210
s^.Max := v;
- start := pointer(p);
211
- p := @p[2];
212
until PUtf8Char(p) >= stop;
213
214
// aggregate this thread values into the main list
0 commit comments