Ignore:
Timestamp:
Jun 30, 2017, 11:03:08 AM (7 years ago)
Author:
max@…
Message:

add memcmp in libk; these mem* functions should probably be hal-
specific, for better performance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_acpi.c

    r89 r113  
    3333#include <core.h>
    3434#include <cluster.h>
    35 
    36 /* XXX XXX libk XXX XXX */
    37 int memcmp(char *s1, char *s2, size_t n)
    38 {
    39         size_t i;
    40         for(i = 0; i < n; i++) {
    41                 if (s1[i] != s2[i])
    42                         return 1;
    43         }
    44         return 0;
    45 }
    4635
    4736/* -------------------------------------------------------------------------- */
Note: See TracChangeset for help on using the changeset viewer.