intrinsic memcmp

后端 未结 3 396
一整个雨季
一整个雨季 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条回答
  •  Happy的楠姐
    2020-12-03 16:38

    Note that the repz cmpsb routine might not be faster than glibc's memcmp. In my tests, in fact, it's never faster, even when comparing just a few bytes.

    See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052

提交回复
热议问题