]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/d/dmd/root/port.h
2 /* Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved
3 * http://www.digitalmars.com
4 * Distributed under the Boost Software License, Version 1.0.
5 * http://www.boost.org/LICENSE_1_0.txt
6 * https://github.com/dlang/dmd/blob/master/src/dmd/root/port.h
11 // Portable wrapper around compiler/system specific things.
12 // The idea is to minimize #ifdef's in the app code.
14 #include "dsystem.h" // for alloca
17 typedef __int64 longlong
;
18 typedef unsigned __int64 ulonglong
;
20 typedef long long longlong
;
21 typedef unsigned long long ulonglong
;
24 typedef unsigned char utf8_t
;
28 static int memicmp(const char *s1
, const char *s2
, size_t n
);
29 static char *strupr(char *s
);
31 static bool isFloat32LiteralOutOfRange(const char *s
);
32 static bool isFloat64LiteralOutOfRange(const char *s
);
34 static void writelongLE(unsigned value
, void *buffer
);
35 static unsigned readlongLE(const void *buffer
);
36 static void writelongBE(unsigned value
, void *buffer
);
37 static unsigned readlongBE(const void *buffer
);
38 static unsigned readwordLE(const void *buffer
);
39 static unsigned readwordBE(const void *buffer
);
40 static void valcpy(void *dst
, uint64_t val
, size_t size
);