Compute Library
 21.05
float_ops.h File Reference

Go to the source code of this file.

Data Structures

union  RawFloat
 

Namespaces

 arm_compute
 Copyright (c) 2017-2021 Arm Limited.
 
 arm_compute::helpers
 
 arm_compute::helpers::float_ops
 

Functions

bool is_equal_ulps (float a, float b, int max_allowed_ulps=0)
 Checks if two floating point numbers are equal given an allowed number of ULPs. More...
 
bool is_one (float a, float epsilon=0.00001f)
 Checks if the input floating point number is 1.0f checking if the difference is within a range defined with epsilon. More...
 
bool is_zero (float a, float epsilon=0.00001f)
 Checks if the input floating point number is 0.0f checking if the difference is within a range defined with epsilon. More...