removed whitespace
added newline at end of file
Merge pull request #1 from daneallison/master

removed whitespace
Fixed "closed" spam if can't connect; removes socket now
Merge branch 'master' of github.com:rinstrum/LUA-LIB
Delete timertest.lua
Delete m4223hardware.lua
Updated package name and versioning
Merge branch 'master' of squid.rinstrumau.local:L001.5xx.503
Merge branch 'master' of github.com:rinstrum/LUA-LIB
Fixed gitignore and added CONTROL to repo
fix add device B call
Updated gitignore to include project files
Merge branch 'master' of chef.rinstrumau.local:rnd/L001-503
Fixed typos in K400 header
Speed the Lua connection handling CRC code by about 30% by removing some unnecessary logical operations and using a polynomial lookup table instead of computing the CRC polynomial transformation for every byte.

The binary operations available in Lua are horrendously slow.  Most likely due to the conversion from double to integer on entry and integer to double on exit.

A quick toss together in C seemed to indicate a thousand fold performance improvement is possible in this integer and bit operation heavy CRC function.
Further fine tuning of the Lua CRC code.

By noticing that some logical operations correspond nicely to floating point operations, it is possible to save time.  The key is the avoidance of the conversion to integer and conversion back.

Specifically:

    a left shift is a multiply;
    a right shift is the floor of a reciprocal multiply and
    the bitwise AND operations that are used correspond to a floating point modulus.

The latter two of these involve expensive floating point operations (floor and modulus) but they seem to be cheaper than the conversions to integer (which are essentially the same but done twice).

Right shift is possibly better thought of as a floor of a divide, however division is very slow on many processors (especially ARM) so a reciprocal multiply works better.
Merge branch 'master' of chef.rinstrumau.local:rnd/L001-503
Making things local improves performance incrementally.
Comment the mysterious and magic transformed logical operations.