When "hls_math.h" is included and "using namespace hls" is declared, the following error is received when compiling the "cosf" file:
@E [HLS-70] Compilation errors found:
demo.cpp: In function 'void demo(float*)':
demo.cpp:30: error: call of overloaded 'cosf(float&)' is ambiguous
c:/xilinx/vivado_hls/2013.2/win_x86/tools/llvm_gcc/bin/../lib/gcc/i686-pc-mingw32/4.2.1/../../../../include/math.h:450: note: candidates are: float cosf(float)
C:/Xilinx/Vivado_HLS/2013.2/include/hls_math.h:434: note: float hls::cosf(float)
Failed checking during preprocessing.
(file "C:/ybd/case/HLS_cosf/demo/hls/solution2/csynth.tcl" line 14)