Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 676a9f2f authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

Change names in hpp and hxx files that were forgotten in previous commit.

parent 6fe141e6
No related branches found
No related tags found
1 merge request!46HandOn: rename DisplayMultiply() DisplaySumOfMultiply()
......@@ -109,15 +109,15 @@ public:
template<class IntT>
class TestDisplayMultiply : public TestDisplay
class TestDisplaySumOfMultiply : public TestDisplay
{
public:
//! Constructor.
explicit TestDisplayMultiply(int resolution);
explicit TestDisplaySumOfMultiply(int resolution);
//! To make the class a concrete one.
virtual ~TestDisplayMultiply() override;
virtual ~TestDisplaySumOfMultiply() override;
//! Display the output for the chosen `Nbits`.
......
......@@ -86,24 +86,24 @@ void TestDisplayPowerOfTwoApprox035<IntT>::operator()(int Nbits) const
template<class IntT>
TestDisplayMultiply<IntT>::TestDisplayMultiply(int resolution)
TestDisplaySumOfMultiply<IntT>::TestDisplaySumOfMultiply(int resolution)
: TestDisplay(resolution)
{ }
template<class IntT>
TestDisplayMultiply<IntT>::~TestDisplayMultiply() = default;
TestDisplaySumOfMultiply<IntT>::~TestDisplaySumOfMultiply() = default;
template<class IntT>
void TestDisplayMultiply<IntT>::operator()(int Nbits) const
void TestDisplaySumOfMultiply<IntT>::operator()(int Nbits) const
{
Display(Nbits, -0.65, static_cast<IntT>(3515), 0.35, static_cast<IntT>(4832));
}
template<class IntT>
void TestDisplayMultiply<IntT>::Display(int Nbits, double value1, IntT coefficient1, double value2, IntT coefficient2) const
void TestDisplaySumOfMultiply<IntT>::Display(int Nbits, double value1, IntT coefficient1, double value2, IntT coefficient2) const
{
try
{
......@@ -121,7 +121,7 @@ void TestDisplayMultiply<IntT>::Display(int Nbits, double value1, IntT coefficie
IntT approx;
if (__builtin_add_overflow(part1, part2, &approx))
throw Error("Overflow (in TestDisplayMultiply<IntT>::Display())!");
throw Error("Overflow (in TestDisplaySumOfMultiply<IntT>::Display())!");
PrintLine<IntT>(Nbits, exact, static_cast<double>(approx), oconv.str(), "", RoundToInteger::yes);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment