score: Add _Processor_mask_And_not()

Add it for completeness.
This commit is contained in:
Sebastian Huber
2023-10-23 09:17:23 +02:00
committed by Gedare Bloom
parent a85402f76f
commit 869071dfb2

View File

@@ -10,7 +10,7 @@
*/
/*
* Copyright (C) 2016, 2017 embedded brains GmbH & Co. KG
* Copyright (C) 2016, 2023 embedded brains GmbH & Co. KG
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -213,6 +213,22 @@ static inline void _Processor_mask_And(
__BIT_AND2( CPU_MAXIMUM_PROCESSORS, a, b, c );
}
/**
* @brief Performs a bitwise a = b & ~c.
*
* @param[out] a The processor mask that is set by this operation.
* @param b The first parameter of the ANDNOT-operation.
* @param c The second parameter of the ANDNOT-operation.
*/
static inline void _Processor_mask_And_not(
Processor_mask *a,
const Processor_mask *b,
const Processor_mask *c
)
{
__BIT_ANDNOT2( CPU_MAXIMUM_PROCESSORS, a, b, c );
}
/**
* @brief Performs a bitwise a = b | c.
*