Skip to content

Commit

Permalink
Remove __builtin_add_overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
acvictor committed Feb 8, 2024
1 parent c5e0d7b commit cf8c89e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions velox/functions/sparksql/DateTimeFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,7 @@ struct DateFromUnixDateFunction {
VELOX_DEFINE_FUNCTION_TYPES(T);

FOLLY_ALWAYS_INLINE void call(out_type<Date>& result, const int32_t& value) {
// If addititon does not overflow the result is valid.
// Max and min value of result here is numeric_limits<int32_t>::max() and
// numeric_limits<int32_t>::min().
__builtin_add_overflow(0, value, &result);
result = value;
}
};

Expand Down

0 comments on commit cf8c89e

Please sign in to comment.