Initialize a very crude framework for choosing the right functions at
authorSteinar H. Gunderson <sesse@debian.org>
Fri, 2 Jan 2009 16:13:10 +0000 (17:13 +0100)
committerSteinar H. Gunderson <sesse@debian.org>
Fri, 2 Jan 2009 16:13:10 +0000 (17:13 +0100)
runtime.

choice.c [new file with mode: 0644]
choice.h [new file with mode: 0644]

diff --git a/choice.c b/choice.c
new file mode 100644 (file)
index 0000000..7ddcd13
--- /dev/null
+++ b/choice.c
@@ -0,0 +1,9 @@
+#include "choice.h"
+
+unstuff_func_t* unstuff_choice = NULL;
+
+void init_choices()
+{
+       // TODO: Pick the SSE4.1 version if applicable.
+       unstuff_choice = unstuff_fast;
+}
diff --git a/choice.h b/choice.h
new file mode 100644 (file)
index 0000000..29467c4
--- /dev/null
+++ b/choice.h
@@ -0,0 +1,10 @@
+#ifndef _CHOICE_H
+#define _CHOICE_H
+
+#include "unstuff.h"
+
+extern unstuff_func_t* unstuff_choice;
+
+void init_choices();
+
+#endif /* !defined(_CHOICE_H) */