Skip to contentSkip to conversation

fuzzy.patch and fuzzy6.patch.ipv6

PATCH Hime Junior 1 participant 1 message May 5, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

Hi !

My comments go along the message...

Quoted 4 lines · Jan Rekorajski
Quoted 3 lines

They're because of the floating point usage, you won't see them on ix86 because gcc uses native FPU instructions there -

Yes - the FP operations were in the generated code.

Quoted 1 line
Quoted 1 line

silently building incorrect code,

The generated code must be fixed then - FP instructions are not a problem , they are a solution even for system software . If the machine context is not being saved , let us save it at once , redesigning compilers , CPUs and brains , if necessary .

After all , soft computing is out there to stay , and doing fuzzy math without FP operations is , sometimes , unfeasible (it is not the case here) .

Anyway , I agree 100% that kernel code should NOT contain any FP operations , that are (at present) too slow , but a compiler with a good optimizer could have made the proposed change silently , eliminating FP operations from the generated code by means of inline , equivalent integer arithmetic instructions.

Quoted 3 lines
Quoted 2 lines

but on other architectures gcc uses math emulation library thus generating unresolved symbols.

OK - now we know the reason for the messages ...

Quoted 8 lines

This is what I was assuming. I think I've seen this happen on PPC before.

Quoted 2 lines

The primary reason was to eliminate the usage of FPU from kernel, unresolved symbols is just the effect of this on non-ix86 archs.

I'll apply the patch now.

As I said before,the qualitative behavior is virtually the same AND THIS TIME ALL FP OPERATIONS ARE GONE !!!
(I SAW IT IN THE NEW GENERATED CODE)

Thanks to all .

Signature · 3 lines
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup