diff --git a/src/pystencils/backend/platforms/generic_cpu.py b/src/pystencils/backend/platforms/generic_cpu.py index ae59d0423ba0223e1c7ff3364d2f0a8fad7c722c..2b430962778138049668b173d1fe22e703713b38 100644 --- a/src/pystencils/backend/platforms/generic_cpu.py +++ b/src/pystencils/backend/platforms/generic_cpu.py @@ -63,12 +63,12 @@ class GenericCpu(Platform): arg_types = (dtype,) * func.num_args if isinstance(dtype, PsScalarType) and func in (NumericLimitsFunctions.Min, NumericLimitsFunctions.Max): + cfunc: CFunction cfunc = CFunction(f"{dtype.c_string()}_{func.function_name}".capitalize(), arg_types, dtype) call.function = cfunc return call if isinstance(dtype, PsIeeeFloatType) and dtype.width in (32, 64): - cfunc: CFunction match func: case ( MathFunctions.Exp