Commit graph

33 commits

Author SHA1 Message Date
Javier Olaechea
d472261c4f
Use Read-time evaluation to make code more readable 2022-08-24 18:52:24 +02:00
Javier Olaechea
f8cb331753
Refactor uint Decoders
Instead bit-shifting to 'place' the bits where we want them to be and
adding Lisp provides the DPB function that allows us to deposit bits
where we want them in an integer.
2022-08-24 18:50:27 +02:00
Javier Olaechea
2924fe75e0
Reuse uint decoders when possible
The int decoder does the same work as its corresponding uint decoder
before encoding the integer in Two's complement. We can re-use the
uint decoder instead of writing the same code in the corresponding int
decoder.
2022-08-24 18:43:57 +02:00
Javier Olaechea
26c7107ad3
Refactor int Encoders
Instead of Shifting bits and masking in order to extract a subset of
the bits Lisp provides the function LBD, which allows us to extract a
number of bits from an integer. This approach is more direct,
communicates the intent better and allows the compiler to do less work.
2022-08-24 18:43:15 +02:00
ErikR
829bf7cfc1
Cleaning 2022-08-24 18:25:04 +02:00
Javier Olaechea
012df52daf DEFINT-DECODER: Add missing unquote
Otherwise we return the unbound symbol INT instead of the value of the
we built in the decoder.

Fixes bug introduced in 9facf44.
2019-05-01 23:34:42 -05:00
Javier Olaechea
db5dd2b166 Use Read-time evaluation to make code more readable 2019-03-27 22:59:21 -05:00
Javier Olaechea
9facf444f4 Refactor uint Decoders
Instead bit-shifting to 'place' the bits where we want them to be and
adding Lisp provides the DPB function that allows us to deposit bits
where we want them in an integer.
2019-03-27 22:58:55 -05:00
Javier Olaechea
d130e45f58 Reuse uint decoders when possible
The int decoder does the same work as its corresponding uint decoder
before encoding the integer in Two's complement. We can re-use the
uint decoder instead of writing the same code in the corresponding int
decoder.
2019-03-27 22:58:25 -05:00
Javier Olaechea
5a1eaaebad Refactor int Encoders
Instead of Shifting bits and masking in order to extract a subset of
the bits Lisp provides the function LBD, which allows us to extract a
number of bits from an integer. This approach is more direct,
communicates the intent better and allows the compiler to do less work.
2019-03-27 22:56:50 -05:00
ErikR
3bde47386a Cleaning 2015-08-25 21:59:32 +02:00
ErikR
953af87fe4 Added support for 64-bit integers 2015-08-25 21:54:38 +02:00
ErikR
be1a4f5d4b Encoding and decoding blobs now follows the spec with regards to size 2015-08-25 21:25:05 +02:00
ec7bbbe3ec isosceles
encode-int32 and decode-int32 should work for allegro, using a patch from Vincent Akkermans.

darcs-hash:20070226152053-2648a-ebccfc38619ab82bb8572b66e69d95dd12d658a3.gz
2007-02-26 23:20:53 +08:00
8f887a7c3b toscanite
darcs-hash:20060405103333-2648a-eb806b6fcd6ccccc51457ffc3fb418fbba4b4c7c.gz
2006-04-05 18:33:33 +08:00
a7a6d742f6 proscapula
removed assumption based on value of internal-time-units-per-second

darcs-hash:20060210234410-2648a-b283b634b2afc41b84a0a47fb5778e7a890a2572.gz
2006-02-11 07:44:10 +08:00
5b98b79ee7 aproscapula
extended timetag support, including a first attempt at using (get-universal-time)
for timestamping. still not ntp compatible.

darcs-hash:20060210233840-2648a-b16d4ceb60e9ed6d0a18b8b4ed051ebaf7336752.gz
2006-02-11 07:38:40 +08:00
73f33aac45 semifloscular
openmcl version of decode-float32 uses decode-uint32 for correct negative float values.

darcs-hash:20051205190701-2648a-06b565475c79901f26175fd84374bdb0314381b6.gz
2005-12-06 03:07:01 +08:00
d8ffcab7b3 recognosce
added openmcl float support and a few minor cleanups

darcs-hash:20051129111126-2648a-1f3055c480c24f4352e87e40d966b01a4aa1921e.gz
2005-11-29 19:11:26 +08:00
1a1abf68bd inosculate
darcs-hash:20050812092011-2648a-e137705e5ce7ab583a168c84593bfa0a390874f9.gz
2005-08-12 17:20:11 +08:00
9bcc4ffcc2 atroscine
darcs-hash:20050811090231-2648a-b62b40c5f0df7e8f5231240a1d3698146582da42.gz
2005-08-11 17:02:31 +08:00
814298e0dc oscelot
should be asdf-installable . ..

darcs-hash:20050316155934-2648a-2a095e2002d4f0864350e17075c8dbafff47e8aa.gz
2005-03-16 23:59:34 +08:00
f8cc808c44 podoscaph
#bundle support added to the feet. small step towards watertightness

darcs-hash:20050314140505-2648a-268ae71e964c269e196c590d867970411d786804.gz
2005-03-14 22:05:05 +08:00
c7a22c9e4a roscid
darcs-hash:20050307100957-2648a-88dd27d3a86b2c718ef38e3bb089556683b3eedd.gz
2005-03-07 18:09:57 +08:00
57772e2bd3 oscar
darcs-hash:20050306133533-2648a-78c19a39c75c8a5f14315c01425b7bc241c940cb.gz
2005-03-06 21:35:33 +08:00
271545fbad pseudoscholastic
darcs-hash:20050306124728-2648a-e3eb0f8e6157cd343a9b7b7fe114b5894ceb5cf7.gz
2005-03-06 20:47:28 +08:00
c22a4e1389 roscoelite
A green micaceous mineral occurring in minute scales. Various 'declares' for speed, safety and cluttering. Small bug fixes and optimi[sz]ations.

darcs-hash:20050306122501-2648a-2a2946d523deea88f35d8c262352c1cfd65ef222.gz
2005-03-06 20:25:01 +08:00
02bf197a6a groschen
darcs-hash:20050302172356-2648a-b99e953e8920e6a6a0c5155c050ea04a46719c11.gz
2005-03-03 01:23:56 +08:00
424b187234 zymoscope
removed the 'osc-' prefix from most of the function names and packaged it as :osc

darcs-hash:20050210133251-2648a-94a88ade8074d89e0f7de8a9bff440e99235fa05.gz
2005-02-10 21:32:51 +08:00
d22ba88cc5 acroscopic
darcs-hash:20050126151943-2648a-fa2e062470c777a1b3cd7b5874e0d0bfeab979d3.gz
2005-01-26 23:19:43 +08:00
371b1f650e reisoc
darcs-hash:20050126144903-2648a-9167a29d9c7501980cf0da1e3d09f66af4a47400.gz
2005-01-26 22:49:03 +08:00
dc9e11e3bc isosceles
darcs-hash:20050126143620-2648a-9ed0c63eccd67d10b88ab1b321f952b7345ec488.gz
2005-01-26 22:36:20 +08:00
ae551b9e96 seed
darcs-hash:20050126135224-2648a-fa10bee8a277a9d980784d3959df28f027fc79a3.gz
2005-01-26 21:52:24 +08:00