summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-08-23 09:32:27 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-08-23 09:32:27 +0000
commit6f8448cc348b37bd97cd2ccdf945001b5ef20366 (patch)
tree1bf588c924b5d9ad82a399a154575830e59002a1
parentb8e1b02d4ed507b1a0be86f4159020077c4194be (diff)
downloadmpfr-6f8448cc348b37bd97cd2ccdf945001b5ef20366.tar.gz
Add description of what does MPFR_INT_CEIL_LOG2.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2955 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--mpfr-impl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpfr-impl.h b/mpfr-impl.h
index c440a412e..487289da5 100644
--- a/mpfr-impl.h
+++ b/mpfr-impl.h
@@ -532,7 +532,8 @@ do { \
mpfr_cache_t _cache = {{{{0,MPFR_SIGN_POS,0,(mp_limb_t*)0}},0,_func}}
/* Ceil log 2: If GCC, uses a GCC extension
- Warning: Needs to define MPFR_NEED_LONGLONG */
+ Warning: Needs to define MPFR_NEED_LONGLONG.
+ Computes ceil(log2(x)) only for x integer (unsigned long) */
#if __MPFR_GNUC(2,95)
# define MPFR_INT_CEIL_LOG2(x) \
({int b; mp_limb_t limb = (x); MPFR_ASSERTD (limb == x); \