Skip to content
Snippets Groups Projects
Commit 860f15ab authored by Nora Abi Akar's avatar Nora Abi Akar Committed by Benjamin Cumming
Browse files

Modcc: parse `fabs` instead of `abs` (#907)

Also emit "abs" in cexpr_emit.cpp because the simd backend implements abs

Fixes #887
parent 57f09ae6
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ void CExprEmitter::visit(UnaryExpression* e) {
{tok::cos, "cos"},
{tok::sin, "sin"},
{tok::log, "log"},
{tok::abs, "fabs"},
{tok::abs, "abs"},
{tok::exprelr, "exprelr"}
};
......
......@@ -64,7 +64,7 @@ static Keyword keywords[] = {
{"sin", tok::sin},
{"cos", tok::cos},
{"log", tok::log},
{"abs", tok::abs},
{"fabs", tok::abs},
{"exprelr", tok::exprelr},
{"CONDUCTANCE", tok::conductance},
{nullptr, tok::reserved},
......@@ -134,7 +134,7 @@ static TokenString token_strings[] = {
{"max", tok::max},
{"exp", tok::exp},
{"log", tok::log},
{"abs", tok::abs},
{"fabs", tok::abs},
{"exprelr", tok::exprelr},
{"cos", tok::cos},
{"sin", tok::sin},
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment