Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
motchy869 authored Jun 17, 2022
2 parents 691d565 + c912000 commit c58f6fc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
22 changes: 15 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.7.0]
## [v0.8.0] - 2022-06-17

- Fixed
- Fixed a issue in CMakeLists.txt: disable address sanitizer on Windows (GCC doesn't support it).
- outdated version macro constants `MATH_LIB_VER_...`
- Improved
- Improved CMakeLists.txt: cancel build on unknown platform.

## [v0.7.0] - 2022-03-31

- Added `setReIm`, `conjProd` function.

## [v0.6.0]
## [v0.6.0] - 2022-02-20

- Rename Bug Hunting Mode to Canary Mode.
- Added `SqrtTable`.

## [0.5.0] - 2021/9/15
## [0.5.0] - 2021-09/15

- Added `MATH_LIB_INLINE_AGGRESSIVELY` option.
- Speeded up following functions:
Expand Down Expand Up @@ -45,7 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `-Wextra`, `-Wold-style-cast`, `-Wredundant-decls`, `-Wshadow`, `-Wswitch-default`, `-Wswitch-enum` (debug/release build)
- `-fstack-protector`, `-ftrapv` (debug build)

## [0.4.0] - 2021/8/27
## [0.4.0] - 2021-08-27

- Renamed project: `MotchyMathLib` -> `MathLib`.
- Optimized `atan2_polyApprox` function to speed up on Texas Instruments DSP TMS320C6748.
Expand All @@ -60,14 +68,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `innerProd` function
- Rename `addMat_inplace`, `addVec_inplace` to `addMat`, `addVec`

## [0.3.0] - 2021/8/10
## [0.3.0] - 2021-08-10

- Add `solveLinEqHermitian` function
- Add `ldlDecomp` function
- Add Windows build support
- Add cleaning shell script `doClean.sh`

## [0.2.0] - 2021/7/29
## [0.2.0] - 2021-07-29

- Refine CMakeLists.txt
- Refine include guard macro name for `analysis.hpp`
Expand All @@ -76,7 +84,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `sin_polyApprox()` function
- Add `cos_polyApprox()` function

## [0.1.0] - 2021/7/22
## [0.1.0] - 2021-07-22

- Add `atan2_polyApprox` function
- Refine namespace
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ cmake_minimum_required(VERSION 3.18 FATAL_ERROR)

if (UNIX)
set(CMAKE_CXX_COMPILER "clang++")
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -fsanitize=address")
elseif (WIN32)
set(CMAKE_CXX_COMPILER "g++")
else ()
message(FATAL_ERROR "Unknown platform.")
endif ()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wfatal-errors -Winline -Wold-style-cast -Wredundant-decls -Wshadow -Wswitch-default -Wswitch-enum -Wundef")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -fsanitize=address -fstack-protector -ftrapv")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
string(APPEND CMAKE_CXX_FLAGS " -Wall -Wextra -Wfatal-errors -Winline -Wold-style-cast -Wredundant-decls -Wshadow -Wswitch-default -Wswitch-enum -Wundef -Wunused-variable")
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -O0 -g -fstack-protector -ftrapv")
string(APPEND CMAKE_CXX_FLAGS_RELEASE " -O3 -DNDEBUG")

# Set the project name and language.
project(MathLib CXX)
Expand Down
6 changes: 3 additions & 3 deletions include/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*/
#pragma once
#define MATH_LIB_VER_MAJOR 0
#define MATH_LIB_VER_MINOR 4
#define MATH_LIB_VER_PATCH 2
#define MATH_LIB_VER_ALPHA 1 // 0 if release version, 1 if alpha version
#define MATH_LIB_VER_MINOR 8
#define MATH_LIB_VER_PATCH 0
#define MATH_LIB_VER_ALPHA 0 // 0 if release version, 1 if alpha version
#define MATH_LIB_ENABLE_CANARY_MODE false
#define MATH_LIB_INLINE_AGGRESSIVELY true

0 comments on commit c58f6fc

Please sign in to comment.