summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof/alpha.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-02-21 07:12:57 +0000
committerbde <bde@FreeBSD.org>2002-02-21 07:12:57 +0000
commit118c70fed9abb13a1decb1f77a6f0af7db9bbafd (patch)
treeccbf4fb113cf9c36ffe98a293f7b57cf6f7e7208 /usr.bin/gprof/alpha.h
parent9fe42a4fee4200348beab621671bea0816e7cd89 (diff)
downloadFreeBSD-src-118c70fed9abb13a1decb1f77a6f0af7db9bbafd.zip
FreeBSD-src-118c70fed9abb13a1decb1f77a6f0af7db9bbafd.tar.gz
Moved the definition of the machine-independent macro UNITS_TO_CODE
from <number of machines> machine-dependent headers to the one non-header here it is used so that it is easier to fix. This macro just divides the machine-dependent offset OFFSET_OF_CODE by the machine-independent scale factor sizeof(UNIT), as required for bug for bug compatibility with the scaling of pc's in gprof.c. UNIT is the type of a profiling counter, and its size has nothing to do with the correct scale factor except both are usually 2.
Diffstat (limited to 'usr.bin/gprof/alpha.h')
-rw-r--r--usr.bin/gprof/alpha.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/gprof/alpha.h b/usr.bin/gprof/alpha.h
index 067e019..823d656 100644
--- a/usr.bin/gprof/alpha.h
+++ b/usr.bin/gprof/alpha.h
@@ -31,6 +31,7 @@
* SUCH DAMAGE.
*
* @(#)i386.h 8.1 (Berkeley) 6/6/93
+ * $FreeBSD$
*/
/*
@@ -38,7 +39,6 @@
* (see asgnsamples for use and explanation.)
*/
#define OFFSET_OF_CODE 0
-#define UNITS_TO_CODE (OFFSET_OF_CODE / sizeof(UNIT))
enum opermodes { dummy };
typedef enum opermodes operandenum;
OpenPOWER on IntegriCloud