History

Ignore _unaligned and __unaligned. Required >15years ago, but still present in old code

These extensions where used by other compiler to generate different code on old cpu's (arm and x86 before pentium/pentiumpro) to prevent processor exceptions / very high delays when accessing an unaligned pointer. -- Regards ... Detlef

Detlef Riekenberg committed 3 years ago

Commit afa05ca1 parent 95aab7d1 file · +5 −1Browse files

Showing the changes to include (1 of 1 file). Show all

Unified · Split

include/tccdefs.h+5−1
@@ -68,7 +68,11 @@ · 67 unmodified lines
6868 #define __WINT_TYPE__ int
6969 #endif
7070
71− #if __STDC_VERSION__ == 201112L
71+ /* extension to generate different code on old cpu's (>20y ago) */
72+ #define _unaligned
73+ #define __unaligned
74+
75+ #if __STDC_VERSION__ >= 201112L
7276 # define __STDC_NO_ATOMICS__ 1
7377 # define __STDC_NO_COMPLEX__ 1
7478 # define __STDC_NO_THREADS__ 1

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t