Commits

Armin Rigo committed a89a61f

Implement stm_read_int{8f,4f}.

Comments (0)

Files changed (1)

pypy/translator/stm/src_stm/et.c

   oreclist_insert(&d->reads, (orec_t*)o);
 
 
-#define STM_READ_WORD(SIZE, TYPE)                                       \
-TYPE stm_read_int##SIZE(void* addr, long offset)                        \
+#define STM_READ_WORD(SIZE, SUFFIX, TYPE)                               \
+TYPE stm_read_int##SIZE##SUFFIX(void* addr, long offset)                \
 {                                                                       \
   struct tx_descriptor *d = active_thread_descriptor;                   \
   volatile orec_t *o = get_orec(addr);                                  \
   return tmp;                                                           \
 }
 
-STM_READ_WORD(1, char)
-STM_READ_WORD(2, short)
-STM_READ_WORD(4, int)
-STM_READ_WORD(8, long long)
+STM_READ_WORD(1, , char)
+STM_READ_WORD(2, , short)
+STM_READ_WORD(4, , int)
+STM_READ_WORD(8, , long long)
+STM_READ_WORD(8,f, double)
+STM_READ_WORD(4,f, float)
 
 void stm_copy_transactional_to_raw(void *src, void *dst, long size)
 {