www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/25/17:46:47

From: ignatov AT deol DOT ru (Vladimir Ignatov)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: _lrotl replacement
Date: Sat, 25 Jul 1998 21:02:06 GMT
Organization: Data Express Online
Lines: 27
Message-ID: <35ba46ef.66667937@news.deol.ru>
References: <35b9deda DOT 40014807 AT news DOT deol DOT ru> <35BA1AD4 DOT 8E6F5EEA AT hof DOT baynet DOT de> <35BA363C DOT 3574CA98 AT hof DOT baynet DOT de>
NNTP-Posting-Host: cat2511-1-14.users.deol.ru
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Sat, 25 Jul 1998 21:47:08 +0200, "Böhme Uwe" <uwe AT hof DOT baynet DOT de>
wrote:

>>   int _lrotl( int v ) {
>>      __asm__ __volatile__ (
>>                      "    movw  %0, %%eax         \n"
>>                      "    rol $1, %%eax                 \n"
>>                      "    jo IsDone                         \n"
>>                      "    or  $1, %%eax                 \n"
>>                      "IsDone:                                \n"
>>                      : : "gl" (v)
>>      );
>> };
>>
>
>Sorry it's of course notjo IsDone
>
>this line should be
>                     "    jno IsDone                         \n"
>

Thanks for trying help me but this code in "as is" state too
unefficient and buggy (for example it will not work with any "descent"
optimizing options). I need learn more about inline assembly and then
i post my "final" solution :)

	Vladimir

- Raw text -


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