Re: floating-point abuse in 2.1.113

Stefan Traby (stefan@sime.com)
Tue, 4 Aug 1998 15:08:05 +0200


Hi Mikael !

> The results are that at least five drivers use f.p. in the kernel:
> char/{radio-aztech,radio-aimslab}, scsi/{ibmmca,wd7000}, and isdn/pcbit.
> Note that 4 of these manage to produce f.p. code without using
> explicit float/double variables or casts, so just grepping for those
> keywords won't catch these types of mistakes.

Hmmm, another point of view:
"-msoft-float" does not find these types of typos:

static int eb64p_indices[] = {0,0,1.2};
^^^^

while intelligent egrepping does... (arch/alpha/setup.c)
(already reported, unfixed.)
So grepping can be safely used for casts too.
;-}

-- 
  ciao - 
    Stefan

Stefan Traby phone: +43-3133-6107-2 Mitterlasznitzstr. 13 fax: +43-3133-6107-9 8302 Nestelbach mailto://stefan@sime.com Austria

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html