Skip to content

Commit ab1e1dd

Browse files
MaxGraeydcodeIO
authored andcommitted
New log, log2, exp, exp2 and pow implementations (#992)
1 parent dc07392 commit ab1e1dd

17 files changed

+22375
-20670
lines changed

NOTICE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,31 @@ the following terms:
3535
Copyright 2015 WebAssembly Community Group participants
3636
Apache License, Version 2.0 (see LICENSE file)
3737

38+
* Arm Optimized Routines: https://github.com/ARM-software/optimized-routines
39+
40+
----------------------------------------------------------------------
41+
MIT License
42+
43+
Copyright (c) 1999-2019, Arm Limited.
44+
45+
Permission is hereby granted, free of charge, to any person obtaining a copy
46+
of this software and associated documentation files (the "Software"), to deal
47+
in the Software without restriction, including without limitation the rights
48+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
49+
copies of the Software, and to permit persons to whom the Software is
50+
furnished to do so, subject to the following conditions:
51+
52+
The above copyright notice and this permission notice shall be included in all
53+
copies or substantial portions of the Software.
54+
55+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
56+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
57+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
58+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
59+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
60+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
61+
SOFTWARE.
62+
3863
* musl: http://www.musl-libc.org
3964

4065
musl as a whole is licensed under the following standard MIT license:

std/assembly/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,8 @@ interface INativeMath<T> extends IMath<T> {
16771677
rem(x: T, y: T): T;
16781678
/** Returns sin and cos simultaneously for same angle. Results stored to `sincos_s32/64` and `sincos_c32/64` globals */
16791679
sincos(x: T): void;
1680+
/** Returns 2 raised to the given power x. Equivalent to 2 ** x. */
1681+
exp2(x: T): T;
16801682
}
16811683

16821684
/** Double precision math imported from JavaScript. */

std/assembly/math.ts

Lines changed: 463 additions & 609 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)