Re: [fpc-pascal] old school crc32

2016-07-25 Thread wkitty42
On 07/25/2016 11:22 AM, geneb wrote: On Sun, 24 Jul 2016, wkitt...@windstream.net wrote: On 07/24/2016 10:15 AM, geneb wrote: I don't know if you've looked at SWAG yet, but there's a couple of 32 bit CRC routines there. hey gene! fancy seeing you here instead of the flightgear areas ;) ;) ;)

Re: [fpc-pascal] old school crc32

2016-07-25 Thread geneb
On Sun, 24 Jul 2016, wkitt...@windstream.net wrote: On 07/24/2016 10:15 AM, geneb wrote: I don't know if you've looked at SWAG yet, but there's a couple of 32 bit CRC routines there. hey gene! fancy seeing you here instead of the flightgear areas ;) ;) ;) i do have all of SWAG here... back

Re: [fpc-pascal] old school crc32

2016-07-24 Thread Mark Morgan Lloyd
wkitt...@windstream.net wrote: On 07/24/2016 05:03 AM, Mark Morgan Lloyd wrote: Have you tried running your test case through a different implementation? I use http://www.wolfgang-ehrhardt.de/crchash_en.html i'm trying to use only what is available in FPC... i will take a look at others,

Re: [fpc-pascal] old school crc32

2016-07-24 Thread wkitty42
On 07/24/2016 10:15 AM, geneb wrote: I don't know if you've looked at SWAG yet, but there's a couple of 32 bit CRC routines there. hey gene! fancy seeing you here instead of the flightgear areas ;) ;) ;) i do have all of SWAG here... back in the day, we grabbed each new release as it was

Re: [fpc-pascal] old school crc32

2016-07-24 Thread wkitty42
On 07/24/2016 06:41 AM, Tony Whyman wrote: On 24/07/16 00:18, wkitt...@windstream.net wrote: i've already checked the polynomial ($edb88320) is the same in both, the original implementation (converted to TP4 in 1988) and this implementation... Are you sure that you are dealing with a CRC

Re: [fpc-pascal] old school crc32

2016-07-24 Thread wkitty42
On 07/24/2016 05:12 AM, Giuliano Colla wrote: What I'd do in your place would be to forget about strings, and use just an array of bytes. that's why i'm using a pchar, starting at var[0] and length(var)-1 ;) This way you're sure that you don't have in the way the string length value and some

Re: [fpc-pascal] old school crc32

2016-07-24 Thread wkitty42
On 07/24/2016 05:03 AM, Mark Morgan Lloyd wrote: Have you tried running your test case through a different implementation? I use http://www.wolfgang-ehrhardt.de/crchash_en.html i'm trying to use only what is available in FPC... i will take a look at others, though... [time passes] ok, i

Re: [fpc-pascal] old school crc32

2016-07-24 Thread geneb
I don't know if you've looked at SWAG yet, but there's a couple of 32 bit CRC routines there. See here: http://swag.delphidabbler.com/ g. -- Proud owner of F-15C 80-0007 http://www.f15sim.com - The only one of its kind. http://www.diy-cockpits.org/coll - Go Collimated or Go Home. Some people

Re: [fpc-pascal] old school crc32

2016-07-24 Thread Tony Whyman
On 24/07/16 00:18, wkitt...@windstream.net wrote: i've already checked the polynomial ($edb88320) is the same in both, the original implementation (converted to TP4 in 1988) and this implementation... Are you sure that you are dealing with a CRC algorithm? ISO 8073 TP4 uses an arithmetic

Re: [fpc-pascal] old school crc32

2016-07-24 Thread Giuliano Colla
Il 24/07/2016 01:18, wkitt...@windstream.net ha scritto: this is driving me battier than i already am :( i have a binary file that contains a record of data... the first field of the data is a crc32 value of a string of characters... the string of characters is lower cased before being fed

Re: [fpc-pascal] old school crc32

2016-07-24 Thread Mark Morgan Lloyd
wkitt...@windstream.net wrote: this is driving me battier than i already am :( i have a binary file that contains a record of data... the first field of the data is a crc32 value of a string of characters... the string of characters is lower cased before being fed to the crc32 function... i

[fpc-pascal] old school crc32

2016-07-23 Thread wkitty42
this is driving me battier than i already am :( i have a binary file that contains a record of data... the first field of the data is a crc32 value of a string of characters... the string of characters is lower cased before being fed to the crc32 function... i need to calculate the same