WIP: removed macro is_less_or_equal with the dinamic cmp function, 25% in time performances is lost.