aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/mathops.h
AgeCommit message (Collapse)Author
2014-03-22dsputil: Move ff_zigzag_direct and ff_crop_tab declarations to mathops.hDiego Biurrun
2014-03-04mathops: move macro to the only place it is usedVittorio Giovara
This helps in disentangling lavf and lavc too.
2013-09-18lavc: add ff_u8_to_s8() for safe type punning of uint8_t to int8_tJustin Ruggles
2013-08-05mpegts: Remove one 64-bit integer modulus operation per packetBen Avison
The common case of the pointer having increased by one packet (which results in no change to the modulus) can be detected with a 64-bit subtraction, which is far cheaper than a division on many platforms. Before After Mean StdDev Mean StdDev Change Divisions 248.3 8.8 51.5 7.4 +381.7% Overall 2773.2 25.6 2372.5 43.1 +16.9% Signed-off-by: Martin Storsjö <martin@martin.st>
2012-10-12Move av_reverse table to libavcodecDiego Biurrun
It is only used in that library.
2012-10-11Move avutil tables only used in libavcodec to libavcodec.Diego Biurrun
2012-08-09Move MASK_ABS macro to libavcodec/mathops.hMans Rullgard
This macro is only used in two places, both in libavcodec, so this is a more sensible place for it. Two small tweaks to the macro are made: - removing the trailing semicolon - dropping unnecessary 'volatile' from the x86 asm Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-01-27cosmetics: Remove extra newlines at EOFAlex Converse
2011-10-13mathops: remove undefined behaviour from sign_extend()Mans Rullgard
This function intentionally overflows the signed range on the left shift. Using this type-punning avoids errors from the overflow checker without disabling this test globally. Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-06-04mathops: use MUL64 macro where it forms part of other opsMans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-06-04Add missing #includes to make headers self-contained.Diego Biurrun
This fixes 'make checkheaders'.
2011-05-16mathops: remove ancient confusing commentMans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-03-19Replace FFmpeg with Libav in licence headersMans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2010-06-30Add more int packing macros, name them consistentlyMåns Rullgård
Originally committed as revision 23916 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-22Rename PACK4x8() to PACK4UINT8().Ronald S. Bultje
Originally committed as revision 23721 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-22Add a macro to pack 4 bytes into native byte-order so they can be writtenRonald S. Bultje
at once using a single 32-bit store. Originally committed as revision 23715 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-13Use standard C for implementing sign_extend() and zero_extend().Michael Niedermayer
This fixes compilation of probetest Originally committed as revision 23116 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-02-21Add zero_extend() functionMåns Rullgård
Originally committed as revision 21947 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-02-17Move NEG_[US]SR32 macros to mathops.hMåns Rullgård
Originally committed as revision 21873 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-26Add UMULH()Måns Rullgård
This function/macro returns the high half of the unsigned 64-bit product of two unsigned 32-bit operands. Originally committed as revision 21463 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-01-20Move COPY3_IF_LT to lavc/mathops.hMåns Rullgård
This obscure macro is only used in motion_est.c so having it in lavc makes more sense. See discussion here: http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2008-November/056561.html Originally committed as revision 21346 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-17AVR32: optimised mathops.hMåns Rullgård
44% faster MP3 decoding Originally committed as revision 19667 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-28MIPS: add MIPS64 and Loongson asm for MAC64/MLS64Måns Rullgård
Originally committed as revision 18979 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-20mathops: sort arch-specific #include linesMåns Rullgård
Originally committed as revision 18886 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-20mathops: whitespace cosmeticsMåns Rullgård
Originally committed as revision 18885 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03Add sign_extend() function to mathops.hMåns Rullgård
Originally committed as revision 17738 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-08re-enable mid_pred asm on x86_64. (broke in r16681)Loren Merritt
Originally committed as revision 17058 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-19cosmetics: Remove pointless period after copyright statement non-sentences.Diego Biurrun
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-18moves mid_pred() into mathops.h (with arch specific code split by directory)Aurelien Jacobs
Originally committed as revision 16681 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs
They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-27consistency cosmetics: Rename POWERPC identifiers to PPC.Diego Biurrun
Originally committed as revision 16359 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22Rename libavcodec/i386/ --> libavcodec/x86/.Diego Biurrun
It contains optimizations that are not specific to i386 and libavutil uses this naming scheme already. Originally committed as revision 16270 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-17ARM: replace "armv4l" with "arm"Måns Rullgård
Originally committed as revision 16179 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-11-24Add shift argument to MULL() macroMåns Rullgård
This replaces use of FRAC_BITS in the MULL() definition with a third argument specifying the shift amount. All uses of this macro are updated to pass FRAC_BITS as third argument. Originally committed as revision 15921 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-31Globally rename the header inclusion guard names.Stefano Sabatini
Consistently apply this rule: the guard name is obtained from the filename by stripping the leading "lib", converting '/' and '.' to '_' and uppercasing the resulting name. Guard names in the root directory have to be prefixed by "FFMPEG_". Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-13mathops: add MAC64, MLS64, and MLS16Måns Rullgård
MAC64: 64 += 32 x 32 (bits) MLS64: 64 -= 32 x 32 MLS16: 32 -= 16 x 16 Originally committed as revision 14198 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-05-09Use full path for #includes from another directory.Diego Biurrun
Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-17fix typo ARCH_PPC -> ARCH_POWERPCMåns Rullgård
Originally committed as revision 12465 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-17Add FFMPEG_ prefix to all multiple inclusion guards.Diego Biurrun
Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-30Hooking bfin/mathops.hMarc Hoffman
Originally committed as revision 10263 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-16include all prerequisites in header filesMåns Rullgård
Originally committed as revision 9344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-12-08rename always_inline to av_always_inline and move to common.hMåns Rullgård
Originally committed as revision 7256 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-11-01Add ARCH_X86_32 as a new define for 32 bit x86 architectures and changeDiego Biurrun
the semantics of ARCH_X86 to mean both 32 and 64 bits. Originally committed as revision 6852 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07Change license headers to say 'FFmpeg' instead of 'this program/this library'Diego Biurrun
and fix GPL/LGPL version mismatches. Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-19New single instruction math operation headerLuca Barbato
Originally committed as revision 6291 to svn://svn.ffmpeg.org/ffmpeg/trunk