-/* $OpenBSD: malloc.c,v 1.156 2014/04/23 05:43:25 otto Exp $ */
+/* $OpenBSD: malloc.c,v 1.157 2014/04/23 10:47:15 espie Exp $ */
/*
* Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net>
* Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
}
+/* this is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX
+ * if both s1 < MUL_NO_OVERFLOW and s2 < MUL_NO_OVERFLOW
+ */
#define MUL_NO_OVERFLOW (1UL << (sizeof(size_t) * 4))
void *