www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2023/01/21/10:18:04

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 2002:ac8:605a:0:b0:3a8:15e1:757 with SMTP id k26-20020ac8605a000000b003a815e10757mr558033qtm.194.1674313010008;
Sat, 21 Jan 2023 06:56:50 -0800 (PST)
X-Received: by 2002:a5b:38b:0:b0:7ca:9b40:72a7 with SMTP id
k11-20020a5b038b000000b007ca9b4072a7mr2345709ybp.130.1674313009814; Sat, 21
Jan 2023 06:56:49 -0800 (PST)
Newsgroups: comp.os.msdos.djgpp
Date: Sat, 21 Jan 2023 06:56:49 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=46.123.241.53; posting-account=CPdYWwoAAABpWBQIr4qTKwtnquUvEEfS
NNTP-Posting-Host: 46.123.241.53
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <edefcfee-d1ce-415a-8d1d-525a660fb0d5n@googlegroups.com>
Subject: <cmath> patch anyone?
From: "janezz55 (janezz55 AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Injection-Date: Sat, 21 Jan 2023 14:56:49 +0000
Bytes: 1345
Lines: 3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 30LFFEVO027039
Reply-To: djgpp AT delorie DOT com

It should be easy to make std::trunc() work. First we need to cajole gcc into using C99 math.h (-D_GLIBCXX_USE_C99_MATH_TR1), then several ::using lines need to be removed and a trunc() implementation for double needs to be inserted. Will someone write the patch or do I need to?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019