summaryrefslogtreecommitdiffstats
path: root/src/hwpf/plat_utils.C
diff options
context:
space:
mode:
authorSantosh Puranik <santosh.puranik@in.ibm.com>2017-05-29 09:30:28 -0500
committerSantosh S. Puranik <santosh.puranik@in.ibm.com>2017-06-01 00:00:22 -0400
commit6ec048d4f32dadedeff505f9a0cfa4a37ce541df (patch)
tree34a7ba7a7a914e772976a69edce1ff683604ca52 /src/hwpf/plat_utils.C
parente97705e412957844cc516486a6686de1a8d69ecb (diff)
downloadtalos-sbe-6ec048d4f32dadedeff505f9a0cfa4a37ce541df.tar.gz
talos-sbe-6ec048d4f32dadedeff505f9a0cfa4a37ce541df.zip
Remove Endian Switches
Plat code will always run on big endian Change-Id: I858cf8d217534414716de81f20227d9ad30756bd Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41090 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com> Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com>
Diffstat (limited to 'src/hwpf/plat_utils.C')
-rw-r--r--src/hwpf/plat_utils.C58
1 files changed, 1 insertions, 57 deletions
diff --git a/src/hwpf/plat_utils.C b/src/hwpf/plat_utils.C
index 4e4024e7..ed12c2e4 100644
--- a/src/hwpf/plat_utils.C
+++ b/src/hwpf/plat_utils.C
@@ -6,6 +6,7 @@
/* OpenPOWER sbe Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2015,2017 */
+/* [+] International Business Machines Corp. */
/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
@@ -137,60 +138,3 @@ namespace fapi2
}
};
-#ifndef _BIG_ENDIAN
-
-/// Byte-reverse a 16-bit integer if on a little-endian machine
-
-uint16_t
-revle16(uint16_t i_x)
-{
- uint16_t rx;
- uint8_t *pix = (uint8_t*)(&i_x);
- uint8_t *prx = (uint8_t*)(&rx);
-
- prx[0] = pix[1];
- prx[1] = pix[0];
-
- return rx;
-}
-
-/// Byte-reverse a 32-bit integer if on a little-endian machine
-
-uint32_t
-revle32(uint32_t i_x)
-{
- uint32_t rx;
- uint8_t *pix = (uint8_t*)(&i_x);
- uint8_t *prx = (uint8_t*)(&rx);
-
- prx[0] = pix[3];
- prx[1] = pix[2];
- prx[2] = pix[1];
- prx[3] = pix[0];
-
- return rx;
-}
-
-
-/// Byte-reverse a 64-bit integer if on a little-endian machine
-
-uint64_t
-revle64(const uint64_t i_x)
-{
- uint64_t rx;
- uint8_t *pix = (uint8_t*)(&i_x);
- uint8_t *prx = (uint8_t*)(&rx);
-
- prx[0] = pix[7];
- prx[1] = pix[6];
- prx[2] = pix[5];
- prx[3] = pix[4];
- prx[4] = pix[3];
- prx[5] = pix[2];
- prx[6] = pix[1];
- prx[7] = pix[0];
-
- return rx;
-}
-#endif
-
OpenPOWER on IntegriCloud