Changeset a35b458 in mainline for uspace/lib/c/arch/ia64/include/libarch/atomic.h
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/ia64/include/libarch/atomic.h
r3061bc1 ra35b458 43 43 { 44 44 atomic_count_t v; 45 45 46 46 asm volatile ( 47 47 "fetchadd8.rel %[v] = %[count], 1\n" … … 54 54 { 55 55 atomic_count_t v; 56 56 57 57 asm volatile ( 58 58 "fetchadd8.rel %[v] = %[count], -1\n" … … 65 65 { 66 66 atomic_count_t v; 67 67 68 68 asm volatile ( 69 69 "fetchadd8.rel %[v] = %[count], 1\n" … … 71 71 [count] "+m" (val->count) 72 72 ); 73 73 74 74 return (v + 1); 75 75 } … … 78 78 { 79 79 atomic_count_t v; 80 80 81 81 asm volatile ( 82 82 "fetchadd8.rel %[v] = %[count], -1\n" … … 84 84 [count] "+m" (val->count) 85 85 ); 86 86 87 87 return (v - 1); 88 88 } … … 91 91 { 92 92 atomic_count_t v; 93 93 94 94 asm volatile ( 95 95 "fetchadd8.rel %[v] = %[count], 1\n" … … 97 97 [count] "+m" (val->count) 98 98 ); 99 99 100 100 return v; 101 101 } … … 104 104 { 105 105 atomic_count_t v; 106 106 107 107 asm volatile ( 108 108 "fetchadd8.rel %[v] = %[count], -1\n" … … 110 110 [count] "+m" (val->count) 111 111 ); 112 112 113 113 return v; 114 114 }
Note:
See TracChangeset
for help on using the changeset viewer.