mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
Add support of the SunOS platform (Solaris, OpenSolaris, OpenIndiana) (#4757)
* Add support of the SunOS plateform (OpenSolaris, OpenIndiana) in scripts/mk_util.py * Add missing casts for the SunOS plateform (OpenSolaris, OpenIndiana) for the pow function
This commit is contained in:
parent
9e9963d765
commit
24321e311b
7 changed files with 34 additions and 17 deletions
|
@ -31,7 +31,7 @@
|
|||
bigger (and only equal for values 0, 1).
|
||||
*/
|
||||
static void inverse_cantor(unsigned z, unsigned& x, unsigned& y) {
|
||||
unsigned w = ((unsigned)sqrt(8*z + 1) - 1)/2;
|
||||
unsigned w = ((unsigned)sqrt(static_cast<double>(8*z + 1)) - 1)/2;
|
||||
unsigned t = (unsigned)(w*w + w)/2;
|
||||
y = z - t;
|
||||
x = w - y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue