From: Steinar H. Gunderson Date: Fri, 2 Jan 2009 16:13:10 +0000 (+0100) Subject: Initialize a very crude framework for choosing the right functions at X-Git-Url: https://git.sesse.net/?p=fjl;a=commitdiff_plain;h=6d281fa9f39dd23ee8ee432cd35927b085303aa1;hp=ae2dfff94ee3302e04c37a7fd6ad3722d1babdff Initialize a very crude framework for choosing the right functions at runtime. --- 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) */