Detect and define wordsize