mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 14:17:06 -04:00
On anything modern, the C version, which processes a word at a time, is much faster. The Intel optimization manual explicitly warns against using REP prefixes with SCAS or CMPS, which is exactly what the assembler version does. A simple test on a Phenom II showed the C version, compiled with -O2, to be about twice as fast determining the length of 100000 strings between 0 and 255 bytes long. MFC after: 2 weeks |
||
|---|---|---|
| .. | ||
| gen | ||
| stdlib | ||
| string | ||
| sys | ||
| _fpmath.h | ||
| arith.h | ||
| gd_qnan.h | ||
| Makefile.inc | ||
| Symbol.map | ||
| SYS.h | ||