-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Everything has been moved into the "mips" directory - loongarch is now a sub-directory - and there is just one MIPS initialization function which makes the choices between MSA, MMI and LSX. This resolves the issues with the poorly defined precedence of the optimizations and removes the wacky #if nesting. Signed-off-by: John Bowler <[email protected]>
- Loading branch information
Showing
6 changed files
with
75 additions
and
36 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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* check.h - LSX optimized filter functions | ||
* copied from loongarch_lsx_init.c | ||
* | ||
* Copyright (c) 2021 Loongson Technology Corporation Limited | ||
* All rights reserved. | ||
* Contributed by Jin Bo <[email protected]> | ||
* | ||
* This code is released under the libpng license. | ||
* For conditions of distribution and use, see the disclaimer | ||
* and license in png.h | ||
* | ||
* Modified 2024 by John Bowler, changes | ||
* Copyright (c) 2024 John Bowler, licensed under the libpng license: | ||
*/ | ||
#if defined(__loongarch_sx) && defined(__GLIBC__) | ||
/* The code uses the GNU glibc specific function getauxval so this is | ||
* required: | ||
*/ | ||
# if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 16) | ||
# define PNG_MIPS_LSX_IMPLEMENTATION 1 | ||
# else | ||
# define PNG_MIPS_LSX_IMPLEMENTATION 0 | ||
# endif /* glibc >= 2.16 */ | ||
#else | ||
# define PNG_MIPS_LSX_IMPLEMENTATION 0 | ||
#endif /* __loongarch_sx */ |
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