mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-13 12:53:53 +00:00
e62c7da10c7643d6ccb39accb530e1254974b32c
Estimated hours taken: 0.25 Branches: main Bug fix for math library. library/math.m: Changed the order of the parameters for the mercury implementation of math__log_2/2 The old version is incorrect with respect to the library documentation. 'math__log(B, X) = Log' is supposed to return Log as the logarithm to base B of X. After doing domain checks, this predicate calls math__log_2(B, X), which is defined correctly for the C and C# implementations, but had the parameters the wrong way around for the (default) mercury implementation, so it in fact returned Log as the logarithm to base X of B (in other words the reciprocal of what was intended).
…
…
…
…
…
…
…
Reportedly Mercury does not work on Solaris 2.5.1 if it is compiled with
gcc 2.7.x. It should however work fine on Solaris 2.5.1 if you compile
it with gcc 2.8, or if you use gcc 2.7.x with an earlier version of Solaris.
The binary distribution for Solaris that we distribute was compiled
with gcc 2.7.2, so if you have Solaris 2.5.1, you may need to compile
Mercury yourself from our source distribution.
("Solaris 2.x" is also known as "SunOS 5.x".)
Languages
Mercury
85.3%
C
8.7%
Shell
1.4%
Makefile
1%
JavaScript
1%
Other
2.1%