From 5794fd4e91b7e9f0e1007367acbcaf8e14de789a Mon Sep 17 00:00:00 2001 From: pranavPandit1 Date: Thu, 28 Apr 2022 12:41:48 +0000 Subject: [PATCH] clang format corrected for file --- flow/crc32c.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/flow/crc32c.cpp b/flow/crc32c.cpp index 2aabdee843..776e61b698 100644 --- a/flow/crc32c.cpp +++ b/flow/crc32c.cpp @@ -274,21 +274,20 @@ append_hw(uint32_t crc, const uint8_t* buf, size_t len) { #endif uint32_t ppc_hw(uint32_t crc, const uint8_t* input, size_t length) { - return CRC32_FUNCTION(0, (unsigned char*)input, (unsigned long)length); + return CRC32_FUNCTION(0, (unsigned char*)input, (unsigned long)length); } #endif static bool hw_available = platform::isHwCrcSupported(); extern "C" uint32_t crc32c_append(uint32_t crc, const uint8_t* input, size_t length) { - if (hw_available) { + if (hw_available) { #ifdef __powerpc64__ - return ppc_hw(crc, input, length); + return ppc_hw(crc, input, length); #endif #ifndef __powerpc64__ - return append_hw(crc, input, length); + return append_hw(crc, input, length); #endif - } else - return append_table(crc, input, length); + } else + return append_table(crc, input, length); } -