Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/cpu.h
diff options
context:
space:
mode:
authorHenrik Gramner <gramner@twoorioles.com>2018-09-28 12:20:35 +0300
committerMarvin Scholz <epirat07@gmail.com>2018-09-28 19:12:56 +0300
commitf2ee7a2a430992816e20b9d3a364492abf8fbdb8 (patch)
treee0547bbffd3b6888336f9d58b0631b123c6b3cd9 /src/cpu.h
parentd6e9cb0603817437aea15849228255661e19b2b6 (diff)
Add 'checkasm' asm testing/benchmarking framework
Some of the code originally written by, or based by code written by, the following authors who have agreed to relicense it to 2-clause BSD: Anton Mitrofanov Diego Biurrun Janne Grunau Loren Merritt Luca Barbato Martin Storsjö Michael Niedermayer
Diffstat (limited to 'src/cpu.h')
-rw-r--r--src/cpu.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/cpu.h b/src/cpu.h
new file mode 100644
index 0000000..01e5d4a
--- /dev/null
+++ b/src/cpu.h
@@ -0,0 +1,40 @@
+/*
+ * Copyright © 2018, VideoLAN and dav1d authors
+ * Copyright © 2018, Two Orioles, LLC
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef __DAV1D_SRC_CPU_H__
+#define __DAV1D_SRC_CPU_H__
+
+#include "config.h"
+
+#if ARCH_X86
+#include "src/x86/cpu.h"
+#else
+#define dav1d_get_cpu_flags 0
+#define dav1d_set_cpu_flags_mask(mask) while (0)
+#endif
+
+#endif /* __DAV1D_SRC_CPU_H__ */