packages feed

MicroHs-0.17.4.0 / src / runtime / mingw / config.h

/* * Various platform specific configuration. *//* * Include stdio functions. * Without this none of the file I/O in System.IO is available. */#define WANT_STDIO 1/* * Include ops for floating point arithmetic. * Without this +,-,* etc will not be available for the Float type. */#define WANT_FLOAT32 1/* * Include ops for floating point arithmetic. * Without this +,-,* etc will not be available for the Double type. * Using this on a 32 bit platform will make cells be 12 bytes instead of 8, */#define WANT_FLOAT64 0/* * Include <math.h> * Without this, exp,sin, etc are not available. */#define WANT_MATH 1/* * Include MD5 checksumming code */#define WANT_MD5 1/* * Include profiling code */#define WANT_TICK 1/* * Number of bits in a word.  Only 32 and 64 are supported. *///#define WORD_SIZE 64/* * Find First Set * This macro must be defined. * It returns the number of the least significant bit that is set. * Numberings starts from 1.  If no bit is set, it should return 0. */#define FFS __builtin_ffsll#define POPCOUNT __builtin_popcountll#include <inttypes.h>static INLINE uint64_t clz(uint64_t x) {  if (x == 0) return 64;  return __builtin_clzll(x);}#define CLZ clzstatic INLINE uint64_t ctz(uint64_t x) {  if (x == 0) return 64;  return __builtin_ctzll(x);}#define CTZ ctz/* * This is the character used for comma-separation in printf. * Defaults to "'". *//* #define PCOMMA "'" *//* * The ERR macro should report an error and exit. * If not defined, a generic one will be used. *//* #define ERR(s,a) *//* #define ERR1(s,a) */#define GCRED    1              /* do some reductions during GC */#define INTTABLE 1              /* use fixed table of small INT nodes */#define SANITY   1              /* do some sanity checks */#define STACKOVL 1              /* check for stack overflow */