summaryrefslogtreecommitdiff
path: root/fitz/fitz_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/fitz_base.h')
-rw-r--r--fitz/fitz_base.h28
1 files changed, 3 insertions, 25 deletions
diff --git a/fitz/fitz_base.h b/fitz/fitz_base.h
index ec1eb9fc..9563b0c9 100644
--- a/fitz/fitz_base.h
+++ b/fitz/fitz_base.h
@@ -69,33 +69,8 @@ extern int gettimeofday(struct timeval *tv, struct timezone *tz);
#endif
#endif
-/*
- * CPU detection and flags
- */
-
-#if defined(ARCH_X86) || defined(ARCH_X86_64)
-#define HAVE_CPUDEP
-#define HAVE_MMX (1<<0)
-#define HAVE_MMXEXT (1<<1)
-#define HAVE_SSE (1<<2)
-#define HAVE_SSE2 (1<<3)
-#define HAVE_SSE3 (1<<4)
-#define HAVE_3DNOW (1<<5)
-#define HAVE_AMD64 (1<<6)
#endif
-#ifdef ARCH_ARM
-#define HAVE_CPUDEP
-#endif
-
-/* call this before using fitz */
-extern void fz_cpudetect(void);
-
-/* treat as constant! */
-extern unsigned fz_cpuflags;
-
-int fz_isbigendian(void);
-
/*
* Base Fitz runtime.
*/
@@ -137,6 +112,9 @@ int fz_isbigendian(void);
#define CLAMP(x,a,b) ( (x) > (b) ? (b) : ( (x) < (a) ? (a) : (x) ) )
#endif
+/* runtime (hah!) test for endian-ness */
+int fz_isbigendian(void);
+
/* utf-8 encoding and decoding */
int chartorune(int *rune, char *str);
int runetochar(char *str, int *rune);