From 3e08ba39aa671d6649681c1cbbddaa6a8f9c8ee4 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Sun, 21 Nov 2021 14:40:45 -0600 Subject: [PATCH] Note that scalbn uses FLT_RADIX. This is the reason that it is distinct from ldexp, although they amount to the same thing in the case of binary floating-point. --- cc.notes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc.notes b/cc.notes index 6474a5a..3d74c31 100644 --- a/cc.notes +++ b/cc.notes @@ -964,7 +964,7 @@ double scalbn(double x, int n); float scalbnf(float x, int n); long double scalbnl(long double x, int n); -These functions return x * 2^n, computed efficiently. +These functions return x * FLT_RADIX^n, computed efficiently. In ORCA/C, FLT_RADIX is 2. #include double trunc(double x);