From 132809560343623d314d691f439040bbed836f9d Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Sat, 29 Jun 2024 14:05:03 -0400 Subject: [PATCH] add gnu attributes --- CMakeLists.txt | 2 +- include/blt/std/utility.h | 4 ++++ libraries/parallel-hashmap | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 58beada..dfb2ddf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 0.17.20) +set(BLT_VERSION 0.17.21) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/include/blt/std/utility.h b/include/blt/std/utility.h index c2c46bd..501ad95 100644 --- a/include/blt/std/utility.h +++ b/include/blt/std/utility.h @@ -94,12 +94,16 @@ namespace blt #if defined(__GNUC__) || defined(__llvm__) #define BLT_ATTRIB_NO_INLINE __attribute__ ((noinline)) + #define BLT_ATTRIB_CONST __attribute__((const)) + #define BLT_ATTRIB_PURE __attribute__((pure)) #else #if defined(_MSC_VER) && !defined(__INTEL_COMPILER) #define BLT_ATTRIB_NO_INLINE __declspec(noinline) #else #define BLT_ATTRIB_NO_INLINE #endif + #define BLT_ATTRIB_CONST + #define BLT_ATTRIB_PURE #endif template diff --git a/libraries/parallel-hashmap b/libraries/parallel-hashmap index 1036816..d88c5e1 160000 --- a/libraries/parallel-hashmap +++ b/libraries/parallel-hashmap @@ -1 +1 @@ -Subproject commit 10368163ab1f4367d2f0685b5928b1c973ebd1ec +Subproject commit d88c5e15079047777b418132ece5879e7c9aaa2b