Mercurial > octave
view liboctave/wrappers/math-wrappers.h @ 22079:e0dbd81fd9b1
provide wrapper for frexp and frexpf (bug #48363)
* bootstrap.conf (gnulib_modules): Add modules frexp and frexpf.
* liboctave/wrappers/math-wrappers.c, liboctave/wrappers/math-wrappers.h:
New files.
* liboctave/wrappers/module.mk: Add math-wrappers.{c,h}.
* lo-mappers.cc, lo-mappers.h (octave::math::frexp): New functions.
(octave::math::log2): Use them instead of std::frexp.
* data.cc (Feps): Use octave::math::frexp instead of std::frexp.
* oct-inttypes.cc (dblesplit): Likewise.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Sun, 03 Jul 2016 09:54:43 -0700 |
parents | |
children | 4caa7b28d183 |
line wrap: on
line source
/* Copyright (C) 2016 Mike Miller This file is part of Octave. Octave is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. Octave is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Octave; see the file COPYING. If not, see <http://www.gnu.org/licenses/>. */ #if ! defined (octave_math_wrappers_h) #define octave_math_wrappers_h 1 #if defined __cplusplus extern "C" { #endif double octave_frexp_wrapper (double x, int *expptr); float octave_frexpf_wrapper (float x, int *expptr); #if defined __cplusplus } #endif #endif