Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.advocacy > #289192 > unrolled thread

For Ezekilel ,multi-threaded version

Started byMelzzzzz <mel@zzzzz.com>
First post2015-04-12 10:36 +0200
Last post2015-04-13 05:23 +0200
Articles 2 on this page of 22 — 11 participants

Back to article view | Back to comp.os.linux.advocacy


Contents

  For Ezekilel ,multi-threaded version Melzzzzz <mel@zzzzz.com> - 2015-04-12 10:36 +0200
    Re: For Ezekilel ,multi-threaded version Chris Ahlstrom <OFeem1987@teleworm.us> - 2015-04-12 06:45 -0400
      Re: For Ezekilel ,multi-threaded version Melzzzzz <mel@zzzzz.com> - 2015-04-12 17:21 +0200
        Re: For Ezekilel ,multi-threaded version GreyCloud <mist@cumulus.com> - 2015-04-12 12:56 -0600
          Re: For Ezekilel ,multi-threaded version Melzzzzz <mel@zzzzz.com> - 2015-04-12 21:08 +0200
            Re: For Ezekilel ,multi-threaded version GreyCloud <mist@cumulus.com> - 2015-04-12 14:44 -0600
              Re: For Ezekilel ,multi-threaded version Melzzzzz <mel@zzzzz.com> - 2015-04-12 22:47 +0200
                Re: For Ezekilel ,multi-threaded version Peter Köhlmann <peter-koehlmann@t-online.de> - 2015-04-12 23:42 +0200
                  Re: For Ezekilel ,multi-threaded version Melzzzzz <mel@zzzzz.com> - 2015-04-13 05:25 +0200
                    Re: For Ezekilel ,multi-threaded version Peter Köhlmann <peter-koehlmann@t-online.de> - 2015-04-13 09:37 +0200
                      Re: For Ezekilel ,multi-threaded version Melzzzzz <mel@zzzzz.com> - 2015-04-13 11:51 +0200
                        Re: For Ezekilel ,multi-threaded version -hh <recscuba_google@huntzinger.com> - 2015-04-13 08:30 -0700
                          Re: For Ezekilel ,multi-threaded version Steve Carroll <fretwizzer@gmail.com> - 2015-04-13 09:11 -0700
                      Re: For Ezekilel ,multi-threaded version Slimer <slvrslmr@lv.c> - 2015-04-13 08:55 -0400
      Re: For Ezekilel ,multi-threaded version taka0038@gmail.com - 2015-04-12 08:40 -0700
        Ezekiel, multi-threaded moron Chris Ahlstrom <OFeem1987@teleworm.us> - 2015-04-12 13:10 -0400
          Re: Ezekiel, multi-threaded moron GreyCloud <mist@cumulus.com> - 2015-04-12 12:55 -0600
            Re: Christopher John Ahlstrom - moronic cock wiping  pansy "Ezekiel" <zeke@nosuchemail.com> - 2015-04-13 11:06 -0400
    Re: For Ezekilel ,multi-threaded version DFS <nospam@dfs.com> - 2015-04-12 13:22 -0400
      Re: For Ezekilel ,multi-threaded version Melzzzzz <mel@zzzzz.com> - 2015-04-12 19:35 +0200
      Re: For Ezekilel ,multi-threaded version owl <owl@rooftop.invalid> - 2015-04-12 17:45 +0000
    Re: For Ezekilel ,multi-threaded version Melzzzzz <mel@zzzzz.com> - 2015-04-13 05:23 +0200

Page 2 of 2 — ← Prev page 1 [2]


#289255

Fromowl <owl@rooftop.invalid>
Date2015-04-12 17:45 +0000
Message-ID<bbgnvhjdi0.3ja@rooftop.invalid>
In reply to#289247
DFS <nospam@dfs.com> wrote:
> On 4/12/2015 4:36 AM, Melzzzzz wrote:
>> Look at this one, I wrote it yesterday  ;)


> What does it do?

It generates SQL for a genome database.

[toc] | [prev] | [next] | [standalone]


#289337

FromMelzzzzz <mel@zzzzz.com>
Date2015-04-13 05:23 +0200
Message-ID<20150413052351.74c35eab@maxa-pc>
In reply to#289192
On Sun, 12 Apr 2015 10:36:21 +0200
Melzzzzz <mel@zzzzz.com> wrote:

> Look at this one, I wrote it yesterday  ;)
> 	
> ; rax buffer size, rbx input buffer, rdx count
> repeat_fasta:
> 	mov [wbufbegin],dword 0
> 	mov r12,rdx
> 	mov r14,rax
> 	xor r15,r15
> .L00:
> 	xor r13,r13
> .L0:
> 	mov r8b,[rbx+r15]
> 	mov [genbuf+r13],r8b
> 	dec r12
> 	inc r15
> 	inc r13
> 	cmp r13,LINEBUFFSIZ
> 	jz .flush
> 	xor eax,eax
> 	cmp r15,r14
> 	cmove r15,rax
> 	test r12,r12
> 	jnz .L0
> .flush:
> 	mov [wbufend],r13d
> 	mov rsi,genbuf
> 	call write_buf
> 	test r12,r12
> 	jnz .L00
> 	ret
> 

I found bug here,which didn;t show during my tested values ;)
It should be:

; rax buffer size, rbx input buffer, rdx count
repeat_fasta:
        mov [wbufbegin],dword 0
        mov r12,rdx
        mov r14,rax
        xor r15,r15
.L00:
        xor r13,r13
.L0:
        mov r8b,[rbx+r15]
        mov [genbuf+r13],r8b
        dec r12
        inc r15
        xor eax,eax
        cmp r15,r14
        cmove r15,rax
        inc r13
        cmp r13,LINEBUFFSIZ
        jz .flush
        test r12,r12
        jnz .L0
.flush:
        mov [wbufend],r13d
        mov rsi,genbuf
        call write_buf
        test r12,r12
        jnz .L00
        ret

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.os.linux.advocacy


csiph-web