Fix build on FreeBSD/powerpc64*
There's no VSX handler on FreeBSD for now. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Piotr Kubaj <pkubaj@FreeBSD.org> Closes #13848
This commit is contained in:
parent
5724073517
commit
dff541f698
|
@ -74,7 +74,7 @@ static boolean_t blake3_is_sse2_supported(void)
|
|||
{
|
||||
#if defined(__x86_64)
|
||||
return (kfpu_allowed() && zfs_sse2_available());
|
||||
#elif defined(__PPC64__)
|
||||
#elif defined(__PPC64__) && defined(__linux__)
|
||||
return (kfpu_allowed() && zfs_vsx_available());
|
||||
#else
|
||||
return (kfpu_allowed());
|
||||
|
@ -140,7 +140,7 @@ static boolean_t blake3_is_sse41_supported(void)
|
|||
{
|
||||
#if defined(__x86_64)
|
||||
return (kfpu_allowed() && zfs_sse4_1_available());
|
||||
#elif defined(__PPC64__)
|
||||
#elif defined(__PPC64__) && defined(__linux__)
|
||||
return (kfpu_allowed() && zfs_vsx_available());
|
||||
#else
|
||||
return (kfpu_allowed());
|
||||
|
|
Loading…
Reference in New Issue