mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 20:59:50 +04:00
[FL-2811] Fix PVS-Studio warnings (#2142)
Co-authored-by: あく <alleteam@gmail.com> Co-authored-by: gornekich <n.gorbadey@gmail.com>
This commit is contained in:
19
lib/toolbox/float_tools.h
Normal file
19
lib/toolbox/float_tools.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
/** Compare two floating point numbers
|
||||
* @param a First number to compare
|
||||
* @param b Second number to compare
|
||||
*
|
||||
* @return bool true if a equals b, false otherwise
|
||||
*/
|
||||
bool float_is_equal(float a, float b);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user