Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux memset64, memset_p



details:   https://anonhg.NetBSD.org/src/rev/132552b7758d
branches:  trunk
changeset: 1027999:132552b7758d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:34:15 2021 +0000

description:
memset64, memset_p

diffstat:

 sys/external/bsd/drm2/include/linux/string.h |  18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r f790c14d6cb7 -r 132552b7758d sys/external/bsd/drm2/include/linux/string.h
--- a/sys/external/bsd/drm2/include/linux/string.h      Sun Dec 19 01:34:08 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/string.h      Sun Dec 19 01:34:15 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: string.h,v 1.6 2021/12/19 00:48:30 riastradh Exp $     */
+/*     $NetBSD: string.h,v 1.7 2021/12/19 01:34:15 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -115,4 +115,20 @@
        return dstsize - n;
 }
 
+static inline void
+memset64(uint64_t *p, uint64_t v, size_t n)
+{
+
+       while (n --> 0)
+               *p++ = v;
+}
+
+static inline void
+memset_p(void **p, void *v, size_t n)
+{
+
+       while (n --> 0)
+               *p++ = v;
+}
+
 #endif  /* _LINUX_STRING_H_ */



Home | Main Index | Thread Index | Old Index