Changeset 29f7d317 in rtems for testsuites/smptests/smpatomic01


Ignore:
Timestamp:
Sep 2, 2013, 1:08:05 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
3bac8a4c
Parents:
0c47440
git-author:
Sebastian Huber <sebastian.huber@…> (09/02/13 13:08:05)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/03/13 09:07:36)
Message:

score: Use unsigned long for atomic integers

Use unsigned long instead of uint_fast32_t since C11 provides only a
ATOMIC_LONG_LOCK_FREE macro constant. This makes it also possible to
use properly typed integer literals like 123UL. It is now clear which
compatible type should be used for the atomic integer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpatomic01/tasks.c

    r0c47440 r29f7d317  
    5353  /* Print that the task is up and running. */
    5454  /* test relaxed barrier */
    55   ATOMIC_LOAD_NO_BARRIER(uint, Uint, uint_fast32_t, cpu_num, ATOMIC_ORDER_RELAXED);
     55  ATOMIC_LOAD_NO_BARRIER(ulong, Ulong, unsigned long, cpu_num, ATOMIC_ORDER_RELAXED);
    5656
    5757  ATOMIC_LOAD_NO_BARRIER(ptr, Pointer, uintptr_t, cpu_num, ATOMIC_ORDER_RELAXED);
    5858
    5959  /* test acquire barrier */
    60   ATOMIC_LOAD_NO_BARRIER(uint, Uint, uint_fast32_t, cpu_num, ATOMIC_ORDER_ACQUIRE);
     60  ATOMIC_LOAD_NO_BARRIER(ulong, Ulong, unsigned long, cpu_num, ATOMIC_ORDER_ACQUIRE);
    6161
    6262  ATOMIC_LOAD_NO_BARRIER(ptr, Pointer, unsigned long, cpu_num, ATOMIC_ORDER_ACQUIRE);
Note: See TracChangeset for help on using the changeset viewer.