search for: clocks_per_sec

Displaying 8 results from an estimated 8 matches for "clocks_per_sec".

2006 May 25
1
pxelinux/mboot confused about e820 memory maps on HP Proliant BIOS's
...line-syslinux/./syslinux-3.11/com32/samples/keytest.c 2006-05-25 14:03:32.000000000 -0700 +++ fixed-syslinux/./syslinux-3.11/com32/samples/keytest.c 2006-05-25 14:03:03.000000000 -0700 @@ -72,7 +72,7 @@ { console_ansi_raw(); - printf("CLK_TCK = %d\n", (int)CLK_TCK); + printf("CLOCKS_PER_SEC = %d\n", (int)CLOCKS_PER_SEC); printf("Press keys, end with Ctrl-C...\n"); for (;;) { --- baseline-syslinux/./syslinux-3.11/com32/libutil/get_key.c 2006-05-25 14:03:31.000000000 -0700 +++ fixed-syslinux/./syslinux-3.11/com32/libutil/get_key.c 2006-05-25 14:03:01.000000000 -07...
2006 Feb 09
0
[PATCH] remove x86_64 mach-xen/asm/param.h
This has only cosmetic change from mainline. -#define CLOCKS_PER_SEC (USER_HZ) /* like times() */ +# define CLOCKS_PER_SEC (USER_HZ) /* like times() */ Signed-off-by: Chris Wright <chrisw@sous-sol.org> --- diff -r 754079886035 linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/param.h --- a/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm...
2009 Apr 01
2
[LLVMdev] adding header files to code
Hi, I was wondering how to add header files to code in LLVM. I am trying to create a small profiler to track the actual time spent in functions. For this i am adding call to clock() in the C code of the given program. However this will require adding the file time.h to C code. Can some tell me a way to do so. I have tried using Module.addLibrary("time.h"); but this doesn't seem
2004 Sep 10
2
1.0 candidate checked in
> OK, attempting one more convergence on all this, here's > what I did: > > 1. Reverted back to rev 1.5 of src/libFLAC/ia32/Makefile.am > 2. Applied Matt's last cleanup patch of 8 files. I did not > apply the patch to src/test_unit/main.c since it looks wrong. > main.c is supposed to include the local bitbuffer.h, not > src/libFLAC/private/bitbuffer.h; I think the
2015 Apr 30
2
[LLVMdev] SmallString + raw_svector_ostream combination should be more efficient
I don't think we should make flush virtual. Why do you need to do it? Can't you set up the base class to write to use the tail of the memory region as the buffer? On 24 April 2015 at 06:46, Yaron Keren <yaron.keren at gmail.com> wrote: > Hi, > > Is this what you're thinking about? > The code is not tested yet, I'd like to know if the overall direction and >
2015 May 02
2
[LLVMdev] SmallString + raw_svector_ostream combination should be more efficient
Could you dig into why: + raw_ostream &write(unsigned char C) override { + grow(1); + *OutBufCur++ = C; + return *this; + } Is 3 times as fast as raw_svector_ostream? I don't see a good reason why that should be any faster than: raw_ostream &operator<<(char C) { if (OutBufCur >= OutBufEnd) return write(C); *OutBufCur++ = C; return *this; }
2015 May 02
2
[LLVMdev] SmallString + raw_svector_ostream combination should be more efficient
...ure Buffer was not reallocated. + assert(Buffer.capacity() == BufferSize); +} + +void testIt(void (*F)()) { + std::clock_t StartTime = std::clock(); + for (unsigned i = 1e7; i; --i) + F(); + std::clock_t EndTime = std::clock(); + unsigned ms = unsigned(double(EndTime - StartTime) * 1000.0 / CLOCKS_PER_SEC); + outs() << ms << "ms\n"; +} +} + +int main() { + testIt(test_raw_char_ostream); + testIt(test_raw_svector_ostream); + return 0; +}
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Hi, This series targets automatic boot menu generation, but most of it is the Lua upgrade, because I got tired reading deprecated API docs. It's mostly a straightforward forward port of the earlier Syslinux specific changes to Lua 5.1, except that: * I chose the add a stub getenv() implementation to the COM32 API instead of #ifdefing out all the references in Lua, and * I kept oslib