Displaying 7 results from an estimated 7 matches for "newpo".
Did you mean:
newpm
2008 Aug 28
2
sample consecutive integers efficiently
...sampled
integers need to be consecutive. Im hoping somebody knows a faster way
of doing it than I have. ATM its way to slow on large vectors.
samplePos<-function(l){
start.pos<-sample(pos,1)
end.pos<-start.pos+l-1
posies<-start.pos:end.pos
posies
}
s.start<-c()
newPos<-function(a){
rp<-samplePos(a)
#test sampled range is consecutive, if not resample
if (length(rp) != rp[a]+1 -rp[1]){rp<-samplePos(a)}
pos<-setdiff(pos,rp)
rp[1]
}
newps<-c()
newps<-unlist(lapply(lengths,newPos))
I think the bottleneck may be on the setdiff(...
2017 Jul 12
5
[LLD] Linker Relaxation
Hi,
On Wed, Jul 12, 2017 at 2:21 AM, Rui Ueyama via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
> Thanks, Bruce. This is a very interesting optimization.
>
> lld doesn't currently have code to support that kind of code shrinking
> optimization, but we can definitely add it. It seems that essentially we
> need to iterate over all relocations while rewriting
2006 Mar 21
0
wine and Mankind (the one from www.mankind.net) - possible networking or file creation problem
..." 520 0x7ca7c7f0 (nil))
trace:file:wine_nt_to_unix_file_name L"\\??\\C:\\Programme\\Mankind\
\Mankind\\Mankind.dpf" ->
"$HOME/.wine/dosdevices/c:/Programme/Mankind/Mankind/Mankind.dpf"
trace:file:CreateFileW returning 0x88
trace:file:SetFilePointerEx handle 0x88 offset 0 newpos 0x7ca7cb38
origin 2
trace:file:SetFilePointerEx handle 0x88 offset 0 newpos 0x7ca7cb30
origin 1
trace:file:SetFilePointerEx handle 0x88 offset 0 newpos 0x7ca7cb38
origin 0
trace:file:ReadFile 0x88 0x7fd45b48 16 0x7ca7cb58 (nil)
trace:file:GetFileAttributesW L"C:\\Programme\\Mankind\
\Mankind/...
2007 Apr 13
0
[951] branches/wxruby2/wxwidgets_282: Additions to Grid API 2.6->2.8
...gt;@@ -1703,6 +1801,14 @@
</span><span class="cx">
</span><span class="cx">
</span><span class="cx">
</span><ins>+h3(#Grid_setcolpos). Grid#set_col_pos
+
+ *set_col_pos*(%(arg-type)Integer% colID, %(arg-type)Integer% newPos)
+
+Sets the position of the specified column.
+
+
+
</ins><span class="cx"> h3(#Grid_setcolsize). Grid#set_col_size
</span><span class="cx">
</span><span class="cx"> *set_col_size*(%(arg-type)Integer% col, %(arg-type)Integer% w...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not
allocating RBP to any virtual register, the instances of RBP in function
foo are in the machine code when my register allocator starts.)
Function foo calls function bar. Register RBP is not saved across the
call, though it is live after the call. Function bar includes a virtual
register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...;yy\"\n") );
fprintf( err, ("\t-S specify skeleton file\n") );
fprintf( err, ("\t--help produce this help message\n") );
fprintf( err, ("\t--version report %s version\n"), program_name );
}
void ccladd( cclp, ch )
int cclp;
int ch;
{
int ind, len, newpos, i;
check_char( ch );
len = ccllen[cclp];
ind = cclmap[cclp];
for ( i = 0; i < len; ++i )
if ( ccltbl[ind + i] == ch )
return;
newpos = ind + len;
if ( newpos >= current_max_ccl_tbl_size )
{
current_max_ccl_tbl_size += 250;
++num_reallocs;
ccltbl = (unsigned char *) reallo...
2003 Dec 01
0
No subject
...il.c:show_msg(308)
smb_bcc=0
[2001/07/24 14:08:35, 3] smbd/process.c:switch_message(650)
switch message SMBlseek (pid 99749)
[2001/07/24 14:08:35, 4] smbd/uid.c:become_user(119)
Skipping become_user - already user
[2001/07/24 14:08:35, 3] smbd/reply.c:reply_lseek(2869)
lseek fnum=4661 ofs=0 newpos = 2593551 mode=2
[2001/07/24 14:08:35, 5] lib/util.c:show_msg(292)
size=39
smb_com=0x12
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=128
smb_flg2=1
[2001/07/24 14:08:35, 5] lib/util.c:show_msg(298)
smb_tid=1
smb_pid=15571
smb_uid=100
smb_mid=27521
smt_wct=2
[2001/07/24 14:08:35,...