summaryrefslogtreecommitdiffstats
path: root/import/hwpf
diff options
context:
space:
mode:
authorAndre Marin <aamarin@us.ibm.com>2016-03-02 12:52:07 -0600
committerSachin Gupta <sgupta2m@in.ibm.com>2016-04-20 00:32:17 -0400
commit6beab01552fcc6251bed1b41b3cf4d46b9ba7709 (patch)
treeb7f30e8aa6c8723f69aff812c77d1a521afbf94c /import/hwpf
parent5a8524371924d9cb844cc17ea367b59ce9078493 (diff)
downloadtalos-sbe-6beab01552fcc6251bed1b41b3cf4d46b9ba7709.tar.gz
talos-sbe-6beab01552fcc6251bed1b41b3cf4d46b9ba7709.zip
Modify freq & dep. files. Add cas latency & unit tests
Change-Id: I205bf48e54fb3c8f19f973f58f8ec1d4c7345a23 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22632 Tested-by: PPE CI Tested-by: Jenkins Server Reviewed-by: Brian R. Silver <bsilver@us.ibm.com> Tested-by: Hostboot CI Reviewed-by: JACOB L. HARVEY <jlharvey@us.ibm.com> Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com> Reviewed-by: Louis Stermole <stermole@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22633 Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'import/hwpf')
-rw-r--r--import/hwpf/fapi2/include/buffer.H18
1 files changed, 17 insertions, 1 deletions
diff --git a/import/hwpf/fapi2/include/buffer.H b/import/hwpf/fapi2/include/buffer.H
index 2e49a0f6..2b916cc9 100644
--- a/import/hwpf/fapi2/include/buffer.H
+++ b/import/hwpf/fapi2/include/buffer.H
@@ -7,7 +7,7 @@
/* */
/* EKB Project */
/* */
-/* COPYRIGHT 2012,2015 */
+/* COPYRIGHT 2012,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -297,6 +297,7 @@ class buffer
/// @tparam B Bit in buffer to get.
/// @tparam C the count of bits to get, defaults to 1
/// @return true if *any* bit is on, false if *every* bit is off
+ /// @note 0 is left-most
///
template< bits_type B, bits_type C = 1>
inline bool getBit(void) const
@@ -305,6 +306,21 @@ class buffer
}
///
+ /// @brief Get the value of a bit in the buffer
+ /// @param[in] i_bit the bit number to set.
+ /// @param[in] i_count the count of bits to set, defaults to 1
+ /// @return true if *any* bit is on, false if *every* bit is off
+ /// @note 0 is left-most
+ ///
+ inline bool getBit(const bits_type& i_bit,
+ const bits_type& i_count = 1)
+ {
+ buffer<T> l_temp;
+ l_temp.setBit(i_bit, i_count);
+ return l_temp & iv_data;
+ }
+
+ ///
/// @brief Set and entire buffer to X's
/// @tparam X {0,1} depending if you want to clear (0)
/// or fill (1) a buffer
OpenPOWER on IntegriCloud