Re: sparc implementation

From: Paul H. Hargrove (PHHargrove_at_lbl_dot_gov)
Date: Tue Sep 02 2008 - 20:07:51 PDT

  • Next message: Adolfo J. Banchio: "Re: blcr 0.7.3: core dump file"
    Paul H. Hargrove wrote:
    [snip]
    > CR_INLINE unsigned int
    > __cri_atomic_add_fetch(cri_atomic_t *p, unsigned int op)
    > {
    >    unsigned long oldval, newval;
    >    do {
    >        oldval = cri_atomic_read(p);
    >        newval = oldval + op;
    >    } while (!cri_cmp_swap(p, oldval, newval));
    >    return newval;
    > }
    [snip]
    
    Oops.  The line quoted above that reads
        unsigned long oldval, newval;
    should have read
       unsigned int oldval, newval;
    
    -Paul
    
    -- 
    Paul H. Hargrove                          PHHargrove_at_lbl_dot_gov
    Future Technologies Group                 
    HPC Research Department                   Tel: +1-510-495-2352
    Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
    

  • Next message: Adolfo J. Banchio: "Re: blcr 0.7.3: core dump file"