changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/cmd/gs/default.arm64.h

revision 7192: 4dc782a90f0b
     1.1new file mode 100644
     1.2--- /dev/null
     1.3+++ b/sys/src/cmd/gs/default.arm64.h
     1.4@@ -0,0 +1,44 @@
     1.5+/* Parameters derived from machine and compiler architecture */
     1.6+
     1.7+	 /* ---------------- Scalar alignments ---------------- */
     1.8+
     1.9+#define ARCH_ALIGN_SHORT_MOD 2
    1.10+#define ARCH_ALIGN_INT_MOD 4
    1.11+#define ARCH_ALIGN_LONG_MOD 4
    1.12+#define ARCH_ALIGN_PTR_MOD 8
    1.13+#define ARCH_ALIGN_FLOAT_MOD 4
    1.14+#define ARCH_ALIGN_DOUBLE_MOD 8
    1.15+#define ARCH_ALIGN_STRUCT_MOD 8
    1.16+
    1.17+	 /* ---------------- Scalar sizes ---------------- */
    1.18+
    1.19+#define ARCH_LOG2_SIZEOF_SHORT 1
    1.20+#define ARCH_LOG2_SIZEOF_INT 2
    1.21+#define ARCH_LOG2_SIZEOF_LONG 2
    1.22+#define ARCH_LOG2_SIZEOF_LONG_LONG 3
    1.23+#define ARCH_SIZEOF_PTR 8
    1.24+#define ARCH_SIZEOF_FLOAT 4
    1.25+#define ARCH_SIZEOF_DOUBLE 8
    1.26+#define ARCH_FLOAT_MANTISSA_BITS 24
    1.27+#define ARCH_DOUBLE_MANTISSA_BITS 53
    1.28+
    1.29+	 /* ---------------- Unsigned max values ---------------- */
    1.30+
    1.31+#define ARCH_MAX_UCHAR ((unsigned char)0xff + (unsigned char)0)
    1.32+#define ARCH_MAX_USHORT ((unsigned short)0xffff + (unsigned short)0)
    1.33+#define ARCH_MAX_UINT ((unsigned int)~0 + (unsigned int)0)
    1.34+#define ARCH_MAX_ULONG ((unsigned long)~0L + (unsigned long)0)
    1.35+
    1.36+	 /* ---------------- Cache sizes ---------------- */
    1.37+
    1.38+#define ARCH_CACHE1_SIZE 1048576
    1.39+#define ARCH_CACHE2_SIZE 1048576
    1.40+
    1.41+	 /* ---------------- Miscellaneous ---------------- */
    1.42+
    1.43+#define ARCH_IS_BIG_ENDIAN 0
    1.44+#define ARCH_PTRS_ARE_SIGNED 0
    1.45+#define ARCH_FLOATS_ARE_IEEE 1
    1.46+#define ARCH_ARITH_RSHIFT 2
    1.47+#define ARCH_CAN_SHIFT_FULL_LONG 1
    1.48+#define ARCH_DIV_NEG_POS_TRUNCATES 1