x86: h264_weight: port to cpuflags