shithub: dav1d

Download patch

ref: 1df181649d2b8cd46e517d01fd82d36bad0f7f2f
parent: 1306791698acc4983ce85901318eeb2a2a829314
author: James Almer <[email protected]>
date: Wed Jun 5 14:51:05 EDT 2019

x86: include config.asm in x86inc instead of every asm file

--- a/src/ext/x86/x86inc.asm
+++ b/src/ext/x86/x86inc.asm
@@ -34,6 +34,8 @@
 ; as this feature might be useful for others as well.  Send patches or ideas
 ; to [email protected] .
 
+%include "config.asm"
+
 %ifndef private_prefix
     %define private_prefix dav1d
 %endif
--- a/src/x86/cdef.asm
+++ b/src/x86/cdef.asm
@@ -23,7 +23,6 @@
 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-%include "config.asm"
 %include "ext/x86/x86inc.asm"
 
 %if ARCH_X86_64
--- a/src/x86/cdef_sse.asm
+++ b/src/x86/cdef_sse.asm
@@ -24,7 +24,6 @@
 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-%include "config.asm"
 %include "ext/x86/x86inc.asm"
 
 SECTION_RODATA 16
--- a/src/x86/cpuid.asm
+++ b/src/x86/cpuid.asm
@@ -23,7 +23,6 @@
 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-%include "config.asm"
 %include "ext/x86/x86inc.asm"
 
 SECTION .text
--- a/src/x86/ipred.asm
+++ b/src/x86/ipred.asm
@@ -23,7 +23,6 @@
 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-%include "config.asm"
 %include "ext/x86/x86inc.asm"
 
 %if ARCH_X86_64
--- a/src/x86/ipred_ssse3.asm
+++ b/src/x86/ipred_ssse3.asm
@@ -23,8 +23,6 @@
 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-
-%include "config.asm"
 %include "ext/x86/x86inc.asm"
 
 SECTION_RODATA 16
--- a/src/x86/itx.asm
+++ b/src/x86/itx.asm
@@ -23,7 +23,6 @@
 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-%include "config.asm"
 %include "ext/x86/x86inc.asm"
 
 %if ARCH_X86_64
--- a/src/x86/itx_ssse3.asm
+++ b/src/x86/itx_ssse3.asm
@@ -23,7 +23,6 @@
 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-%include "config.asm"
 %include "ext/x86/x86inc.asm"
 
 
--- a/src/x86/loopfilter.asm
+++ b/src/x86/loopfilter.asm
@@ -23,7 +23,6 @@
 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-%include "config.asm"
 %include "ext/x86/x86inc.asm"
 
 %if ARCH_X86_64
--- a/src/x86/looprestoration.asm
+++ b/src/x86/looprestoration.asm
@@ -23,7 +23,6 @@
 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-%include "config.asm"
 %include "ext/x86/x86inc.asm"
 
 %if ARCH_X86_64
--- a/src/x86/looprestoration_ssse3.asm
+++ b/src/x86/looprestoration_ssse3.asm
@@ -24,7 +24,6 @@
 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-%include "config.asm"
 %include "ext/x86/x86inc.asm"
 
 SECTION_RODATA 16
--- a/src/x86/mc.asm
+++ b/src/x86/mc.asm
@@ -23,7 +23,6 @@
 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-%include "config.asm"
 %include "ext/x86/x86inc.asm"
 
 %if ARCH_X86_64
--- a/src/x86/mc_ssse3.asm
+++ b/src/x86/mc_ssse3.asm
@@ -24,7 +24,6 @@
 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-%include "config.asm"
 %include "ext/x86/x86inc.asm"
 
 SECTION_RODATA 16
--- a/src/x86/msac.asm
+++ b/src/x86/msac.asm
@@ -23,7 +23,6 @@
 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-%include "config.asm"
 %include "ext/x86/x86inc.asm"
 
 SECTION_RODATA 64 ; avoids cacheline splits