bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: math expressions (was: Re: Tail call elimination)


From: Pete Dietl
Subject: Re: math expressions (was: Re: Tail call elimination)
Date: Wed, 20 May 2020 11:21:04 -0500

> If anyone can provide any use case where >64bit math is needed in a
> makefile I'll be interested to hear about it.

Yeah fair enough :)
Then we can always build in support since the size addition to the
Make binary will be trivially changed.

> > * negate
> > * absolute value
> > * exponentiate
>
> Maybe.

My argument for these is that they are pretty easy to implement.

> > Bit Manipulation:
> > ----------------------
> > * and
> > * or
> > * xor
> > * complement
> > * left shift
> > * right shift
>
> Maybe.  I have a hard time coming up with uses for these, other than
> possibly the shift operators (but multiplication/division can be used
> instead).

Yeah I was thinking the use case could be a little obscure,
but maybe for some sort of version parsing where bits
are strangely encoded.

But again I'd say that it's pretty easy to implement.


> Again, the questions in my email yesterday need to be addressed.

I totally missed that email somehow. I'll address it in another email.

> Mult-base support: should we support only base 10 integer constants in
> expressions, or also hex/octal constants?

I vote for decimal, hex, and binary.
Octal if you really want it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]