summaryrefslogtreecommitdiff
path: root/tools/zynqmpbif.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/zynqmpbif.c')
-rw-r--r--tools/zynqmpbif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/zynqmpbif.c b/tools/zynqmpbif.c
index 8c47107c7b..82ce0ac1a5 100644
--- a/tools/zynqmpbif.c
+++ b/tools/zynqmpbif.c
@@ -517,7 +517,7 @@ static int bif_add_bit(struct bif_entry *bf)
debug("Bitstream Length: 0x%x\n", bitlen);
for (i = 0; i < bitlen; i += sizeof(uint32_t)) {
uint32_t *bitbin32 = (uint32_t *)&bitbin[i];
- *bitbin32 = __swab32(*bitbin32);
+ *bitbin32 = __builtin_bswap32(*bitbin32);
}
if (!bf->dest_dev)