CTS-SAT-1-OBC-Firmware
Toggle main menu visibility
Loading...
Searching...
No Matches
firmware
Core
Inc
transforms
number_comparisons.h
Go to the documentation of this file.
1
#ifndef INCLUDE_GUARD__NUMBER_COMPARISONS_H__
2
#define INCLUDE_GUARD__NUMBER_COMPARISONS_H__
3
4
#include <stdint.h>
5
6
uint8_t
GEN_compare_doubles
(
double
a,
double
b,
double
epsilon);
7
8
uint8_t
GEN_compare_floats
(
float
a,
float
b,
float
epsilon);
9
10
uint64_t
GEN_abs_int64
(int64_t value);
11
12
#endif
// INCLUDE_GUARD__NUMBER_COMPARISONS_H__
GEN_compare_doubles
uint8_t GEN_compare_doubles(double a, double b, double epsilon)
Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise.
Definition
number_comparisons.c:7
GEN_abs_int64
uint64_t GEN_abs_int64(int64_t value)
Returns the absolute value of an int64_t.
Definition
number_comparisons.c:22
GEN_compare_floats
uint8_t GEN_compare_floats(float a, float b, float epsilon)
Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise.
Definition
number_comparisons.c:14
Generated by
1.17.0