Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1'use strict';2 3var modulo = require('./modulo');4var ToNumber = require('./ToNumber');5var truncate = require('./truncate');6 7var isFinite = require('math-intrinsics/isFinite');8 9// https://262.ecma-international.org/14.0/#sec-toint3210 11var two31 = 0x80000000; // Math.pow(2, 31);12var two32 = 0x100000000; // Math.pow(2, 32);13 14module.exports = function ToInt32(argument) {15 var number = ToNumber(argument);16 if (!isFinite(number) || number === 0) {17 return 0;18 }19 var int = truncate(number);20 var int32bit = modulo(int, two32);21 var result = int32bit >= two31 ? int32bit - two32 : int32bit;22 return result === 0 ? 0 : result; // in the spec, these are math values, so we filter out -0 here23};24 