| 1234567891011121314151617181920 |
- //-------------------------------------------------------------------------------------------------------
- // Copyright (C) Microsoft. All rights reserved.
- // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
- //-------------------------------------------------------------------------------------------------------
- function AsmModuleFloat(stdlib) {
- "use asm";
- var fround = stdlib.Math.fround;
- function rem(x,y) {
- x = fround(x);
- y = fround(y);
- return fround(x%y);
- }
-
- return {
- rem : rem,
- };
- }
- var asmModuleFloat = AsmModuleFloat({Math:Math});
- print(asmModuleFloat.rem(1,1));
|