diff --git a/include/universal/number/posit/specialized/posit_128_2.hpp b/include/universal/number/posit/specialized/posit_128_2.hpp index 7213de49b..08d076b9e 100644 --- a/include/universal/number/posit/specialized/posit_128_2.hpp +++ b/include/universal/number/posit/specialized/posit_128_2.hpp @@ -18,7 +18,11 @@ #if POSIT_FAST_POSIT_128_2 #undef POSIT_FAST_POSIT_128_2 #define POSIT_FAST_POSIT_128_2 0 +#ifdef _MSC_VER #pragma message("Fast specialization of posit<128,2> requested but ignored as fast implemention is TBD") +#else +#pragma GCC warning "Fast specialization of posit<128,2> requested but ignored as fast implemention is TBD" +#endif #endif namespace sw { namespace universal { @@ -27,8 +31,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_128_2 #ifdef _MSC_VER #pragma message("Fast specialization of posit<128,2>") -//#else -//#warning("Fast specialization of posit<128,2>") +#else +#pragma GCC warning message "Fast specialization of posit<128,2>" #endif // fast specialized posit<128,2> diff --git a/include/universal/number/posit/specialized/posit_128_4.hpp b/include/universal/number/posit/specialized/posit_128_4.hpp index 4a2260eb0..666415031 100644 --- a/include/universal/number/posit/specialized/posit_128_4.hpp +++ b/include/universal/number/posit/specialized/posit_128_4.hpp @@ -18,7 +18,11 @@ #if POSIT_FAST_POSIT_128_4 #undef POSIT_FAST_POSIT_128_4 #define POSIT_FAST_POSIT_128_4 0 +#ifdef _MSC_VER #pragma message("Fast specialization of posit<128,4> requested but ignored as fast implemention is TBD") +#else +#pragma GCC warning "Fast specialization of posit<128,4> requested but ignored as fast implemention is TBD" +#endif #endif namespace sw { namespace universal { @@ -27,8 +31,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_128_4 #ifdef _MSC_VER #pragma message("Fast specialization of posit<128,4>") -//#else -//#warning("Fast specialization of posit<128,4>") +#else +#pragme GCC warning message "Fast specialization of posit<128,4>" #endif // fast specialized posit<128,4> diff --git a/include/universal/number/posit/specialized/posit_16_1.hpp b/include/universal/number/posit/specialized/posit_16_1.hpp index d63331a84..a5e843d72 100644 --- a/include/universal/number/posit/specialized/posit_16_1.hpp +++ b/include/universal/number/posit/specialized/posit_16_1.hpp @@ -20,8 +20,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_16_1 #ifdef _MSC_VER #pragma message("Fast specialization of posit<16,1>") -//#else some compile time message that indicates that we are using a specialization for non MS compilers -//#warning("Fast specialization of posit<16,1>") +#else +#pragma message "Fast specialization of posit<16,1>" #endif // fast specialized posit<16,1> diff --git a/include/universal/number/posit/specialized/posit_16_2.hpp b/include/universal/number/posit/specialized/posit_16_2.hpp index 8dec93ab5..53358321f 100644 --- a/include/universal/number/posit/specialized/posit_16_2.hpp +++ b/include/universal/number/posit/specialized/posit_16_2.hpp @@ -21,8 +21,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_16_2 #ifdef _MSC_VER #pragma message("Fast specialization of posit<16,2>") -//#else some compile time message that indicates that we are using a specialization for non MS compilers -//#warning("Fast specialization of posit<16,2>") +#else +#pragma message "Fast specialization of posit<16,2>" #endif // fast specialized posit<16,2> diff --git a/include/universal/number/posit/specialized/posit_256_2.hpp b/include/universal/number/posit/specialized/posit_256_2.hpp index a0d54e554..7c8d37567 100644 --- a/include/universal/number/posit/specialized/posit_256_2.hpp +++ b/include/universal/number/posit/specialized/posit_256_2.hpp @@ -18,7 +18,11 @@ #if POSIT_FAST_POSIT_256_2 #undef POSIT_FAST_POSIT_256_2 #define POSIT_FAST_POSIT_256_2 0 +#ifdef _MSC_VER #pragma message("Fast specialization of posit<256,2> requested but ignored as fast implemention is TBD") +#else +#pragma GCC warning "Fast specialization of posit<256,2> requested but ignored as fast implemention is TBD" +#endif #endif namespace sw { namespace universal { @@ -27,8 +31,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_256_2 #ifdef _MSC_VER #pragma message("Fast specialization of posit<256,2>") -//#else -//#warning("Fast specialization of posit<256,2>") +#else +#pragma GCC warning message "Fast specialization of posit<256,2>" #endif // fast specialized posit<256,2> diff --git a/include/universal/number/posit/specialized/posit_256_5.hpp b/include/universal/number/posit/specialized/posit_256_5.hpp index 4199305a9..d4ba8cd3d 100644 --- a/include/universal/number/posit/specialized/posit_256_5.hpp +++ b/include/universal/number/posit/specialized/posit_256_5.hpp @@ -18,7 +18,11 @@ #if POSIT_FAST_POSIT_256_5 #undef POSIT_FAST_POSIT_256_5 #define POSIT_FAST_POSIT_256_5 0 +#ifdef _MSC_VER #pragma message("Fast specialization of posit<256,4> requested but ignored as fast implemention is TBD") +#else +#pragma GCC warning "Fast specialization of posit<256,4> requested but ignored as fast implemention is TBD" +#endif #endif namespace sw { namespace universal { @@ -27,8 +31,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_256_5 #ifdef _MSC_VER #pragma message("Fast specialization of posit<256,5>") -//#else -//#warning("Fast specialization of posit<256,5>") +#else +#pragma GCC warning message "Fast specialization of posit<256,5>" #endif // fast specialized posit<256,5> diff --git a/include/universal/number/posit/specialized/posit_2_0.hpp b/include/universal/number/posit/specialized/posit_2_0.hpp index da6689817..40a97b27a 100644 --- a/include/universal/number/posit/specialized/posit_2_0.hpp +++ b/include/universal/number/posit/specialized/posit_2_0.hpp @@ -20,8 +20,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_2_0 #ifdef _MSC_VER #pragma message("Fast specialization of posit<2,0>") -//#else -//#warning("Fast specialization of posit<2,0>") +#else +#pragma message "Fast specialization of posit<2,0>" #endif /* values of a posit<2,0> diff --git a/include/universal/number/posit/specialized/posit_32_2.hpp b/include/universal/number/posit/specialized/posit_32_2.hpp index 9628c7002..d2054cf4e 100644 --- a/include/universal/number/posit/specialized/posit_32_2.hpp +++ b/include/universal/number/posit/specialized/posit_32_2.hpp @@ -20,8 +20,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_32_2 #ifdef _MSC_VER #pragma message("Fast specialization of posit<32,2>") -//#else -//#warning("Fast specialization of posit<32,2>") +#else +#pragma message "Fast specialization of posit<32,2>" #endif // fast specialized posit<32,2> diff --git a/include/universal/number/posit/specialized/posit_3_0.hpp b/include/universal/number/posit/specialized/posit_3_0.hpp index 77b12f3f5..90ca336a8 100644 --- a/include/universal/number/posit/specialized/posit_3_0.hpp +++ b/include/universal/number/posit/specialized/posit_3_0.hpp @@ -19,8 +19,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_3_0 #ifdef _MSC_VER #pragma message("Fast specialization of posit<3,0>") -//#else -//#warning("Fast specialization of posit<3,0>") +#else +#pragma message "Fast specialization of posit<3,0>" #endif /* values of a posit<3,0> diff --git a/include/universal/number/posit/specialized/posit_3_1.hpp b/include/universal/number/posit/specialized/posit_3_1.hpp index 40b3af58c..5e14c0ab8 100644 --- a/include/universal/number/posit/specialized/posit_3_1.hpp +++ b/include/universal/number/posit/specialized/posit_3_1.hpp @@ -20,8 +20,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_3_1 #ifdef _MSC_VER #pragma message("Fast specialization of posit<3,1>") -//#else -//#warning("Fast specialization of posit<3,1>") +#else +#pragma message "Fast specialization of posit<3,1>" #endif constexpr uint8_t posit_3_1_addition_lookup[64] = { diff --git a/include/universal/number/posit/specialized/posit_48_2.hpp b/include/universal/number/posit/specialized/posit_48_2.hpp index 0f95eea46..1d9970982 100644 --- a/include/universal/number/posit/specialized/posit_48_2.hpp +++ b/include/universal/number/posit/specialized/posit_48_2.hpp @@ -18,7 +18,11 @@ #if POSIT_FAST_POSIT_48_2 #undef POSIT_FAST_POSIT_48_2 #define POSIT_FAST_POSIT_48_2 0 +#ifdef _MSC_VER #pragma message("Fast specialization of posit<48,2> requested but ignored as fast implemention is TBD") +#else +#pragma GCC warning "Fast specialization of posit<48,2> requested but ignored as fast implemention is TBD" +#endif #endif namespace sw { namespace universal { @@ -27,8 +31,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_48_2 #ifdef _MSC_VER #pragma message("Fast specialization of posit<48,2>") -//#else -//#warning("Fast specialization of posit<48,2>") +#else +#pragma GCC warning message "Fast specialization of posit<48,2>" #endif // fast specialized posit<48,2> diff --git a/include/universal/number/posit/specialized/posit_4_0.hpp b/include/universal/number/posit/specialized/posit_4_0.hpp index 421fb5ec0..c0b943e70 100644 --- a/include/universal/number/posit/specialized/posit_4_0.hpp +++ b/include/universal/number/posit/specialized/posit_4_0.hpp @@ -20,8 +20,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_4_0 #ifdef _MSC_VER #pragma message("Fast specialization of posit<4,0>") -//#else -//#warning("Fast specialization of posit<4,0>") +#else +#pragma message "Fast specialization of posit<4,0>" #endif constexpr uint8_t posit_4_0_addition_lookup[256] = { diff --git a/include/universal/number/posit/specialized/posit_64_2.hpp b/include/universal/number/posit/specialized/posit_64_2.hpp index 805066b3f..27b04418c 100644 --- a/include/universal/number/posit/specialized/posit_64_2.hpp +++ b/include/universal/number/posit/specialized/posit_64_2.hpp @@ -18,7 +18,11 @@ #if POSIT_FAST_POSIT_64_2 #undef POSIT_FAST_POSIT_64_2 #define POSIT_FAST_POSIT_64_2 0 +#ifdef _MSC_VER #pragma message("Fast specialization of posit<64,2> requested but ignored as fast implemention is TBD") +#else +#pragma GCC warning "Fast specialization of posit<64,2> requested but ignored as fast implemention is TBD" +#endif #endif namespace sw { namespace universal { @@ -27,8 +31,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_64_2 #ifdef _MSC_VER #pragma message("Fast specialization of posit<64,2>") -//#else -//#warning("Fast specialization of posit<64,2>") +#else +#pragma GCC warning message "Fast specialization of posit<64,2>" #endif // fast specialized posit<64,2> diff --git a/include/universal/number/posit/specialized/posit_64_3.hpp b/include/universal/number/posit/specialized/posit_64_3.hpp index b6fe211a3..52e2701e1 100644 --- a/include/universal/number/posit/specialized/posit_64_3.hpp +++ b/include/universal/number/posit/specialized/posit_64_3.hpp @@ -18,7 +18,11 @@ #if POSIT_FAST_POSIT_64_3 #undef POSIT_FAST_POSIT_64_3 #define POSIT_FAST_POSIT_64_3 0 +#ifdef _MSC_VER #pragma message("Fast specialization of posit<64,3> requested but ignored as fast implemention is TBD") +#else +#pragma GCC warning "Fast specialization of posit<64,3> requested but ignored as fast implemention is TBD" +#endif #endif namespace sw { namespace universal { @@ -27,8 +31,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_64_3 #ifdef _MSC_VER #pragma message("Fast specialization of posit<64,3>") -//#else -//#warning("Fast specialization of posit<64,3>") +#else +#pragma GCC warning message "Fast specialization of posit<64,3>" #endif // fast specialized posit<64,3> diff --git a/include/universal/number/posit/specialized/posit_8_0.hpp b/include/universal/number/posit/specialized/posit_8_0.hpp index c2b33a3ba..0f980ea4e 100644 --- a/include/universal/number/posit/specialized/posit_8_0.hpp +++ b/include/universal/number/posit/specialized/posit_8_0.hpp @@ -20,8 +20,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_8_0 #ifdef _MSC_VER #pragma message("Fast specialization of posit<8,0>") -//#else some compile time message that indicates that we are using a specialization for non MS compilers -//#warning("Fast specialization of posit<8,0>") +#else + #pragma message "Fast specialization of posit<8,0>" #endif // injecting the C API into namespace sw::universal diff --git a/include/universal/number/posit/specialized/posit_8_1.hpp b/include/universal/number/posit/specialized/posit_8_1.hpp index a375aaef6..09601524d 100644 --- a/include/universal/number/posit/specialized/posit_8_1.hpp +++ b/include/universal/number/posit/specialized/posit_8_1.hpp @@ -18,7 +18,11 @@ #if POSIT_FAST_POSIT_8_1 #undef POSIT_FAST_POSIT_8_1 #define POSIT_FAST_POSIT_8_1 0 +#ifdef _MSC_VER #pragma message("Fast specialization of posit<8,1> requested but ignored as fast implemention is TBD") +#else +#pragma GCC warning "Fast specialization of posit<8,1> requested but ignored as fast implemention is TBD" +#endif #endif namespace sw { namespace universal { diff --git a/include/universal/number/posit/specialized/posit_8_2.hpp b/include/universal/number/posit/specialized/posit_8_2.hpp index f2add1407..133420808 100644 --- a/include/universal/number/posit/specialized/posit_8_2.hpp +++ b/include/universal/number/posit/specialized/posit_8_2.hpp @@ -22,8 +22,8 @@ namespace sw { namespace universal { #if POSIT_FAST_POSIT_8_2 #ifdef _MSC_VER #pragma message("Fast specialization of posit<8,2>") -//#else some compile time message that indicates that we are using a specialization for non MS compilers -//#warning("Fast specialization of posit<8,2>") +#else +#pragma message "Fast specialization of posit<8,2>" #endif // fast specialized posit<8,2>