-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] Add conditions for fp16 intrinsics
- Loading branch information
Showing
80 changed files
with
1,381 additions
and
894 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,6 @@ | |
* 2023 Yi-Yen Chung <[email protected]> (Copyright owned by Andes Technology) | ||
*/ | ||
|
||
/* N.B. CM: vcreate_f16 and vcreate_bf16 are omitted as | ||
* SIMDe has no 16-bit floating point support. | ||
* Idem for the poly types. */ | ||
/* Yi-Yen Chung: Added vcreate_f16 */ | ||
|
||
#if !defined(SIMDE_ARM_NEON_CREATE_H) | ||
|
@@ -157,7 +154,7 @@ simde_vcreate_u64(uint64_t a) { | |
SIMDE_FUNCTION_ATTRIBUTES | ||
simde_float16x4_t | ||
simde_vcreate_f16(uint64_t a) { | ||
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE) | ||
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE) && defined(SIMDE_ARM_NEON_FP16) | ||
return vcreate_f16(a); | ||
#else | ||
return simde_vreinterpret_f16_u64(simde_vdup_n_u64(a)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.