Skip to content

Commit

Permalink
unifying the specialized posit test benches
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravenwater committed Nov 24, 2023
1 parent 296ecb9 commit f257faf
Show file tree
Hide file tree
Showing 16 changed files with 39 additions and 82 deletions.
2 changes: 1 addition & 1 deletion static/posit/specialized/posit_128_2.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>
Expand Down
10 changes: 3 additions & 7 deletions static/posit/specialized/posit_128_4.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>

// Configure the posit template environment
// first: enable fast specialized posit<128,4>
//#define POSIT_FAST_SPECIALIZATION // turns on all fast specializations
Expand Down
10 changes: 3 additions & 7 deletions static/posit/specialized/posit_16_1.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>

// Configure the posit template environment
// first: enable fast specialized posit<16,1>
//#define POSIT_FAST_SPECIALIZATION
Expand Down
2 changes: 1 addition & 1 deletion static/posit/specialized/posit_256_2.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>
Expand Down
10 changes: 3 additions & 7 deletions static/posit/specialized/posit_256_5.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>

// Configure the posit template environment
// first: enable fast specialized posit<256,5>
//#define POSIT_FAST_SPECIALIZATION // turns on all fast specializations
Expand Down
10 changes: 3 additions & 7 deletions static/posit/specialized/posit_2_0.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>

// enable fast specialized posit<2,0>
//#define POSIT_FAST_SPECIALIZATION
#define POSIT_FAST_POSIT_2_0 1
Expand Down
10 changes: 3 additions & 7 deletions static/posit/specialized/posit_32_2.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>

// Configure the posit template environment
// first: enable fast specialized posit<32,2>
//#define POSIT_FAST_SPECIALIZATION // turns on all fast specializations
Expand Down
10 changes: 3 additions & 7 deletions static/posit/specialized/posit_3_0.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>

// enable fast specialized posit<3,0>
//#define POSIT_FAST_SPECIALIZATION
#define POSIT_FAST_POSIT_3_0 1
Expand Down
10 changes: 3 additions & 7 deletions static/posit/specialized/posit_48_2.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>

// 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
Expand Down
10 changes: 3 additions & 7 deletions static/posit/specialized/posit_4_0.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>

// enable fast specialized posit<4,0>
//#define POSIT_FAST_SPECIALIZATION
#define POSIT_FAST_POSIT_4_0 1
Expand Down
3 changes: 2 additions & 1 deletion static/posit/specialized/posit_64_2.cpp
Original file line number Diff line number Diff line change
@@ -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<universal/utility/directives.hpp>

// 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
Expand Down
10 changes: 3 additions & 7 deletions static/posit/specialized/posit_64_3.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>

// 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
Expand Down
10 changes: 3 additions & 7 deletions static/posit/specialized/posit_8_0.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>

// Configure the posit template environment
// first: enable fast specialized posit<8,0>
#define POSIT_FAST_POSIT_8_0 1
Expand Down
2 changes: 1 addition & 1 deletion static/posit/specialized/posit_8_1.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>
Expand Down
2 changes: 1 addition & 1 deletion static/posit/specialized/posit_8_2.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>
Expand Down
10 changes: 3 additions & 7 deletions static/posit/specialized/quire_32_2.cpp
Original file line number Diff line number Diff line change
@@ -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 <universal/utility/directives.hpp>

// Configure the posit template environment
// first: enable fast specialized posit<32,2>
//#define POSIT_FAST_SPECIALIZATION // turns on all fast specializations
Expand Down

0 comments on commit f257faf

Please sign in to comment.