summaryrefslogtreecommitdiffstats
path: root/cas.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-01-26 23:25:48 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-01-26 23:25:48 +0100
commita7c0c9c45c8a1f22986e45cab1c29ab7c9792487 (patch)
treed3cc968876eabf17a285dfcea9bbcddf810cdd42 /cas.c
parente67d01ffba6ea88b66b1563e57a9bc4dac0dffa9 (diff)
downloadlock_free-a7c0c9c45c8a1f22986e45cab1c29ab7c9792487.zip
lock_free-a7c0c9c45c8a1f22986e45cab1c29ab7c9792487.tar.gz
code style
Diffstat (limited to 'cas.c')
-rw-r--r--cas.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/cas.c b/cas.c
index c5e4411..6e9ac3b 100644
--- a/cas.c
+++ b/cas.c
@@ -31,11 +31,11 @@
static void _check(int cond, const char *msg)
{
- if(!cond)
- {
+ if(!cond)
+ {
fprintf(stderr,"%s\n",msg);
exit(EXIT_FAILURE);
- }
+ }
}
int main( int argc, char*argv[], char*env[] )
@@ -46,13 +46,13 @@ int main( int argc, char*argv[], char*env[] )
cas_pointer_t mem, old_val, new_val;
if((int)sizeof(cas_pointer_t)==16)
- {
- printf("running _x86_64_ code\n");
- }
+ {
+ printf("running _x86_64_ code\n");
+ }
if((int)sizeof(cas_pointer_t)==8)
- {
- printf("running i686 code\n");
- }
+ {
+ printf("running i686 code\n");
+ }
_hi(old_val,&v1); _lo(old_val,&v2);
_hi(new_val,&v3); _lo(new_val,&v4);