-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add configuration tests and fix bugs
The two new configuation tests, fixed.dfa and float-fixed.dfa verify that the 'standard' configuration of libpng works without floating point arithmetic. Signed-off-by: John Bowler <[email protected]>
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# fixed.dfa | ||
# Build time configuration of libpng | ||
# | ||
# Author: John Bowler | ||
# Copyright: (c) John Bowler, 2025 | ||
# Usage rights: | ||
# To the extent possible under law, the author has waived all copyright and | ||
# related or neighboring rights to this work. This work is published from: | ||
# United States. | ||
# | ||
# Test the standard libpng configuration without floating point (the internal | ||
# fixed point implementations are used instead). | ||
# | ||
option FLOATING_ARITHMETIC off | ||
option FLOATING_POINT off |
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,14 @@ | ||
# fixed-float.dfa | ||
# Build time configuration of libpng | ||
# | ||
# Author: John Bowler | ||
# Copyright: (c) John Bowler, 2025 | ||
# Usage rights: | ||
# To the extent possible under law, the author has waived all copyright and | ||
# related or neighboring rights to this work. This work is published from: | ||
# United States. | ||
# | ||
# Test the standard libpng configuration with the fixed point internal | ||
# implementation in place of the default floating point | ||
# | ||
option FLOATING_ARITHMETIC off |
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