From cf552d7c76da9a91bce992391356c6ffb5a969ac Mon Sep 17 00:00:00 2001 From: Weston Pace Date: Tue, 12 Jul 2022 09:00:00 -0700 Subject: [PATCH] fix: add overflow behavior to integer division (#223) BREAKING CHANGE: The signature of divide functions for multiple types now specify an enumeration prior to specifying operands. --- extensions/functions_arithmetic.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extensions/functions_arithmetic.yaml b/extensions/functions_arithmetic.yaml index 00d7f84de..a750df682 100644 --- a/extensions/functions_arithmetic.yaml +++ b/extensions/functions_arithmetic.yaml @@ -126,18 +126,26 @@ scalar_functions: description: "Divide one value by another. Partial values are truncated." impls: - args: + - options: [ SILENT, SATURATE, ERROR ] + required: false - value: i8 - value: i8 return: i8 - args: + - options: [ SILENT, SATURATE, ERROR ] + required: false - value: i16 - value: i16 return: i16 - args: + - options: [ SILENT, SATURATE, ERROR ] + required: false - value: i32 - value: i32 return: i32 - args: + - options: [ SILENT, SATURATE, ERROR ] + required: false - value: i64 - value: i64 return: i64