Skip to content

Commit 564ccb4

Browse files
committed
Fix compilation error
1 parent f4d1926 commit 564ccb4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/kernel_float/conversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ KERNEL_FLOAT_INLINE vector_storage<R, N> convert_storage(const V& input, extent<
7878
*/
7979
template<typename R, size_t N, RoundingMode M = RoundingMode::ANY, typename V>
8080
KERNEL_FLOAT_INLINE vector<R, extent<N>> convert(const V& input, extent<N> new_size = {}) {
81-
return convert_storage(input);
81+
return convert_storage<R, N, M, V>(input, new_size);
8282
}
8383

8484
template<typename T, RoundingMode M = RoundingMode::ANY>

include/kernel_float/macros.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
#define KERNEL_FLOAT_CALL(F, ...) F(__VA_ARGS__)
5151

5252
// TOOD: check if this way is support across all compilers
53-
#if defined(__has_builtin) && __has_builtin(__builtin_assume_aligned) && 0
53+
//#if defined(__has_builtin) && __has_builtin(__builtin_assume_aligned)
54+
#if 0
5455
#define KERNEL_FLOAT_ASSUME_ALIGNED(TYPE, PTR, ALIGNMENT) \
5556
static_cast<TYPE*>(__builtin_assume_aligned(static_cast<TYPE*>(PTR), (ALIGNMENT)))
5657
#else

0 commit comments

Comments
 (0)