search for: pfunc

Displaying 20 results from an estimated 26 matches for "pfunc".

Did you mean: func
2001 Oct 14
0
DirectX 8 Library error.
..._entries: 3, bundle: 0x403bc88d, next: 02ae, pSeg: 0x403bd618 trace:module:NE_FixupSegmentPrologs num_entries: 4, bundle: 0x403bc8a2, next: 02c8, pSeg: 0x403bd618 trace:module:NE_FixupSegmentPrologs num_entries: 1, bundle: 0x403bc8bc, next: 02d3, pSeg: 0x403bd618 trace:module:NE_FixupSegmentPrologs pFunc: 0x403bf49e, *(DWORD *)pFunc: 1eec8b55, num_entries: 0 trace:module:NE_FixupSegmentPrologs num_entries: 2, bundle: 0x403bc8c7, next: 02e3, pSeg: 0x403bd618 trace:module:NE_FixupSegmentPrologs num_entries: 4, bundle: 0x403bc8d7, next: 0000, pSeg: 0x403bd618 trace:module:NE_OpenFile (0x403bc5f4) cach...
2010 Oct 09
2
[LLVMdev] LLVM ERROR: Program used external function 'printd' which could not be resolved!
...t; >   printf("%f\n", X); >> >   return 0; >> > } >> > into >> > >> > >> > export "C" { >> > >> >  void printd(double X) { printf("%f\n", X);return 0;} >> > >> >  typedef void(*pfunc)(double); >> > >> > } >> > >> > adding in main() >> > >> > //typedef void(*pfunc)(double); >> > >> > pfunc printd; >> > >> > HMODULE self = GetModuleHandle(0); >> > >> > printd = (pfunc)GetPr...
2012 Jan 07
0
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
Hi Ruben, > I see I missed some curly braces. I also modified spacing a tiny bit. Doesn't seem so. E.g. you have: + if ( !VirtualQuery(addr, &b, sizeof(b)) ) + exit(1); + if( !VirtualProtect(b.BaseAddress, b.RegionSize, PAGE_EXECUTE_READWRITE, &b.Protect) ) Add space after "if". Do not put spaces after "(" and before ")". Same for other
2012 Jan 07
2
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
...ar_cache(void* start, void* end) +{ + if (!FlushInstructionCache(GetCurrentProcess(), start, end-start)) + exit(1); +} +#else #include <sys/mman.h> +extern void __clear_cache(void* start, void* end); +#endif -extern void __clear_cache(void* start, void* end); typedef int (*pfunc)(void); @@ -38,21 +47,29 @@ // make executable the page containing execution_buffer char* start = (char*)((uintptr_t)execution_buffer & (-4095)); char* end = (char*)((uintptr_t)(&execution_buffer[128+4096]) & (-4095)); - if ( mprotect(start, end-start, PROT_READ|PRO...
2011 Jun 12
1
snow package
Hi I try parallelising some code using the snow package and the following lines: cl <- makeSOCKcluster(8) pfunc <- function (x) (if(x <= (-th)) 1 else 0) ###correlation coefficient clusterExport(cl,c("pfunc","th")) cor.c.f <- parApply(cl,tms,c(1,2),FUN=pfunc) The parApply results in the error message: > cor.c.f <- parApply(cl,tms,c(1,2),FUN=pfunc) Error in do.call("...
2010 Oct 09
0
[LLVMdev] LLVM ERROR: Program used external function 'printd' which could not be resolved!
...t; > return 0; > >> > } > >> > into > >> > > >> > > >> > export "C" { > >> > > >> > void printd(double X) { printf("%f\n", X);return 0;} > >> > > >> > typedef void(*pfunc)(double); > >> > > >> > } > >> > > >> > adding in main() > >> > > >> > //typedef void(*pfunc)(double); > >> > > >> > pfunc printd; > >> > > >> > HMODULE self = GetModuleHandle(0);...
2012 Nov 06
1
[PATCH] nouveau: Fix crash after D3
....c b/drivers/gpu/drm/nouveau/core/core/object.c index 0daab62..3da3525 100644 --- a/drivers/gpu/drm/nouveau/core/core/object.c +++ b/drivers/gpu/drm/nouveau/core/core/object.c @@ -354,12 +354,16 @@ static int nouveau_object_decf(struct nouveau_object *object) { int ret; + struct nouveau_ofuncs *pfuncs; nv_trace(object, "stopping...\n"); - ret = nv_ofuncs(object)->fini(object, false); - if (ret) - nv_warn(object, "failed fini, %d\n", ret); + pfuncs = nv_ofuncs(object); + if (pfuncs->fini) { + ret = nv_ofuncs(object)->fini(object, false); + if (ret) + nv_wa...
2001 Dec 03
2
Bug in rsyncd 2.5.0 while handling config file string values
...in lp_do_parameter (snum=-2, parmname=0x808b370 "uid", parmvalue=0x808b374 "foobar") at loadparm.c:647 #3 0x08061b8b in do_parameter (parmname=0x808b370 "uid", parmvalue=0x808b374 "foobar") at loadparm.c:678 #4 0x0806057b in Parameter (InFile=0x808b200, pfunc=0x8061b58 <do_parameter>, c=0) at params.c:405 #5 0x080606a4 in Parse (InFile=0x808b200, sfunc=0, pfunc=0x8061b58 <do_parameter>) at params.c:461 #6 0x08060848 in pm_process (FileName=0xbffff80c "../rsyncd.conf", sfunc=0, pfunc=0x8061b58 <do_parameter>) at params....
2012 Jan 07
3
[LLVMdev] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
...r_cache(void* start, void* end) +{ + if( !FlushInstructionCache(GetCurrentProcess(), start, end-start) ) + exit(1); +} +#else #include <sys/mman.h> +extern void __clear_cache(void* start, void* end); +#endif -extern void __clear_cache(void* start, void* end); - typedef int (*pfunc)(void); int func1() @@ -31,14 +39,23 @@ -unsigned char execution_buffer[128]; + int main() { + unsigned char execution_buffer[128]; // make executable the page containing execution_buffer char* start = (char*)((uintptr_t)execution_buffer & (-4095)); char* end =...
2001 Jun 27
1
err:ntdll:RtlpWaitForCriticalSection...
...le opened 'C:\BADE\FOXW2600.ESL' -> 20 trace:module:NE_LoadSegment Loading segment 1, hSeg=02be, flags=0d42 trace:module:NE_FixupSegmentPrologs (1); trace:module:NE_FixupSegmentPrologs num_entries: 512, bundle: 0x4037bb40, next: 0000, pSeg: 0x4038dc7c trace:module:NE_FixupSegmentPrologs pFunc: 0x403975fc, *(DWORD *)pFunc: 8e909090, num_entries: 511 trace:module:NE_FixupSegmentPrologs pFunc: 0x403975f2, *(DWORD *)pFunc: 8e909090, num_entries: 510 : <snip counting down until num_entries: 0> : trace:module:NE_StartTask Starting main program: cs:ip=02bf:e1ec ds=02cf ss:sp=02cf:589...
2009 Jan 11
4
How to get solution of following polynomial?
Hi, I want find all roots for the following polynomial : a <- c(-0.07, 0.17); b <- c(1, -4); cc <- matrix(c(0.24, 0.00, -0.08, -0.31), 2); d <- matrix(c(0, 0, -0.13, -0.37), 2); e <- matrix(c(0.2, 0, -0.06, -0.34), 2) A1 <- diag(2) + a %*% t(b) + cc; A2 <- -cc + d; A3 <- -d + e; A4 <- -e fn <- function(z) { y <- diag(2) - A1*z - A2*z^2 - A3*z^3 - A4*z^4
2012 Jun 19
0
[LLVMdev] Cast Pointer Address to Functions
...gt; margs; FunctionType* fType; PointerType* pm3_routine; Value* m3func; Value* result; margs.resize(1); margs[0] = I64; fType = FunctionType::get(I32, margs, false); pm3_routine = PointerType::get(fType, 0); m3func = Builder.CreateIntToPtr(I64_Const((uint64_t)pFunc), pm3_routine, "pm3func"); result = Builder.CreateCall(m3func, parameter, "m3func"); - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contac...
2009 Apr 30
1
Hmisc: xYplot and panel.lines
...as expected for panel.abline, but as soon as I'm using panel.lines (or llines or lpoints) from the "lattice" package (version 0.17-17 with R 2.8.1), it seems that it is not using the coordinate system that the original plot used, i.e. the graph does not work at all. My code: pfunc <- function(x,y,...) { panel.xYplot(x, y, ...) panel.abline(h=4.0, col = "grey") # works fine panel.lines(-d$chosenValveSetting, col="orange") # in the wrong place } xYplot(I(AmountInTank) + I(-UserOutFlow+UserInFlow) + I(EnvirInFlow) ~ Time.Step, data=subset(...
2001 Nov 16
0
Getting Groupwise to run setup.exe
...trace:file:SetFilePointer handle 76 offset 4064 high 0 origin 0 trace:file:ReadFile 76 0x4038cb68 33068 0x407c6c34 (nil) trace:module:NE_FixupSegmentPrologs (1); trace:module:NE_FixupSegmentPrologs num_entries: 4, bundle: 0x40381fff, next: 0000, pSeg: 0x4038cb68 trace:module:NE_FixupSegmentPrologs pFunc: 0x40390422, *(DWORD *)pFunc: 4590d88c, num_entries: 3 trace:module:NE_FixupSegmentPrologs patch 01e7:38ba -> nop, nop trace:module:NE_FixupSegmentPrologs pFunc: 0x403928e4, *(DWORD *)pFunc: 4590d88c, num_entries: 2 trace:module:NE_FixupSegmentPrologs patch 01e7:5d7c -> nop, nop trace:modul...
2012 Jan 07
1
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
...r_cache(void* start, void* end) +{ + if( !FlushInstructionCache(GetCurrentProcess(), start, end-start) ) + exit(1); +} +#else #include <sys/mman.h> +extern void __clear_cache(void* start, void* end); +#endif -extern void __clear_cache(void* start, void* end); typedef int (*pfunc)(void); @@ -38,7 +47,15 @@ // make executable the page containing execution_buffer char* start = (char*)((uintptr_t)execution_buffer & (-4095)); char* end = (char*)((uintptr_t)(&execution_buffer[128+4096]) & (-4095)); +#if defined(_WIN32) + DWORD dummy_oldProt; +...
2006 Apr 04
0
Need help debugging (long)
...charset", pszParmValue=0x83e98f4 "CP932") at param/loadparm.c:3483 #13 0x0808a76b in do_parameter (pszParmName=0x83e98e8 "dos charset", pszParmValue=0x83e98f4 "CP932") at param/loadparm.c:3557 #14 0x0808f459 in Parameter (InFile=0x83e8028, pfunc=0x808a6da <do_parameter>, c=0) at param/params.c:450 #15 0x0808f523 in Parse (InFile=0x83e8028, sfunc=0x808ab6c <do_section>, pfunc=0x808a6da <do_parameter>) at param/params.c:504 #16 0x0808f7f7 in pm_process (FileName=0xbfa8baec "/etc/samba/smb.conf", sf...
2016 Feb 10
5
Question about an error we're now starting to get on LLVM 3.8.0rc2since
...;Kevin.Harris at unisys.com> wrote: > > Duncan, > Kevin Harris here, from Unisys. In our application, generating LLVM IR, we have several instances of code that looks like this: > > . . . > Value* pDS; > . . . > auto argIt = pFunc->arg_begin(); > pDS = argIt; > . . . > > This construct works fine in 3.7, but in LLVM 3.8.0rc2, I’m now getting an error: > > g++-5.2.0 `/home/kharris/dyntrans/llvm-install/bin/llvm-config --cxxflags` -D JITREV="\"4793\"" -D...
2012 Jun 18
4
[LLVMdev] Cast Pointer Address to Functions
I have a function address held in an uint64_t. I would like to cast the function address to a function prototype and create a call to the function in LLVM. How could I do this ? Thanks Xin
2018 Jun 05
0
[PATCH v2 1/2] compiler-gcc.h: add gnu_inline to all inline declarations
...ime*HZ/1000))); } -__inline static void _cancel_timer(_timer *ptimer, u8 *bcancelled) +static inline void _cancel_timer(_timer *ptimer, u8 *bcancelled) { del_timer_sync(ptimer); *bcancelled = true;/* true == 1; false == 0 */ } -__inline static void _init_workitem(_workitem *pwork, void *pfunc, void *cntx) +static inline void _init_workitem(_workitem *pwork, void *pfunc, void *cntx) { INIT_WORK(pwork, pfunc); } -__inline static void _set_workitem(_workitem *pwork) +static inline void _set_workitem(_workitem *pwork) { schedule_work(pwork); } -__inline static void _cancel_worki...
2008 Dec 15
1
WineLib and Java Native Interface (JNI) - UNIX
...s to the Share Object Lib (so lib) (Using Winedump and Winegcc to build). The functions in the so lib can work normally with my C main test function. BUT when I call it from Java. The function can linked BUT it is crashed at the WineLib functions: hDLL = LoadLibraryA("HelloImpl.dll") or pFunc=(void*)GetProcAddress(hDLL,"?sayHello@@YAXPAD at Z"); The below is some my code: 1. Run winedump from window dll winedump spec -f dump HelloImpl.dll -I "*.h" 2. Add Java Native Interface to HelloImpl_main.c and make a Share Object lib (so) winegcc HelloImpl.spec -o libhello...