From 0f5fcfdba988427a168991c0d97c0deda2d727f9 Mon Sep 17 00:00:00 2001 From: fumiama Date: Fri, 29 Oct 2021 14:29:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 32/CMakeLists.txt | 1 + 32/base14.h | 2 +- 64/CMakeLists.txt | 1 + 64/base14.h | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/32/CMakeLists.txt b/32/CMakeLists.txt index 9aa3d73..307faf0 100644 --- a/32/CMakeLists.txt +++ b/32/CMakeLists.txt @@ -1,6 +1,7 @@ cmake_minimum_required(VERSION 3.0.0) project(base1432 VERSION 2.0) SET(CMAKE_BUILD_TYPE "Release") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native") add_library(base1432 STATIC base14.c) add_library(base14 SHARED base14.c) diff --git a/32/base14.h b/32/base14.h index 2530946..2d1f7da 100644 --- a/32/base14.h +++ b/32/base14.h @@ -2,7 +2,7 @@ //fumiama 20210408 #include -#define B14BUFSIZ 8192 +#define B14BUFSIZ 1024*1024 // 1M struct LENDAT { uint8_t* data; int32_t len; diff --git a/64/CMakeLists.txt b/64/CMakeLists.txt index 3b2730e..d6da116 100644 --- a/64/CMakeLists.txt +++ b/64/CMakeLists.txt @@ -1,6 +1,7 @@ cmake_minimum_required(VERSION 3.0.0) project(base1464 VERSION 2.0) SET(CMAKE_BUILD_TYPE "Release") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native") add_library(base1464 STATIC base14.c) add_library(base14 SHARED base14.c) diff --git a/64/base14.h b/64/base14.h index ce9eb6a..9116eed 100644 --- a/64/base14.h +++ b/64/base14.h @@ -2,7 +2,7 @@ //fumiama 20210408 #include -#define B14BUFSIZ 16384 +#define B14BUFSIZ 1024*1024 // 1M struct LENDAT { uint8_t* data; int64_t len;