|
Message-ID: <CAOH62JiTZkXrA71xjFGBp5ZweNg_y4c7wUjsfAufpKpgqnF7hQ@mail.gmail.com> Date: Tue, 10 Apr 2012 02:09:23 +0200 From: Pascal Cuoq <pascal.cuoq@...il.com> To: musl@...ts.openwall.com Subject: Re: float scanner status, upcoming release On Mon, Apr 9, 2012 at 9:21 PM, Rich Felker <dalias@...ifal.cx> wrote: > And here's the current code (standalone test program) if anybody wants > to play with it or point out how much single-letter variable names > suck or whatnot.. :-) Line 72: x[k] = x[k]*10 + c-'0'; I don't understand why this read access to x[k] is initialized. If I change the declaration of local array x[] as: uint32_t x[KMAX] = { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}; then: $ ./a.out 1.123 ... y = 11.123 Initializing x[] with arbitrary values shouldn't change anything if it was not used uninitialized, right? Even if I am getting something wrong here, you can count on me to test the heck out of your function. I initially subscribed to the musl mailing because I had been looking for a function like this (although I let the musl source code distract me then). Pascal
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.