#ifndef PYTHONIC_INCLUDE_NUMPY_FLOAT128_HPP
#define PYTHONIC_INCLUDE_NUMPY_FLOAT128_HPP

#include "pythonic/include/types/numpy_op_helper.hpp"
#include "pythonic/include/utils/functor.hpp"
#include "pythonic/include/utils/numpy_traits.hpp"

PYTHONIC_NS_BEGIN

namespace numpy
{
  namespace details
  {

    inline long double float128()
    {
      return {};
    }

    template <class V>
    long double float128(V v);
  } // namespace details

#define NUMPY_NARY_FUNC_NAME float128
#define NUMPY_NARY_FUNC_SYM details::float128
#define NUMPY_NARY_EXTRA_METHOD using type = long double;
#include "pythonic/include/types/numpy_nary_expr.hpp"
} // namespace numpy

namespace builtins
{
  inline numpy::functor::float128 getattr(types::attr::DTYPE, long double const &);
} // namespace builtins

PYTHONIC_NS_END

#ifdef ENABLE_PYTHON_MODULE

#include "pythonic/python/core.hpp"

PYTHONIC_NS_BEGIN

template <>
struct to_python<numpy::functor::float128> {
  static PyObject *convert(numpy::functor::float128 const &c);
};

template <>
struct from_python<numpy::functor::float128> {
  static bool is_convertible(PyObject *obj);
  static numpy::functor::float128 convert(PyObject *obj);
};
PYTHONIC_NS_END
#endif

#endif
