Skip to content

Commit 2fb8252

Browse files
committed
Removed float64_t partial specializations
1 parent 5eb02f2 commit 2fb8252

File tree

1 file changed

+0
-98
lines changed

1 file changed

+0
-98
lines changed

include/nbl/builtin/hlsl/impl/tgmath_impl.hlsl

Lines changed: 0 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -324,20 +324,6 @@ struct pow_helper<FloatingPoint NBL_PARTIAL_REQ_BOT(concepts::FloatingPointScala
324324
}
325325
};
326326

327-
template<typename Float64>
328-
NBL_PARTIAL_REQ_TOP(is_same<Float64, float64_t>::value)
329-
struct pow_helper<Float64 NBL_PARTIAL_REQ_BOT(is_same<Float64, float64_t>::value) >
330-
{
331-
static Float64 __call(NBL_CONST_REF_ARG(Float64) x, NBL_CONST_REF_ARG(Float64) y)
332-
{
333-
#ifdef __HLSL_VERSION
334-
return pow(x, y);
335-
#else
336-
return std::pow(x, y);
337-
#endif
338-
}
339-
};
340-
341327
template<typename V>
342328
NBL_PARTIAL_REQ_TOP(concepts::Vectorial<V>)
343329
struct pow_helper<V NBL_PARTIAL_REQ_BOT(concepts::Vectorial<V>) >
@@ -375,20 +361,6 @@ struct exp_helper<FloatingPoint NBL_PARTIAL_REQ_BOT(concepts::FloatingPointScala
375361
}
376362
};
377363

378-
template<typename Float64>
379-
NBL_PARTIAL_REQ_TOP(is_same<Float64, float64_t>::value)
380-
struct exp_helper<Float64 NBL_PARTIAL_REQ_BOT(is_same<Float64, float64_t>::value) >
381-
{
382-
static Float64 __call(NBL_CONST_REF_ARG(Float64) x)
383-
{
384-
#ifdef __HLSL_VERSION
385-
return exp(x);
386-
#else
387-
return std::exp(x);
388-
#endif
389-
}
390-
};
391-
392364
template<typename V>
393365
NBL_PARTIAL_REQ_TOP(concepts::Vectorial<V>)
394366
struct exp_helper<V NBL_PARTIAL_REQ_BOT(concepts::Vectorial<V>) >
@@ -426,20 +398,6 @@ struct exp2_helper<FloatingPoint NBL_PARTIAL_REQ_BOT(concepts::FloatingPointScal
426398
}
427399
};
428400

429-
template<typename Float64>
430-
NBL_PARTIAL_REQ_TOP(is_same<Float64, float64_t>::value)
431-
struct exp2_helper<Float64 NBL_PARTIAL_REQ_BOT(is_same<Float64, float64_t>::value) >
432-
{
433-
static Float64 __call(NBL_CONST_REF_ARG(Float64) x)
434-
{
435-
#ifdef __HLSL_VERSION
436-
return exp2(x);
437-
#else
438-
return std::exp2(x);
439-
#endif
440-
}
441-
};
442-
443401
template<typename Integral>
444402
NBL_PARTIAL_REQ_TOP(hlsl::is_integral_v<Integral> && hlsl::is_scalar_v<Integral>)
445403
struct exp2_helper<Integral NBL_PARTIAL_REQ_BOT(hlsl::is_integral_v<Integral> && hlsl::is_scalar_v<Integral>) >
@@ -487,20 +445,6 @@ struct log_helper<FloatingPoint NBL_PARTIAL_REQ_BOT(concepts::FloatingPointScala
487445
}
488446
};
489447

490-
template<typename Float64>
491-
NBL_PARTIAL_REQ_TOP(is_same<Float64, float64_t>::value)
492-
struct log_helper<Float64 NBL_PARTIAL_REQ_BOT(is_same<Float64, float64_t>::value) >
493-
{
494-
static Float64 __call(NBL_CONST_REF_ARG(Float64) x)
495-
{
496-
#ifdef __HLSL_VERSION
497-
return log(x);
498-
#else
499-
return std::log(x);
500-
#endif
501-
}
502-
};
503-
504448
template<typename V>
505449
NBL_PARTIAL_REQ_TOP(concepts::Vectorial<V>)
506450
struct log_helper<V NBL_PARTIAL_REQ_BOT(concepts::Vectorial<V>) >
@@ -626,20 +570,6 @@ struct sin_helper<FloatingPoint NBL_PARTIAL_REQ_BOT(concepts::FloatingPointScala
626570
}
627571
};
628572

629-
template<typename Float64>
630-
NBL_PARTIAL_REQ_TOP(is_same<Float64, float64_t>::value)
631-
struct sin_helper<Float64 NBL_PARTIAL_REQ_BOT(is_same<Float64, float64_t>::value) >
632-
{
633-
static Float64 __call(NBL_CONST_REF_ARG(Float64) x)
634-
{
635-
#ifdef __HLSL_VERSION
636-
return sin(x);
637-
#else
638-
return std::sin(x);
639-
#endif
640-
}
641-
};
642-
643573
template<typename V>
644574
NBL_PARTIAL_REQ_TOP(concepts::Vectorial<V>)
645575
struct sin_helper<V NBL_PARTIAL_REQ_BOT(concepts::Vectorial<V>) >
@@ -677,20 +607,6 @@ struct cos_helper<FloatingPoint NBL_PARTIAL_REQ_BOT(concepts::FloatingPointScala
677607
}
678608
};
679609

680-
template<typename Float64>
681-
NBL_PARTIAL_REQ_TOP(is_same<Float64, float64_t>::value)
682-
struct cos_helper<Float64 NBL_PARTIAL_REQ_BOT(is_same<Float64, float64_t>::value) >
683-
{
684-
static Float64 __call(NBL_CONST_REF_ARG(Float64) x)
685-
{
686-
#ifdef __HLSL_VERSION
687-
return cos(x);
688-
#else
689-
return std::cos(x);
690-
#endif
691-
}
692-
};
693-
694610
template<typename V>
695611
NBL_PARTIAL_REQ_TOP(concepts::Vectorial<V>)
696612
struct cos_helper<V NBL_PARTIAL_REQ_BOT(concepts::Vectorial<V>) >
@@ -728,20 +644,6 @@ struct acos_helper<FloatingPoint NBL_PARTIAL_REQ_BOT(concepts::FloatingPointScal
728644
}
729645
};
730646

731-
template<typename Float64>
732-
NBL_PARTIAL_REQ_TOP(is_same<Float64, float64_t>::value)
733-
struct acos_helper<Float64 NBL_PARTIAL_REQ_BOT(is_same<Float64, float64_t>::value) >
734-
{
735-
static Float64 __call(NBL_CONST_REF_ARG(Float64) x)
736-
{
737-
#ifdef __HLSL_VERSION
738-
return acos(x);
739-
#else
740-
return std::acos(x);
741-
#endif
742-
}
743-
};
744-
745647
template<typename V>
746648
NBL_PARTIAL_REQ_TOP(concepts::Vectorial<V>)
747649
struct acos_helper<V NBL_PARTIAL_REQ_BOT(concepts::Vectorial<V>) >

0 commit comments

Comments
 (0)