lemire / littleintpacker Goto Github PK
View Code? Open in Web Editor NEWC library to pack and unpack short arrays of integers as fast as possible
License: Apache License 2.0
C library to pack and unpack short arrays of integers as fast as possible
License: Apache License 2.0
hi, i'm reading through the simd version and this to gain some familiarity as to what's going on and what techniques are being used. does this line not violate strict aliasing?
uint64_t * pw64 = *(uint64_t **) pw;
Hey Guys,
A small code used to show the problem i m facing using streamvbytes library on linux
#include <stdint.h>
#include <streamvbyte.h>
#include <malloc.h>
#include <stdio.h>
int main( void )
{
size_t encoded = 0, decoded = 0;
uint8_t *set = malloc( 1024 );
uint32_t entry[ 2 ];
entry[ 0 ] = 10;
entry[ 1 ] = 0;
encoded += streamvbyte_encode( entry, 2, set );
for( size_t i = 0; i < 2; i++ ) {
decoded += streamvbyte_decode( set + decoded, entry, 1 );
}
printf( "encoded size : %zd vs decoded size : %zd\n", encoded, decoded );
free( set );
return 0;
}
When I run this code I got this output ๐
encoded size : 3 vs decoded size : 4
Can you help me finding the issue ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.