[Olsr-users] 0.5.6 Routes disappear after 4 mins of uptime, then all OK - suspect clock sync

Henning Rogge (spam-protected)
Fri Sep 5 11:18:07 CEST 2008

Am Freitag 05 September 2008 11:02:26 schrieb Bernd Petrovitsch:
> Basically yes (and I can as well live with that).
> I purposely normalized it to ==-1/==0/==1 similar to the other function.
> And it's not that uncommon since e.g. strcmp() also return s <0/==0/>0.
> So it's a question of - to exaggerate a bit;-) - "API design".
> That's also why I mentioned the sgn() function which is the
> "normalization" part.
I don't know anything about x86 assembler, but on my old Amiga (motorola 68000 
cpu) it was faster to do a >0,==0,<0 than to compare to a number to 1 (as an 
example). This might be the reason C never used normalized output.


Diplom Informatiker Henning Rogge
Forschungsgesellschaft für
Angewandte Naturwissenschaften e. V. (FGAN) 
Neuenahrer Str. 20, 53343 Wachtberg, Germany
Tel.: 0049 (0)228 9435-961
Fax: 0049 (0)228 9435-685
E-Mail: (spam-protected)
Web: www.fgan.de
Sitz der Gesellschaft: Bonn
Registergericht: Amtsgericht Bonn VR 2530
Vorstand: Dr. rer. nat. Ralf Dornhaus (Vors.), Prof. Dr. Joachim Ender 

More information about the Olsr-users mailing list