-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[intelrdfpmathlib] Install CMake config files, more headers, test port #50083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
JavierMatosD
merged 18 commits into
microsoft:master
from
ajtribick:intelrdfpmathlib-target
Feb 23, 2026
Merged
Changes from 7 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
6da9afa
[intelrdfpmathlib] Install CMake config files, more headers, test port
ajtribick 0179b6c
include directories
ajtribick 89a1530
include directories
ajtribick 5badc2f
include directories
ajtribick 62a2eb0
Fix wchar_t handling in C++
ajtribick 6813466
fix const in test port
ajtribick 7690732
another go at wchar_t
ajtribick f0b3383
Update ports/intelrdfpmathlib/CMakeLists.txt
ajtribick ae5cb80
Update ports/intelrdfpmathlib/CMakeLists.txt
ajtribick f5f077b
Update ports/intelrdfpmathlib/CMakeLists.txt
ajtribick ac63f66
Revert "another go at wchar_t"
ajtribick 722a218
fix import name in test port
ajtribick d1ffa4d
wchar_t again
ajtribick b47bbf0
update git-tree
ajtribick 2d99722
wchar_t woes
ajtribick 03538f5
match library defines
ajtribick 967e1c6
try with standard library headers instead
ajtribick 142c376
no idea what Android uses as header guards here
ajtribick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,13 @@ | ||
| diff --git a/LIBRARY/src/bid_functions.h b/LIBRARY/src/bid_functions.h | ||
| index a2d0cd7..8411c44 100644 | ||
| --- a/LIBRARY/src/bid_functions.h | ||
| +++ b/LIBRARY/src/bid_functions.h | ||
| @@ -42,7 +42,7 @@ | ||
| #include <ctype.h> | ||
|
|
||
| // Fix system header issue on Sun solaris and define required type by ourselves | ||
| -#if !defined(_WCHAR_T) && !defined(_WCHAR_T_DEFINED) && !defined(__QNX__) | ||
| +#if !defined(__cplusplus) && !defined(_WCHAR_T) && !defined(_WCHAR_T_DEFINED) && !defined(__WCHAR_TYPE__) && !defined(__QNX__) | ||
| typedef int wchar_t; | ||
| #endif | ||
|
|
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,13 +1,17 @@ | ||
| { | ||
| "name": "intelrdfpmathlib", | ||
| "version-string": "20U2", | ||
| "port-version": 6, | ||
| "port-version": 7, | ||
| "description": "Intel(R) Decimal Floating-Point Math Library", | ||
| "supports": "!(arm & windows)", | ||
| "dependencies": [ | ||
| { | ||
| "name": "vcpkg-cmake", | ||
| "host": true | ||
| }, | ||
| { | ||
| "name": "vcpkg-cmake-config", | ||
| "host": true | ||
| } | ||
| ] | ||
| } |
This file contains hidden or 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,6 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) | ||
|
|
||
| vcpkg_cmake_configure( | ||
| SOURCE_PATH "${CURRENT_PORT_DIR}/project" | ||
| ) | ||
| vcpkg_cmake_build() |
6 changes: 6 additions & 0 deletions
6
scripts/test_ports/vcpkg-ci-intelrdfpmathlib/project/CMakeLists.txt
This file contains hidden or 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,6 @@ | ||
| cmake_minimum_required(VERSION 3.10) | ||
| project(decimal128test) | ||
|
|
||
| find_package(unofficial-intelrdfpmathlib CONFIG REQUIRED) | ||
| add_executable(main main.cpp) | ||
| target_link_libraries(main PRIVATE unofficial::intel::intel_decimal128) |
13 changes: 13 additions & 0 deletions
13
scripts/test_ports/vcpkg-ci-intelrdfpmathlib/project/main.cpp
This file contains hidden or 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,13 @@ | ||
| #define DECIMAL_CALL_BY_REFERENCE 0 | ||
| #define DECIMAL_GLOBAL_ROUNDING 1 | ||
|
|
||
| #include <bid_conf.h> | ||
| #include <bid_functions.h> | ||
|
|
||
| int main() | ||
| { | ||
| unsigned int flags = 0; | ||
| BID_UINT128 x = bid128_from_string(const_cast<char*>("1.25673"), &flags); | ||
| BID_UINT128 y = bid128_from_int32(5); | ||
| auto result = bid128_add(x, y, &flags); | ||
| } |
This file contains hidden or 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,12 @@ | ||
| { | ||
| "name": "vcpkg-ci-intelrdfpmathlib", | ||
| "version-string": "ci", | ||
| "description": "Validation port", | ||
| "dependencies": [ | ||
| "intelrdfpmathlib", | ||
| { | ||
| "name": "vcpkg-cmake", | ||
| "host": true | ||
| } | ||
| ] | ||
| } |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.