File tree 17 files changed +64
-32
lines changed
include/universal/number/posit/specialized
17 files changed +64
-32
lines changed Original file line number Diff line number Diff line change 18
18
#if POSIT_FAST_POSIT_128_2
19
19
#undef POSIT_FAST_POSIT_128_2
20
20
#define POSIT_FAST_POSIT_128_2 0
21
+ #ifdef _MSC_VER
21
22
#pragma message("Fast specialization of posit<128,2> requested but ignored as fast implemention is TBD")
23
+ #else
24
+ #pragma GCC warning "Fast specialization of posit<128,2> requested but ignored as fast implemention is TBD"
25
+ #endif
22
26
#endif
23
27
24
28
namespace sw { namespace universal {
@@ -27,8 +31,8 @@ namespace sw { namespace universal {
27
31
#if POSIT_FAST_POSIT_128_2
28
32
#ifdef _MSC_VER
29
33
#pragma message("Fast specialization of posit<128,2>")
30
- // #else
31
- // # warning( "Fast specialization of posit<128,2>")
34
+ #else
35
+ # pragma GCC warning message "Fast specialization of posit<128,2>"
32
36
#endif
33
37
34
38
// fast specialized posit<128,2>
Original file line number Diff line number Diff line change 18
18
#if POSIT_FAST_POSIT_128_4
19
19
#undef POSIT_FAST_POSIT_128_4
20
20
#define POSIT_FAST_POSIT_128_4 0
21
+ #ifdef _MSC_VER
21
22
#pragma message("Fast specialization of posit<128,4> requested but ignored as fast implemention is TBD")
23
+ #else
24
+ #pragma GCC warning "Fast specialization of posit<128,4> requested but ignored as fast implemention is TBD"
25
+ #endif
22
26
#endif
23
27
24
28
namespace sw { namespace universal {
@@ -27,8 +31,8 @@ namespace sw { namespace universal {
27
31
#if POSIT_FAST_POSIT_128_4
28
32
#ifdef _MSC_VER
29
33
#pragma message("Fast specialization of posit<128,4>")
30
- // #else
31
- // # warning( "Fast specialization of posit<128,4>")
34
+ #else
35
+ #pragme GCC warning message " Fast specialization of posit<128,4>"
32
36
#endif
33
37
34
38
// fast specialized posit<128,4>
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ namespace sw { namespace universal {
20
20
#if POSIT_FAST_POSIT_16_1
21
21
#ifdef _MSC_VER
22
22
#pragma message("Fast specialization of posit<16,1>")
23
- // #else some compile time message that indicates that we are using a specialization for non MS compilers
24
- // #warning( "Fast specialization of posit<16,1>")
23
+ #else
24
+ # pragma message "Fast specialization of posit<16,1>"
25
25
#endif
26
26
27
27
// fast specialized posit<16,1>
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ namespace sw { namespace universal {
21
21
#if POSIT_FAST_POSIT_16_2
22
22
#ifdef _MSC_VER
23
23
#pragma message("Fast specialization of posit<16,2>")
24
- // #else some compile time message that indicates that we are using a specialization for non MS compilers
25
- // #warning( "Fast specialization of posit<16,2>")
24
+ #else
25
+ # pragma message "Fast specialization of posit<16,2>"
26
26
#endif
27
27
28
28
// fast specialized posit<16,2>
Original file line number Diff line number Diff line change 18
18
#if POSIT_FAST_POSIT_256_2
19
19
#undef POSIT_FAST_POSIT_256_2
20
20
#define POSIT_FAST_POSIT_256_2 0
21
+ #ifdef _MSC_VER
21
22
#pragma message("Fast specialization of posit<256,2> requested but ignored as fast implemention is TBD")
23
+ #else
24
+ #pragma GCC warning "Fast specialization of posit<256,2> requested but ignored as fast implemention is TBD"
25
+ #endif
22
26
#endif
23
27
24
28
namespace sw { namespace universal {
@@ -27,8 +31,8 @@ namespace sw { namespace universal {
27
31
#if POSIT_FAST_POSIT_256_2
28
32
#ifdef _MSC_VER
29
33
#pragma message("Fast specialization of posit<256,2>")
30
- // #else
31
- // # warning( "Fast specialization of posit<256,2>")
34
+ #else
35
+ # pragma GCC warning message "Fast specialization of posit<256,2>"
32
36
#endif
33
37
34
38
// fast specialized posit<256,2>
Original file line number Diff line number Diff line change 18
18
#if POSIT_FAST_POSIT_256_5
19
19
#undef POSIT_FAST_POSIT_256_5
20
20
#define POSIT_FAST_POSIT_256_5 0
21
+ #ifdef _MSC_VER
21
22
#pragma message("Fast specialization of posit<256,4> requested but ignored as fast implemention is TBD")
23
+ #else
24
+ #pragma GCC warning "Fast specialization of posit<256,4> requested but ignored as fast implemention is TBD"
25
+ #endif
22
26
#endif
23
27
24
28
namespace sw { namespace universal {
@@ -27,8 +31,8 @@ namespace sw { namespace universal {
27
31
#if POSIT_FAST_POSIT_256_5
28
32
#ifdef _MSC_VER
29
33
#pragma message("Fast specialization of posit<256,5>")
30
- // #else
31
- // # warning( "Fast specialization of posit<256,5>")
34
+ #else
35
+ # pragma GCC warning message "Fast specialization of posit<256,5>"
32
36
#endif
33
37
34
38
// fast specialized posit<256,5>
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ namespace sw { namespace universal {
20
20
#if POSIT_FAST_POSIT_2_0
21
21
#ifdef _MSC_VER
22
22
#pragma message("Fast specialization of posit<2,0>")
23
- // #else
24
- // #warning( "Fast specialization of posit<2,0>")
23
+ #else
24
+ # pragma message "Fast specialization of posit<2,0>"
25
25
#endif
26
26
27
27
/* values of a posit<2,0>
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ namespace sw { namespace universal {
20
20
#if POSIT_FAST_POSIT_32_2
21
21
#ifdef _MSC_VER
22
22
#pragma message("Fast specialization of posit<32,2>")
23
- // #else
24
- // #warning( "Fast specialization of posit<32,2>")
23
+ #else
24
+ # pragma message "Fast specialization of posit<32,2>"
25
25
#endif
26
26
27
27
// fast specialized posit<32,2>
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ namespace sw { namespace universal {
19
19
#if POSIT_FAST_POSIT_3_0
20
20
#ifdef _MSC_VER
21
21
#pragma message("Fast specialization of posit<3,0>")
22
- // #else
23
- // #warning( "Fast specialization of posit<3,0>")
22
+ #else
23
+ # pragma message "Fast specialization of posit<3,0>"
24
24
#endif
25
25
26
26
/* values of a posit<3,0>
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ namespace sw { namespace universal {
20
20
#if POSIT_FAST_POSIT_3_1
21
21
#ifdef _MSC_VER
22
22
#pragma message("Fast specialization of posit<3,1>")
23
- // #else
24
- // #warning( "Fast specialization of posit<3,1>")
23
+ #else
24
+ # pragma message "Fast specialization of posit<3,1>"
25
25
#endif
26
26
27
27
constexpr uint8_t posit_3_1_addition_lookup[64 ] = {
Original file line number Diff line number Diff line change 18
18
#if POSIT_FAST_POSIT_48_2
19
19
#undef POSIT_FAST_POSIT_48_2
20
20
#define POSIT_FAST_POSIT_48_2 0
21
+ #ifdef _MSC_VER
21
22
#pragma message("Fast specialization of posit<48,2> requested but ignored as fast implemention is TBD")
23
+ #else
24
+ #pragma GCC warning "Fast specialization of posit<48,2> requested but ignored as fast implemention is TBD"
25
+ #endif
22
26
#endif
23
27
24
28
namespace sw { namespace universal {
@@ -27,8 +31,8 @@ namespace sw { namespace universal {
27
31
#if POSIT_FAST_POSIT_48_2
28
32
#ifdef _MSC_VER
29
33
#pragma message("Fast specialization of posit<48,2>")
30
- // #else
31
- // # warning( "Fast specialization of posit<48,2>")
34
+ #else
35
+ # pragma GCC warning message "Fast specialization of posit<48,2>"
32
36
#endif
33
37
34
38
// fast specialized posit<48,2>
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ namespace sw { namespace universal {
20
20
#if POSIT_FAST_POSIT_4_0
21
21
#ifdef _MSC_VER
22
22
#pragma message("Fast specialization of posit<4,0>")
23
- // #else
24
- // #warning( "Fast specialization of posit<4,0>")
23
+ #else
24
+ # pragma message "Fast specialization of posit<4,0>"
25
25
#endif
26
26
27
27
constexpr uint8_t posit_4_0_addition_lookup[256 ] = {
Original file line number Diff line number Diff line change 18
18
#if POSIT_FAST_POSIT_64_2
19
19
#undef POSIT_FAST_POSIT_64_2
20
20
#define POSIT_FAST_POSIT_64_2 0
21
+ #ifdef _MSC_VER
21
22
#pragma message("Fast specialization of posit<64,2> requested but ignored as fast implemention is TBD")
23
+ #else
24
+ #pragma GCC warning "Fast specialization of posit<64,2> requested but ignored as fast implemention is TBD"
25
+ #endif
22
26
#endif
23
27
24
28
namespace sw { namespace universal {
@@ -27,8 +31,8 @@ namespace sw { namespace universal {
27
31
#if POSIT_FAST_POSIT_64_2
28
32
#ifdef _MSC_VER
29
33
#pragma message("Fast specialization of posit<64,2>")
30
- // #else
31
- // # warning( "Fast specialization of posit<64,2>")
34
+ #else
35
+ # pragma GCC warning message "Fast specialization of posit<64,2>"
32
36
#endif
33
37
34
38
// fast specialized posit<64,2>
Original file line number Diff line number Diff line change 18
18
#if POSIT_FAST_POSIT_64_3
19
19
#undef POSIT_FAST_POSIT_64_3
20
20
#define POSIT_FAST_POSIT_64_3 0
21
+ #ifdef _MSC_VER
21
22
#pragma message("Fast specialization of posit<64,3> requested but ignored as fast implemention is TBD")
23
+ #else
24
+ #pragma GCC warning "Fast specialization of posit<64,3> requested but ignored as fast implemention is TBD"
25
+ #endif
22
26
#endif
23
27
24
28
namespace sw { namespace universal {
@@ -27,8 +31,8 @@ namespace sw { namespace universal {
27
31
#if POSIT_FAST_POSIT_64_3
28
32
#ifdef _MSC_VER
29
33
#pragma message("Fast specialization of posit<64,3>")
30
- // #else
31
- // # warning( "Fast specialization of posit<64,3>")
34
+ #else
35
+ # pragma GCC warning message "Fast specialization of posit<64,3>"
32
36
#endif
33
37
34
38
// fast specialized posit<64,3>
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ namespace sw { namespace universal {
20
20
#if POSIT_FAST_POSIT_8_0
21
21
#ifdef _MSC_VER
22
22
#pragma message("Fast specialization of posit<8,0>")
23
- // #else some compile time message that indicates that we are using a specialization for non MS compilers
24
- // #warning( "Fast specialization of posit<8,0>")
23
+ #else
24
+ # pragma message "Fast specialization of posit<8,0>"
25
25
#endif
26
26
27
27
// injecting the C API into namespace sw::universal
Original file line number Diff line number Diff line change 18
18
#if POSIT_FAST_POSIT_8_1
19
19
#undef POSIT_FAST_POSIT_8_1
20
20
#define POSIT_FAST_POSIT_8_1 0
21
+ #ifdef _MSC_VER
21
22
#pragma message("Fast specialization of posit<8,1> requested but ignored as fast implemention is TBD")
23
+ #else
24
+ #pragma GCC warning "Fast specialization of posit<8,1> requested but ignored as fast implemention is TBD"
25
+ #endif
22
26
#endif
23
27
24
28
namespace sw { namespace universal {
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ namespace sw { namespace universal {
22
22
#if POSIT_FAST_POSIT_8_2
23
23
#ifdef _MSC_VER
24
24
#pragma message("Fast specialization of posit<8,2>")
25
- // #else some compile time message that indicates that we are using a specialization for non MS compilers
26
- // #warning( "Fast specialization of posit<8,2>")
25
+ #else
26
+ # pragma message "Fast specialization of posit<8,2>"
27
27
#endif
28
28
29
29
// fast specialized posit<8,2>
You can’t perform that action at this time.
0 commit comments