mirror of
https://github.com/janet-lang/janet
synced 2024-11-29 03:19:54 +00:00
uint32_t -> uint8_t
This commit is contained in:
parent
e65716f6ee
commit
8372d1e499
@ -394,27 +394,27 @@ static const JanetReg math_cfuns[] = {
|
|||||||
{
|
{
|
||||||
"math/hypot", janet_hypot,
|
"math/hypot", janet_hypot,
|
||||||
JDOC("(math/hypot a b)\n\n"
|
JDOC("(math/hypot a b)\n\n"
|
||||||
"Returns the c from the equation c^2 = a^2 + b^2")
|
"Returns the c from the equation c^2 = a^2 + b^2")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"math/exp2", janet_exp2,
|
"math/exp2", janet_exp2,
|
||||||
JDOC("(math/exp2 x)\n\n"
|
JDOC("(math/exp2 x)\n\n"
|
||||||
"Returns 2 to the power of x.")
|
"Returns 2 to the power of x.")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"math/expm1", janet_expm1,
|
"math/expm1", janet_expm1,
|
||||||
JDOC("(math/expm1 x)\n\n"
|
JDOC("(math/expm1 x)\n\n"
|
||||||
"Returns e to the power of x minus 1.")
|
"Returns e to the power of x minus 1.")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"math/trunc", janet_trunc,
|
"math/trunc", janet_trunc,
|
||||||
JDOC("(math/trunc x)\n\n"
|
JDOC("(math/trunc x)\n\n"
|
||||||
"Returns the integer between x and 0 nearest to x.")
|
"Returns the integer between x and 0 nearest to x.")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"math/round", janet_round,
|
"math/round", janet_round,
|
||||||
JDOC("(math/round x)\n\n"
|
JDOC("(math/round x)\n\n"
|
||||||
"Returns the integer nearest to x.")
|
"Returns the integer nearest to x.")
|
||||||
},
|
},
|
||||||
{NULL, NULL, NULL}
|
{NULL, NULL, NULL}
|
||||||
};
|
};
|
||||||
|
@ -1112,7 +1112,7 @@ JANET_API void janet_debug_find(
|
|||||||
/* RNG */
|
/* RNG */
|
||||||
JANET_API JanetRNG *janet_default_rng(void);
|
JANET_API JanetRNG *janet_default_rng(void);
|
||||||
JANET_API void janet_rng_seed(JanetRNG *rng, uint32_t seed);
|
JANET_API void janet_rng_seed(JanetRNG *rng, uint32_t seed);
|
||||||
JANET_API void janet_rng_longseed(JanetRNG *rng, const uint32_t *bytes, int32_t len);
|
JANET_API void janet_rng_longseed(JanetRNG *rng, const uint8_t *bytes, int32_t len);
|
||||||
JANET_API uint32_t janet_rng_u32(JanetRNG *rng);
|
JANET_API uint32_t janet_rng_u32(JanetRNG *rng);
|
||||||
|
|
||||||
/* Array functions */
|
/* Array functions */
|
||||||
|
Loading…
Reference in New Issue
Block a user