Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-23 Thread Simon Glass
Hi, On Wed, 21 Jul 2021 at 08:46, Simon Glass wrote: > > Hi Wolfgang, > > On Wed, 21 Jul 2021 at 01:53, Wolfgang Denk wrote: > > > > Hi, > > > > In message <20210720160547.GM9379@bill-the-cat> you wrote: > > > > > > > So for example (10)123 would mean decimal 123? I don't know how we > > > > wou

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-21 Thread Simon Glass
Hi Wolfgang, On Wed, 21 Jul 2021 at 01:53, Wolfgang Denk wrote: > > Hi, > > In message <20210720160547.GM9379@bill-the-cat> you wrote: > > > > > So for example (10)123 would mean decimal 123? I don't know how we > > > would parse brackets separately from expressions though. > > > > (123)10 would

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-21 Thread Simon Glass
Hi Tom, On Tue, 20 Jul 2021 at 13:28, Tom Rini wrote: > > On Tue, Jul 20, 2021 at 12:33:14PM -0600, Simon Glass wrote: > > Hi Tom. > > > > On Tue, 20 Jul 2021 at 10:05, Tom Rini wrote: > > > > > > On Tue, Jul 20, 2021 at 09:57:55AM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-21 Thread Wolfgang Denk
Hi, In message <20210720160547.GM9379@bill-the-cat> you wrote: > > > So for example (10)123 would mean decimal 123? I don't know how we > > would parse brackets separately from expressions though. > > (123)10 would be "123" in decimal. Which is indeed a mouthful. But it > would also be generic

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-21 Thread Wolfgang Denk
Dear Simon, In message <20210720132940.1171011-1-...@chromium.org> you wrote: > U-Boot mostly uses hex for value input, largely because addresses are much > easier to understand in hex. > > But in some cases a hex value is requested, but it is more convenient to > provide a decimal value. This may

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Tom Rini
On Tue, Jul 20, 2021 at 12:33:14PM -0600, Simon Glass wrote: > Hi Tom. > > On Tue, 20 Jul 2021 at 10:05, Tom Rini wrote: > > > > On Tue, Jul 20, 2021 at 09:57:55AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Tue, 20 Jul 2021 at 08:22, Tom Rini wrote: > > > > > > > > On Tue, Jul 20, 20

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Simon Glass
Hi Tom. On Tue, 20 Jul 2021 at 10:05, Tom Rini wrote: > > On Tue, Jul 20, 2021 at 09:57:55AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 20 Jul 2021 at 08:22, Tom Rini wrote: > > > > > > On Tue, Jul 20, 2021 at 07:29:24AM -0600, Simon Glass wrote: > > > > > > > U-Boot mostly uses hex f

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Eugeniu Rosca
On Tue, Jul 20, 2021 at 12:05:47PM -0400, Tom Rini wrote: > On Tue, Jul 20, 2021 at 09:57:55AM -0600, Simon Glass wrote: [..] > > Can you give examples for what you are thinking for radix notation? > > Well, since we don't have subscript in shell, '(number)base' would how > it would be. Which I

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Tom Rini
On Tue, Jul 20, 2021 at 09:57:55AM -0600, Simon Glass wrote: > Hi Tom, > > On Tue, 20 Jul 2021 at 08:22, Tom Rini wrote: > > > > On Tue, Jul 20, 2021 at 07:29:24AM -0600, Simon Glass wrote: > > > > > U-Boot mostly uses hex for value input, largely because addresses are much > > > easier to unders

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Simon Glass
Hi Tom, On Tue, 20 Jul 2021 at 08:22, Tom Rini wrote: > > On Tue, Jul 20, 2021 at 07:29:24AM -0600, Simon Glass wrote: > > > U-Boot mostly uses hex for value input, largely because addresses are much > > easier to understand in hex. > > > > But in some cases a hex value is requested, but it is mo

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Tom Rini
On Tue, Jul 20, 2021 at 10:00:13AM -0500, Jonathan A. Kollasch wrote: > On Tue, Jul 20, 2021 at 07:29:24AM -0600, Simon Glass wrote: > > U-Boot mostly uses hex for value input, largely because addresses are much > > easier to understand in hex. > > > > But in some cases a hex value is requested, b

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Jonathan A. Kollasch
On Tue, Jul 20, 2021 at 07:29:24AM -0600, Simon Glass wrote: > U-Boot mostly uses hex for value input, largely because addresses are much > easier to understand in hex. > > But in some cases a hex value is requested, but it is more convenient to > provide a decimal value. This may be because the v

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Tom Rini
On Tue, Jul 20, 2021 at 07:29:24AM -0600, Simon Glass wrote: > U-Boot mostly uses hex for value input, largely because addresses are much > easier to understand in hex. > > But in some cases a hex value is requested, but it is more convenient to > provide a decimal value. This may be because the

[PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-20 Thread Simon Glass
U-Boot mostly uses hex for value input, largely because addresses are much easier to understand in hex. But in some cases a hex value is requested, but it is more convenient to provide a decimal value. This may be because the value comes from another source, where its base cannot be controlled. T