Opened 8 years ago

Closed 6 years ago

#11189 closed Feature Requests (fixed)

float128 implementation of fma missing

Reported by: charles@… Owned by: John Maddock
Milestone: Boost 1.63.0 Component: multiprecision
Version: Boost 1.57.0 Severity: Problem
Keywords: float128 cmath fma Cc: charles@…

Description

Compiling the following code (g++ 4.8.3 with -fext-numeric-literals) gives

fmatest.cpp:9:16: error: ‘fma’ is not a member of ‘boost::math’

#include <iostream>
#include <boost/cstdfloat.hpp>
#include <boost/multiprecision/float128.hpp>
#include <boost/math/special_functions.hpp>

int main () {
  typedef boost::multiprecision::float128 real;
  real a = 10, b = 1/a, c = -1;
  std::cout << boost::math::fma(a, b, c) << " " << a * b + c << "\n";
}

Change History (1)

comment:1 by John Maddock, 6 years ago

Milestone: To Be DeterminedBoost 1.63.0
Resolution: fixed
Status: newclosed

Fixed in develop.

Note: See TracTickets for help on using tickets.