__dso_hidden void *allocate_tib(size_t);
-#define MAX(a,b) (((a)>(b))?(a):(b))
-
#ifdef TIB_EXTRA_ALIGN
-# define TIB_ALIGN MAX(__alignof__(struct tib), TIB_EXTRA_ALIGN)
+# define TIB_ALIGN MAXIMUM(__alignof__(struct tib), TIB_EXTRA_ALIGN)
#else
# define TIB_ALIGN __alignof__(struct tib)
#endif
* - need to offset the TIB 12 bytes from the start
* - to place ths TLS data at offset 64
*/
- static_tls_align = MAX(align, TIB_ALIGN);
+ static_tls_align = MAXIMUM(align, TIB_ALIGN);
static_tls_align_offset =
ELF_ROUND(sizeof(struct tib), static_tls_align) -
sizeof(struct tib);
-/* $OpenBSD: util.h,v 1.39 2023/08/15 06:26:34 guenther Exp $ */
+/* $OpenBSD: util.h,v 1.40 2023/12/08 12:58:27 deraadt Exp $ */
/*
* Copyright (c) 1998 Todd C. Miller <millert@openbsd.org>
#include <stdarg.h>
#include <stddef.h> /* for NULL */
+#define MAXIMUM(a,b) (((a)>(b))?(a):(b))
+
#ifndef __boot
# if DO_CLEAN_BOOT
# define __boot __attribute__((section(".boot.text")))