r17137 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17136‎ | r17137 | r17138 >
Date:22:03, 20 October 2006
Author:river
Status:old
Tags:
Comment:
not really much faster
Modified paths:
  • /trunk/willow/src/willow/whttp_entity.cc (modified) (history)

Diff [purge]

Index: trunk/willow/src/willow/whttp_entity.cc
@@ -302,36 +302,9 @@
303303 deflateEnd(&entity->_he_zbuf);
304304 return 0;
305305 }
306 -
307 -#if (defined(__GNUC__) || defined(__INTEL_COMPILER)) && defined(__i386__)
308306 static char *
309307 find_rn(char *buf, char *end)
310308 {
311 -char *res;
312 -__asm__ (
313 -"1:\n"
314 -"cmpl %1,%2\n"
315 -"je 3f\n"
316 -"cmpb $13,(%1)\n"
317 -"jne 2f\n"
318 -"cmpb $10, 1(%1)\n"
319 -"jne 2f\n"
320 -"movl %1, %0\n"
321 -"jmp 4f\n"
322 -"2:\n"
323 -"incl %1\n"
324 -"jmp 1b\n"
325 -"3:\n"
326 -"movl $0, %1\n"
327 -"4:\n"
328 -: "=d" (res) : "a" (buf), "b" (end)
329 -);
330 - return res;
331 -}
332 -#else
333 -static char *
334 -find_rn(char *buf, char *end)
335 -{
336309 char *s;
337310 for (s = buf; s < end; s += 2) {
338311 if (likely(*s != '\r' && *s != '\n'))
@@ -343,7 +316,6 @@
344317 }
345318 return NULL;
346319 }
347 -#endif
348320
349321 static char *
350322 find_rnrn(char *buf, char *end)