intrinsic memcmp

后端 未结 3 398
一整个雨季
一整个雨季 2020-12-03 15:59

According to the gcc docs, memcmp is not an intrinsic function of GCC. If you wanted to speed up glibc\'s memcmp under gcc, you would need to use the lower level intrinsics

3条回答
  •  暖寄归人
    2020-12-03 17:01

    Now in 2017, GCC and Clang seems to have some optimizations for buffers of sizes 1, 2, 4, 8 and some others, for example 3, 5 and multiple of 8.

提交回复
热议问题