Fix assembly (don't think this bug ever bit, but it could)

This commit is contained in:
Steven Robertson 2011-05-29 15:20:58 -04:00
parent daf56ffc53
commit cd1f905ca3

View File

@ -21,7 +21,7 @@ __device__ uint32_t mwc_next(mwc_st *st) {
"cvt.u64.u32 val, %0;\n\t" "cvt.u64.u32 val, %0;\n\t"
"mad.wide.u32 val, %1, %2, val;\n\t" "mad.wide.u32 val, %1, %2, val;\n\t"
"mov.b64 {%1, %0}, val;\n\t}\n\t" "mov.b64 {%1, %0}, val;\n\t}\n\t"
: "=r"(st->carry), "=r"(st->state) : "r"(st->mul)); : "+r"(st->carry), "+r"(st->state) : "r"(st->mul));
return st->state; return st->state;
} }