Changeset 5b12dbb in mainline


Ignore:
Timestamp:
2018-07-05T21:41:25Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
73401643
Parents:
dfadf7e
git-author:
Dzejrou <dzejrou@…> (2018-06-28 19:40:08)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:25)
Message:

cpp: fixed a type in the cmp and swap macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/src/__bits/glue.cpp

    rdfadf7e r5b12dbb  
    3838 * the compiler, so we need to define stubs for our library
    3939 * to compile on this architecture.
     40 * TODO: make this synchronized
    4041 */
    4142extern "C"
     
    5354
    5455#define LIBCPP_GLUE_CMP_AND_SWAP(TYPE, SIZE) \
    55     TYPE __sync_compare_and_swap_##SIZE (TYPE* ptr, TYPE old_val, TYPE new_val) \
     56    TYPE __sync_val_compare_and_swap_##SIZE (TYPE* ptr, TYPE old_val, TYPE new_val) \
    5657    { \
    5758        if (*ptr == old_val) \
Note: See TracChangeset for help on using the changeset viewer.