Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/shark/shark Since left shifts of negative values is...
details: https://anonhg.NetBSD.org/src/rev/fdfd4ca46853
branches: trunk
changeset: 355931:fdfd4ca46853
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Aug 22 12:52:24 2017 +0000
description:
Since left shifts of negative values is undefined, make sure the various
constants are unsigned.
diffstat:
sys/arch/shark/shark/sequoia.h | 46 +++++++++++++++++++++---------------------
1 files changed, 23 insertions(+), 23 deletions(-)
diffs (87 lines):
diff -r ddd17ab1e626 -r fdfd4ca46853 sys/arch/shark/shark/sequoia.h
--- a/sys/arch/shark/shark/sequoia.h Tue Aug 22 11:14:28 2017 +0000
+++ b/sys/arch/shark/shark/sequoia.h Tue Aug 22 12:52:24 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sequoia.h,v 1.2 2009/03/14 14:46:07 dsl Exp $ */
+/* $NetBSD: sequoia.h,v 1.3 2017/08/22 12:52:24 joerg Exp $ */
/*
* Copyright 1997
@@ -745,27 +745,27 @@
#define FOMPCR_V_PCON 0
#define FOMPCR_M_PCON 0x3FF << FOMPCR_V_PCON
#define FOMPCR_V_PCON0 0
-#define FOMPCR_M_PCON0 1 << FOMPCR_V_PCON0
+#define FOMPCR_M_PCON0 1U << FOMPCR_V_PCON0
#define FOMPCR_V_PCON1 1
-#define FOMPCR_M_PCON1 1 << FOMPCR_V_PCON1
+#define FOMPCR_M_PCON1 1U << FOMPCR_V_PCON1
#define FOMPCR_V_PCON2 2
-#define FOMPCR_M_PCON2 1 << FOMPCR_V_PCON2
+#define FOMPCR_M_PCON2 1U << FOMPCR_V_PCON2
#define FOMPCR_V_PCON3 3
-#define FOMPCR_M_PCON3 1 << FOMPCR_V_PCON3
+#define FOMPCR_M_PCON3 1U << FOMPCR_V_PCON3
#define FOMPCR_V_PCON4 4
-#define FOMPCR_M_PCON4 1 << FOMPCR_V_PCON4
+#define FOMPCR_M_PCON4 1U << FOMPCR_V_PCON4
#define FOMPCR_V_PCON5 5
-#define FOMPCR_M_PCON5 1 << FOMPCR_V_PCON5
+#define FOMPCR_M_PCON5 1U << FOMPCR_V_PCON5
#define FOMPCR_V_PCON6 6
-#define FOMPCR_M_PCON6 1 << FOMPCR_V_PCON6
+#define FOMPCR_M_PCON6 1U << FOMPCR_V_PCON6
#define FOMPCR_V_PCON7 7
-#define FOMPCR_M_PCON7 1 << FOMPCR_V_PCON7
+#define FOMPCR_M_PCON7 1U << FOMPCR_V_PCON7
#define FOMPCR_V_PCON8 8
-#define FOMPCR_M_PCON8 1 << FOMPCR_V_PCON8
+#define FOMPCR_M_PCON8 1U << FOMPCR_V_PCON8
#define FOMPCR_V_PCON9 9
-#define FOMPCR_M_PCON9 1 << FOMPCR_V_PCON9
+#define FOMPCR_M_PCON9 1U << FOMPCR_V_PCON9
#define FOMPCR_V_GLBLPCEN 10
-#define FOMPCR_M_GLBLPCEN 1 << FOMPCR_V_GLBLPCEN
+#define FOMPCR_M_GLBLPCEN 1U << FOMPCR_V_GLBLPCEN
/*
**
@@ -3008,27 +3008,27 @@
SEQPSR3_M_PC6PINEN | SEQPSR3_M_PC7PINEN | \
SEQPSR3_M_PC8PINEN | SEQPSR3_M_PC9PINEN )
#define SEQPSR3_V_PC0PINEN 0
-#define SEQPSR3_M_PC0PINEN 1 << SEQPSR3_V_PC0PINEN
+#define SEQPSR3_M_PC0PINEN 1U << SEQPSR3_V_PC0PINEN
#define SEQPSR3_V_PC2PINEN 2
-#define SEQPSR3_M_PC2PINEN 1 << SEQPSR3_V_PC2PINEN
+#define SEQPSR3_M_PC2PINEN 1U << SEQPSR3_V_PC2PINEN
#define SEQPSR3_V_PC3PINEN 3
-#define SEQPSR3_M_PC3PINEN 1 << SEQPSR3_V_PC3PINEN
+#define SEQPSR3_M_PC3PINEN 1U << SEQPSR3_V_PC3PINEN
#define SEQPSR3_V_PC4PINEN 4
-#define SEQPSR3_M_PC4PINEN 1 << SEQPSR3_V_PC4PINEN
+#define SEQPSR3_M_PC4PINEN 1U << SEQPSR3_V_PC4PINEN
#define SEQPSR3_V_PC5PINEN 5
-#define SEQPSR3_M_PC5PINEN 1 << SEQPSR3_V_PC5PINEN
+#define SEQPSR3_M_PC5PINEN 1U << SEQPSR3_V_PC5PINEN
#define SEQPSR3_V_PC6PINEN 6
-#define SEQPSR3_M_PC6PINEN 1 << SEQPSR3_V_PC6PINEN
+#define SEQPSR3_M_PC6PINEN 1U << SEQPSR3_V_PC6PINEN
#define SEQPSR3_V_PC7PINEN 7
-#define SEQPSR3_M_PC7PINEN 1 << SEQPSR3_V_PC7PINEN
+#define SEQPSR3_M_PC7PINEN 1U << SEQPSR3_V_PC7PINEN
#define SEQPSR3_V_PC8PINEN 8
-#define SEQPSR3_M_PC8PINEN 1 << SEQPSR3_V_PC8PINEN
+#define SEQPSR3_M_PC8PINEN 1U << SEQPSR3_V_PC8PINEN
#define SEQPSR3_V_PC9PINEN 9
-#define SEQPSR3_M_PC9PINEN 1 << SEQPSR3_V_PC9PINEN
+#define SEQPSR3_M_PC9PINEN 1U << SEQPSR3_V_PC9PINEN
#define SEQPSR3_V_EXTACT0PINEN 12
-#define SEQPSR3_M_EXTACT0PINEN 1 << SEQPSR3_V_EXTACT0PINEN
+#define SEQPSR3_M_EXTACT0PINEN 1U << SEQPSR3_V_EXTACT0PINEN
#define SEQPSR3_V_EXTACT1PINEN 15
-#define SEQPSR3_M_EXTACT1PINEN 1 << SEQPSR3_V_EXTACT1PINEN
+#define SEQPSR3_M_EXTACT1PINEN 1U << SEQPSR3_V_EXTACT1PINEN
/*
**
Home |
Main Index |
Thread Index |
Old Index