expw should be copied in to each thread (because it's initialized to zero)