Changeset 14174


Ignore:
Timestamp:
Nov 25, 2019 9:12:46 PM (2 weeks ago)
Author:
Jonathan Kämpe
Message:

#5883 Updated assign macro to use memcpy instead of for loop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-jk-2720/RuntimeLibrary/src/jmi/jmi_array_none.h

    r12767 r14174  
    351351#define JMI_ASG_GEN(DEST, SRC) \
    352352    DEST = SRC;
    353 #define JMI_ASG_GEN_ARR(DEST, SRC) \
    354     { \
    355       int i; \
    356       for (i = 1; i <= DEST->num_elems; i++) { \
    357         jmi_array_ref_1(DEST,i) = jmi_array_val_1(SRC,i); \
    358       }\
    359     }
     353#define JMI_ASG_GEN_ARR(DEST, SRC) memcpy(DEST->var, SRC->var, DEST->num_elems*sizeof(jmi_real_t));
    360354
    361355/* Assign string not in z vector */
Note: See TracChangeset for help on using the changeset viewer.