From f4d1c13c158afcd87b1825e588faf01d9b57bc1d Mon Sep 17 00:00:00 2001 From: Pranavchiku Date: Mon, 4 Mar 2024 10:47:47 +0530 Subject: [PATCH 1/2] feat: add C implementation for constants/int32/max --- .../@stdlib/constants/int32/max/README.md | 54 +++++++++++++++++++ .../max/include/stdlib/constants/int32/max.h | 27 ++++++++++ .../@stdlib/constants/int32/max/manifest.json | 36 +++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 lib/node_modules/@stdlib/constants/int32/max/include/stdlib/constants/int32/max.h create mode 100644 lib/node_modules/@stdlib/constants/int32/max/manifest.json diff --git a/lib/node_modules/@stdlib/constants/int32/max/README.md b/lib/node_modules/@stdlib/constants/int32/max/README.md index 3ed9c8db9012..a736eb9bdbbb 100644 --- a/lib/node_modules/@stdlib/constants/int32/max/README.md +++ b/lib/node_modules/@stdlib/constants/int32/max/README.md @@ -62,6 +62,60 @@ console.log( INT32_MAX ); + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/constants/int32/max.h" +``` + +#### STDLIB_CONSTANT_INT32_MAX + +Macro for maximum [signed 32-bit integer][max-int32]. + +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + +
+ + + diff --git a/lib/node_modules/@stdlib/constants/int32/max/include/stdlib/constants/int32/max.h b/lib/node_modules/@stdlib/constants/int32/max/include/stdlib/constants/int32/max.h index a3816dd4a32d..db0f6088721c 100644 --- a/lib/node_modules/@stdlib/constants/int32/max/include/stdlib/constants/int32/max.h +++ b/lib/node_modules/@stdlib/constants/int32/max/include/stdlib/constants/int32/max.h @@ -20,8 +20,8 @@ #define STDLIB_CONSTANTS_INT32_MAX_H /** -* Macro for maximum signed 32-bit integer. +* Macro for the maximum signed 32-bit integer. */ -#define STDLIB_CONSTANT_INT32_MAX 2147483647|0 +#define STDLIB_CONSTANT_INT32_MAX 2147483647 #endif // !STDLIB_CONSTANTS_INT32_MAX_H