From f257faf8d7f022b213b368587e19d712075e54ac Mon Sep 17 00:00:00 2001 From: Ravenwater Date: Fri, 24 Nov 2023 12:48:23 -0500 Subject: [PATCH] unifying the specialized posit test benches --- static/posit/specialized/posit_128_2.cpp | 2 +- static/posit/specialized/posit_128_4.cpp | 10 +++------- static/posit/specialized/posit_16_1.cpp | 10 +++------- static/posit/specialized/posit_256_2.cpp | 2 +- static/posit/specialized/posit_256_5.cpp | 10 +++------- static/posit/specialized/posit_2_0.cpp | 10 +++------- static/posit/specialized/posit_32_2.cpp | 10 +++------- static/posit/specialized/posit_3_0.cpp | 10 +++------- static/posit/specialized/posit_48_2.cpp | 10 +++------- static/posit/specialized/posit_4_0.cpp | 10 +++------- static/posit/specialized/posit_64_2.cpp | 3 ++- static/posit/specialized/posit_64_3.cpp | 10 +++------- static/posit/specialized/posit_8_0.cpp | 10 +++------- static/posit/specialized/posit_8_1.cpp | 2 +- static/posit/specialized/posit_8_2.cpp | 2 +- static/posit/specialized/quire_32_2.cpp | 10 +++------- 16 files changed, 39 insertions(+), 82 deletions(-) diff --git a/static/posit/specialized/posit_128_2.cpp b/static/posit/specialized/posit_128_2.cpp index 7f4d94735..f0d2769c5 100644 --- a/static/posit/specialized/posit_128_2.cpp +++ b/static/posit/specialized/posit_128_2.cpp @@ -1,6 +1,6 @@ // posit_128_2.cpp: test suite runner for specialized 128-bit posit<128,2> // -// Copyright (C) 2017-2022 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include diff --git a/static/posit/specialized/posit_128_4.cpp b/static/posit/specialized/posit_128_4.cpp index c05ceca58..ff0935c53 100644 --- a/static/posit/specialized/posit_128_4.cpp +++ b/static/posit/specialized/posit_128_4.cpp @@ -1,14 +1,10 @@ // posit_128_4.cpp: test suite runner for specialized 128-bit posit<128,4> // -// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. -#if defined(_MSC_VER) -#pragma warning(disable : 5045) // Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified -#pragma warning(disable : 4514) // unreferenced inline function has been removed -#pragma warning(disable : 4820) // bytes padding added after data member -#pragma warning(disable : 4710) // function not inlined -#endif +#include + // Configure the posit template environment // first: enable fast specialized posit<128,4> //#define POSIT_FAST_SPECIALIZATION // turns on all fast specializations diff --git a/static/posit/specialized/posit_16_1.cpp b/static/posit/specialized/posit_16_1.cpp index 23e44fdc7..64a9d9734 100644 --- a/static/posit/specialized/posit_16_1.cpp +++ b/static/posit/specialized/posit_16_1.cpp @@ -1,14 +1,10 @@ // posit_16_1.cpp: test suite runner for specialized posit<16,1> // -// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. -#if defined(_MSC_VER) -#pragma warning(disable : 5045) // Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified -#pragma warning(disable : 4514) // unreferenced inline function has been removed -#pragma warning(disable : 4820) // bytes padding added after data member -#pragma warning(disable : 4710) // function not inlined -#endif +#include + // Configure the posit template environment // first: enable fast specialized posit<16,1> //#define POSIT_FAST_SPECIALIZATION diff --git a/static/posit/specialized/posit_256_2.cpp b/static/posit/specialized/posit_256_2.cpp index 0c5f107e7..fa0401738 100644 --- a/static/posit/specialized/posit_256_2.cpp +++ b/static/posit/specialized/posit_256_2.cpp @@ -1,6 +1,6 @@ // posit_256_2.cpp: test suite runner for fast specialized 256-bit posit<256,2> // -// Copyright (C) 2017-2022 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include diff --git a/static/posit/specialized/posit_256_5.cpp b/static/posit/specialized/posit_256_5.cpp index 94d4b64ac..0457228dd 100644 --- a/static/posit/specialized/posit_256_5.cpp +++ b/static/posit/specialized/posit_256_5.cpp @@ -1,14 +1,10 @@ // posit_256_5.cpp: test suite runner for fast specialized 256-bit posit<256,5> // -// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. -#if defined(_MSC_VER) -#pragma warning(disable : 5045) // Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified -#pragma warning(disable : 4514) // unreferenced inline function has been removed -#pragma warning(disable : 4820) // bytes padding added after data member -#pragma warning(disable : 4710) // function not inlined -#endif +#include + // Configure the posit template environment // first: enable fast specialized posit<256,5> //#define POSIT_FAST_SPECIALIZATION // turns on all fast specializations diff --git a/static/posit/specialized/posit_2_0.cpp b/static/posit/specialized/posit_2_0.cpp index 186a8f843..7ea86dada 100644 --- a/static/posit/specialized/posit_2_0.cpp +++ b/static/posit/specialized/posit_2_0.cpp @@ -1,14 +1,10 @@ // posit_2_0.cpp: test suite runner for specialized 2-bit posits based on look-up tables // -// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. -#if defined(_MSC_VER) -#pragma warning(disable : 5045) // Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified -#pragma warning(disable : 4514) // unreferenced inline function has been removed -#pragma warning(disable : 4820) // bytes padding added after data member -#pragma warning(disable : 4710) // function not inlined -#endif +#include + // enable fast specialized posit<2,0> //#define POSIT_FAST_SPECIALIZATION #define POSIT_FAST_POSIT_2_0 1 diff --git a/static/posit/specialized/posit_32_2.cpp b/static/posit/specialized/posit_32_2.cpp index 2c85042e3..3ed5dd463 100644 --- a/static/posit/specialized/posit_32_2.cpp +++ b/static/posit/specialized/posit_32_2.cpp @@ -1,14 +1,10 @@ // posit_32_2.cpp: test suite runner for fast specialized posit<32,2> // -// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. -#if defined(_MSC_VER) -#pragma warning(disable : 5045) // Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified -#pragma warning(disable : 4514) // unreferenced inline function has been removed -#pragma warning(disable : 4820) // bytes padding added after data member -#pragma warning(disable : 4710) // function not inlined -#endif +#include + // Configure the posit template environment // first: enable fast specialized posit<32,2> //#define POSIT_FAST_SPECIALIZATION // turns on all fast specializations diff --git a/static/posit/specialized/posit_3_0.cpp b/static/posit/specialized/posit_3_0.cpp index c7a2be8c9..a8946660c 100644 --- a/static/posit/specialized/posit_3_0.cpp +++ b/static/posit/specialized/posit_3_0.cpp @@ -1,14 +1,10 @@ // posit_3_0.cpp: test suite runner for specialized 3-bit posits based on look-up tables // -// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. -#if defined(_MSC_VER) -#pragma warning(disable : 5045) // Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified -#pragma warning(disable : 4514) // unreferenced inline function has been removed -#pragma warning(disable : 4820) // bytes padding added after data member -#pragma warning(disable : 4710) // function not inlined -#endif +#include + // enable fast specialized posit<3,0> //#define POSIT_FAST_SPECIALIZATION #define POSIT_FAST_POSIT_3_0 1 diff --git a/static/posit/specialized/posit_48_2.cpp b/static/posit/specialized/posit_48_2.cpp index cc010342f..37d87558a 100644 --- a/static/posit/specialized/posit_48_2.cpp +++ b/static/posit/specialized/posit_48_2.cpp @@ -1,14 +1,10 @@ // posit_48_2.cpp: test suite runner for specialized extended standard 48-bit posit<48,2> // -// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. -#if defined(_MSC_VER) -#pragma warning(disable : 5045) // Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified -#pragma warning(disable : 4514) // unreferenced inline function has been removed -#pragma warning(disable : 4820) // bytes padding added after data member -#pragma warning(disable : 4710) // function not inlined -#endif +#include + // Configure the posit template environment // first: enable fast specialized posit<48,2> #define POSIT_FAST_POSIT_48_2 1 // TODO: fast posit<48,2> not implemented yet diff --git a/static/posit/specialized/posit_4_0.cpp b/static/posit/specialized/posit_4_0.cpp index 766f89c17..d1f75f243 100644 --- a/static/posit/specialized/posit_4_0.cpp +++ b/static/posit/specialized/posit_4_0.cpp @@ -1,14 +1,10 @@ // posit_4_0.cpp: test suite runner for specialized 4-bit posits based on look-up tables // -// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. -#if defined(_MSC_VER) -#pragma warning(disable : 5045) // Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified -#pragma warning(disable : 4514) // unreferenced inline function has been removed -#pragma warning(disable : 4820) // bytes padding added after data member -#pragma warning(disable : 4710) // function not inlined -#endif +#include + // enable fast specialized posit<4,0> //#define POSIT_FAST_SPECIALIZATION #define POSIT_FAST_POSIT_4_0 1 diff --git a/static/posit/specialized/posit_64_2.cpp b/static/posit/specialized/posit_64_2.cpp index 3349dd378..837271024 100644 --- a/static/posit/specialized/posit_64_2.cpp +++ b/static/posit/specialized/posit_64_2.cpp @@ -1,9 +1,10 @@ // posit_64_2.cpp: test suite runner for fast specialized posit<64,2> // -// Copyright (C) 2017-2022 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include + // Configure the posit template environment // first: enable fast specialized posit<64,2> #define POSIT_FAST_POSIT_64_2 1 // TODO: fast posit<64,2> not implemented yet diff --git a/static/posit/specialized/posit_64_3.cpp b/static/posit/specialized/posit_64_3.cpp index bd09fcebd..f73f54aee 100644 --- a/static/posit/specialized/posit_64_3.cpp +++ b/static/posit/specialized/posit_64_3.cpp @@ -1,14 +1,10 @@ // posit_64_3.cpp: test suite runner for fast specialized posit<64,3> // -// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. -#if defined(_MSC_VER) -#pragma warning(disable : 5045) // Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified -#pragma warning(disable : 4514) // unreferenced inline function has been removed -#pragma warning(disable : 4820) // bytes padding added after data member -#pragma warning(disable : 4710) // function not inlined -#endif +#include + // Configure the posit template environment // first: enable fast specialized posit<64,3> #define POSIT_FAST_POSIT_64_3 1 // TODO: fast posit<64,3> not implemented yet diff --git a/static/posit/specialized/posit_8_0.cpp b/static/posit/specialized/posit_8_0.cpp index e3dd84114..8c73787dd 100644 --- a/static/posit/specialized/posit_8_0.cpp +++ b/static/posit/specialized/posit_8_0.cpp @@ -1,14 +1,10 @@ // posit_8_0.cpp: test suite runner for fast specialized posit<8,0> // -// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. -#if defined(_MSC_VER) -#pragma warning(disable : 5045) // Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified -#pragma warning(disable : 4514) // unreferenced inline function has been removed -#pragma warning(disable : 4820) // bytes padding added after data member -#pragma warning(disable : 4710) // function not inlined -#endif +#include + // Configure the posit template environment // first: enable fast specialized posit<8,0> #define POSIT_FAST_POSIT_8_0 1 diff --git a/static/posit/specialized/posit_8_1.cpp b/static/posit/specialized/posit_8_1.cpp index 67fe5b0aa..b6af3acbf 100644 --- a/static/posit/specialized/posit_8_1.cpp +++ b/static/posit/specialized/posit_8_1.cpp @@ -1,6 +1,6 @@ // posit_8_1.cpp: test suite runner for fast specialized posit<8,1> // -// Copyright (C) 2017-2022 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include diff --git a/static/posit/specialized/posit_8_2.cpp b/static/posit/specialized/posit_8_2.cpp index 2ea4aa5c0..866fb26ef 100644 --- a/static/posit/specialized/posit_8_2.cpp +++ b/static/posit/specialized/posit_8_2.cpp @@ -1,6 +1,6 @@ // posit_8_2.cpp: test suite runner for fast specialized posit<8,2> // -// Copyright (C) 2017-2022 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include diff --git a/static/posit/specialized/quire_32_2.cpp b/static/posit/specialized/quire_32_2.cpp index a09ab79c7..7348abcac 100644 --- a/static/posit/specialized/quire_32_2.cpp +++ b/static/posit/specialized/quire_32_2.cpp @@ -1,14 +1,10 @@ // quire_32_2.cpp: test suite runner for dot product and fused dot product functionality tests for fast specialized posit<32,2> // -// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. +// Copyright (C) 2017-2023 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. -#if defined(_MSC_VER) -#pragma warning(disable : 5045) // Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified -#pragma warning(disable : 4514) // unreferenced inline function has been removed -#pragma warning(disable : 4820) // bytes padding added after data member -#pragma warning(disable : 4710) // function not inlined -#endif +#include + // Configure the posit template environment // first: enable fast specialized posit<32,2> //#define POSIT_FAST_SPECIALIZATION // turns on all fast specializations