summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/math.h15
-rw-r--r--src/include/usr/vpd/pvpdenums.H3
2 files changed, 16 insertions, 2 deletions
diff --git a/src/include/math.h b/src/include/math.h
index ebe342116..5d7033719 100644
--- a/src/include/math.h
+++ b/src/include/math.h
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2014 */
+/* Contributors Listed Below - COPYRIGHT 2011,2016 */
+/* [+] International Business Machines Corp. */
+/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
@@ -40,6 +42,17 @@ static inline int64_t log2(uint64_t s)
double sqrt(double) __attribute__((const));
+/**
+ * @brief power function
+ *
+ * @param[in] base - value of base
+ * @param[in] exp - value of exponential
+ *
+ * @return value of the value of base raised to the power of exp.
+ *
+ */
+uint64_t pow(const uint32_t base, const uint32_t exp);
+
#ifdef __cplusplus
};
#endif
diff --git a/src/include/usr/vpd/pvpdenums.H b/src/include/usr/vpd/pvpdenums.H
index acf3bbd22..6bf004107 100644
--- a/src/include/usr/vpd/pvpdenums.H
+++ b/src/include/usr/vpd/pvpdenums.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2013,2015 */
+/* Contributors Listed Below - COPYRIGHT 2013,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -81,6 +81,7 @@ namespace PVPD
VP = 0x15,
VS = 0x16,
VZ = 0x17,
+ LX = 0x18,
// Last Keyword
PVPD_LAST_KEYWORD,
OpenPOWER on IntegriCloud