Changeset 10591:1a543c7924ef in orange for source/include/crc.h


Ignore:
Timestamp:
03/21/12 11:03:14 (2 years ago)
Author:
Janez Demšar <janez.demsar@…>
Branch:
default
Message:

Added add_CRC(const int) to remove casting when computing a checksum for TExample

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/include/crc.h

    r6531 r10591  
    3232      crc = (crc >> 8) ^ crc_table[(crc & 0xFF) ^ *(b++)]); \ 
    3333 
     34inline void add_CRC(const int data, unsigned long &crc) 
     35{ ADD_CRC } 
     36 
    3437inline void add_CRC(const unsigned long data, unsigned long &crc) 
    3538{ ADD_CRC } 
Note: See TracChangeset for help on using the changeset viewer.