Displaying 20 results from an estimated 8000 matches similar to: "bitmath.h static array"
2012 Aug 28
3
[PATCH 1/3] Make FLAC__clz_soft_uint32 static.
---
src/libFLAC/include/private/bitmath.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/libFLAC/include/private/bitmath.h b/src/libFLAC/include/private/bitmath.h
index 61b0e03..d32b1a7 100644
--- a/src/libFLAC/include/private/bitmath.h
+++ b/src/libFLAC/include/private/bitmath.h
@@ -42,7 +42,7 @@
#endif
/* Will never be emitted for MSVC, GCC, Intel compilers */
2012 May 09
1
[PATCH 2/2] bitmath: Finish up optimizations
This patch adds support for other compilers and systems
including MSVC, Intel C compiler etc..
---
src/libFLAC/bitmath.c | 48 -------------
src/libFLAC/bitreader.c | 54 ++-------------
src/libFLAC/include/private/bitmath.h | 120 ++++++++++++++++++++++++++++++---
3 files changed, 116 insertions(+), 106 deletions(-)
diff --git a/src/libFLAC/bitmath.c
2012 Jun 27
1
Failed win32 build
Hello,
While building from git, I'm getting the following failure (help please):
CC ogg_mapping.lo
CCLD libFLAC.la
Creating library file: .libs/libFLAC.dll.a
.libs/bitreader.o: In function `FLAC__clz_soft_uint32':
./include/private/bitmath.h:46: multiple definition of `_FLAC__clz_soft_uint32'
.libs/bitmath.o:./include/private/bitmath.h:46: first defined here
.libs/fixed.o:
2012 Jun 24
3
Patch for cross compilation with MinGW32
Hello,
I had some difficulties compiling the current git (
http://git.xiph.org/?p=flac.git;a=commit;h=a7e3705d051bafd1cae90f6605287cc1d9f2a18d
) using the Ubuntu 12.04 supplied MinGW32 cross compiler:
I configured the FLAC build with --host=i586-mingw32msvc
--target=i586-mingw32msvc --build=i586-linux but ran into several linker
problems. Are these options somehow wrong? It worked fine when
2015 Dec 28
1
[PATCH 2] more changes in bitmath.h
1) FLAC supports only MSVS 2005 and newer, so (_MSC_VER >= 1400)
is always true and can be removed.
2) The argument for FLAC__clz_uint32() is of FLAC__uint32 type, so
FLAC__clz_soft_uint32() should have the same argument type.
3) The patch removes unnecessary parentheses around 'word' variable.
4) It also replaces "sizeof(FLAC__uint32) * CHAR_BIT - 1 -
2013 Aug 16
1
PATCH for bitmath.h: 1 typo, 1 warning
rutine -> routine
Also MSVC complains that FLAC__uint32* (unsigned int*) is not of the same type as unsigned long*
--- a\src\libFLAC\include\private\bitmath.h 2013-08-13 13:30:24.000000000 +0400
+++ b\src\libFLAC\include\private\bitmath.h 2013-08-14 10:20:51.484053700 +0400
@@ -78,12 +78,12 @@
return _bit_scan_reverse(v) ^ 31U;
#elif defined(__GNUC__) && (__GNUC__ >= 4 ||
2013 Sep 04
4
PATCH: bugfixes for bitmath.h
More or less detailed explanation of this patch.
1. The first parameter of _BitScanReverse() and _BitScanReverse64() is a pointer to unsigned long (4-byte int). However _BitScanReverse64() is called with a pointer to FLAC__uint64 (8-byte int). IMHO it's a bug and this patch changes the type of idx variable inside FLAC__bitmath_ilog2_wide() from FLAC__uint64 to unsigned long.
The type of idx
2014 Feb 01
1
PATCH for bitmath.h
FLAC__bitmath_ilog2_wide() function is still problematic:
1) it cannot be compiled with MSVS
2) it returns correct results only when compiles with GNUC
3) it mentions LGPL which isn't good for a BSD-licensed library
Here's the patch that should fix these issues.
(about LGPL -> CC0 change: http://lists.xiph.org/pipermail/flac-dev/2013-September/004356.html )
-------------- next part
2014 Apr 09
1
[PATCH] for src/libFLAC/include/private/bitmath.h
From the neighbouring list, http://lists.xiph.org/pipermail/opus/2014-April/002592.html
"proper architecture-specific MSVC definitions, _M_IX86 and _M_X64"
So this patch changes _WIN64 to _M_X64 (the corresponding code enables _BitScanReverse64)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitmath.patch
Type: application/octet-stream
Size: 938
2004 Sep 10
4
bitbuffer optimizations
Ok, here is a patch waiting for new CVS :). It works fine for me, but
please check it before commiting...
--
Miroslav Lichvar
-------------- next part --------------
--- src/libFLAC/bitbuffer.c.orig 2003-01-30 17:36:01.000000000 +0100
+++ src/libFLAC/bitbuffer.c 2003-01-30 21:53:18.000000000 +0100
@@ -51,6 +51,25 @@
*/
static const unsigned FLAC__BITBUFFER_DEFAULT_CAPACITY = ((65536 - 64) *
2013 Sep 06
4
About de Bruijn sequences in bitmath.h
Found this code: ftp://ftp.samba.org/pub/unpacked/ntdb/lib/ccan/ilog/ilog.c
Tests show that it's faster to use the following code in FLAC__bitmath_ilog2_wide():
static const unsigned char DEBRUIJN_IDX32[32]={
0, 1,28, 2,29,14,24, 3,30,22,20,15,25,17, 4, 8,
31,27,13,23,21,19,16, 7,26,12,18, 6,11, 5,10, 9
};
FLAC__uint32 v;
int m;
2017 Jan 15
3
unsigned int and FLAC__uint32 are used interchangeably
lvqcl wrote:
> Also MSVC fails because src/libFLAC/include/private/bitmath.h now
> contains "uint32_t long idx" instead of "unsigned long idx".
Ah, missed that because it was MSVC code. They should be `uint64_t`.
> According to MSDN _BitScanReverse*() functions have signatures:
> unsigned char _BitScanReverse(unsigned long *, unsigned long);
> unsigned char
2015 Dec 24
1
[PATCH] spaces to tabs
FLAC code usually uses tabs. However there are several places where spaces are used.
The patch spaces_1.patch fixes several files, spaces_2.patch fixes
solely libFLAC/include/private/bitmath.h (too many changed lines, so I made
it separate).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spaces_1.patch
Type: application/octet-stream
Size: 5942 bytes
Desc: not
2013 Sep 01
1
New routine: FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_16
Erik de Castro Lopo <mle+la at mega-nerd.com> wrote:
> Well first of all, none of them apply :-).
I'll try to redo the necessary patches with git.
> * Remove restrict definition from include/share/compat.h. Applied.
BTW, I tried to use 'restrict' keyword with MSVS 2010 and 2012 and in fact they don't support it. Only --restrict is supported.
> * libFLAC and
2008 Mar 14
2
bitreader optimizations
Hi,
attached are patches that improve decoding speed a bit. The first
patch improves the bit scan macro used for decoding unary values, the
second one adds a GCC inline assembly for bswap and the third patch
replaces the read_rice_block function.
In my testing it turned out to be even faster than the _ia32_bswap
function. If the code produced by MSVC is faster as well, I'd suggest
to remove
2005 Jan 01
2
libFLAC bitbuffer optimizations
Josh Coalson <xflac@yahoo.com> wrote:
> thanks for the patch.
No prob :)
> also, if you have miroslav's patch again a more updated version
> of bitbuffer.c that would be great. I have been meaning to get
> around to applying it for a long time.
This is Miroslav's patch, from the mailing list post I dug up in the archives:
--- orig/src/libFLAC/bitbuffer.c
+++
2013 Aug 31
2
New routine: FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_16
Erik de Castro Lopo <mle+la at mega-nerd.com> wrote:
> Patch applied, tested, commited and pushed.
Great.
But, what about my other patches? I admit that many of them aren't necessary, but (imho) a couple of them are important. I can explain in detail why I think this.
2013 Apr 19
2
Preprocessor error when trying to build integer-only
Hi,
I was wondering how much worse FLAC performance would be if it was
compiled integer-only, but while trying to do so (by adding #define
FLAC__INTEGER_ONLY_LIBRARY 1 to config.h, just on x86_64-linux) I got
this error
> ./include/private/bitmath.h:134:5: error: operator '&&' has no left
> operand
bitmath.h:134 is the following line
> #if &&
2017 Jan 14
4
unsigned int and FLAC__uint32 are used interchangeably
On 1/14/17, Erik de Castro Lopo <mle+la at mega-nerd.com> wrote:
> Ozkan Sezer wrote:
>
>> > Ozkan Sezer wrote:
>> >
>> >> unsigned int and FLAC__uint32 are used interchangeably, leading to
>> >> warnings with platforms (e.g. djgpp) where int32_t is long:
>> >
>> > Is `sizeof int == 4` though?
>>
>> Yes, obviously
2013 Sep 08
0
PATCH: bugfixes for bitmath.h
lvqcl wrote:
> More or less detailed explanation of this patch.
I've applied part of that patch.
> 1. The first parameter of _BitScanReverse() and _BitScanReverse64() is
> a pointer to unsigned long (4-byte int).
On windows, yes, unsigned long is 4 bytes for both 32 and 64 bit versions.
This is not true for most Unices.
> However _BitScanReverse64() is called with a pointer to