Mercurial > hg > octave-kai > gnulib-hg
comparison lib/math.in.h @ 15860:e6ff40a73d85
New module 'expf'.
* lib/math.in.h (expf): New declaration.
* lib/expf.c: New file.
* m4/expf.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
* modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
* modules/expf: New file.
* tests/test-math-c++.cc: Check the declaration of expf.
* doc/posix-functions/expf.texi: Mention the new module.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 08 Oct 2011 22:10:45 +0200 |
parents | 6b8400199763 |
children | c2fa2febdb1f |
comparison
equal
deleted
inserted
replaced
15859:92eed8eca765 | 15860:e6ff40a73d85 |
---|---|
225 _GL_WARN_ON_USE (cosl, "cosl is unportable - " | 225 _GL_WARN_ON_USE (cosl, "cosl is unportable - " |
226 "use gnulib module mathl for portability"); | 226 "use gnulib module mathl for portability"); |
227 # endif | 227 # endif |
228 #endif | 228 #endif |
229 | 229 |
230 | |
231 #if @GNULIB_EXPF@ | |
232 # if !@HAVE_EXPF@ | |
233 # undef expf | |
234 _GL_FUNCDECL_SYS (expf, float, (float x)); | |
235 # endif | |
236 _GL_CXXALIAS_SYS (expf, float, (float x)); | |
237 _GL_CXXALIASWARN (expf); | |
238 #elif defined GNULIB_POSIXCHECK | |
239 # undef expf | |
240 # if HAVE_RAW_DECL_EXPF | |
241 _GL_WARN_ON_USE (expf, "expf is unportable - " | |
242 "use gnulib module expf for portability"); | |
243 # endif | |
244 #endif | |
230 | 245 |
231 #if @GNULIB_EXPL@ | 246 #if @GNULIB_EXPL@ |
232 # if !@HAVE_EXPL@ || !@HAVE_DECL_EXPL@ | 247 # if !@HAVE_EXPL@ || !@HAVE_DECL_EXPL@ |
233 _GL_FUNCDECL_SYS (expl, long double, (long double x)); | 248 _GL_FUNCDECL_SYS (expl, long double, (long double x)); |
234 # endif | 249 # endif |