summaryrefslogtreecommitdiffstats
path: root/hwpf
diff options
context:
space:
mode:
authorRaja Das <rajadas2@in.ibm.com>2016-02-09 03:10:11 -0600
committerAMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>2016-03-24 00:57:24 -0400
commit9b222a06e7013429df09bf7ebbbaead076ad5acc (patch)
tree61ba8d1d4c772ffcc0c0752616db44469afd6a69 /hwpf
parent19139d2eb05f1211bd21e5ee3689ae9a215cf0fc (diff)
downloadtalos-sbe-9b222a06e7013429df09bf7ebbbaead076ad5acc.tar.gz
talos-sbe-9b222a06e7013429df09bf7ebbbaead076ad5acc.zip
Get/Put Occ Sram Support
Change-Id: I8f4669bfbca3d58d8f55d5d115d370bfa99ae49d RTC:128980 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/20658 Tested-by: Jenkins Server Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'hwpf')
-rw-r--r--hwpf/include/utils.H8
1 files changed, 6 insertions, 2 deletions
diff --git a/hwpf/include/utils.H b/hwpf/include/utils.H
index 17635e18..71a666bc 100644
--- a/hwpf/include/utils.H
+++ b/hwpf/include/utils.H
@@ -49,10 +49,14 @@
#endif // __ASSEMBLER
/// Create a multi-bit mask of \a n bits starting at bit \a b
-#define BITS(b, n) ((ULL(0xffffffffffffffff) << (64 - (n))) >> (b))
+#ifndef BITS
+ #define BITS(b, n) ((ULL(0xffffffffffffffff) << (64 - (n))) >> (b))
+#endif
/// Create a single bit mask at bit \a b
-#define BIT(b) BITS((b), 1)
+#ifndef BIT
+ #define BIT(b) BITS((b), 1)
+#endif
#ifdef _BIG_ENDIAN
OpenPOWER on IntegriCloud