Commit ac92889b authored by Håvard Moås's avatar Håvard Moås
Browse files

Update IPFIXLIB to use built-in sqrtf function explictly, havard.mork@gmail.com

git-svn-id: file:///home/svn/mapi/branches/haavardm-mapi@58 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 95da1bd2
......@@ -1398,7 +1398,7 @@ static void handleTemplate(np_ctxt_t *npctxt, V9TemplateId *theTemplate,
f = (float)(theFlow->dst2src_expval_pktdist_x2/(u_int64_t)theFlow->pktRcvd -
theFlow->dst2src_expval_pktdist_x/(u_int64_t)theFlow->pktRcvd);
f = sqrtf(f);
f = __builtin_sqrtf(f);
copyFloat(f, outBuffer,outBufferBegin, outBufferMax);
}
break;
......@@ -1421,7 +1421,7 @@ static void handleTemplate(np_ctxt_t *npctxt, V9TemplateId *theTemplate,
else
f = (float)(theFlow->dst2src_expval_pktlength_x2/(u_int64_t)theFlow->pktRcvd -
theFlow->dst2src_expval_pktlength_x/(u_int64_t)theFlow->pktRcvd);
f = sqrtf(f);
f = __builtin_sqrtf(f);
copyFloat(f, outBuffer,outBufferBegin,outBufferMax);
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment