From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21057 invoked from network); 22 Jan 2021 17:37:12 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 22 Jan 2021 17:37:12 -0000 Received: from mail-io1-f47.google.com ([209.85.166.47]) by 1ess; Fri Jan 22 12:07:08 -0500 2021 Received: by mail-io1-f47.google.com with SMTP id d81so12486248iof.3 for <9front@9front.org>; Fri, 22 Jan 2021 09:07:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=QpGSfkyKWmH8VhcY3wyhjjJiXfq4fRTAK6evMDc4CuU=; b=tpSdC0Bg99GoMtrsFKHopLruCs67T1WX4DoZiIy1dYaYNcCPK/iKtLi0ygHf9H412w QHIYcf0FMB8eAHG/t6lWj1lcZbUdoKCqQdn4TG1xuwdsQnuIdLpMuOAK/54ccGIW0bjz hsUIx6b3CUv2gC7zbLp4KyxTfj/xSkzd15/3DKhg9DXAB7A78jyTdNqYRsBVJxSNzd8y ayYX3qmNlw1oYZ1aqsgvj4BO4JJKKVpzUEm5vn9VWs5OpC5206Y6GgGLeK5fyKD8vmof zlNe5UaLTmt173+OsT2bBAWvyo3WiAiLe4l2LxRNaqbMCotcOG+AzHFbwZUGMjmTzzWu m+xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=QpGSfkyKWmH8VhcY3wyhjjJiXfq4fRTAK6evMDc4CuU=; b=FwM7Fiy9kXckeK6K1MZc+3iUtMRWJhuo1WgQ0vyj9hBm5SjtXZm5/U58A43yFBxvUx f0HhLiwkyzxu2pvPMqXfNaoAY1oO7PrwWgA7cQ1G8yzt85YS5jxDA6q2CuLuj/zgrMed WiCchDdxwc+G7JA5Nznur/9Gquaed1P99ulYwM4U6IQmw68U3yXrAY7+gUP4c0Pxxvrs U8f9dOsgDhHF47VwGuTWV6yOusZj/+TLJRMp0IpsGzMD16w/VovLxqJHA9/e34QE5RGM 52rrZoCoebRce00qteBalZjO9ecC+x3zuzTrt8K8nPcmEIKAGXVNKG5ePDv1AeYHD0iZ n/pg== X-Gm-Message-State: AOAM532MZvxgDhNe39YHE5vik84hR3CduJAfjvfD90cbc6r2tfURCjDO BWweffCgOs9splhMhR2bH7K9Cp7h1V4= X-Google-Smtp-Source: ABdhPJxRdaOf4P8waCm596nmUfMlrVYcHOHyNoVMKs168IiRCWdl3sbZ7LBjWD9BUE+xePCWYEgWIg== X-Received: by 2002:a5d:8405:: with SMTP id i5mr4179350ion.164.1611335219363; Fri, 22 Jan 2021 09:06:59 -0800 (PST) Return-Path: Received: from [10.0.1.7] (c-67-184-39-205.hsd1.il.comcast.net. [67.184.39.205]) by smtp.gmail.com with ESMTPSA id y25sm5443362ioa.5.2021.01.22.09.06.58 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jan 2021 09:06:58 -0800 (PST) From: Xiao-Yong Jin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Date: Fri, 22 Jan 2021 11:06:57 -0600 References: To: 9front@9front.org In-Reply-To: Message-Id: <0EB7FD40-9EEE-45D4-8926-9BCC1940FE9C@gmail.com> X-Mailer: Apple Mail (2.3654.40.0.2.32) List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: social ISO-certified SOAP element framework-oriented control Subject: Re: [9front] ape modf infinite recursion Reply-To: 9front@9front.org Precedence: bulk > On Jan 21, 2021, at 10:20 PM, Anthony Martin wrote: >=20 > Xiao-Yong Jin once said: >> modf(ip=3D0x7fffffffe9e8,d=3D0xffffffffffffffff)+0x43 = /sys/src/ape/lib/ap/plan9/frexp.c:78 >> modf(ip=3D0x7fffffffe9e8,d=3D0xffffffffffffffff)+0x43 = /sys/src/ape/lib/ap/plan9/frexp.c:78 >> modf(ip=3D0x7fffffffe9e8,d=3D0xffffffffffffffff)+0x43 = /sys/src/ape/lib/ap/plan9/frexp.c:78 >=20 > There was a fix to this on sources that was > apparently never picked up by 9front. >=20 > I've included it below but you can also find > it in David du Colombier's mirror: >=20 > = https://github.com/0intro/plan9/commit/119c1d0c712512776162de1eca755006f07= fe91c The one at /sys/src/libc/port/frexp.c seems up-to-date with that, but not the ape one. I borrowed the one from musl https://git.musl-libc.org/cgit/musl/tree/src/math/modf.c to ape, which seems to behave better.=