From 6d281fa9f39dd23ee8ee432cd35927b085303aa1 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 2 Jan 2009 17:13:10 +0100 Subject: [PATCH] Initialize a very crude framework for choosing the right functions at runtime. --- choice.c | 9 +++++++++ choice.h | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 choice.c create mode 100644 choice.h diff --git a/choice.c b/choice.c new file mode 100644 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 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) */ -- 2.39.2