Skip to content

Commit

Permalink
Add support for Linux ARM (#4789)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rostislav Khlebnikov authored and GitHub Enterprise committed Dec 4, 2024
1 parent b6d1cb3 commit b999956
Show file tree
Hide file tree
Showing 18 changed files with 218 additions and 210 deletions.
22 changes: 11 additions & 11 deletions groups/bal/balber/balber_berutil.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15613,23 +15613,23 @@ int main(int argc, char *argv[])
ASSERT(2 == numBytesConsumed);
}
{
char buffer[] = { -1, 0 };
char buffer[] = { (char)-1, 0 };
bdlsb::FixedMemInStreamBuf isb(buffer, 2);
int numBytesConsumed = 0;

ASSERT(SUCCESS != Util::getEndOfContentOctets(&isb,
&numBytesConsumed));
}
{
char buffer[] = { 0, -1 };
char buffer[] = { 0, (char)-1 };
bdlsb::FixedMemInStreamBuf isb(buffer, 2);
int numBytesConsumed = 0;

ASSERT(SUCCESS != Util::getEndOfContentOctets(&isb,
&numBytesConsumed));
}
{
char buffer[] = { -1, -1 };
char buffer[] = { (char)-1, (char)-1 };
bdlsb::FixedMemInStreamBuf isb(buffer, 2);
int numBytesConsumed = 0;

Expand Down Expand Up @@ -17774,14 +17774,14 @@ int main(int argc, char *argv[])
} DATA[] = {
// line value exp
// ---- ----- ---
{ L_, 0, "01 00" },
{ L_, 1, "01 01" },
{ L_, -2, "01 FE" },
{ L_, 95, "01 5F" },
{ L_, -106, "01 96" },
{ L_, 127, "01 7F" },
{ L_, -127, "01 81" },
{ L_, -128, "01 80" },
{ L_, 0, "01 00" },
{ L_, 1, "01 01" },
{ L_, (char)-2, "01 FE" },
{ L_, 95, "01 5F" },
{ L_, (char)-106, "01 96" },
{ L_, 127, "01 7F" },
{ L_, (char)-127, "01 81" },
{ L_, (char)-128, "01 80" },
};

const int NUM_DATA = sizeof(DATA) / sizeof(*DATA);
Expand Down
6 changes: 3 additions & 3 deletions groups/bal/baljsn/baljsn_parserutil.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7485,9 +7485,9 @@ int main(int argc, char *argv[])
<< "\n==================================" << endl;

{
const char ERROR_VALUE = 'X';
const char MAX = bsl::numeric_limits<signed char>::max();
const char MIN = bsl::numeric_limits<signed char>::min();
const signed char ERROR_VALUE = 'X';
const signed char MAX = bsl::numeric_limits<signed char>::max();
const signed char MIN = bsl::numeric_limits<signed char>::min();

#ifdef BSLS_PLATFORM_HAS_PRAGMA_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
Expand Down
90 changes: 45 additions & 45 deletions groups/bal/balxml/balxml_typesparserutil.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1238,15 +1238,15 @@ int main(int argc, char *argv[])
{
static const RoundTripTestData<char> DATA[] =
{
//line input
//---- -----
{ L_, -128 },
{ L_, -127 },
{ L_, -1 },
{ L_, 0 },
{ L_, 1 },
{ L_, 126 },
{ L_, 127 },
//line input
//---- -----------
{ L_, (char)-128 },
{ L_, (char)-127 },
{ L_, (char)-1 },
{ L_, 0 },
{ L_, 1 },
{ L_, 126 },
{ L_, 127 },
};
printDefaultRoundTripTester(DATA);
}
Expand Down Expand Up @@ -2949,15 +2949,15 @@ int main(int argc, char *argv[])
{
static const RoundTripTestData<char> DATA[] =
{
//line input
//---- -----
{ L_, -128 },
{ L_, -127 },
{ L_, -1 },
{ L_, 0 },
{ L_, 1 },
{ L_, 126 },
{ L_, 127 },
//line input
//---- -----------
{ L_, (char)-128 },
{ L_, (char)-127 },
{ L_, (char)-1 },
{ L_, 0 },
{ L_, 1 },
{ L_, 126 },
{ L_, 127 },
};
printDecimalRoundTripTester(DATA);
}
Expand Down Expand Up @@ -3907,15 +3907,15 @@ int main(int argc, char *argv[])
const char *d_input;
Type d_result;
} DATA[] = {
//line input result
//---- ----- ------
{ L_, "-128X", -128, },
{ L_, "-127X", -127, },
{ L_, "-1X", -1, },
{ L_, "0X", 0, },
{ L_, "1X", 1, },
{ L_, "126X", 126, },
{ L_, "127X", 127, },
//line input result
//---- ----- -----------
{ L_, "-128X", (Type)-128, },
{ L_, "-127X", (Type)-127, },
{ L_, "-1X", (Type)-1, },
{ L_, "0X", 0, },
{ L_, "1X", 1, },
{ L_, "126X", 126, },
{ L_, "127X", 127, },
};
const int NUM_DATA = sizeof DATA / sizeof *DATA;

