std.cfg: Improved configuration of asinh().
This commit is contained in:
parent
2f41a8dbdd
commit
c2e132b1a3
|
@ -417,7 +417,7 @@
|
||||||
<function name="asinh,std::asinh">
|
<function name="asinh,std::asinh">
|
||||||
<use-retval/>
|
<use-retval/>
|
||||||
<pure/>
|
<pure/>
|
||||||
<returnValue type="double"/>
|
<returnValue type="double">asinh(arg1)</returnValue>
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
<arg nr="1" direction="in">
|
<arg nr="1" direction="in">
|
||||||
|
@ -428,7 +428,7 @@
|
||||||
<function name="asinhf,std::asinhf">
|
<function name="asinhf,std::asinhf">
|
||||||
<use-retval/>
|
<use-retval/>
|
||||||
<pure/>
|
<pure/>
|
||||||
<returnValue type="float"/>
|
<returnValue type="float">asinh(arg1)</returnValue>
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
<arg nr="1" direction="in">
|
<arg nr="1" direction="in">
|
||||||
|
@ -439,7 +439,7 @@
|
||||||
<function name="asinhl,std::asinhl">
|
<function name="asinhl,std::asinhl">
|
||||||
<use-retval/>
|
<use-retval/>
|
||||||
<pure/>
|
<pure/>
|
||||||
<returnValue type="long double"/>
|
<returnValue type="long double">asinh(arg1)</returnValue>
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
<arg nr="1" direction="in">
|
<arg nr="1" direction="in">
|
||||||
|
|
|
@ -43,6 +43,13 @@ int zerodiv_sqrt()
|
||||||
return 42 / i;
|
return 42 / i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int zerodiv_asinh()
|
||||||
|
{
|
||||||
|
int i = std::asinh(0);
|
||||||
|
// cppcheck-suppress zerodiv
|
||||||
|
return 42 / i;
|
||||||
|
}
|
||||||
|
|
||||||
int zerodiv_sin()
|
int zerodiv_sin()
|
||||||
{
|
{
|
||||||
int i = std::sin(0)+std::sin(M_PI)+std::sin(2*M_PI);
|
int i = std::sin(0)+std::sin(M_PI)+std::sin(2*M_PI);
|
||||||
|
|
Loading…
Reference in New Issue