yafl_config.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*******************************************************************************
  2. Copyright 2020 anonimous <shkolnick-kun@gmail.com> and contributors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing,
  8. software distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions
  11. and limitations under the License.
  12. ******************************************************************************/
  13. #ifndef YAFL_CONFIG_H
  14. #define YAFL_CONFIG_H
  15. #include <math.h>
  16. #include <stdint.h>
  17. #include <stdio.h>
  18. #define YAFL_LOG(...) fprintf(stderr, __VA_ARGS__)
  19. typedef double yaflFloat;
  20. typedef int32_t yaflInt;
  21. /*TODO: уточнить*/
  22. #define YAFL_EPS (1.0e-15)
  23. #define YAFL_SQRT sqrt
  24. #define YAFL_ABS abs
  25. #define YAFL_UNLIKELY(x) __builtin_expect((x), 0)
  26. /* WARNING!!!
  27. Fast UKF SSR updates may give dramatically incorrect results in case of adaptive Bierman filter
  28. */
  29. //#define YAFL_USE_FAST_UKF
  30. #endif // YAFL_CONFIG_H