You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
246 B

1 year ago
  1. #pragma once
  2. #include <stdbool.h>
  3. namespace iflytop {
  4. using namespace std;
  5. static inline float zfabs(float a) { return a > 0 ? a : -a; }
  6. static inline bool zfeq(float a, float b, float eps) { return zfabs(a - b) < eps; }
  7. } // namespace iflytop