diff --git a/src/fpga/common/fpga_common.cpp b/src/fpga/common/fpga_common.cpp index 95f478e9871d88d9b0794126ea499b40f06dbe9a..0a1787aa3f211a247d95cd7124879ce14af980a9 100644 --- a/src/fpga/common/fpga_common.cpp +++ b/src/fpga/common/fpga_common.cpp @@ -22,7 +22,7 @@ namespace paddle_mobile { namespace fpga { int16_t fp32_2_fp16(float fp32_num) { - int32_t tmp = *(reinterpret_cast)(&fp32_num); + int32_t tmp = *(reinterpret_cast(&fp32_num)); int16_t se_fp32 = (tmp >> 23) & 0x1ff; int32_t m_fp32 = tmp & 0x007fffff; int16_t se_fp16 = 0; @@ -112,7 +112,7 @@ float fp16_2_fp32(int16_t fp16_num) { } int32_t tmp = e_fp32 + m_fp32; - float fp32_num = *(reinterpret_cast)&tmp; + float fp32_num = *(reinterpret_cast(&tmp)); return fp32_num; }