[compiler-rt] [AArch64][compiler-rt] Add memcpy, memset, memmove, memchr simple imp… (PR #77496)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 12 01:07:15 PST 2024


================
@@ -38,146 +35,64 @@ int sum(uint8_t *dest, int n) {
   return t;
 }
 
-long get_time_diff(struct timespec tv[2]) {
-  long us0 = (tv[0].tv_sec * 1000000) + (tv[0].tv_nsec / 1000);
-  long us1 = (tv[1].tv_sec * 1000000) + (tv[1].tv_nsec / 1000);
-  return us1 - us0;
-}
-
 int main() {
-  struct timespec tv[2];
 
   init();
 
   // Test correctness of memcpy
   for (int i = 0; i < 67; i++) {
----------------
sdesmalen-arm wrote:

This is a test that goes from `0` to `67`. Is `67`a special number that was chosen for a reason?

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


More information about the llvm-commits mailing list