blob: a87563ae91073ca5d22947c3fab35ed6e2631a52 [file]
//-------------------------------------------------------------------------------------------------------
// 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));