search for: loop_count

Displaying 17 results from an estimated 17 matches for "loop_count".

Did you mean: lock_count
2006 Jul 05
2
[Newbie] The pickaxe book and benchmark
Hello, I was reading the pickaxe book and then I arrived to the chapter "When trouble strikes" in the Benchmark section. I have this code: #!/usr/bin/ruby -w require ''benchmark'' include Benchmark LOOP_COUNT = 1_000_000 bm(12) do |test| test.report("normal:") do LOOP_COUNT.times do |x| y = x +1 end end test.report("predefine:") do x = y = 0 LOOP_COUNT.times do |x| y = x + 1 end end end The "predefine" test is more fast t...
2007 Nov 18
0
3 commits - libswfdec/swfdec_audio_event.c libswfdec/swfdec_sound.c
.../ 2), 1) * 0.5; } else { dest[i] *= swfdec_audio_event_get_envelop_volume (event, pos, global_offset + (i / 2), i % 2); commit b1b1e84b689c361b69147adc523a50ebc58aeb5a Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Sun Nov 18 18:01:53 2007 +0200 In StartSound tag loop_count 0 means 1 diff --git a/libswfdec/swfdec_sound.c b/libswfdec/swfdec_sound.c index 4b97df5..dffe212 100644 --- a/libswfdec/swfdec_sound.c +++ b/libswfdec/swfdec_sound.c @@ -348,6 +348,10 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, SwfdecBits *b, int id) } if (has_loops) { chunk->...
2007 Oct 11
0
12 commits - configure.ac doc/Makefile.am libswfdec/swfdec_as_frame.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_shape_parser.c libswfdec/swfdec_sound.c test/sound
..._EVENT (audio); - guint loops; if (event->n_samples == 0) return 0; event->offset += remove; - loops = event->offset / event->n_samples; + event->loop += event->offset / event->n_samples; event->offset %= event->n_samples; - if (loops >= event->loop_count) { - event->loop_count = 0; - return 0; - } - event->loop_count -= loops; - - return event->n_samples * event->loop_count - event->offset; + + return event->n_samples * (event->n_loops - event->loop) - event->offset; } static void @@ -62,14 +56,14 @@ swfde...
2011 Nov 18
5
[PATCH 0 of 4] amd iommu: IOMMUv2 support
This patch set adds basic supports for amd next generation iommu (IOMMUv2) hardware. IOMMUv2 supports various new features advertised by iommu extended feature register. It introduces guest level IO translation and supports state-of-the-art ATS/ATC devices with demand paging capability. Please refer to AMD IOMMU Architectural Specification [1] for more details. Thanks, Wei [1]
2000 Mar 20
0
smbfs patch - listing large direcories from an OS/2 server
...sr/src/cvsroot/linux/fs/smbfs/proc.c,v retrieving revision 1.1.1.3 diff -u -r1.1.1.3 proc.c --- fs/smbfs/proc.c 2000/03/16 07:13:52 1.1.1.3 +++ fs/smbfs/proc.c 2000/03/20 12:52:08 @@ -12,6 +12,9 @@ * - don't sleep every time with win95 on a FINDNEXT * - fixed loop_count bug * - got rid of resume_key + * 20/03/00 (chrisp) + * - fixed FINDFIRST flags for OS/2 Server + * - added lastname/mask stuff back (OS/2 needs it) */ #include <linux/types.h> @@ -1550,6 +1553,7 @@ int resp_param_len = 0; int ff_searchcoun...
2007 Oct 31
0
5 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_audio.c libswfdec/swfdec_sound.c libswfdec/swfdec_xml.c
...s *b, int id) int has_loops; int has_out_point; int has_in_point; - guint i, j, n_envelopes; - GArray *envelopes; + guint i, j; SwfdecSound *sound; SwfdecSoundChunk *chunk; @@ -352,47 +351,29 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, SwfdecBits *b, int id) chunk->loop_count = 1; } if (has_envelope) { - n_envelopes = swfdec_bits_get_u8 (b); - if (n_envelopes > 0) { - envelopes = g_array_sized_new (FALSE, FALSE, - sizeof (SwfdecSoundEnvelope), n_envelopes); - } + chunk->n_envelopes = swfdec_bits_get_u8 (b); + chunk->envelope = g_new0...
2019 Jan 31
4
Confusing ERROR with LoopAccessLegacyAnalysis: Pass 'Unnamed pass: implement Pass::getPassName()' is not initialized.
...apperPass>().getSE(); auto &LI = getAnalysis<LoopInfoWrapperPass>().getLoopInfo(); // auto *LAA = &getAnalysis<LoopAccessLegacyAnalysis>(); if (Loop_id.find(L)==Loop_id.end()) // traverse instructions in the block assign instruction ID { Loop_id[L] = ++Loop_Counter; } // *Loop_out << "---------------Loop report----------------\n"; // *Loop_out << LAA->getInfo(L).getReport(); return false; } char LoopInformationCollect::ID = 0; void LoopInformationCollect::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRe...
2009 Aug 17
0
Call back DIALSTATUS is empty
...,Goto(${EXTEN},1) exten => hangup,1,DeadAGI(agi://127.0.0.1/callback_handler?num2=${EXTEN}&callid=${CAL L_ID}&num1=${num1}&state=${STATE}) ; end of [multi-dir-callback] Here is the code from my mail .pm file: # main loop for callback sub callback_handler { my $loop_count=5; my $self = shift; my $call_id = $self->param('callid'); my $ph_num= $self->param('num1'); my $p_num= $self->param('num2'); my $con= $self->{server}{dbi}; my $state=$self->agi->get_variable("stat_...
2007 Oct 29
0
2 commits - libswfdec/swfdec_sound.c libswfdec/swfdec_text_field_movie.c
...d SWFDEC_FIXME about sound envelopes diff --git a/libswfdec/swfdec_sound.c b/libswfdec/swfdec_sound.c index 64e22a3..2f3dec0 100644 --- a/libswfdec/swfdec_sound.c +++ b/libswfdec/swfdec_sound.c @@ -351,6 +351,7 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, SwfdecBits *b, int id) chunk->loop_count = 1; } if (has_envelope) { + SWFDEC_FIXME ("support for sound envelopes not implemented"); chunk->n_envelopes = swfdec_bits_get_u8 (b); chunk->envelope = g_new (SwfdecSoundEnvelope, chunk->n_envelopes); SWFDEC_LOG (" n_envelopes = %u", chunk-&gt...
2000 Jan 05
1
Signal 11 in attempt_netbios_session_request
> I have just upgraded to Samba 2.0.6 and can no longer connect to Samba > shares on my FreeBSD 3.4-RELEASE machine. When I attempt to connect, the > smb.log contains the following information: > > [2000/01/04 17:54:42, 3] libsmb/namequery.c:resolve_lmhosts(566) > resolve_lmhosts: Attempting lmhosts lookup for name > NTWEB2.AIS.MSU.EDU<0x20> > [2000/01/04
2004 Dec 19
0
[2.6 patch] remove outdated smbfs ChangeLog
...ly debug macros. - -2000-01-03 Christian Groessler <cpg@aladdin.de> - - * proc.c: added posix semantics for unlink - -1999-11-16 Andrew Tridgell - - * proc.c: use level 260 for most conns, or level 1 for <NT1 - * proc.c: don't sleep every time with win95 on a FINDNEXT - * proc.c: fixed loop_count bug - * proc.c: got rid of resume_key - -[there are a few missing here :) ] - -1997-09-28 Riccardo Facchetti - - * proc.c: Fixed smb_d_path [now smb_build_path()] to be non-recursive - -1996-06-28 Yuri Per - - * proc.c: Fixed long file name support (smb_proc_readdir_long) - -You are in the wrong en...
2005 Jan 08
0
[2.6 patch] remove outdated smbfs ChangeLog (fwd)
...ly debug macros. - -2000-01-03 Christian Groessler <cpg@aladdin.de> - - * proc.c: added posix semantics for unlink - -1999-11-16 Andrew Tridgell - - * proc.c: use level 260 for most conns, or level 1 for <NT1 - * proc.c: don't sleep every time with win95 on a FINDNEXT - * proc.c: fixed loop_count bug - * proc.c: got rid of resume_key - -[there are a few missing here :) ] - -1997-09-28 Riccardo Facchetti - - * proc.c: Fixed smb_d_path [now smb_build_path()] to be non-recursive - -1996-06-28 Yuri Per - - * proc.c: Fixed long file name support (smb_proc_readdir_long) - -You are in the wrong en...
2000 Jun 28
1
[Patch] Shorter patch for smbfs 2.2.16
.../2 accept info level 1 (but see note below). */ int info_level = 260; const int max_matches = 512; @@ -1375,11 +1605,18 @@ int resp_param_len = 0; int ff_searchcount = 0; int ff_eos = 0; + int ff_lastname = 0; int ff_dir_handle = 0; int loop_count = 0; int mask_len, i, result; static struct qstr star = { "*", 1, 0 }; + /* + * use info level 1 for older servers that don't do 260 + */ + if (server->opt.protocol < SMB_PROTOCOL_NT1) + info_level = 1; + smb_lock_...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...unk int stop; /* stop the sample being played */ int no_restart; /* don't restart if already playing */ - unsigned int start_sample; /* sample at which to start playing */ - unsigned int stop_sample; /* first sample to not play anymore */ - unsigned int loop_count; /* amount of times this sample should be played back */ - unsigned int n_envelopes; /* amount of points in the envelope */ + guint start_sample; /* sample at which to start playing */ + guint stop_sample; /* first sample to not play anymore */ + guint loop_count; /* amount of t...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...unk int stop; /* stop the sample being played */ int no_restart; /* don't restart if already playing */ - unsigned int start_sample; /* sample at which to start playing */ - unsigned int stop_sample; /* first sample to not play anymore */ - unsigned int loop_count; /* amount of times this sample should be played back */ - unsigned int n_envelopes; /* amount of points in the envelope */ + guint start_sample; /* sample at which to start playing */ + guint stop_sample; /* first sample to not play anymore */ + guint loop_count; /* amount of t...
2010 Feb 26
5
[PATCH 0/5] renouveau: nv30/nv40 unification
This patchset applies some minor fixes to renouveau.xml and then unifies the nv30 and nv40 register definitions. nv30 and nv40 are very similar and have the same offsets for the registers they share. The major differences are: 1. Texture setup is different due to full NPOT support on nv40 2. More advanced blending/render targets on nv40 3. NV30 has fixed function registers, which NV40 lacks The
2007 Dec 18
2
Changes to 'refs/tags/0.5.5'
..., except for PolicyFileResolver Fix an error in the sound envelope code Merge branch 'master' into envelope Small clean up to the sound envelope code Add a SWFDEC_FIXME about too big envelope volumes Fix an oops in the sound envelop code In StartSound tag loop_count 0 means 1 Fix yet another oops in the sound envelope code Don't return double from swfdec_audio_event_get_envelop_volume Add stubs for part of Button class Add a test case for Button's properties Add a FIXME about Button.prototype.tabIndex initialization...