aboutsummaryrefslogtreecommitdiff
path: root/C/CpuArch.h
diff options
context:
space:
mode:
authorIgor Pavlov <87184205+ip7z@users.noreply.github.com>2022-07-16 00:00:00 +0000
committerIgor Pavlov <87184205+ip7z@users.noreply.github.com>2023-12-17 14:35:38 +0500
commit93be7d4abfd4233228f58ee1fbbcd76d91be66a4 (patch)
tree9b11631a70ca7150321838d9d6bd473e52d6684d /C/CpuArch.h
parenta3e1d227377188734b82f023f96f8e25dc40f3e6 (diff)
download7zip-93be7d4abfd4233228f58ee1fbbcd76d91be66a4.tar.gz
7zip-93be7d4abfd4233228f58ee1fbbcd76d91be66a4.tar.bz2
7zip-93be7d4abfd4233228f58ee1fbbcd76d91be66a4.zip
22.0122.01
Diffstat (limited to 'C/CpuArch.h')
-rw-r--r--C/CpuArch.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/C/CpuArch.h b/C/CpuArch.h
index 529d3a5..4856fbb 100644
--- a/C/CpuArch.h
+++ b/C/CpuArch.h
@@ -1,5 +1,5 @@
1/* CpuArch.h -- CPU specific code 1/* CpuArch.h -- CPU specific code
22021-07-13 : Igor Pavlov : Public domain */ 22022-07-15 : Igor Pavlov : Public domain */
3 3
4#ifndef __CPU_ARCH_H 4#ifndef __CPU_ARCH_H
5#define __CPU_ARCH_H 5#define __CPU_ARCH_H
@@ -123,12 +123,15 @@ MY_CPU_64BIT means that processor can work with 64-bit registers.
123#endif 123#endif
124 124
125 125
126#if defined(__sparc64__) 126#if defined(__riscv) \
127 #define MY_CPU_NAME "sparc64" 127 || defined(__riscv__)
128 #define MY_CPU_64BIT 128 #if __riscv_xlen == 32
129#elif defined(__sparc__) 129 #define MY_CPU_NAME "riscv32"
130 #define MY_CPU_NAME "sparc" 130 #elif __riscv_xlen == 64
131 /* #define MY_CPU_32BIT */ 131 #define MY_CPU_NAME "riscv64"
132 #else
133 #define MY_CPU_NAME "riscv"
134 #endif
132#endif 135#endif
133 136
134 137