29 lines
881 B
C
29 lines
881 B
C
|
/*
|
||
|
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
|
||
|
*
|
||
|
* Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk>
|
||
|
*
|
||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||
|
*
|
||
|
* ----------------------------------------------------------------------------
|
||
|
* Contains built-in functions for Maths
|
||
|
* ----------------------------------------------------------------------------
|
||
|
*/
|
||
|
#include "jsutils.h"
|
||
|
#include "jsvar.h"
|
||
|
|
||
|
#ifdef ARM
|
||
|
#include "mconf.h"
|
||
|
#include "protos.h"
|
||
|
#else
|
||
|
#include <math.h>
|
||
|
#endif
|
||
|
|
||
|
|
||
|
JsVarInt jswrap_integer_valueOf(JsVar *v);
|
||
|
JsVarFloat jswrap_math_abs(JsVarFloat x);
|
||
|
double jswrap_math_pow(double x, double y);
|
||
|
JsVarFloat jswrap_math_clip(JsVarFloat x, JsVarFloat min, JsVarFloat max);
|