2012-01-20 18:45:26 +01:00
|
|
|
--- src/lib/libast/features/aso
|
2012-02-20 15:35:23 +01:00
|
|
|
+++ src/lib/libast/features/aso 2012-02-20 12:09:41.065934089 +0100
|
2012-02-06 13:36:57 +01:00
|
|
|
@@ -5,7 +5,10 @@ if aso note{ gcc 4.1+ 64 bit memory atom
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
uint64_t i = 0;
|
|
|
|
- return __sync_fetch_and_add(&i,7);
|
|
|
|
+ uint32_t j = 0;
|
|
|
|
+ uint16_t l = 0;
|
|
|
|
+ uint8_t m = 0;
|
|
|
|
+ return __sync_fetch_and_add(&i,7)+__sync_fetch_and_add(&j,7)+__sync_fetch_and_add(&l,7)+__sync_fetch_and_add(&m,7);
|
|
|
|
}
|
|
|
|
}end && {
|
|
|
|
#define _aso_cas8(p,o,n) __sync_val_compare_and_swap(p,o,n)
|
2012-02-20 15:35:23 +01:00
|
|
|
@@ -31,7 +34,9 @@ elif aso note{ gcc 4.1+ 32 bit memory at
|
2012-01-20 18:45:26 +01:00
|
|
|
int main()
|
|
|
|
{
|
2012-02-20 15:35:23 +01:00
|
|
|
uint32_t i = 0;
|
2012-01-20 18:45:26 +01:00
|
|
|
- return __sync_fetch_and_add(&i,7);
|
|
|
|
+ uint16_t j = 0;
|
2012-02-06 13:36:57 +01:00
|
|
|
+ uint8_t l = 0;
|
|
|
|
+ return __sync_fetch_and_add(&i,7)+__sync_fetch_and_add(&j,7)+__sync_fetch_and_add(&l,7);
|
2012-01-20 18:45:26 +01:00
|
|
|
}
|
|
|
|
}end && {
|
|
|
|
#define _aso_cas8(p,o,n) __sync_val_compare_and_swap(p,o,n)
|