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