2022-07-24 15:57:12 +00:00
|
|
|
|
|
|
|
// Standard Headers
|
|
|
|
#include <assert.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <fenv.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
#include <limits.h>
|
|
|
|
#include <locale.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <stdarg.h>
|
2022-08-05 03:00:32 +00:00
|
|
|
#include <stdatomic.h>
|
2022-07-24 15:57:12 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <threads.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <uchar.h>
|
|
|
|
#include <wchar.h>
|
|
|
|
#include <wctype.h>
|
|
|
|
|
2022-07-30 05:15:11 +00:00
|
|
|
// Intrinsics
|
|
|
|
#if !defined(__FMA__)
|
2022-07-31 09:11:28 +00:00
|
|
|
#if !defined(_MSC_VER)
|
|
|
|
#error "Get a better CPU (the kind that supports FMA) or enable -mfma"
|
|
|
|
#endif
|
2022-07-30 05:15:11 +00:00
|
|
|
#endif
|
|
|
|
// xmmintrin.h depends on mm_malloc.h, which itself includes other CRT headers
|
|
|
|
// Which introduces compiler errors. Actually does it really matter? I would
|
|
|
|
// need to check again
|
|
|
|
#undef __STDC_HOSTED__
|
|
|
|
#include <immintrin.h>
|
|
|
|
#include <xmmintrin.h>
|
|
|
|
|
|
|
|
#include "intrin.h"
|
|
|
|
|
2022-07-24 15:57:12 +00:00
|
|
|
// Dependencies
|
|
|
|
#include "fdec64/fdec64.h"
|
|
|
|
#include "unicope/inc/unicope.h"
|
|
|
|
|
|
|
|
// Platform-independent stuff
|
|
|
|
#include "fmt/gen_fmt.c"
|
|
|
|
#include "math/basic.c"
|
|
|
|
#include "math/division.c"
|
|
|
|
#include "math/gen_math.c"
|
|
|
|
#include "math/ieee754.c"
|
|
|
|
#include "math/round.c"
|
|
|
|
#include "stdlib/algorithm.c"
|
|
|
|
#include "stdlib/conversion.c"
|
|
|
|
#include "stdlib/multibyte.c"
|
|
|
|
#include "stdlib/random.c"
|
|
|
|
#include "ctype.c"
|
|
|
|
#include "errno.c"
|
|
|
|
#include "fenv.c"
|
|
|
|
#include "locale.c"
|
|
|
|
#include "string.c"
|
|
|
|
#include "uchar.c"
|
2022-08-05 04:00:54 +00:00
|
|
|
#include "wchar.c"
|
2022-07-24 15:57:12 +00:00
|
|
|
#include "wctype.c"
|
|
|
|
|
|
|
|
// Windows stuff
|
|
|
|
#if defined(CIABATTA_WIN)
|
|
|
|
#include "_win/win.h"
|
|
|
|
#include "_win/assert.c"
|
|
|
|
#include "_win/environment.c"
|
|
|
|
#include "_win/heap.c"
|
|
|
|
#include "_win/signal.c"
|
|
|
|
#include "_win/stdio.c"
|
|
|
|
#include "_win/threads.c"
|
|
|
|
#include "_win/time.c"
|
|
|
|
#endif
|