Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src move includes to the top so that this builds in libc context...



details:   https://anonhg.NetBSD.org/src/rev/434886162883
branches:  trunk
changeset: 538746:434886162883
user:      chs <chs%NetBSD.org@localhost>
date:      Tue Oct 29 04:40:55 2002 +0000

description:
move includes to the top so that this builds in libc context too.

diffstat:

 lib/libc/arch/sparc64/gen/divrem.m4    |  10 +++++-----
 sys/lib/libkern/arch/sparc64/divrem.m4 |  10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diffs (74 lines):

diff -r 8a5599000591 -r 434886162883 lib/libc/arch/sparc64/gen/divrem.m4
--- a/lib/libc/arch/sparc64/gen/divrem.m4       Tue Oct 29 01:13:01 2002 +0000
+++ b/lib/libc/arch/sparc64/gen/divrem.m4       Tue Oct 29 04:40:55 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: divrem.m4,v 1.2 2002/10/27 18:41:27 chs Exp $  */
+/*     $NetBSD: divrem.m4,v 1.3 2002/10/29 04:40:55 chs Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -39,13 +39,16 @@
  * from: Header: divrem.m4,v 1.4 92/06/25 13:23:57 torek Exp
  */
 
+#include <machine/asm.h>
+#include <machine/trap.h>
+
 /*
  * Division and remainder, from Appendix E of the Sparc Version 8
  * Architecture Manual, with fixes from Gordon Irlam.
  */
 
 #if defined(LIBC_SCCS)
-       RCSID("$NetBSD: divrem.m4,v 1.2 2002/10/27 18:41:27 chs Exp $")
+       RCSID("$NetBSD: divrem.m4,v 1.3 2002/10/29 04:40:55 chs Exp $")
 #endif
 
 /*
@@ -129,9 +132,6 @@
        ', `    DEVELOP_QUOTIENT_BITS(incr($1), `eval(2*$2-1)')')
        ifelse($1, 1, `9:')')
 
-#include <machine/asm.h>
-#include <machine/trap.h>
-
 FUNC(NAME)
 ifelse(S, `true',
 `      ! compute sign of result; if neither is negative, no problem
diff -r 8a5599000591 -r 434886162883 sys/lib/libkern/arch/sparc64/divrem.m4
--- a/sys/lib/libkern/arch/sparc64/divrem.m4    Tue Oct 29 01:13:01 2002 +0000
+++ b/sys/lib/libkern/arch/sparc64/divrem.m4    Tue Oct 29 04:40:55 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: divrem.m4,v 1.2 2002/10/27 18:41:27 chs Exp $  */
+/*     $NetBSD: divrem.m4,v 1.3 2002/10/29 04:40:56 chs Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -39,13 +39,16 @@
  * from: Header: divrem.m4,v 1.4 92/06/25 13:23:57 torek Exp
  */
 
+#include <machine/asm.h>
+#include <machine/trap.h>
+
 /*
  * Division and remainder, from Appendix E of the Sparc Version 8
  * Architecture Manual, with fixes from Gordon Irlam.
  */
 
 #if defined(LIBC_SCCS)
-       RCSID("$NetBSD: divrem.m4,v 1.2 2002/10/27 18:41:27 chs Exp $")
+       RCSID("$NetBSD: divrem.m4,v 1.3 2002/10/29 04:40:56 chs Exp $")
 #endif
 
 /*
@@ -129,9 +132,6 @@
        ', `    DEVELOP_QUOTIENT_BITS(incr($1), `eval(2*$2-1)')')
        ifelse($1, 1, `9:')')
 
-#include <machine/asm.h>
-#include <machine/trap.h>
-
 FUNC(NAME)
 ifelse(S, `true',
 `      ! compute sign of result; if neither is negative, no problem



Home | Main Index | Thread Index | Old Index