Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <v9i055$dmsd$1@dont-email.me>
Deutsch   English   Français   Italiano  
<v9i055$dmsd$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: BGB <cr88192@gmail.com>
Newsgroups: comp.arch
Subject: Re: My 66000 and High word facility
Date: Wed, 14 Aug 2024 05:15:58 -0500
Organization: A noiseless patient Spider
Lines: 235
Message-ID: <v9i055$dmsd$1@dont-email.me>
References: <v98asi$rulo$1@dont-email.me>
 <38055f09c5d32ab77b9e3f1c7b979fb4@www.novabbs.org>
 <v991kh$vu8g$1@dont-email.me> <2024Aug11.163333@mips.complang.tuwien.ac.at>
 <v9ath5$2qgnb$1@dont-email.me> <2024Aug12.082936@mips.complang.tuwien.ac.at>
 <130df049c4c97984986767736b5b037a@www.novabbs.org>
 <v9dnmv$3efnj$1@dont-email.me>
 <acb76cee233f19672f2ad0380c9cd06e@www.novabbs.org>
 <v9dt2a$3fdml$1@dont-email.me>
 <27b9630c6cd23b6ac1251bb3416ce1cf@www.novabbs.org>
 <v9e9nk$3i0qi$1@dont-email.me>
 <d491513fc46ed375dd1d3764dbdf9b6f@www.novabbs.org>
 <v9el5h$3njmh$1@dont-email.me>
 <cf020629e85ce690b8d60d92cea9023e@www.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 14 Aug 2024 12:16:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="563ca555b98437b11192305ee437d070";
	logging-data="449421"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+8Q0uCq1B9WfotkouIVGv63LLNJzCBGXQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:GwC+6C7q67nDw+U+/8vbDVTce7I=
Content-Language: en-US
In-Reply-To: <cf020629e85ce690b8d60d92cea9023e@www.novabbs.org>
Bytes: 8448

On 8/13/2024 12:24 PM, MitchAlsup1 wrote:
> On Tue, 13 Aug 2024 3:50:04 +0000, BGB wrote:
> 
>> On 8/12/2024 8:23 PM, MitchAlsup1 wrote:
>>> On Tue, 13 Aug 2024 0:34:55 +0000, BGB wrote:
>>>
>>>> On 8/12/2024 5:35 PM, MitchAlsup1 wrote:
>>>>> On Mon, 12 Aug 2024 20:58:45 +0000, BGB wrote:
>>>>>
>>>>>> On 8/12/2024 3:12 PM, MitchAlsup1 wrote:
>>>>>
>>>>>>> See polpak:: r8_erf()
>>>>>>>
>>>>>>>
>>>>>>> r8_erf:                                 ; @r8_erf
>>> <snip>
>>>>>
>>>>> Why don't yuo download polpack, compile it, and state how many
>>>>> instructions it takes and how many words of storage it takes ??
>>>>
>>>> Found what I assume you are talking about.
>>>>
>>>> Needed to add "polpak_test.c" as otherwise BGBCC lacks a main and 
>>>> prunes
>>>> everything;
>>>> Also needed to hack over some compiler holes related to "complex
>>>> _Double" to get it to build;
>>>> Also needed to stub over some library functions that were added in C99
>>>> but missing in my C library.
>>>
>>> I only ask for r8_erf()
>>>>
>>> <snip>
>>>
>>>> As for "r8_erf()":
>>>>
>>>> <===
>>>>
>>>> r8_erf:
>>> <snip>
>>>
>>> I count 283 instructions compared to my 85 including the 104
>>> instructions
>>> it takes your compiler to get to the 1st instruction in My 66000 code !!
>>>
>>
>> Yeah, this is a compiler issue...
> 
> Why not sit down and code it in ASM to see what your ISA can really do?
> Feel free to use My 66000 code as an example.
> 

Assuming I use all of the ISA features that currently exist:

