1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Exponential function</title> 5<link rel="stylesheet" href="../../math.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../index.html" title="Math Toolkit 2.12.0"> 8<link rel="up" href="../float128.html" title="Implementation of Float128 type"> 9<link rel="prev" href="overloading.html" title="Overloading template functions with float128_t"> 10<link rel="next" href="typeinfo.html" title="typeinfo"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> 15<td align="center"><a href="../../../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="overloading.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../float128.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="typeinfo.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h3 class="title"> 27<a name="math_toolkit.float128.exp_function"></a><a class="link" href="exp_function.html" title="Exponential function">Exponential function</a> 28</h3></div></div></div> 29<p> 30 There was a bug when using any quadmath <code class="computeroutput"><span class="identifier">expq</span></code> 31 function on GCC : <a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60349" target="_top">GCC 32 bug #60349</a> caused by <a href="http://sourceforge.net/p/mingw-w64/bugs/368/" target="_top">mingw-64 33 bug #368</a>. 34 </p> 35<p> 36 To work round this defect, an alternative implementation of 128-bit exp was 37 temporarily provided by <code class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">cstdfloat</span><span class="special">.</span><span class="identifier">hpp</span></code>. 38 </p> 39<p> 40 The mingw bug was fixed at 2014-03-12 and GCC 6.1.1 now works as expected. 41 </p> 42<div class="tip"><table border="0" summary="Tip"> 43<tr> 44<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../../../../../../doc/src/images/tip.png"></td> 45<th align="left">Tip</th> 46</tr> 47<tr><td align="left" valign="top"><p> 48 It is essential to <span class="bold"><strong>link</strong></span> to the quadmath 49 library, for example, in a b2/bjam file: <code class="computeroutput"><span class="special"><</span><span class="identifier">linkflags</span><span class="special">>-</span><span class="identifier">lquadmath</span></code> 50 </p></td></tr> 51</table></div> 52<p> 53 . 54 </p> 55</div> 56<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 57<td align="left"></td> 58<td align="right"><div class="copyright-footer">Copyright © 2006-2019 Nikhar 59 Agrawal, Anton Bikineev, Paul A. Bristow, Marco Guazzone, Christopher Kormanyos, 60 Hubert Holin, Bruno Lalande, John Maddock, Jeremy Murphy, Matthew Pulver, Johan 61 Råde, Gautam Sewani, Benjamin Sobotta, Nicholas Thompson, Thijs van den Berg, 62 Daryle Walker and Xiaogang Zhang<p> 63 Distributed under the Boost Software License, Version 1.0. (See accompanying 64 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 65 </p> 66</div></td> 67</tr></table> 68<hr> 69<div class="spirit-nav"> 70<a accesskey="p" href="overloading.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../float128.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="typeinfo.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 71</div> 72</body> 73</html> 74