mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
2a0167adfe
tccgen.c: - cleanup __builtin_... stuff - merge __attribute((alias("sym"))) with __asm__("sym") Now one cannot have both, however for alias underscores are added if enabled. For __asm__ they aren't. tccpp.c: - extend tcc_predefs accordingly. Was generated with 'cd tests/misc && tcc -run c2str.c tcc_predef.h tcc_predefs' xxx-gen.c: - move bcheck setjmp test to tccgen.c:gbound_args() i386-gen.c: - create win32 compatible stack space for big structures tcctest.c: - some cleanup + nicer output
57 lines
810 B
Plaintext
57 lines
810 B
Plaintext
18/21=0
|
|
18%21=18
|
|
41/21=1
|
|
41%21=20
|
|
42/21=2
|
|
42%21=0
|
|
43/21=2
|
|
43%21=1
|
|
126/21=6
|
|
126%21=0
|
|
131/21=6
|
|
131%21=5
|
|
(UINT_MAX/2+3)/2=1073741825
|
|
(UINT_MAX/2+3)%2=0
|
|
18/-21=0
|
|
18%-21=18
|
|
41/-21=4294967295
|
|
41%-21=20
|
|
42/-21=4294967294
|
|
42%-21=0
|
|
43/-21=4294967294
|
|
43%-21=1
|
|
126/-21=4294967290
|
|
126%-21=0
|
|
131/-21=4294967290
|
|
131%-21=5
|
|
(UINT_MAX/2+3)/-2=0
|
|
(UINT_MAX/2+3)%-2=2147483650
|
|
-18/21=0
|
|
-18%21=4294967278
|
|
-41/21=4294967295
|
|
-41%21=4294967276
|
|
-42/21=4294967294
|
|
-42%21=0
|
|
-43/21=4294967294
|
|
-43%21=4294967295
|
|
-126/21=4294967290
|
|
-126%21=0
|
|
-131/21=4294967290
|
|
-131%21=4294967291
|
|
-(UINT_MAX/2+3)/2=1073741823
|
|
-(UINT_MAX/2+3)%2=0
|
|
-18/-21=0
|
|
-18%-21=4294967278
|
|
-41/-21=1
|
|
-41%-21=4294967276
|
|
-42/-21=2
|
|
-42%-21=0
|
|
-43/-21=2
|
|
-43%-21=4294967295
|
|
-126/-21=6
|
|
-126%-21=0
|
|
-131/-21=6
|
|
-131%-21=4294967291
|
|
-(UINT_MAX/2+3)/-2=0
|
|
-(UINT_MAX/2+3)%-2=2147483646
|