如图,请问在DSP_fft16x16r.c文件里的这个d2s( )是起什么作用的,在哪里能找到?

Nancy Wang:
/*D2S — Truncate a 'double' to a 'short', with clamping.*/
/* ======================================================================== */
static short d2s(double d)
{
if (d >=32767.0) return32767;
if (d <= -32768.0) return -32768;
return (short)d;}
可以看一下gen_twiddle_fft16x16.c的源码
TI中文支持网


![AM6442: [IPC RPMSG] Message send to remote core 5 @ 16 end point truncated due to lack of space in vring buffer !!!-TI中文支持网](https://www.ti2k.com/wp-content/uploads/ti2k/DeyiSupport_DSP_pastedimage1753265713483v1.jpg)