2 * Copyright (c) 2009 by Takashi YOSHII. All rights reserved.
5 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
6 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
8 * Permission is hereby granted to use or copy this program
9 * for any purpose, provided the above notices are retained on all copies.
10 * Permission to modify the code and to distribute modified code is granted,
11 * provided the above notices are retained, and a notice that the code was
12 * modified is included with the above copyright notice.
15 #include "../all_atomic_load_store.h"
16 #include "../ordered.h"
18 /* sh has tas.b(byte) only */
19 #include "../test_and_set_t_is_char.h"
22 AO_test_and_set_full(volatile AO_TS_t *addr)
30 return oldval? AO_TS_CLEAR : AO_TS_SET;
32 #define AO_HAVE_test_and_set_full