added check for int32 value range to 4-at-once perlin calculation