fletcher32.h
Go to the documentation of this file.
00001 00038 #ifndef ALGO_FLETCHER32_H 00039 #define ALGO_FLETCHER32_H 00040 00041 #include <cfg/compiler.h> 00042 00043 typedef struct Fletcher32 00044 { 00045 uint32_t sum1, sum2; 00046 int carry; 00047 } Fletcher32; 00048 00049 void fletcher32_init(Fletcher32 *f); 00050 void fletcher32_update(Fletcher32 *f, const void *_buf, size_t len); 00051 uint32_t fletcher32_final(Fletcher32 *f); 00052 00053 int fletcher32_testSetup(void); 00054 int fletcher32_testTearDown(void); 00055 int fletcher32_testRun(void); 00056 00057 #endif /* ALGO_FLETCHER32_H */
![(please configure the [header_logo] section in trac.ini)](/chrome/site/bertos_logo.png)