Changeset cd2c655 in rtems


Ignore:
Timestamp:
Feb 13, 2014, 1:28:50 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
945853b7
Parents:
6f90ef7
git-author:
Sebastian Huber <sebastian.huber@…> (02/13/14 13:28:50)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/14/14 09:28:30)
Message:

score: Fix warnings, C++ compatibility, fix typos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/cpustdatomic.h

    r6f90ef7 rcd2c655  
    8989)
    9090{
    91   atomic_init(object, value);
     91  atomic_init( object, value );
    9292}
    9393
     
    9797)
    9898{
    99   atomic_init(object, pointer);
     99  atomic_init( object, (uintptr_t) pointer );
    100100}
    101101
     
    113113)
    114114{
    115   return atomic_load_explicit( object, order );
     115  return atomic_load_explicit( object, (memory_order) order );
    116116}
    117117
     
    121121)
    122122{
    123   return atomic_load_explicit( object, order );
     123  return (void *) atomic_load_explicit( object, (memory_order) order );
    124124}
    125125
     
    139139)
    140140{
    141   atomic_store_explicit( object, value, order );
     141  atomic_store_explicit( object, value, (memory_order) order );
    142142}
    143143
     
    148148)
    149149{
    150   atomic_store_explicit( object, pointer, order );
     150  atomic_store_explicit( object, pointer, (memory_order) order );
    151151}
    152152
     
    166166)
    167167{
    168   return atomic_fetch_add_explicit( object, value, order );
     168  return atomic_fetch_add_explicit( object, value, (memory_order) order );
    169169}
    170170
     
    175175)
    176176{
    177   return atomic_fetch_add_explicit( object, value, order );
     177  return atomic_fetch_add_explicit( object, value, (memory_order) order );
    178178}
    179179
     
    193193)
    194194{
    195   return atomic_fetch_sub_explicit( object, value, order );
     195  return atomic_fetch_sub_explicit( object, value, (memory_order) order );
    196196}
    197197
     
    202202)
    203203{
    204   return atomic_fetch_sub_explicit( object, value, order );
     204  return atomic_fetch_sub_explicit( object, value, (memory_order) order );
    205205}
    206206
     
    220220)
    221221{
    222   return atomic_fetch_or_explicit( object, value, order );
     222  return atomic_fetch_or_explicit( object, value, (memory_order) order );
    223223}
    224224
     
    229229)
    230230{
    231   return atomic_fetch_or_explicit( object, value, order );
     231  return atomic_fetch_or_explicit( object, value, (memory_order) order );
    232232}
    233233
     
    247247)
    248248{
    249   return atomic_fetch_and_explicit( object, value, order );
     249  return atomic_fetch_and_explicit( object, value, (memory_order) order );
    250250}
    251251
     
    256256)
    257257{
    258   return atomic_fetch_and_explicit( object, value, order );
     258  return atomic_fetch_and_explicit( object, value, (memory_order) order );
    259259}
    260260
     
    274274)
    275275{
    276   return atomic_exchange_explicit( object, value, order );
     276  return atomic_exchange_explicit( object, value, (memory_order) order );
    277277}
    278278
     
    283283)
    284284{
    285   return atomic_exchange_explicit( object, pointer, pointer );
     285  return (void *) atomic_exchange_explicit(
     286    object,
     287    (uintptr_t) pointer,
     288    (memory_order) order
     289  );
    286290}
    287291
     
    329333)
    330334{
    331   return atomic_flag_clear_explicit( object, order );
     335  return atomic_flag_clear_explicit( object, (memory_order) order );
    332336}
    333337
     
    337341)
    338342{
    339   return atomic_flag_test_and_set_explicit( object, order );
     343  return atomic_flag_test_and_set_explicit( object, (memory_order) order );
    340344}
    341345
Note: See TracChangeset for help on using the changeset viewer.