1 |
/* ***** BEGIN LICENSE BLOCK ***** |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
2 |
|
* |
3 |
|
* ***** BEGIN LICENSE BLOCK ***** |
4 |
* Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
* Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
5 |
* |
* |
6 |
* The contents of this file are subject to the Mozilla Public License Version |
* The contents of this file are subject to the Mozilla Public License Version |
37 |
* |
* |
38 |
* ***** END LICENSE BLOCK ***** */ |
* ***** END LICENSE BLOCK ***** */ |
39 |
|
|
|
/* -*- Mode: C; tab-width: 8 -*- |
|
|
* Copyright (C) 1998-1999 Netscape Communications Corporation, All Rights Reserved. |
|
|
*/ |
|
|
|
|
40 |
#ifndef jsmath_h___ |
#ifndef jsmath_h___ |
41 |
#define jsmath_h___ |
#define jsmath_h___ |
42 |
/* |
/* |
51 |
js_InitMathClass(JSContext *cx, JSObject *obj); |
js_InitMathClass(JSContext *cx, JSObject *obj); |
52 |
|
|
53 |
extern void |
extern void |
54 |
js_random_init(JSRuntime *rt); |
js_InitRandom(JSThreadData *data); |
55 |
|
|
56 |
|
extern JSBool |
57 |
|
js_math_ceil(JSContext *cx, uintN argc, jsval *vp); |
58 |
|
|
59 |
|
extern JSBool |
60 |
|
js_math_floor(JSContext *cx, uintN argc, jsval *vp); |
61 |
|
|
62 |
|
extern JSBool |
63 |
|
js_math_max(JSContext *cx, uintN argc, jsval *vp); |
64 |
|
|
65 |
|
extern JSBool |
66 |
|
js_math_min(JSContext *cx, uintN argc, jsval *vp); |
67 |
|
|
68 |
extern jsdouble |
extern JSBool |
69 |
js_random_nextDouble(JSRuntime *rt); |
js_math_round(JSContext *cx, uintN argc, jsval *vp); |
70 |
|
|
71 |
JS_END_EXTERN_C |
JS_END_EXTERN_C |
72 |
|
|