add word-sized ctz function to atomic.h