utils: Add FastStrcmp.h

Move existing fast<str*cmp> templates for general use, pulled from
the implementation used in logd that dealt with speed through cache
locality and subroutine call mitigation.  Rename to fastcmp.

Test: logd-benchmarks and based on manual profiling from the past
Bug: 31456426
Change-Id: Ic62f4a437fc3e06ffdeaae73a6f34e197957a6b0
6 files changed
tree: 06d27b97aadc68fe7cb5c991318bb41123465b2c
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/