[En-Nut-Discussion] IP Checksum calculation broken. Reenabled old algorithm for the meantime.

Harald Kipp harald.kipp at egnite.de
Wed Jul 4 10:27:55 CEST 2012

Hi Ulrich,

On 04.07.2012 01:16, Ulrich Prinz wrote:

>> I fully agree and it's on the list. However, I wanted to make a
>> generic routine available first to simplify porting to new
>> platforms.
> I think that is the most important point:
> If a platform supports HW-CRC we should use it. If not, we should used
> architecture optimized calculations. I.e. you don't use byte-copy
> routines on a 32-bit system cause it is generic.

If generic routines are not available, every new architecture needs to implement its optimized version.

My first intention is to provide a highly portable, generic routine to get new targets up and running fast.

The second intention is to have a "Plan B" version available in case the architecture specific version fails for some reason, e.g. after upgrading the compiler.

Hehehehe.... what would happen, if I'd replace the current generic routine with the AVR specific version we had some years ago?



More information about the En-Nut-Discussion mailing list