TAU_PHASE_CREATE_STA(3) TAU Instrumentation API TAU_PHASE_CREATE_STA(3)NAME
TAU_PHASE_CREATE_STATIC - Defines a static phase.
SYNOPSIS
C/C++:
TAU_PHASE_CREATE_STATIC(Phase phase, char* or string& function_name, char* or string& type, TauGroup_t group);
Fortran:
TAU_PHASE_CREATE_STATIC(integer phase(2), character name(size));
DESCRIPTION
TAU_PHASE_CREATE_STATIC creates a static phase. Static phases (and timers) are more efficient than dynamic ones because the function
registration only takes place once.
EXAMPLE
C/C++ :
int f2(void)
{
TAU_PHASE_CREATE_STATIC(t2,"IO Phase", "", TAU_USER);
TAU_PHASE_START(t2);
input();
output();
TAU_PHASE_STOP(t2);
return 0;
}
Fortran :
subroutine F2()
integer phase(2) / 0, 0 /
save phase
call TAU_PHASE_CREATE_STATIC(phase,'IO Phase')
call TAU_PHASE_START(phase)
call INPUT()
call OUTPUT()
call TAU_PHASE_STOP(phase)
end
SEE ALSO TAU_PHASE_CREATE_DYNAMIC(3), TAU_PHASE_START(3), TAU_PHASE_STOP(3)
08/31/2005 TAU_PHASE_CREATE_STA(3)
Check Out this Related Man Page
mlib_SignalUpSample_S16_S16(3MLIB) mediaLib Library Functions mlib_SignalUpSample_S16_S16(3MLIB)NAME
mlib_SignalUpSample_S16_S16, mlib_SignalUpSample_S16S_S16S, mlib_SignalUpSample_F32_F32, mlib_SignalUpSample_F32S_F32S - signal upsampling
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_SignalUpSample_S16_S16(mlib_s16 *dst,
const mlib_s16 *src, mlib_s32 factor, mlib_s32 phase,
mlib_s32 n);
mlib_status mlib_SignalUpSample_S16S_S16S(mlib_s16 *dst,
const mlib_s16 *src, mlib_s32 factor, mlib_s32 phase,
mlib_s32 n);
mlib_status mlib_SignalUpSample_F32_F32(mlib_f32 *dst,
const mlib_f32 *src, mlib_s32 factor, mlib_s32 phase,
mlib_s32 n);
mlib_status mlib_SignalUpSample_F32S_F32S(mlib_f32 *dst,
const mlib_f32 *src, mlib_s32 factor, mlib_s32 phase,
mlib_s32 n);
DESCRIPTION
Each of these functions performs upsampling.
For monaural signals, the following equation is used:
dst[i] = src[k] if i == k*factor + phase
dst[i] = 0 if i != k*factor + phase
where k = 0, 1, ..., (n - 1); i = 0, 1, ..., (n*factor - 1).
For stereo signals, the following equation is used:
dst[2*i] = src[2*k] if i == k*factor + phase
dst[2*i] = 0 if i != k*factor + phase
dst[2*i + 1] = src[2*k + 1] if i == k*factor + phase
dst[2*i + 1] = 0 if i != k*factor + phase
where k = 0, 1, ..., (n - 1); i = 0, 1, ..., (n*factor - 1).
PARAMETERS
Each of the functions takes the following arguments:
dst Output signal array.
src Input signal array.
factor Factor by which to upsample. factor >= 1.
phase Parameter that determines relative position of an input value, within the output signal. 0 <= phase < factor.
n Number of samples in the input signal array.
RETURN VALUES
Each of the functions returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_SignalDownSample_S16_S16(3MLIB), attributes(5)SunOS 5.11 2 Mar 2007 mlib_SignalUpSample_S16_S16(3MLIB)
Hello,
My System configuration is as:
IDE Hrad Disk = 80GB
RAM = 512MB
While doing installation of SCO Open Server 5.0.7, I got stuck at second phase (i.e. IQM). During this phase, I selected for "Fresh" installtion and after that I go for "Customizing Partitions and FileSystems". But it... (0 Replies)
Hello,
My System configuration is as:
IDE Hrad Disk = 80GB
RAM = 512MB
While doing installation of SCO Open Server 5.0.7, I got stuck at second phase (i.e. IQM). During this phase, I selected for "Fresh" installtion and after that go for "Customizing Partitions and FileSystems". But it... (3 Replies)
I'm using clustered zones on my machine. i'm only at the test phase of my design and ultimately the oracle zones will be using VxVM.
When the testing phase is complete, VxVM will be used in the containers. It is necessary for VxVM to run in the global zone for the containers to use it (is... (5 Replies)
Hi,
Can someone tell me the difference between IF and CASE with an example. I am new to UNIX and i am still in the learning phase.
Thanks in advance.
Regards,
Karthik (6 Replies)
Hi All,
I have been trying to perform alt disk installation for AIX 6.1 server.
Phas 3 fails and bosboot is not getting updated.
when i tried only phase 1 and phase 3 by skipping phase 2 for just testing purpose, then boot image was getting updated.
But when i try phase3 after phase 2, boot... (3 Replies)
Hello All,
I'm trying to assign integer values to variables using substitution in both the value and variable's name, i.e.,
number$x=$x
where x is equal to one in the first assignment, two in the second assignment, and so on with x being incremented each time.
However, when I do the... (7 Replies)
From Prototyping New Responsive Mobile for UNIX.COM - Phase II, we move to Phase III.
Basically, the core prototype for every day browsing the forums, replying, posting and editing on mobile is nearly finished with the exception of a few formatting issues with regard to rare system messages or... (4 Replies)
Dear Everyone,
Thank you for all the great comments, feedback and patience during our recent modernization efforts at unix.com.
Now, I need to decide where to go next, as we move into the next phase.
Some of the ideas I have are:
Make the UserCP experience and all those non-public... (6 Replies)