Expand Down Expand Up @@ -4121,15 +4121,15 @@ int main(int argc, char *argv[])
const char *d_input;
Type d_result;
} DATA[] = {
//line input result
//---- ----- ------
{ L_, "-128X", -128, },
{ L_, "-127X", -127, },
{ L_, "-1X", -1, },
{ L_, "0X", 0, },
{ L_, "1X", 1, },
{ L_, "126X", 126, },
{ L_, "127X", 127, },
//line input result
//---- ----- -----------
{ L_, "-128X", (Type)-128, },
{ L_, "-127X", (Type)-127, },
{ L_, "-1X", (Type)-1, },
{ L_, "0X", 0, },
{ L_, "1X", 1, },
{ L_, "126X", 126, },
{ L_, "127X", 127, },
};
const int NUM_DATA = sizeof DATA / sizeof *DATA;

Expand Down Expand Up @@ -6637,15 +6637,15 @@ int main(int argc, char *argv[])
const char *d_input;
Type d_result;
} DATA[] = {
//line input result
//---- ----- ------
{ L_, "-128X", -128 },
{ L_, "-127X", -127 },
{ L_, "-1X", -1 },
{ L_, "0X", 0 },
{ L_, "1X", 1 },
{ L_, "126X", 126 },
{ L_, "127X", 127 },
//line input result
//---- ----- -----------
{ L_, "-128X", (Type)-128 },
{ L_, "-127X", (Type)-127 },
{ L_, "-1X", (Type)-1 },
{ L_, "0X", 0 },
{ L_, "1X", 1 },
{ L_, "126X", 126 },
{ L_, "127X", 127 },
};
const int NUM_DATA = sizeof DATA / sizeof *DATA;

Expand Down
54 changes: 27 additions & 27 deletions groups/bal/balxml/balxml_typesprintutil.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -907,15 +907,15 @@ int main(int argc, char *argv[])
Type d_input;
const char *d_result;
} DATA[] = {
//line input result
//---- ----- ------
{ L_, -128, "-128" },
{ L_, -127, "-127" },
{ L_, -1, "-1" },
{ L_, 0, "0" },
{ L_, 1, "1" },
{ L_, 126, "126" },
{ L_, 127, "127" },
//line input result
//---- ---------- ------
{ L_, (Type)-128, "-128" },
{ L_, (Type)-127, "-127" },
{ L_, (Type)-1, "-1" },
{ L_, 0, "0" },
{ L_, 1, "1" },
{ L_, 126, "126" },
{ L_, 127, "127" },
};
const int NUM_DATA = sizeof DATA / sizeof *DATA;

Expand Down Expand Up @@ -1098,15 +1098,15 @@ int main(int argc, char *argv[])
Type d_input;
const char *d_result;
} DATA[] = {
//line input result
//---- ----- ------
{ L_, -128, "-128" },
{ L_, -127, "-127" },
{ L_, -1, "-1" },
{ L_, 0, "0" },
{ L_, 1, "1" },
{ L_, 126, "126" },
{ L_, 127, "127" },
//line input result
//---- ---------- ------
{ L_, (Type)-128, "-128" },
{ L_, (Type)-127, "-127" },
{ L_, (Type)-1, "-1" },
{ L_, 0, "0" },
{ L_, 1, "1" },
{ L_, 126, "126" },
{ L_, 127, "127" },
};
const int NUM_DATA = sizeof DATA / sizeof *DATA;

Expand Down Expand Up @@ -4270,15 +4270,15 @@ int main(int argc, char *argv[])
Type d_input;
const char *d_result;
} DATA[] = {
//line input result
//---- ----- ------
{ L_, -128, "-128" },
{ L_, -127, "-127" },
{ L_, -1, "-1" },
{ L_, 0, "0" },
{ L_, 1, "1" },
{ L_, 126, "126" },
{ L_, 127, "127" },
//line input result
//---- ----------- ------
{ L_, (Type)-128, "-128" },
{ L_, (Type)-127, "-127" },
{ L_, (Type)-1, "-1" },
{ L_, 0, "0" },
{ L_, 1, "1" },
{ L_, 126, "126" },
{ L_, 127, "127" },
};
const int NUM_DATA = sizeof DATA / sizeof *DATA;

Expand Down
Loading

0 comments on commit b999956

Please sign in to comment.