Forums - crash in qm_vqf32_to_double

1 post / 0 new
crash in qm_vqf32_to_double
peter.jung
Join Date: 26 Dec 16
Posts: 1
Posted: Fri, 2023-03-03 00:50

 Hi All?

I have a question about the qmath library function, Let me know if anyone knows.
 
As in the code below, a crash occurs in qm_vqf32_to_double in dynamic memory called tmp.
 
-------------------------------------
qm_vqf32_t a, b ,c;
//double c_d[32];
 
double *tmp = (double *)malloc(sizeof(double) * (int)dest->cols * (int)dest->rows);
a = qm_vqf32_from_double((double *) src1->mem);
 
b = qm_vqf32_from_double((double *) src2->mem);
 
c = qm_vqf32_mpy_inl(a, b);
 
qm_vqf32_to_double(c, tmp); --> crashed right here!
 
Does the destination memory of qm_vqf32_to_double not support dynamic memory? (changing it to a sized array seems fine)
Thanks for reading...
  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.