|
@@ -23,9 +23,9 @@ int main (int argc, char ** argv, char ** envp)
|
|
|
atomic_sub(INT_MIN, &a_int);
|
|
|
|
|
|
if (my_int == atomic_read(&a_int))
|
|
|
- pal_printf("Subtract INT_MIN: Both values match %lld\n", my_int);
|
|
|
+ pal_printf("Subtract INT_MIN: Both values match %ld\n", my_int);
|
|
|
else
|
|
|
- pal_printf("Subtract INT_MIN: Values do not match %lld, %lld\n", my_int, atomic_read(&a_int));
|
|
|
+ pal_printf("Subtract INT_MIN: Values do not match %ld, %ld\n", my_int, atomic_read(&a_int));
|
|
|
|
|
|
atomic_set(&a_int, 0);
|
|
|
my_int = 0;
|
|
@@ -34,9 +34,9 @@ int main (int argc, char ** argv, char ** envp)
|
|
|
atomic_sub(INT_MAX, &a_int);
|
|
|
|
|
|
if (my_int == atomic_read(&a_int))
|
|
|
- pal_printf("Subtract INT_MAX: Both values match %lld\n", my_int);
|
|
|
+ pal_printf("Subtract INT_MAX: Both values match %ld\n", my_int);
|
|
|
else
|
|
|
- pal_printf("Subtract INT_MAX: Values do not match %lld, %lld\n", my_int, atomic_read(&a_int));
|
|
|
+ pal_printf("Subtract INT_MAX: Values do not match %ld, %ld\n", my_int, atomic_read(&a_int));
|
|
|
|
|
|
/* Check that 64-bit signed values also wrap properly. */
|
|
|
atomic_set(&a_int, 0);
|
|
@@ -46,9 +46,9 @@ int main (int argc, char ** argv, char ** envp)
|
|
|
atomic_sub(LLONG_MIN, &a_int);
|
|
|
|
|
|
if (my_int == atomic_read(&a_int))
|
|
|
- pal_printf("Subtract LLONG_MIN: Both values match %lld\n", my_int);
|
|
|
+ pal_printf("Subtract LLONG_MIN: Both values match %ld\n", my_int);
|
|
|
else
|
|
|
- pal_printf("Subtract LLONG_MIN: Values do not match %lld, %lld\n", my_int, atomic_read(&a_int));
|
|
|
+ pal_printf("Subtract LLONG_MIN: Values do not match %ld, %ld\n", my_int, atomic_read(&a_int));
|
|
|
|
|
|
atomic_set(&a_int, 0);
|
|
|
my_int = 0;
|
|
@@ -57,9 +57,9 @@ int main (int argc, char ** argv, char ** envp)
|
|
|
atomic_sub(LLONG_MAX, &a_int);
|
|
|
|
|
|
if (my_int == atomic_read(&a_int))
|
|
|
- pal_printf("Subtract LLONG_MAX: Both values match %lld\n", my_int);
|
|
|
+ pal_printf("Subtract LLONG_MAX: Both values match %ld\n", my_int);
|
|
|
else
|
|
|
- pal_printf("Subtract LLONG_MAX: Values do not match %lld, %lld\n", my_int, atomic_read(&a_int));
|
|
|
+ pal_printf("Subtract LLONG_MAX: Values do not match %ld, %ld\n", my_int, atomic_read(&a_int));
|
|
|
|
|
|
|
|
|
return 0;
|