blob: 06db97bf8f4d5199879bb39a2efc6109fdeb0031 [file] [log] [blame]
* Implement CTFE for intrinsic (builtin) functions.
* Currently includes functions from `std.math`, `core.math` and `core.bitop`.
* Copyright: Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2, Walter Bright)
* License: $(LINK2, Boost License 1.0)
* Source: $(LINK2, _builtin.d)
* Documentation:
* Coverage:
module dmd.builtin;
import dmd.arraytypes;
import dmd.expression;
import dmd.func;
import dmd.globals;
* Determine if function is a builtin one that we can
* evaluate at compile time.
public extern (C++) BUILTIN isBuiltin(FuncDeclaration fd);
* Evaluate builtin function.
* Return result; NULL if cannot evaluate it.
public extern (C++) Expression eval_builtin(const ref Loc loc, FuncDeclaration fd, Expressions* arguments);