diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-01-30 11:18:39 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-01-30 11:18:39 +0100 |
commit | 0042a0da85c2bd0d321e1e6ec22dfe0330ba6b9b (patch) | |
tree | cbf22fefafa1b891875743e741826cfad8fab5a2 /cas.c | |
parent | 4e1cc10bb6763bb034acab3e12b6dce0d5570386 (diff) | |
download | lock_free-0042a0da85c2bd0d321e1e6ec22dfe0330ba6b9b.zip lock_free-0042a0da85c2bd0d321e1e6ec22dfe0330ba6b9b.tar.gz |
code cleanup
Diffstat (limited to 'cas.c')
-rw-r--r-- | cas.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* * File : cas.c * Author : Jérémy Zurcher <jeremy@asynk.ch> - * Date : 01/11/09 + * Date : 2009/11/01 * License : * * Permission is hereby granted, free of charge, to any person obtaining @@ -75,6 +75,12 @@ int main( int argc, char*argv[], char*env[] ) _check((_hi_eq(mem,&v5)),"3 hi value is wrong"); _check((_lo_eq(mem,&v1)),"3 lo value is wrong"); + _hi(old_val,&v1); _lo(old_val,&v2); + _hi(mem,&v4); _lo(mem,&v5); + mem = old_val; + _check((_hi_eq(mem,&v1)),"4 lo value is wrong"); + _check((_lo_eq(mem,&v2)),"4 lo value is wrong"); + printf("success\n"); return EXIT_SUCCESS; |