diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-03-06 08:48:14 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-03-06 08:48:14 +0000 |
commit | 19c04d5f86f52f8a815f9f0a66995e10f5d51723 (patch) | |
tree | 8bf1564950e333f4c935e8e354b851fe14d592bf /src | |
parent | d5c9b17d3a4e7f5fb6d8cef54b0f88f93ebc01b5 (diff) | |
download | mpfr-19c04d5f86f52f8a815f9f0a66995e10f5d51723.tar.gz |
[src/mpfr.h] Added a comment and a FIXME for functions implemented
as macros.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14447 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src')
-rw-r--r-- | src/mpfr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mpfr.h b/src/mpfr.h index 50c7d1d50..65a6c4a1b 100644 --- a/src/mpfr.h +++ b/src/mpfr.h @@ -869,6 +869,12 @@ __MPFR_DECLSPEC int mpfr_total_order_p (mpfr_srcptr, mpfr_srcptr); even if it produces faster and smaller code. */ #ifndef MPFR_USE_NO_MACRO +/* In the implementation of these macros, we need to make sure that the + arguments are evaluated once time exactly and that type conversion is + done as it would be with a function. Tests should be added to ensure + that. */ +/* FIXME: most macros are currently buggy. */ + /* Inlining these functions is both faster and smaller */ #define mpfr_nan_p(_x) ((_x)->_mpfr_exp == __MPFR_EXP_NAN) #define mpfr_inf_p(_x) ((_x)->_mpfr_exp == __MPFR_EXP_INF) |