r8_erf:                                 ; @r8_erf
      MOV     R4, R1
      FABS    R1,R2
      FCMPGT  0x3780, R2  //Half
      BF      .LBB141_5

      FCMPGT  0x4400, R2  //Half
      BF      .LBB141_6

      FCMPGE  0x403A8B020C49BA5E, R2
      BT      .LBB141_7

      FMUL    R1, R1, R3
      FLDCH   0x3C00, R2
      FDIV    R2, R3, R3
      MOV     0x3F90B4FB18B485C7, R4
      MOV     0x3FD38A78B9F065F6, R16
      FMAC    R3, R16, R4, R4
      FADD    R3, 0x40048C54508800DB, R5

      MOV     0x3FD70FE40E2425B8, R16
      FMAC    R3, R16, R4, R4

      MOV     0x3FFDF79D6855F0AD, R16
      FMAC    R3, R16, R5, R5

      MOV     0x3FC0199D980A842F, R16
      FMAC    R3, R16, R4, R4
      MOV     0x3FE0E4993E122C39, R16
      FMAC    R3, R16, R5, R5
      MOV     0x3F9078448CD6C5B5, R16
      FMAC    R3, R16, R4, R4
      MOV     0x3FAEFC42917D7DE7, R16
      FMAC    R3, R16, R5, R5
      MOV     0x3F4595FD0D71E33C, R16
      FMAC    R3, R16, R4, R4

      FMUL    R4,R3,R4
      MOV     0x3F632147A014BAD1, R16
      FMAC    R5, R3, R16, R3
      FDIV    R4, R3, R3
      FNEG    R3, R3
      FADD    R3, 0x3FE20DD750429B6D, R3
      FDIV    R3, R2, R3
      BRA     .LBB141_4
LBB141_5:
      FMUL    R1, R1, R3
      MOV     0, R4
      FCMPGT  0x3C9FFE5AB7E8AD5E, R2
      CSELT   R3, R4, R2
      MOV     0x3FC7C7905A31C322, R3

      MOV     0x400949FB3ED443E9, R16
      fmac    R2, R16, R3, R3
      FADD    R2,#0x403799EE342FB2DE, R4

      MOV     0x405C774E4D365DA3, R16
      RMAC    R2, R16, R3, R3
      MOV     0x406E80C9D57E55B8, R16
      FMAC    R2, R16, R4, R4

      MOV     0x407797C38897528B, R16
      FMAC    R2, R16, R3, R3
      MOV     0x40940A77529CADC8, R16
      FMAC    R2, R16, R4, R4
      MOV     0x40A912C1535D121A, R16
      FMAC    R2, R16, R3, R3

      FMUL    R3, R1, R1
      MOV     0x40A63879423B87AD, R16
      FMAC    R2, R16, R4, R2
      FDIV    R1, R2, R2
      RTS

LBB141_6:
      MOV     0x3E571E703C5F5815, R3
      fmac    r3,r2,r3,#0x3FE20DD508EB103E
      fadd    r4,r2,#0x402F7D66F486DED5
      fmac    r3,r2,r3,#0x4021C42C35B8BC02
      fmac    r4,r2,r4,#0x405D6C69B0FFCDE7
      fmac    r3,r2,r3,#0x405087A0D1C420D0
      fmac    r4,r2,r4,#0x4080C972E588749E
      fmac    r3,r2,r3,#0x4072AA2986ABA462
      fmac    r4,r2,r4,#0x4099558EECA29D27
      fmac    r3,r2,r3,#0x408B8F9E262B9FA3
      fmac    r4,r2,r4,#0x40A9B599356D1202
      fmac    r3,r2,r3,#0x409AC030C15DC8D7
      fmac    r4,r2,r4,#0x40B10A9E7CB10E86
      fmac    r3,r2,r3,#0x40A0062821236F6B
      fmac    r4,r2,r4,#0x40AADEBC3FC90DBD
      fmac    r3,r2,r3,#0x4093395B7FD2FC8E
      fmac    r4,r2,r4,#0x4093395B7FD35F61
      fdiv    r3,r3,r4
LBB141_4:
      FMUL    R2, 0x40300000, R4
      FMUL    R4, 0x3FB00000, R4
      FSTCI   R4, R4
      FLDCI   R4, R4
      FNEG    R4, R6
      fadd    R2, R6, R5
      fadd    R2, R4, R2
      fmul    R4, R6, R4
      fexp    r4,r4  //?

      fmul    R2,R7, R2
      fexp    r2,r2
      fmul    R4, R2, R2
      FNEG    R2, R2
      fmac    r2,r2,r3,#0x3F000000
      fadd    r2,r2,#0x3F000000
      pdlt    r1,T  //?
      fadd    r2,#0,-r2
      RTS
========== REMAINDER OF ARTICLE TRUNCATED ==========