aboutsummaryrefslogtreecommitdiff
path: root/C/CpuArch.h
diff options
context:
space:
mode:
Diffstat (limited to 'C/CpuArch.h')
-rw-r--r--C/CpuArch.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/C/CpuArch.h b/C/CpuArch.h
index d632c2b..683cfaa 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
22024-05-18 : Igor Pavlov : Public domain */ 22024-06-17 : Igor Pavlov : Public domain */
3 3
4#ifndef ZIP7_INC_CPU_ARCH_H 4#ifndef ZIP7_INC_CPU_ARCH_H
5#define ZIP7_INC_CPU_ARCH_H 5#define ZIP7_INC_CPU_ARCH_H
@@ -564,6 +564,7 @@ problem-4 : performace:
564#define SetBe32a(p, v) { *(UInt32 *)(void *)(p) = (v); } 564#define SetBe32a(p, v) { *(UInt32 *)(void *)(p) = (v); }
565#define SetBe16a(p, v) { *(UInt16 *)(void *)(p) = (v); } 565#define SetBe16a(p, v) { *(UInt16 *)(void *)(p) = (v); }
566 566
567#define GetUi64a(p) GetUi64(p)
567#define GetUi32a(p) GetUi32(p) 568#define GetUi32a(p) GetUi32(p)
568#define GetUi16a(p) GetUi16(p) 569#define GetUi16a(p) GetUi16(p)
569#define SetUi32a(p, v) SetUi32(p, v) 570#define SetUi32a(p, v) SetUi32(p, v)
@@ -571,6 +572,7 @@ problem-4 : performace:
571 572
572#elif defined(MY_CPU_LE) 573#elif defined(MY_CPU_LE)
573 574
575#define GetUi64a(p) (*(const UInt64 *)(const void *)(p))
574#define GetUi32a(p) (*(const UInt32 *)(const void *)(p)) 576#define GetUi32a(p) (*(const UInt32 *)(const void *)(p))
575#define GetUi16a(p) (*(const UInt16 *)(const void *)(p)) 577#define GetUi16a(p) (*(const UInt16 *)(const void *)(p))
576#define SetUi32a(p, v) { *(UInt32 *)(void *)(p) = (v); } 578#define SetUi32a(p, v) { *(UInt32 *)(void *)(p) = (v); }