summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gmon/gmon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c
index 01a2e46d14c..13c7a9a4847 100644
--- a/lib/libc/gmon/gmon.c
+++ b/lib/libc/gmon/gmon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gmon.c,v 1.20 2005/11/20 17:06:06 millert Exp $ */
+/* $OpenBSD: gmon.c,v 1.21 2013/02/12 07:31:13 mpi Exp $ */
/*-
* Copyright (c) 1983, 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -47,6 +47,9 @@ static int s_scale;
/* see profil(2) where this is describe (incorrectly) */
#define SCALE_1_TO_1 0x10000L
+#define ROUNDDOWN(x,y)(((x)/(y))*(y))
+#define ROUNDUP(x,y)((((x)+(y)-1)/(y))*(y))
+
#define ERR(s) write(STDERR_FILENO, s, sizeof(s))
void moncontrol(int);