Skip to content

Commit 377d707

Browse files
committed
tidy & license
1 parent ba9c0c3 commit 377d707

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/generate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2015-2024 Advanced Micro Devices, Inc. All rights reserved.
4+
* Copyright (c) 2015-2025 Advanced Micro Devices, Inc. All rights reserved.
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

test/byte_test.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,17 +333,17 @@ TEST_CASE(byte_constexpr_evaluation)
333333
constexpr auto shift_left_result = b1 << 2u;
334334
constexpr auto shift_right_result = b2 >> 1u;
335335

336-
static_assert(migraphx::to_integer<uint8_t>(or_result) == (42 | 128),
336+
static_assert(migraphx::to_integer<uint8_t>(or_result) == (42u | 128u),
337337
"Constexpr OR evaluation failed");
338-
static_assert(migraphx::to_integer<uint8_t>(and_result) == (42 & 128),
338+
static_assert(migraphx::to_integer<uint8_t>(and_result) == (42u & 128u),
339339
"Constexpr AND evaluation failed");
340-
static_assert(migraphx::to_integer<uint8_t>(xor_result) == (42 ^ 128),
340+
static_assert(migraphx::to_integer<uint8_t>(xor_result) == (42u ^ 128u),
341341
"Constexpr XOR evaluation failed");
342-
static_assert(migraphx::to_integer<uint8_t>(not_result) == (~42u & 0xFF),
342+
static_assert(migraphx::to_integer<uint8_t>(not_result) == (~42u & 0xFFu),
343343
"Constexpr NOT evaluation failed");
344-
static_assert(migraphx::to_integer<uint8_t>(shift_left_result) == ((42 << 2) & 0xFF),
344+
static_assert(migraphx::to_integer<uint8_t>(shift_left_result) == ((42u << 2u) & 0xFFu),
345345
"Constexpr left shift evaluation failed");
346-
static_assert(migraphx::to_integer<uint8_t>(shift_right_result) == (128 >> 1),
346+
static_assert(migraphx::to_integer<uint8_t>(shift_right_result) == (128u >> 1u),
347347
"Constexpr right shift evaluation failed");
348348
}
349349

test/generate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.
4+
* Copyright (c) 2015-2025 Advanced Micro Devices, Inc. All rights reserved.
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)