------- Comment #12 from pinskia at gcc dot gnu dot org 2006-09-21 03:37 ------- Actually note here is one for 32bit targets also: void foo( unsigned long long bb, unsigned short tn, unsigned e, unsigned* w ); void foo( unsigned long long bb, unsigned short tn, unsigned e, unsigned* w ) { unsigned n = tn + bb; do { e = (e > n) ? e : *w; n -= (e > n) ? n : e; if (*w) *w = 0; } while ( n ); } int main() { unsigned w = 0; foo( 0, 0, 0, &w ); return 0; }
-- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |blocker GCC build triplet|x86-64-linux | GCC host triplet|x86-64-linux | GCC target triplet|x86-64-linux | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28230