uint32_t mulAddWWW(uint32_t x,uint32_t y, uint32_t c, uint32_t *z0) {
uint32_t zz0 = x * y;
*z0 = zz0 + c;
uint32_t c1 = !!(*z0 < zz0);
return mad_hi(x, y, c1);//返回(x*y的上半部分,并且加上c1)
}
uint32_t addWW(uint32_t x, uint32_t y, uint32_t c, uint32_t *z0) {
uint32_t z1 = 0;
uint32_t yc = y + c;
*z0 = x + yc;
if (*z0 < x || yc < y) {
......................
阅读全部 | 2020年3月19日 12:34