diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-01-26 23:25:48 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-01-26 23:25:48 +0100 |
commit | a7c0c9c45c8a1f22986e45cab1c29ab7c9792487 (patch) | |
tree | d3cc968876eabf17a285dfcea9bbcddf810cdd42 /cas.c | |
parent | e67d01ffba6ea88b66b1563e57a9bc4dac0dffa9 (diff) | |
download | lock_free-a7c0c9c45c8a1f22986e45cab1c29ab7c9792487.zip lock_free-a7c0c9c45c8a1f22986e45cab1c29ab7c9792487.tar.gz |
code style
Diffstat (limited to 'cas.c')
-rw-r--r-- | cas.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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); |