374 lines
50 KiB
XML
374 lines
50 KiB
XML
|
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||
|
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.6">
|
||
|
<compounddef id="division_8hpp" kind="file">
|
||
|
<compoundname>division.hpp</compoundname>
|
||
|
<includes refid="interval__prototype_8hpp" local="no">gecode/third-party/boost/numeric/interval/detail/interval_prototype.hpp</includes>
|
||
|
<includes refid="bugs_8hpp" local="no">gecode/third-party/boost/numeric/interval/detail/bugs.hpp</includes>
|
||
|
<includes refid="test__input_8hpp" local="no">gecode/third-party/boost/numeric/interval/detail/test_input.hpp</includes>
|
||
|
<includes refid="rounded__arith_8hpp" local="no">gecode/third-party/boost/numeric/interval/rounded_arith.hpp</includes>
|
||
|
<includes local="no">algorithm</includes>
|
||
|
<includedby refid="arith_8hpp" local="no">/usr/include/gecode/third-party/boost/numeric/interval/arith.hpp</includedby>
|
||
|
<includedby refid="arith2_8hpp" local="no">/usr/include/gecode/third-party/boost/numeric/interval/arith2.hpp</includedby>
|
||
|
<incdepgraph>
|
||
|
<node id="34598">
|
||
|
<label>gecode/third-party/boost/numeric/interval/detail/test_input.hpp</label>
|
||
|
<link refid="test__input_8hpp_source"/>
|
||
|
<childnode refid="34591" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="34596">
|
||
|
<label>gecode/third-party/boost/config/suffix.hpp</label>
|
||
|
<link refid="suffix_8hpp_source"/>
|
||
|
<childnode refid="34597" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="34601">
|
||
|
<label>gecode/third-party/boost/config/no_tr1/cmath.hpp</label>
|
||
|
<link refid="cmath_8hpp_source"/>
|
||
|
<childnode refid="34602" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="34600">
|
||
|
<label>gecode/third-party/boost/numeric/interval/rounding.hpp</label>
|
||
|
<link refid="third-party_2boost_2numeric_2interval_2rounding_8hpp_source"/>
|
||
|
</node>
|
||
|
<node id="34602">
|
||
|
<label>cmath</label>
|
||
|
</node>
|
||
|
<node id="34592">
|
||
|
<label>gecode/third-party/boost/numeric/interval/detail/bugs.hpp</label>
|
||
|
<link refid="bugs_8hpp_source"/>
|
||
|
<childnode refid="34593" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="34597">
|
||
|
<label>limits.h</label>
|
||
|
</node>
|
||
|
<node id="34595">
|
||
|
<label>gecode/third-party/boost/config/select_platform_config.hpp</label>
|
||
|
<link refid="select__platform__config_8hpp_source"/>
|
||
|
</node>
|
||
|
<node id="34594">
|
||
|
<label>gecode/third-party/boost/config/select_compiler_config.hpp</label>
|
||
|
<link refid="select__compiler__config_8hpp_source"/>
|
||
|
</node>
|
||
|
<node id="34591">
|
||
|
<label>gecode/third-party/boost/numeric/interval/detail/interval_prototype.hpp</label>
|
||
|
<link refid="interval__prototype_8hpp_source"/>
|
||
|
</node>
|
||
|
<node id="34593">
|
||
|
<label>gecode/third-party/boost/config.hpp</label>
|
||
|
<link refid="third-party_2boost_2config_8hpp_source"/>
|
||
|
<childnode refid="34594" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34595" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34596" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="34590">
|
||
|
<label>/usr/include/gecode/third-party/boost/numeric/interval/detail/division.hpp</label>
|
||
|
<link refid="division.hpp"/>
|
||
|
<childnode refid="34591" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34592" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34598" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34599" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34603" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="34599">
|
||
|
<label>gecode/third-party/boost/numeric/interval/rounded_arith.hpp</label>
|
||
|
<link refid="rounded__arith_8hpp_source"/>
|
||
|
<childnode refid="34600" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34592" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34601" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="34603">
|
||
|
<label>algorithm</label>
|
||
|
</node>
|
||
|
</incdepgraph>
|
||
|
<invincdepgraph>
|
||
|
<node id="34609">
|
||
|
<label>/usr/include/gecode/float.hh</label>
|
||
|
<link refid="float_8hh_source"/>
|
||
|
<childnode refid="34610" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34611" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34612" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34613" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="34606">
|
||
|
<label>/usr/include/gecode/third-party/boost/numeric/interval/arith2.hpp</label>
|
||
|
<link refid="arith2_8hpp_source"/>
|
||
|
<childnode refid="34607" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34608" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="34608">
|
||
|
<label>/usr/include/gecode/third-party/boost/numeric/interval.hpp</label>
|
||
|
<link refid="interval_8hpp_source"/>
|
||
|
<childnode refid="34609" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="34613">
|
||
|
<label>/usr/include/gecode/float/rel.hh</label>
|
||
|
<link refid="float_2rel_8hh_source"/>
|
||
|
<childnode refid="34610" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="34610">
|
||
|
<label>/usr/include/gecode/float/arithmetic.hh</label>
|
||
|
<link refid="float_2arithmetic_8hh_source"/>
|
||
|
</node>
|
||
|
<node id="34605">
|
||
|
<label>/usr/include/gecode/third-party/boost/numeric/interval/arith.hpp</label>
|
||
|
<link refid="arith_8hpp_source"/>
|
||
|
<childnode refid="34606" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34607" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34608" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="34612">
|
||
|
<label>/usr/include/gecode/float/linear.hh</label>
|
||
|
<link refid="float_2linear_8hh_source"/>
|
||
|
</node>
|
||
|
<node id="34611">
|
||
|
<label>/usr/include/gecode/float/branch.hh</label>
|
||
|
<link refid="float_2branch_8hh_source"/>
|
||
|
</node>
|
||
|
<node id="34607">
|
||
|
<label>/usr/include/gecode/third-party/boost/numeric/interval/transc.hpp</label>
|
||
|
<link refid="transc_8hpp_source"/>
|
||
|
<childnode refid="34608" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
<node id="34604">
|
||
|
<label>/usr/include/gecode/third-party/boost/numeric/interval/detail/division.hpp</label>
|
||
|
<link refid="division.hpp"/>
|
||
|
<childnode refid="34605" relation="include">
|
||
|
</childnode>
|
||
|
<childnode refid="34606" relation="include">
|
||
|
</childnode>
|
||
|
</node>
|
||
|
</invincdepgraph>
|
||
|
<innernamespace refid="namespaceboost">boost</innernamespace>
|
||
|
<innernamespace refid="namespaceboost_1_1numeric">boost::numeric</innernamespace>
|
||
|
<innernamespace refid="namespaceboost_1_1numeric_1_1interval__lib">boost::numeric::interval_lib</innernamespace>
|
||
|
<innernamespace refid="namespaceboost_1_1numeric_1_1interval__lib_1_1detail">boost::numeric::interval_lib::detail</innernamespace>
|
||
|
<briefdescription>
|
||
|
</briefdescription>
|
||
|
<detaileddescription>
|
||
|
</detaileddescription>
|
||
|
<programlisting>
|
||
|
<codeline lineno="1"><highlight class="comment">/*<sp/>Boost<sp/>interval/detail/division.hpp<sp/>file</highlight></codeline>
|
||
|
<codeline lineno="2"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>2003<sp/>Guillaume<sp/>Melquiond,<sp/>Sylvain<sp/>Pion</highlight></codeline>
|
||
|
<codeline lineno="4"><highlight class="comment"><sp/>*</highlight></codeline>
|
||
|
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/>Distributed<sp/>under<sp/>the<sp/>Boost<sp/>Software<sp/>License,<sp/>Version<sp/>1.0.</highlight></codeline>
|
||
|
<codeline lineno="6"><highlight class="comment"><sp/>*<sp/>(See<sp/>accompanying<sp/>file<sp/>LICENSE_1_0.txt<sp/>or</highlight></codeline>
|
||
|
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/>copy<sp/>at<sp/>http://www.boost.org/LICENSE_1_0.txt)</highlight></codeline>
|
||
|
<codeline lineno="8"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="9"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="10"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>BOOST_NUMERIC_INTERVAL_DETAIL_DIVISION_HPP</highlight></codeline>
|
||
|
<codeline lineno="11"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>BOOST_NUMERIC_INTERVAL_DETAIL_DIVISION_HPP</highlight></codeline>
|
||
|
<codeline lineno="12"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="13"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><gecode/third-party/boost/numeric/interval/detail/interval_prototype.hpp></highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="14"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><gecode/third-party/boost/numeric/interval/detail/bugs.hpp></highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="15"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><gecode/third-party/boost/numeric/interval/detail/test_input.hpp></highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="16"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><gecode/third-party/boost/numeric/interval/rounded_arith.hpp></highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="17"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><algorithm></highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="18"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="19"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">boost<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="20"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">numeric<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="21"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">interval_lib<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="22"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">detail<sp/>{</highlight></codeline>
|
||
|
<codeline lineno="23"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="24"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="25"><highlight class="normal">interval<T,<sp/>Policies><sp/>div_non_zero(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>&<sp/>x,</highlight></codeline>
|
||
|
<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>&<sp/>y)</highlight></codeline>
|
||
|
<codeline lineno="27"><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="28"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>assert(!in_zero(y));</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="29"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::rounding<sp/>rnd;</highlight></codeline>
|
||
|
<codeline lineno="30"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies><sp/>I;</highlight></codeline>
|
||
|
<codeline lineno="31"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>xl<sp/>=<sp/>x.lower();</highlight></codeline>
|
||
|
<codeline lineno="32"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>xu<sp/>=<sp/>x.upper();</highlight></codeline>
|
||
|
<codeline lineno="33"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>yl<sp/>=<sp/>y.lower();</highlight></codeline>
|
||
|
<codeline lineno="34"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>yu<sp/>=<sp/>y.upper();</highlight></codeline>
|
||
|
<codeline lineno="35"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(xu))</highlight></codeline>
|
||
|
<codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(yu))</highlight></codeline>
|
||
|
<codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(xu,<sp/>yl),<sp/>rnd.div_up(xl,<sp/>yu),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="38"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(xl,<sp/>yl),<sp/>rnd.div_up(xu,<sp/>yu),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="40"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(xl))</highlight></codeline>
|
||
|
<codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(yu))</highlight></codeline>
|
||
|
<codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(xu,<sp/>yu),<sp/>rnd.div_up(xl,<sp/>yu),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="44"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(xl,<sp/>yl),<sp/>rnd.div_up(xu,<sp/>yl),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="45"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="46"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(yu))</highlight></codeline>
|
||
|
<codeline lineno="47"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(xu,<sp/>yu),<sp/>rnd.div_up(xl,<sp/>yl),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(xl,<sp/>yu),<sp/>rnd.div_up(xu,<sp/>yl),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="50"><highlight class="normal">}</highlight></codeline>
|
||
|
<codeline lineno="51"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="52"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="53"><highlight class="normal">interval<T,<sp/>Policies><sp/>div_non_zero(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>&<sp/>y)</highlight></codeline>
|
||
|
<codeline lineno="54"><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="55"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>assert(!in_zero(y));</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="56"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::rounding<sp/>rnd;</highlight></codeline>
|
||
|
<codeline lineno="57"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies><sp/>I;</highlight></codeline>
|
||
|
<codeline lineno="58"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>yl<sp/>=<sp/>y.lower();</highlight></codeline>
|
||
|
<codeline lineno="59"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>yu<sp/>=<sp/>y.upper();</highlight></codeline>
|
||
|
<codeline lineno="60"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(x))</highlight></codeline>
|
||
|
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(x,<sp/>yl),<sp/>rnd.div_up(x,<sp/>yu),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="62"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(x,<sp/>yu),<sp/>rnd.div_up(x,<sp/>yl),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="64"><highlight class="normal">}</highlight></codeline>
|
||
|
<codeline lineno="65"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="66"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="67"><highlight class="normal">interval<T,<sp/>Policies><sp/>div_positive(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>yu)</highlight></codeline>
|
||
|
<codeline lineno="68"><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="69"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>assert(::boost::numeric::interval_lib::user::is_pos(yu));</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="70"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_zero(x.lower())<sp/>&&</highlight></codeline>
|
||
|
<codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>::boost::numeric::interval_lib::user::is_zero(x.upper()))</highlight></codeline>
|
||
|
<codeline lineno="72"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x;</highlight></codeline>
|
||
|
<codeline lineno="73"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::rounding<sp/>rnd;</highlight></codeline>
|
||
|
<codeline lineno="74"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies><sp/>I;</highlight></codeline>
|
||
|
<codeline lineno="75"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>xl<sp/>=<sp/>x.lower();</highlight></codeline>
|
||
|
<codeline lineno="76"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>xu<sp/>=<sp/>x.upper();</highlight></codeline>
|
||
|
<codeline lineno="77"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::checking<sp/>checking;</highlight></codeline>
|
||
|
<codeline lineno="78"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(xu))</highlight></codeline>
|
||
|
<codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(checking::neg_inf(),<sp/>rnd.div_up(xu,<sp/>yu),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="80"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(xl))</highlight></codeline>
|
||
|
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(checking::neg_inf(),<sp/>checking::pos_inf(),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="82"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(xl,<sp/>yu),<sp/>checking::pos_inf(),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="84"><highlight class="normal">}</highlight></codeline>
|
||
|
<codeline lineno="85"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="86"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="87"><highlight class="normal">interval<T,<sp/>Policies><sp/>div_positive(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>yu)</highlight></codeline>
|
||
|
<codeline lineno="88"><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="89"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>assert(::boost::numeric::interval_lib::user::is_pos(yu));</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="90"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies><sp/>I;</highlight></codeline>
|
||
|
<codeline lineno="91"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_zero(x))</highlight></codeline>
|
||
|
<codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(static_cast<T>(0),<sp/>static_cast<T>(0),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="93"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::rounding<sp/>rnd;</highlight></codeline>
|
||
|
<codeline lineno="94"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::checking<sp/>checking;</highlight></codeline>
|
||
|
<codeline lineno="95"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(x))</highlight></codeline>
|
||
|
<codeline lineno="96"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(checking::neg_inf(),<sp/>rnd.div_up(x,<sp/>yu),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="97"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="98"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(x,<sp/>yu),<sp/>checking::pos_inf(),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="99"><highlight class="normal">}</highlight></codeline>
|
||
|
<codeline lineno="100"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="101"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="102"><highlight class="normal">interval<T,<sp/>Policies><sp/>div_negative(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>yl)</highlight></codeline>
|
||
|
<codeline lineno="103"><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="104"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>assert(::boost::numeric::interval_lib::user::is_neg(yl));</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="105"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_zero(x.lower())<sp/>&&</highlight></codeline>
|
||
|
<codeline lineno="106"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>::boost::numeric::interval_lib::user::is_zero(x.upper()))</highlight></codeline>
|
||
|
<codeline lineno="107"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x;</highlight></codeline>
|
||
|
<codeline lineno="108"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::rounding<sp/>rnd;</highlight></codeline>
|
||
|
<codeline lineno="109"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies><sp/>I;</highlight></codeline>
|
||
|
<codeline lineno="110"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>xl<sp/>=<sp/>x.lower();</highlight></codeline>
|
||
|
<codeline lineno="111"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>xu<sp/>=<sp/>x.upper();</highlight></codeline>
|
||
|
<codeline lineno="112"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::checking<sp/>checking;</highlight></codeline>
|
||
|
<codeline lineno="113"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(xu))</highlight></codeline>
|
||
|
<codeline lineno="114"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(xu,<sp/>yl),<sp/>checking::pos_inf(),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="115"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(xl))</highlight></codeline>
|
||
|
<codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(checking::neg_inf(),<sp/>checking::pos_inf(),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="117"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(checking::neg_inf(),<sp/>rnd.div_up(xl,<sp/>yl),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="119"><highlight class="normal">}</highlight></codeline>
|
||
|
<codeline lineno="120"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="121"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="122"><highlight class="normal">interval<T,<sp/>Policies><sp/>div_negative(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>x,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>yl)</highlight></codeline>
|
||
|
<codeline lineno="123"><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="124"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>assert(::boost::numeric::interval_lib::user::is_neg(yl));</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="125"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies><sp/>I;</highlight></codeline>
|
||
|
<codeline lineno="126"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_zero(x))</highlight></codeline>
|
||
|
<codeline lineno="127"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(static_cast<T>(0),<sp/>static_cast<T>(0),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="128"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::rounding<sp/>rnd;</highlight></codeline>
|
||
|
<codeline lineno="129"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::checking<sp/>checking;</highlight></codeline>
|
||
|
<codeline lineno="130"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(x))</highlight></codeline>
|
||
|
<codeline lineno="131"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(x,<sp/>yl),<sp/>checking::pos_inf(),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="132"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="133"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(checking::neg_inf(),<sp/>rnd.div_up(x,<sp/>yl),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="134"><highlight class="normal">}</highlight></codeline>
|
||
|
<codeline lineno="135"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="136"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="137"><highlight class="normal">interval<T,<sp/>Policies><sp/>div_zero(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>&<sp/>x)</highlight></codeline>
|
||
|
<codeline lineno="138"><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="139"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_zero(x.lower())<sp/>&&</highlight></codeline>
|
||
|
<codeline lineno="140"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>::boost::numeric::interval_lib::user::is_zero(x.upper()))</highlight></codeline>
|
||
|
<codeline lineno="141"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x;</highlight></codeline>
|
||
|
<codeline lineno="142"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>::whole();</highlight></codeline>
|
||
|
<codeline lineno="143"><highlight class="normal">}</highlight></codeline>
|
||
|
<codeline lineno="144"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="145"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="146"><highlight class="normal">interval<T,<sp/>Policies><sp/>div_zero(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>x)</highlight></codeline>
|
||
|
<codeline lineno="147"><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="148"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_zero(x))</highlight></codeline>
|
||
|
<codeline lineno="149"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>(</highlight><highlight class="keyword">static_cast<</highlight><highlight class="normal">T</highlight><highlight class="keyword">></highlight><highlight class="normal">(0),<sp/>static_cast<T>(0),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="150"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>::whole();</highlight></codeline>
|
||
|
<codeline lineno="151"><highlight class="normal">}</highlight></codeline>
|
||
|
<codeline lineno="152"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="153"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="154"><highlight class="normal">interval<T,<sp/>Policies><sp/>div_zero_part1(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>&<sp/>x,</highlight></codeline>
|
||
|
<codeline lineno="155"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>&<sp/>y,<sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal">&<sp/>b)</highlight></codeline>
|
||
|
<codeline lineno="156"><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="157"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>assert(::boost::numeric::interval_lib::user::is_neg(y.lower())<sp/>&&<sp/>::boost::numeric::interval_lib::user::is_pos(y.upper()));</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="158"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_zero(x.lower())<sp/>&&<sp/>::boost::numeric::interval_lib::user::is_zero(x.upper()))</highlight></codeline>
|
||
|
<codeline lineno="159"><highlight class="normal"><sp/><sp/><sp/><sp/>{<sp/>b<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>x;<sp/>}</highlight></codeline>
|
||
|
<codeline lineno="160"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::rounding<sp/>rnd;</highlight></codeline>
|
||
|
<codeline lineno="161"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies><sp/>I;</highlight></codeline>
|
||
|
<codeline lineno="162"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>xl<sp/>=<sp/>x.lower();</highlight></codeline>
|
||
|
<codeline lineno="163"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>xu<sp/>=<sp/>x.upper();</highlight></codeline>
|
||
|
<codeline lineno="164"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>yl<sp/>=<sp/>y.lower();</highlight></codeline>
|
||
|
<codeline lineno="165"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>yu<sp/>=<sp/>y.upper();</highlight></codeline>
|
||
|
<codeline lineno="166"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::checking<sp/>checking;</highlight></codeline>
|
||
|
<codeline lineno="167"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(xu))</highlight></codeline>
|
||
|
<codeline lineno="168"><highlight class="normal"><sp/><sp/><sp/><sp/>{<sp/>b<sp/>=<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;<sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(checking::neg_inf(),<sp/>rnd.div_up(xu,<sp/>yu),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);<sp/>}</highlight></codeline>
|
||
|
<codeline lineno="169"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(xl))</highlight></codeline>
|
||
|
<codeline lineno="170"><highlight class="normal"><sp/><sp/><sp/><sp/>{<sp/>b<sp/>=<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(checking::neg_inf(),<sp/>checking::pos_inf(),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);<sp/>}</highlight></codeline>
|
||
|
<codeline lineno="171"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="172"><highlight class="normal"><sp/><sp/><sp/><sp/>{<sp/>b<sp/>=<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;<sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(checking::neg_inf(),<sp/>rnd.div_up(xl,<sp/>yl),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);<sp/>}</highlight></codeline>
|
||
|
<codeline lineno="173"><highlight class="normal">}</highlight></codeline>
|
||
|
<codeline lineno="174"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="175"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>T,<sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/>Policies><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="176"><highlight class="normal">interval<T,<sp/>Policies><sp/>div_zero_part2(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>&<sp/>x,</highlight></codeline>
|
||
|
<codeline lineno="177"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies>&<sp/>y)</highlight></codeline>
|
||
|
<codeline lineno="178"><highlight class="normal">{</highlight></codeline>
|
||
|
<codeline lineno="179"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//<sp/>assert(::boost::numeric::interval_lib::user::is_neg(y.lower())<sp/>&&<sp/>::boost::numeric::interval_lib::user::is_pos(y.upper())<sp/>&&<sp/>(div_zero_part1(x,<sp/>y,<sp/>b),<sp/>b));</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="180"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::rounding<sp/>rnd;</highlight></codeline>
|
||
|
<codeline lineno="181"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>interval<T,<sp/>Policies><sp/>I;</highlight></codeline>
|
||
|
<codeline lineno="182"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Policies::checking<sp/>checking;</highlight></codeline>
|
||
|
<codeline lineno="183"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(::boost::numeric::interval_lib::user::is_neg(x.upper()))</highlight></codeline>
|
||
|
<codeline lineno="184"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(x.upper(),<sp/>y.lower()),<sp/>checking::pos_inf(),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="185"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="186"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>I(rnd.div_down(x.lower(),<sp/>y.upper()),<sp/>checking::pos_inf(),<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
<codeline lineno="187"><highlight class="normal">}</highlight></codeline>
|
||
|
<codeline lineno="188"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="189"><highlight class="normal">}<sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>detail</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="190"><highlight class="normal">}<sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>interval_lib</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="191"><highlight class="normal">}<sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>numeric</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="192"><highlight class="normal">}<sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>boost</highlight><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="193"><highlight class="normal"></highlight></codeline>
|
||
|
<codeline lineno="194"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/>//<sp/>BOOST_NUMERIC_INTERVAL_DETAIL_DIVISION_HPP</highlight></codeline>
|
||
|
</programlisting>
|
||
|
<location file="/usr/include/gecode/third-party/boost/numeric/interval/detail/division.hpp"/>
|
||
|
</compounddef>
|
||
|
</doxygen>
|