mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-13 11:41:55 +00:00
Bitwise operators should be used only with unsigned integer operands because the result os bitwise operations on signed integers are implementation-defined. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
10 lines
119 B
Plaintext
10 lines
119 B
Plaintext
// Copyright (c) 2017 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
@@
|
|
constant A;
|
|
@@
|
|
|
|
- 1 << A
|
|
+ BIT(A) |