summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorFelix Wallin <nibbler.v1@gmail.com>2010-09-27 10:54:56 (GMT)
committer Felix Wallin <nibbler.v1@gmail.com>2010-09-27 10:54:56 (GMT)
commit99e2782ebc8445b9ff5e63c641ab4752896962d5 (patch)
treee1ba00d6d01f808670e88d839c983f35eea732d6 /misc.h
parent58d710b22484b8c7cc9dadefd305f3506d3ff139 (diff)
downloadpowder-99e2782ebc8445b9ff5e63c641ab4752896962d5.zip
powder-99e2782ebc8445b9ff5e63c641ab4752896962d5.tar.gz
Try to automerge with this, haha
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h72
1 files changed, 0 insertions, 72 deletions
diff --git a/misc.h b/misc.h
deleted file mode 100644
index 1394687..0000000
--- a/misc.h
+++ /dev/null
@@ -1,72 +0,0 @@
-#ifndef UTILS_H
-#define UTILS_H
-#include <stdio.h>
-#include <stdlib.h>
-
-#ifdef WIN32
-#define x86_cpuid(func,af,bf,cf,df) \
- do {\
- __asm mov eax, func\
- __asm cpuid\
- __asm mov af, eax\
- __asm mov bf, ebx\
- __asm mov cf, ecx\
- __asm mov df, edx\
- } while(0)
-#else
-#define x86_cpuid(func,af,bf,cf,df) \
-__asm__ __volatile ("cpuid":\
- "=a" (af), "=b" (bf), "=c" (cf), "=d" (df) : "a" (func));
-#endif
-
-static char hex[] = "0123456789ABCDEF";
-//Signum function
-#ifdef WIN32
-extern _inline int isign(float i);
-#else
-extern inline int isign(float i);
-#endif
-
-#ifdef WIN32
-extern _inline unsigned clamp_flt(float f, float min, float max);
-#else
-extern inline unsigned clamp_flt(float f, float min, float max);
-#endif
-
-#ifdef WIN32
-extern _inline float restrict_flt(float f, float min, float max);
-#else
-extern inline float restrict_flt(float f, float min, float max);
-#endif
-
-char *mystrdup(char *s);
-
-struct strlist
-{
- char *str;
- struct strlist *next;
-};
-
-void strlist_add(struct strlist **list, char *str);
-
-int strlist_find(struct strlist **list, char *str);
-
-void strlist_free(struct strlist **list);
-
-void save_presets(int do_update);
-
-void load_presets(void);
-
-void save_string(FILE *f, char *str);
-
-int load_string(FILE *f, char *str, int max);
-
-void strcaturl(char *dst, char *src);
-
-void strappend(char *dst, char *src);
-
-void *file_load(char *fn, int *size);
-
-int cpu_check(void);
-
-#endif \ No newline at end of file