[libc-commits] [libc] [libc] memmove optimizations (PR #70043)

Dmitry Vyukov via libc-commits libc-commits at lists.llvm.org
Wed Oct 25 02:41:58 PDT 2023


dvyukov wrote:

> A slightly cleaner way to do it may be to return true/false from inline_memmove

Does it look better?

> Is this the logic you meant to implement? 

Yes.

Does the following look better?
```
  if (vector_size >= 32 ? count < 32 : count <= 32)
    return generic::Memmove<uint128_t>::head_tail(dst, src, count);
```

https://github.com/llvm/llvm-project/pull/70043


More information about the libc-commits mailing list