Changeset 34120f10 in mainline for kernel/generic/include/memw.h


Ignore:
Timestamp:
2023-10-27T19:38:31Z (7 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
63ed840
Parents:
c89ae25 (diff), 694ca3d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge code deduplication work

TL;DR: Added directory /common, which now contains the sole existing
copy of ADT, printf_core, and a few other pieces. Should make changes
to any of those less of a headache.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/memw.h

    rc89ae25 r34120f10  
    11/*
    2  * Copyright (c) 2005 Sergey Bondari
     2 * Copyright (c) 2001-2004 Jakub Jermar
    33 * All rights reserved.
    44 *
     
    3333 */
    3434
    35 #ifndef KERN_GSORT_H_
    36 #define KERN_GSORT_H_
     35#ifndef KERN_MEM_H_
     36#define KERN_MEM_H_
    3737
    38 #include <stdbool.h>
    3938#include <stddef.h>
     39#include <stdint.h>
    4040
    41 typedef int (*sort_cmp_t)(void *, void *, void *);
     41#include <mem.h>
    4242
    43 extern bool gsort(void *, size_t, size_t, sort_cmp_t, void *);
     43extern void memsetb(void *, size_t, uint8_t)
     44    __attribute__((nonnull(1)));
     45extern void memsetw(void *, size_t, uint16_t)
     46    __attribute__((nonnull(1)));
    4447
    4548#endif
Note: See TracChangeset for help on using the changeset viewer.