3.6.3.29 SHLS-75
(Ask a Question)Message
Warning: (SHLS-75) Use of C numerics library function '{fmod|fmodf}' on {location} can result in a loss of precision or incorrect results when the double input is not representable in float.
/***************************************************************** * This example is expected to result in * - Code : SHLS-75 * - Type : Warning * - Cause : fmod() is used in hardware design code. This is * to warn users about potential accuracy loss. *****************************************************************/ #include <math.h> double DUT(double x, double y) { #pragma HLS function top return fmod(x, y); }
Related to: Supported Operations in ap_[u]int, ap_[u]fixpt, and floating-point
