UNPKG

@specs-feup/clava

Version:

A C/C++ source-to-source compiler written in Typescript

28 lines 871 B
/** * The C data types the memoization instrumentation library can handle. */ export declare enum MemoiDataType { INT = "INT", DOUBLE = "DOUBLE", FLOAT = "FLOAT" } export default class MemoiUtils { private static mathFunctionSigs; /** * Tests whether the function with the given signature is whitelisted. * */ static isWhiteListed(sig: string): boolean; /** * Tests whether the function with the given signature is a math.h function. * */ static isMathFunction(sig: string): boolean; static cSig(sig: string): string; static normalizeSig(sig: string): string; /** * @deprecated Use javascript's array.includes method instead * */ static arrayContains<T>(a: T[], e: T): boolean; static average(values: number[], count?: number): number; } //# sourceMappingURL=MemoiUtils.d.ts.map