Index: trunk/willow/src/willow/whttp_entity.cc |
— | — | @@ -302,36 +302,9 @@ |
303 | 303 | deflateEnd(&entity->_he_zbuf); |
304 | 304 | return 0; |
305 | 305 | } |
306 | | - |
307 | | -#if (defined(__GNUC__) || defined(__INTEL_COMPILER)) && defined(__i386__) |
308 | 306 | static char * |
309 | 307 | find_rn(char *buf, char *end) |
310 | 308 | { |
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 | | -{ |
336 | 309 | char *s; |
337 | 310 | for (s = buf; s < end; s += 2) { |
338 | 311 | if (likely(*s != '\r' && *s != '\n')) |
— | — | @@ -343,7 +316,6 @@ |
344 | 317 | } |
345 | 318 | return NULL; |
346 | 319 | } |
347 | | -#endif |
348 | 320 | |
349 | 321 | static char * |
350 | 322 | find_rnrn(char *buf, char *end) |