Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
simde
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
simde
Commits
d1578a0c
Commit
d1578a0c
authored
Nov 07, 2023
by
Michael R. Crusoe
Committed by
Michael R. Crusoe
Nov 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simde_float16: prefer __fp16 if available
Fixes:
https://github.com/simd-everywhere/simde/issues/1104
parent
064b8049
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
3 deletions
+21
-3
arm/neon/cadd_rot270.h
arm/neon/cadd_rot270.h
+5
-0
arm/neon/cadd_rot90.h
arm/neon/cadd_rot90.h
+5
-0
simde-f16.h
simde-f16.h
+3
-3
x86/avx512/cmp.h
x86/avx512/cmp.h
+4
-0
x86/avx512/reduce.h
x86/avx512/reduce.h
+4
-0
No files found.
arm/neon/cadd_rot270.h
View file @
d1578a0c
...
...
@@ -33,6 +33,11 @@ HEDLEY_DIAGNOSTIC_PUSH
SIMDE_DISABLE_UNWANTED_DIAGNOSTICS
SIMDE_BEGIN_DECLS_
#if defined(__clang__) && SIMDE_FLOAT16_API == SIMDE_FLOAT16_API_FP16
SIMDE_DIAGNOSTIC_DISABLE_DOUBLE_PROMOTION_
_Pragma
(
"clang diagnostic ignored
\"
-Wimplicit-float-conversion
\"
"
)
#endif
SIMDE_FUNCTION_ATTRIBUTES
simde_float16x4_t
simde_vcadd_rot270_f16
(
simde_float16x4_t
a
,
simde_float16x4_t
b
)
{
...
...
arm/neon/cadd_rot90.h
View file @
d1578a0c
...
...
@@ -33,6 +33,11 @@ HEDLEY_DIAGNOSTIC_PUSH
SIMDE_DISABLE_UNWANTED_DIAGNOSTICS
SIMDE_BEGIN_DECLS_
#if defined(__clang__) && SIMDE_FLOAT16_API == SIMDE_FLOAT16_API_FP16
SIMDE_DIAGNOSTIC_DISABLE_DOUBLE_PROMOTION_
_Pragma
(
"clang diagnostic ignored
\"
-Wimplicit-float-conversion
\"
"
)
#endif
SIMDE_FUNCTION_ATTRIBUTES
simde_float16x4_t
simde_vcadd_rot90_f16
(
simde_float16x4_t
a
,
simde_float16x4_t
b
)
{
...
...
simde-f16.h
View file @
d1578a0c
...
...
@@ -65,7 +65,9 @@ SIMDE_BEGIN_DECLS_
* any ideas on how to improve it. If you do, patches are definitely
* welcome. */
#if !defined(SIMDE_FLOAT16_API)
#if !defined(__EMSCRIPTEN__) && !(defined(__clang__) && defined(SIMDE_ARCH_POWER)) && \
#if defined(__ARM_FP16_FORMAT_IEEE) && (defined(SIMDE_ARM_NEON_FP16) || defined(__ARM_FP16_ARGS))
#define SIMDE_FLOAT16_API SIMDE_FLOAT16_API_FP16
#elif !defined(__EMSCRIPTEN__) && !(defined(__clang__) && defined(SIMDE_ARCH_POWER)) && \
!(defined(HEDLEY_MSVC_VERSION) && defined(__clang__)) && \
!(defined(__clang__) && defined(SIMDE_ARCH_RISCV64)) && ( \
defined(SIMDE_X86_AVX512FP16_NATIVE) || \
...
...
@@ -79,8 +81,6 @@ SIMDE_BEGIN_DECLS_
* clang will define the constants even if _Float16 is not
* supported. Ideas welcome. */
#define SIMDE_FLOAT16_API SIMDE_FLOAT16_API_FLOAT16
#elif defined(__ARM_FP16_FORMAT_IEEE) && (defined(SIMDE_ARM_NEON_FP16) || defined(__ARM_FP16_ARGS))
#define SIMDE_FLOAT16_API SIMDE_FLOAT16_API_FP16
#elif defined(__FLT16_MIN__) && \
(defined(__clang__) && \
(!defined(SIMDE_ARCH_AARCH64) || SIMDE_DETECT_CLANG_VERSION_CHECK(7,0,0)) \
...
...
x86/avx512/cmp.h
View file @
d1578a0c
...
...
@@ -38,6 +38,10 @@ HEDLEY_DIAGNOSTIC_PUSH
SIMDE_DISABLE_UNWANTED_DIAGNOSTICS
SIMDE_BEGIN_DECLS_
#if defined(__clang__) && SIMDE_FLOAT16_API == SIMDE_FLOAT16_API_FP16
SIMDE_DIAGNOSTIC_DISABLE_DOUBLE_PROMOTION_
#endif
SIMDE_HUGE_FUNCTION_ATTRIBUTES
simde__mmask64
simde_mm512_cmp_epi8_mask
(
simde__m512i
a
,
simde__m512i
b
,
const
int
imm8
)
...
...
x86/avx512/reduce.h
View file @
d1578a0c
...
...
@@ -33,6 +33,10 @@ HEDLEY_DIAGNOSTIC_PUSH
SIMDE_DISABLE_UNWANTED_DIAGNOSTICS
SIMDE_BEGIN_DECLS_
#if defined(__clang__) && SIMDE_FLOAT16_API == SIMDE_FLOAT16_API_FP16
SIMDE_DIAGNOSTIC_DISABLE_DOUBLE_PROMOTION_
#endif
SIMDE_FUNCTION_ATTRIBUTES
simde_float16
simde_mm512_reduce_max_ph
(
simde__m512h
a
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment