Can't use memset as HLS does not support it.