?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. // Part of CRC-32C library: https://crc32c.machinezoo.com/
  2.  
  3. /*
  4.  This is *MODIFIED* version of: https://github.com/robertvazan/crc32c-hw
  5.  License: zlib license (CPP file contains full license and copyright)
  6.  
  7.  Modified by Peter Helcmanovsky (c) 2020
  8.  (I believe the zlib license is compatible with the sjasmplus BSD license)
  9. */
  10.  
  11. #ifndef CRC32C_H
  12. #define CRC32C_H
  13.  
  14. #include <cstddef>
  15. #include <cstdint>
  16.  
  17. // HW variants were removed, as not important for sjasmplus
  18.  
  19. /*
  20.         Software fallback version of CRC-32C (Castagnoli) checksum.
  21. */
  22. extern "C" uint32_t crc32c_append_sw(uint32_t crc, const uint8_t *input, size_t length);
  23.  
  24. extern "C" void crc32_init();   // calculate tables if not initialized yet
  25.  
  26. #endif
  27.