wtetzner / bitstring

Automatically exported from code.google.com/p/bitstring
GNU General Public License v2.0
0 stars 0 forks source link

signed int extract and construct functions implementation #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Patch against rev. 186

- solve a small bug in 64 bits platforms (mask created was not always 31
bits wide)

- implemented needed functions in order to use signed qualifier with ints
(2..31 bits only)

Original issue reported on code.google.com by matthieu...@gmail.com on 25 Mar 2010 at 2:43

Attachments:

GoogleCodeExporter commented 8 years ago
I add some brute force tests

Original comment by matthieu...@gmail.com on 25 Mar 2010 at 2:45

Attachments:

GoogleCodeExporter commented 8 years ago
Hello,

I'm trying to read 32 bit signed int but its not yet implemented. Is it 
possible to get a patch for that?

Original comment by josephel...@gmail.com on 23 May 2012 at 12:10

GoogleCodeExporter commented 8 years ago
Would this be correct?

let extract_int32_le_signed = 
  extract_and_extend_sign extract_int32_le_unsigned

Original comment by josephel...@gmail.com on 23 May 2012 at 12:15

GoogleCodeExporter commented 8 years ago
It's certainly possible to *write* a patch for it.  I don't have time right 
now.  It should be pretty trivial to do, but you'll have to dig into the source.

Original comment by richard....@gmail.com on 23 May 2012 at 12:51

GoogleCodeExporter commented 8 years ago
Sorry, since there's a patch attached, why not try that out?

Original comment by richard....@gmail.com on 23 May 2012 at 12:52

GoogleCodeExporter commented 8 years ago
That's exactly what I'm doing.. Thanks anyway

Original comment by josephel...@gmail.com on 23 May 2012 at 1:04

GoogleCodeExporter commented 8 years ago
Hello Richard,

is there any problem with the patch proposed? I would adapt it if it could help 
you to integrate this modification.

Thanks

Original comment by matthieu...@gmail.com on 30 Jul 2014 at 6:43

GoogleCodeExporter commented 8 years ago
No, there was no problem.  I have pushed your commit (r202).

Original comment by richard....@gmail.com on 30 Jul 2014 at 7:40

GoogleCodeExporter commented 8 years ago
Nice!

I thank you.

Le 30/07/2014 21:40, bitstring@googlecode.com a �crit :

Original comment by matthieu...@gmail.com on 31 Jul 2014 at 11:21