diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
| commit | 2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch) | |
| tree | 25f0138e1af8902b92dacc8cce09b267447c17db /editors/nvi2/files/patch-common_mem.h | |
| parent | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff) | |
| parent | 1a30da80670973368b399f2b01fe9c04b91a1273 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'editors/nvi2/files/patch-common_mem.h')
| -rw-r--r-- | editors/nvi2/files/patch-common_mem.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/editors/nvi2/files/patch-common_mem.h b/editors/nvi2/files/patch-common_mem.h deleted file mode 100644 index 9b18726f8696..000000000000 --- a/editors/nvi2/files/patch-common_mem.h +++ /dev/null @@ -1,21 +0,0 @@ ---- common/mem.h.orig 2023-09-25 08:47:42 UTC -+++ common/mem.h -@@ -212,6 +212,18 @@ p2roundup(size_t n) - return (n); - } - -+/* -+ * is_aligned -- -+ * Determine whether the program can safely read an object with an -+ * alignment requirement from ptr. -+ * -+ * See also: https://clang.llvm.org/docs/LanguageExtensions.html#alignment-builtins -+ */ -+static __inline int -+is_aligned(void *ptr, size_t alignment) { -+ return ((uintptr_t)ptr % alignment) == 0; -+} -+ - /* Additional TAILQ helper. */ - #define TAILQ_ENTRY_ISVALID(elm, field) \ - ((elm)->field.tqe_prev != NULL) |
