84 Commits (f87462ccef6c750ddd94793af52e2a107279bc17)

Author SHA1 Message Date
Diego Biurrun 784b7f77c8 10l: Rename missed occurrences of CONFIG_EBX_AVAILABLE to HAVE_EBX_AVAILABLE. 18 years ago
Diego Biurrun f9be0cb800 Update preprocessor directive comments to take recent changes to this file 18 years ago
Panagiotis Issaris 449659919c Fix compilation when using the --disable-opts parameter. This to help those 18 years ago
Aurelien Jacobs f0b23422fa use av_noinline instead of __attribute((noinline)) 18 years ago
Måns Rullgård 7073e9fc69 rename CMOV_IS_FAST to HAVE_FAST_CMOV and simplify configure 18 years ago
Michael Niedermayer 3b6dc9ca6d replace a few hardcoded numbers with their correct named ones 18 years ago
Måns Rullgård 849f10351d rename always_inline to av_always_inline and move to common.h 18 years ago
Michael Niedermayer c61b9d4473 PIC fix 18 years ago
Reimar Döffinger d55f46e5a8 Reenable AMD64 optimizations for cabac accidentially disabled in r6852 18 years ago
Diego Biurrun 419b878494 Add ARCH_X86_32 as a new define for 32 bit x86 architectures and change 18 years ago
Diego Biurrun d5cd50ed73 Fix compilation with PIC enabled, BRANCHLESS_GET_CABAC is defined under 18 years ago
Reimar Döffinger 755073fe3c CABAC assembler optimizations ported to AMD64 18 years ago
Michael Niedermayer e08f580644 decode_significance_8x8_x86() 18 years ago
Guillaume Poirier 94e4c3a333 Protect code that uses CMOV instructions with HAVE_CMOV, 18 years ago
Michael Niedermayer 849a50041c another instruction less in decode_significance_x86() -> 1% faster ion P3 18 years ago
Michael Niedermayer d3e7c5c35b 1 instruction less 18 years ago
Michael Niedermayer a616db285a reordering instructions a little in decode_significance_x86() -> 2 instructions less / 1% faster decode_residual on P3 18 years ago
Michael Niedermayer 13404b2e98 factorize get_cabac asm (0.5% slower but its much cleaner) 18 years ago
Bernhard Rosenkränzer ba9fb5da3a Fix PIC compilation, some defines were under #ifdef !PIC but used 18 years ago
Michael Niedermayer d72bc32389 unused variable 18 years ago
Michael Niedermayer ebd624b662 optimize sign decoding code in decode_residual() 18 years ago
Jindřich Makovička a0f2c6ba38 Kill a warning with MSVC 18 years ago
Michael Niedermayer eb73bf723d x86 asm version of the decode significance loop (not 8x8) of decode_residual() 5% faster decode_residual() on P3 18 years ago
Michael Niedermayer 4041a495a8 cosmetic (%%eax->%0) 18 years ago
Diego Biurrun 8dda3e796b Fix crash with illegal instruction, cmov is available on 686 and later only. 18 years ago
Diego Biurrun e962604f1c Expand some #endif comments. 18 years ago
Michael Niedermayer 165c5f0909 fix !CMOV_IS_FAST case (iam not really happy with the fix but i didnt come up with a better one quickly) 18 years ago
Michael Niedermayer 1d7c111856 10l 18 years ago
Michael Niedermayer faff3a7ad0 this code will not work with PIC as it needs 7 registers and gcc doesnt support that in PIC 18 years ago
Michael Niedermayer f24a515931 shift CABACContext.range right, this reduces the number of shifts needed in get_cabac() and is slightly faster on P3 (and should be much faster on P4 as the P4 except the more recent variants lacks an integer shifter and so shifts have ~10 times longer latency then simple operations like adds) 18 years ago
Michael Niedermayer 68a205edef dehack *ps_state indexing in the branchless decoder 18 years ago
Michael Niedermayer 12ff5b0f3b add "memory" to the clobber list we change memory so we need it, this also fixes some problems with gcc svn 18 years ago
Michael Niedermayer 851ded8918 prevent "mb level" get_cabac() calls from being inlined (3% faster decode_mb_cabac() on P3) 18 years ago
Guillaume Poirier a0490b324a adds some useful comments after some of the #else, #elseif, 18 years ago
Diego Biurrun c26abfa541 Rename ABS macro to FFABS. 18 years ago
Michael Niedermayer 1f4d5e9f69 slightly faster on P3 slightly slower on athlon and probably faster on P4 18 years ago
Michael Niedermayer 2b5269b51c moving lps state transition code a little up in the branched asm code (1% faster on P3) 18 years ago
Michael Niedermayer b99f3cabed write cabac low and range variables as early as possible to prevent stalls from reading them before they where written, the P4 is said to disslike that alot, on P3 its 2% faster (START/STOP_TIMER over decode_residual) 18 years ago
Michael Niedermayer d17faef011 use ecx instead of cl (no speed change on P3 but might avoid partial register stalls on some cpus) 18 years ago
Michael Niedermayer d61c4e731e make state transition tables global as they are constant and the code is slightly faster that way 18 years ago
Michael Niedermayer 5f3eca121e 10l 18 years ago
Michael Niedermayer 0fa352c7e6 make lps_range a global table its constant anyway (saves 1 addition for accessing it) 18 years ago
Michael Niedermayer 3650b43959 enable CMOV_IS_FAST as its faster or equal speed on every cpu (duron, athlon, PM, P3) from which ive seen benchmarks, it might be slower on P4 but noone has posted benchmarks ... 18 years ago
Diego Biurrun 0bc2e7f081 BRANCHLESS_CABAD --> BRANCHLESS_CABAC_DECODER 18 years ago
Michael Niedermayer 9ed92c65f1 moving another bit&1 out, this is as fast as with it in there, but it makes more sense with it outside of the loop 18 years ago
Michael Niedermayer f1b37db48d move the &1 out of the asm so gcc can optimize it away in inlined cases (yes this is slightly faster) 18 years ago
Michael Niedermayer ab0151d163 replace a few and/sub/... by cmov 18 years ago
Michael Niedermayer a6672acf45 reading 8bit mem into a 8bit register needs 2 uops on P4, 8bit->32bit with zero extension needs just 1 18 years ago
Michael Niedermayer 2d3df05ca0 on the P4 inc needs twice as much time a add 18 years ago
Michael Niedermayer 2ee9dc65be 10l 18 years ago