search for: bwword

Displaying 6 results from an estimated 6 matches for "bwword".

Did you mean: brword
2012 Apr 05
1
[PATCH] remove unnecesary typedef in bitwriter.c
...writer.c @@ -43,12 +43,11 @@ /* Things should be fastest when this matches the machine word size */ /* WATCHOUT: if you change this you must also change the following #defines down to SWAP_BE_WORD_TO_HOST below to match */ -/* WATCHOUT: there are a few places where the code will not work unless bwword is >= 32 bits wide */ -typedef FLAC__uint32 bwword; +/* WATCHOUT: there are a few places where the code will not work unless uint32_t is >= 32 bits wide */ #define FLAC__BYTES_PER_WORD 4 #define FLAC__BITS_PER_WORD 32 #define FLAC__WORD_ALL_ONES ((FLAC__uint32)0xffffffff) -/* SWAP_BE_WORD_...
2015 Dec 31
1
[PATCH] Support 64-bit brword/bwword
...twriter.c and change '#if 1' to '#if 0'. The value of FLAC__BYTES_PER_WORD must be the same in src/libFLAC/bitwriter.c and src/test_libFLAC/bitwriter.c. OTOH, their value in src/libFLAC/bitwriter.c and src/libFLAC/bitwriter.c are independent, so sizeof(brword) can be 4 while sizeof(bwword)==8. Please check the definition of ENDSWAP_64(x): I don't know when it's available on Linux, and what's the best non-intrinsic version of this function. Performance tests, correctness tests, comments are welcome. -------------- next part -------------- A non-text attachment was scru...
2017 Jan 19
4
[PATCH] Fix cppcheck warnings
...c/libFLAC/bitwriter.c @@ -201,13 +201,13 @@ void FLAC__bitwriter_dump(const FLAC__BitWriter *bw, FILE *out) for(i = 0; i < bw->words; i++) { fprintf(out, "%08X: ", i); for(j = 0; j < FLAC__BITS_PER_WORD; j++) - fprintf(out, "%01u", bw->buffer[i] & ((bwword)1 << (FLAC__BITS_PER_WORD-j-1)) ? 1:0); + fprintf(out, "%01d", bw->buffer[i] & ((bwword)1 << (FLAC__BITS_PER_WORD-j-1)) ? 1:0); fprintf(out, "\n"); } if(bw->bits > 0) { fprintf(out, "%08X: ", i); for(j = 0; j < bw->bi...
2016 Dec 05
4
Some additions for the 1.3.2 changelog?
...04d75a17b Win32: Only use large buffers when writing to disk https://git.xiph.org/?p=flac.git;a=commit;h=f0ee453c23eacd1a10762b2301384ddc19821052 libFLAC: Fix potential memory leaks https://git.xiph.org/?p=flac.git;a=commit;h=15a9062609c123b56df104a575dba657c2577e0b libFLAC: Support 64bit brword/bwword allowing FLAC__BYTES_PER_WORD to be set to 8. This is disabled by default. Thanks, Maurits
2015 Dec 16
2
about word size in bitreader/bitwriter
...flac.git;a=commitdiff;h=66bd44bacc28cb154b5c9349cf3288da9ec74501> <http://git.xiph.org/?p=flac.git;a=commitdiff;h=387b72731dbf79450050987b9b36bf70f286b098> <http://git.xiph.org/?p=flac.git;a=commitdiff;h=d30fe60fc616d626df2336e91bc698677a732447> that replaced bitness-agnostic brword/bwword and COUNT_ZERO_MSBS() with uint32_t and FLAC__clz_uint32() (which are apparently 32-bit only). Does it make sense to restore the ability to use FLAC__BYTES_PER_WORD == 8? (Honestly, I'm not sure that it ever worked previously... and I'm not sure that this change can improve libFLAC perfo...
2016 Jan 08
8
Lets do a 1.3.2 release
HI all, I think its time for a new release. The current code base is stable and I've been building it for x86_64/linux, powerpc/linux, armhf/linux, x86_64/darwin in a Jenkins build bot. I'm pretty sure others have been building regularly on their platforms of interest. I made a first pass on an update to the changelog.html. I' also putting toether a release checklist that I will add