Home
last modified time | relevance | path

Searched refs:u (Results 1 – 25 of 812) sorted by relevance

12345678910>>...33

/haiku/src/add-ons/kernel/bus_managers/pci/
H A Dpci_info.cpp36 info->u.h1.subsystem_id, info->u.h1.subsystem_vendor_id)); in print_pci2pci_bridge_info()
38 " secondary_latency %02x\n", info->u.h1.primary_bus, in print_pci2pci_bridge_info()
39 info->u.h1.secondary_bus, info->u.h1.subordinate_bus, info->u.h1.secondary_latency)); in print_pci2pci_bridge_info()
40 uint32 io_base = ((uint32)info->u.h1.io_base & 0xf0) << 8; in print_pci2pci_bridge_info()
41 if (info->u.h1.io_base & 1) in print_pci2pci_bridge_info()
42 io_base += ((uint32)info->u.h1.io_base_upper16 << 16); in print_pci2pci_bridge_info()
43 uint32 io_limit = (((uint32)info->u.h1.io_limit & 0xf0) << 8) + 0xfff; in print_pci2pci_bridge_info()
44 if (info->u.h1.io_limit & 1) in print_pci2pci_bridge_info()
45 io_limit += info->u.h1.io_limit_upper16 << 16; in print_pci2pci_bridge_info()
48 uint32 memory_base = ((uint32)info->u.h1.memory_base & 0xfff0) << 16; in print_pci2pci_bridge_info()
[all …]
/haiku/src/apps/cortex/addons/AudioAdapter/
H A DAudioAdapterNode.cpp74 ioFormat.u.raw_audio.byte_order = media_raw_audio_format::wildcard.byte_order; in getRequiredInputFormat()
84 ioFormat.u.raw_audio.format = p->inputFormat.format; in getRequiredInputFormat()
85 ioFormat.u.raw_audio.channel_count = p->inputFormat.channel_count; in getRequiredInputFormat()
89 ioFormat.u.raw_audio.buffer_size = media_raw_audio_format::wildcard.buffer_size; in getRequiredInputFormat()
93 ioFormat.u.raw_audio.frame_rate = media_raw_audio_format::wildcard.frame_rate; in getRequiredInputFormat()
111 media_raw_audio_format& f = ioFormat.u.raw_audio; in getPreferredInputFormat()
130 f.format = output().format.u.raw_audio.format; in getPreferredInputFormat()
132 f.channel_count = output().format.u.raw_audio.channel_count; in getPreferredInputFormat()
136 frames_per_buffer(output().format.u.raw_audio); in getPreferredInputFormat()
137 f.frame_rate = output().format.u.raw_audio.frame_rate; in getPreferredInputFormat()
[all …]
/haiku/src/kits/media/
H A DMediaDefs.cpp380 if (a.u.vid.frame_rate != 0 && b.u.vid.frame_rate != 0 in multistream_format_matches()
381 && a.u.vid.frame_rate != b.u.vid.frame_rate) { in multistream_format_matches()
384 if (a.u.vid.width != 0 && b.u.vid.width != 0 in multistream_format_matches()
385 && a.u.vid.width != b.u.vid.width) { in multistream_format_matches()
388 if (a.u.vid.height != 0 && b.u.vid.height != 0 in multistream_format_matches()
389 && a.u.vid.height != b.u.vid.height) { in multistream_format_matches()
392 if (a.u.vid.space != 0 && b.u.vid.space != 0 in multistream_format_matches()
393 && a.u.vid.space != b.u.vid.space) { in multistream_format_matches()
396 if (a.u.vid.sampling_rate != 0 && b.u.vid.sampling_rate != 0 in multistream_format_matches()
397 && a.u.vid.sampling_rate != b.u.vid.sampling_rate) { in multistream_format_matches()
[all …]
H A DFormatManager.cpp70 desc.u.beos.format);
74 "codec id 0x%lx", desc.u.quicktime.vendor,
75 desc.u.quicktime.codec);
79 desc.u.avi.codec);
84 desc.u.asf.guid.data[0], desc.u.asf.guid.data[1],
85 desc.u.asf.guid.data[2], desc.u.asf.guid.data[3],
86 desc.u.asf.guid.data[4], desc.u.asf.guid.data[5],
87 desc.u.asf.guid.data[6], desc.u.asf.guid.data[7],
88 desc.u.asf.guid.data[8], desc.u.asf.guid.data[9],
89 desc.u.asf.guid.data[10], desc.u.asf.guid.data[11],
[all …]
H A DMediaFormats.cpp206 return a.u.beos.format == b.u.beos.format; in operator ==()
208 return a.u.quicktime.codec == b.u.quicktime.codec in operator ==()
209 && a.u.quicktime.vendor == b.u.quicktime.vendor; in operator ==()
211 return a.u.avi.codec == b.u.avi.codec; in operator ==()
213 return a.u.asf.guid == b.u.asf.guid; in operator ==()
215 return a.u.mpeg.id == b.u.mpeg.id; in operator ==()
217 return a.u.wav.codec == b.u.wav.codec; in operator ==()
219 return a.u.aiff.codec == b.u.aiff.codec; in operator ==()
221 return a.u.avr.id == b.u.avr.id; in operator ==()
223 return a.u.misc.file_format == b.u.misc.file_format in operator ==()
[all …]
/haiku/src/system/libroot/posix/musl/math/
H A Dmodf.c5 union {double f; uint64_t i;} u = {x}; in modf() local
7 int e = (int)(u.i>>52 & 0x7ff) - 0x3ff; in modf()
12 if (e == 0x400 && u.i<<12 != 0) /* nan */ in modf()
14 u.i &= 1ULL<<63; in modf()
15 return u.f; in modf()
20 u.i &= 1ULL<<63; in modf()
21 *iptr = u.f; in modf()
26 if ((u.i & mask) == 0) { in modf()
28 u.i &= 1ULL<<63; in modf()
29 return u.f; in modf()
[all …]
H A Dmodff.c5 union {float f; uint32_t i;} u = {x}; in modff() local
7 int e = (int)(u.i>>23 & 0xff) - 0x7f; in modff()
12 if (e == 0x80 && u.i<<9 != 0) { /* nan */ in modff()
15 u.i &= 0x80000000; in modff()
16 return u.f; in modff()
20 u.i &= 0x80000000; in modff()
21 *iptr = u.f; in modff()
26 if ((u.i & mask) == 0) { in modff()
28 u.i &= 0x80000000; in modff()
29 return u.f; in modff()
[all …]
H A Dfloorf.c5 union {float f; uint32_t i;} u = {x}; in floorf() local
6 int e = (int)(u.i >> 23 & 0xff) - 0x7f; in floorf()
13 if ((u.i & m) == 0) in floorf()
16 if (u.i >> 31) in floorf()
17 u.i += m; in floorf()
18 u.i &= ~m; in floorf()
21 if (u.i >> 31 == 0) in floorf()
22 u.i = 0; in floorf()
23 else if (u.i << 1) in floorf()
24 u.f = -1.0; in floorf()
[all …]
H A Dceilf.c5 union {float f; uint32_t i;} u = {x}; in ceilf() local
6 int e = (int)(u.i >> 23 & 0xff) - 0x7f; in ceilf()
13 if ((u.i & m) == 0) in ceilf()
16 if (u.i >> 31 == 0) in ceilf()
17 u.i += m; in ceilf()
18 u.i &= ~m; in ceilf()
21 if (u.i >> 31) in ceilf()
22 u.f = -0.0; in ceilf()
23 else if (u.i << 1) in ceilf()
24 u.f = 1.0; in ceilf()
[all …]
H A Dasinl.c27 #define CLOSETO1(u) (u.i.m>>56 >= 0xf7) argument
28 #define CLEARBOTTOM(u) (u.i.m &= -1ULL << 32) argument
30 #define CLOSETO1(u) (u.i.top >= 0xee00) argument
31 #define CLEARBOTTOM(u) (u.i.lo = 0) argument
36 union ldshape u = {x}; in asinl() local
38 uint16_t e = u.i.se & 0x7fff; in asinl()
39 int sign = u.i.se >> 15; in asinl()
59 if (CLOSETO1(u)) { in asinl()
63 u.f = s; in asinl()
64 CLEARBOTTOM(u); in asinl()
[all …]
H A D__fpclassifyl.c11 union ldshape u = {x}; in __fpclassifyl() local
12 int e = u.i.se & 0x7fff; in __fpclassifyl()
13 int msb = u.i.m>>63; in __fpclassifyl()
15 return u.i.m ? FP_SUBNORMAL : FP_ZERO; in __fpclassifyl()
24 return u.i.m << 1 ? FP_NAN : FP_INFINITE; in __fpclassifyl()
33 union ldshape u = {x}; in __fpclassifyl() local
34 int e = u.i.se & 0x7fff; in __fpclassifyl()
35 u.i.se = 0; in __fpclassifyl()
37 return u.i2.lo | u.i2.hi ? FP_SUBNORMAL : FP_ZERO; in __fpclassifyl()
39 return u.i2.lo | u.i2.hi ? FP_NAN : FP_INFINITE; in __fpclassifyl()
H A Dexp2l.c202 union ldshape u = {x}; in exp2l() local
203 int e = u.i.se & 0x7fff; in exp2l()
206 union {uint32_t u; int32_t i;} k; in exp2l() member
210 if (u.i.se >= 0x3fff + 14 && u.i.se >> 15 == 0) in exp2l()
237 u.f = x + redux; in exp2l()
238 i0 = u.i.m + TBLSIZE / 2; in exp2l()
239 k.u = i0 / TBLSIZE * TBLSIZE; in exp2l()
242 u.f -= redux; in exp2l()
243 z = x - u.f; in exp2l()
568 union ldshape u = {x}; in exp2l() local
[all …]
H A Dcbrt.c35 union {double f; uint64_t i;} u = {x}; in cbrt() local
37 uint32_t hx = u.i>>32 & 0x7fffffff; in cbrt()
58 u.f = x*0x1p54; in cbrt()
59 hx = u.i>>32 & 0x7fffffff; in cbrt()
65 u.i &= 1ULL<<63; in cbrt()
66 u.i |= (uint64_t)hx << 32; in cbrt()
67 t = u.f; in cbrt()
92 u.f = t; in cbrt()
93 u.i = (u.i + 0x80000000) & 0xffffffffc0000000ULL; in cbrt()
94 t = u.f; in cbrt()
H A Dacosl.c27 #define CLEARBOTTOM(u) (u.i.m &= -1ULL << 32) argument
29 #define CLEARBOTTOM(u) (u.i.lo = 0) argument
34 union ldshape u = {x}; in acosl() local
36 uint16_t e = u.i.se & 0x7fff; in acosl()
53 if (u.i.se >> 15) { in acosl()
61 u.f = s; in acosl()
62 CLEARBOTTOM(u); in acosl()
63 f = u.f; in acosl()
/haiku/src/apps/mediaplayer/supplier/
H A DImageTrackVideoSupplier.cpp24 fFormat.u.encoded_video.output.field_rate = 0.0; in ImageTrackVideoSupplier()
25 fFormat.u.encoded_video.output.interlace = 1; in ImageTrackVideoSupplier()
26 fFormat.u.encoded_video.output.first_active = 0; in ImageTrackVideoSupplier()
27 fFormat.u.encoded_video.output.orientation = B_VIDEO_TOP_LEFT_RIGHT; in ImageTrackVideoSupplier()
28 fFormat.u.encoded_video.output.display.format = B_RGB32; in ImageTrackVideoSupplier()
29 fFormat.u.encoded_video.output.pixel_width_aspect in ImageTrackVideoSupplier()
30 = fFormat.u.raw_video.display.line_width in ImageTrackVideoSupplier()
32 fFormat.u.encoded_video.output.pixel_height_aspect in ImageTrackVideoSupplier()
33 = fFormat.u.raw_video.display.line_count in ImageTrackVideoSupplier()
35 fFormat.u.encoded_video.output.display.bytes_per_row in ImageTrackVideoSupplier()
[all …]
/haiku/src/add-ons/media/plugins/raw_decoder/
H A DRawDecoderPlugin.cpp76 …fInputSampleSize = ioEncodedFormat->u.raw_video.display.line_count * ioEncodedFormat->u.raw_video.… in Setup()
79 fInputSampleSize = (ioEncodedFormat->u.raw_audio.format & B_AUDIO_FORMAT_SIZE_MASK); in Setup()
80 fInputFrameSize = fInputSampleSize * ioEncodedFormat->u.raw_audio.channel_count; in Setup()
87 ioEncodedFormat->u.raw_audio.format &= B_AUDIO_FORMAT_MASK; in Setup()
89 switch (ioEncodedFormat->u.raw_audio.format) { in Setup()
98 ioEncodedFormat->u.raw_audio.format = B_AUDIO_FORMAT_INT32; in Setup()
102 ioEncodedFormat->u.raw_audio.format = B_AUDIO_FORMAT_FLOAT32; in Setup()
152 switch (ioDecodedFormat->u.raw_audio.format) { in NegotiateAudioOutputFormat()
157 ioDecodedFormat->u.raw_audio.valid_bits = 0; in NegotiateAudioOutputFormat()
161 ioDecodedFormat->u.raw_audio.valid_bits = fInputFormat.u.raw_audio.valid_bits; in NegotiateAudioOutputFormat()
[all …]
/haiku/src/tests/kits/media/
H A DFormatDescriptions.cpp30 a.u.avi.codec = 'DIVX'; in TestCompare()
39 a.u.quicktime.vendor = 5; in TestCompare()
40 a.u.quicktime.codec = 5; in TestCompare()
43 b.u.quicktime.vendor = 6; in TestCompare()
44 b.u.quicktime.codec = 5; in TestCompare()
47 b.u.quicktime.vendor = 4; in TestCompare()
50 b.u.quicktime.vendor = 5; in TestCompare()
51 b.u.quicktime.codec = 6; in TestCompare()
54 b.u.quicktime.codec = 4; in TestCompare()
58 a.u.misc.file_format = 5; in TestCompare()
[all …]
/haiku/src/apps/cortex/InfoView/
H A DEndPointInfoView.cpp162 s = MediaString::forAudioFormat(format.u.raw_audio.format, in _addFormatFields()
163 format.u.raw_audio.valid_bits); in _addFormatFields()
166 s = MediaString::forAudioFrameRate(format.u.raw_audio.frame_rate); in _addFormatFields()
169 s = MediaString::forAudioChannelCount(format.u.raw_audio.channel_count); in _addFormatFields()
172 s = MediaString::forAudioChannelMask(format.u.raw_audio.channel_mask); in _addFormatFields()
175 s = MediaString::forAudioMatrixMask(format.u.raw_audio.matrix_mask); in _addFormatFields()
178 s = MediaString::forAudioByteOrder(format.u.raw_audio.byte_order); in _addFormatFields()
181 s = MediaString::forAudioBufferSize(format.u.raw_audio.buffer_size); in _addFormatFields()
191 s = MediaString::forVideoFormat(format.u.raw_video.display.format); in _addFormatFields()
194 s = MediaString::forVideoResolution(format.u.raw_video.display.line_width, in _addFormatFields()
[all …]
H A DConnectionInfoView.cpp127 s = MediaString::forAudioFormat(format.u.raw_audio.format, in _addFormatFields()
128 format.u.raw_audio.valid_bits); in _addFormatFields()
131 s = MediaString::forAudioFrameRate(format.u.raw_audio.frame_rate); in _addFormatFields()
134 s = MediaString::forAudioChannelCount(format.u.raw_audio.channel_count); in _addFormatFields()
137 s = MediaString::forAudioChannelMask(format.u.raw_audio.channel_mask); in _addFormatFields()
140 s = MediaString::forAudioMatrixMask(format.u.raw_audio.matrix_mask); in _addFormatFields()
143 s = MediaString::forAudioByteOrder(format.u.raw_audio.byte_order); in _addFormatFields()
146 s = MediaString::forAudioBufferSize(format.u.raw_audio.buffer_size); in _addFormatFields()
156 s = MediaString::forVideoFormat(format.u.raw_video.display.format); in _addFormatFields()
159 s = MediaString::forVideoResolution(format.u.raw_video.display.line_width, in _addFormatFields()
[all …]
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dendian.h140 be16enc(void *pp, uint16_t u) in be16enc() argument
144 p[0] = (u >> 8) & 0xff; in be16enc()
145 p[1] = u & 0xff; in be16enc()
149 be32enc(void *pp, uint32_t u) in be32enc() argument
153 p[0] = (u >> 24) & 0xff; in be32enc()
154 p[1] = (u >> 16) & 0xff; in be32enc()
155 p[2] = (u >> 8) & 0xff; in be32enc()
156 p[3] = u & 0xff; in be32enc()
160 be64enc(void *pp, uint64_t u) in be64enc() argument
164 be32enc(p, u >> 32); in be64enc()
[all …]
/haiku/src/add-ons/media/media-add-ons/radeon/
H A DRadeonProducer.cpp222 fOutput.format.u.raw_video = media_raw_video_format::wildcard; in CRadeonProducer()
632 if( format->u.raw_video.interlace == media_raw_video_format::wildcard.interlace ) { in verifySetMode()
633 if( format->u.raw_video.field_rate == media_raw_video_format::wildcard.field_rate ) { in verifySetMode()
634 format->u.raw_video.interlace = fMode == C_VIDEO_IN_BOB ? 2 : 1; in verifySetMode()
635 format->u.raw_video.field_rate = frame_rate * format->u.raw_video.interlace; in verifySetMode()
637 if( format->u.raw_video.field_rate == frame_rate ) in verifySetMode()
638 format->u.raw_video.interlace = 1; in verifySetMode()
639 else if( format->u.raw_video.field_rate == frame_rate * 2 ) in verifySetMode()
640 format->u.raw_video.interlace = 2; in verifySetMode()
643 format->u.raw_video.field_rate )); in verifySetMode()
[all …]
/haiku/src/apps/mediaplayer/media_node_framework/audio/
H A DAudioAdapter.cpp37 fFormat.u.raw_audio.byte_order = hostByteOrder; in AudioAdapter()
40 if (fFormat.u.raw_audio.format != 0 in AudioAdapter()
41 && (fFormat.u.raw_audio.format in AudioAdapter()
42 != source->Format().u.raw_audio.format in AudioAdapter()
43 || source->Format().u.raw_audio.byte_order != hostByteOrder)) { in AudioAdapter()
46 fFormat.u.raw_audio.format, hostByteOrder); in AudioAdapter()
50 if (fFormat.u.raw_audio.frame_rate != 0 in AudioAdapter()
51 && fFormat.u.raw_audio.frame_rate in AudioAdapter()
52 != source->Format().u.raw_audio.frame_rate) { in AudioAdapter()
54 source->Format().u.raw_audio.frame_rate, in AudioAdapter()
[all …]
/haiku/src/system/libroot/posix/glibc/arch/generic/
H A Dmpn2ldbl.c32 union ieee854_long_double u; in __mpn_construct_long_double() local
34 u.ieee.negative = sign; in __mpn_construct_long_double()
35 u.ieee.exponent = expt + IEEE854_LONG_DOUBLE_BIAS; in __mpn_construct_long_double()
37 u.ieee.mantissa1 = frac_ptr[0]; in __mpn_construct_long_double()
38 u.ieee.mantissa0 = frac_ptr[1]; in __mpn_construct_long_double()
40 u.ieee.mantissa1 = frac_ptr[0] & (((mp_limb_t) 1 << 32) - 1); in __mpn_construct_long_double()
41 u.ieee.mantissa0 = frac_ptr[0] >> 32; in __mpn_construct_long_double()
46 return u.d; in __mpn_construct_long_double()
H A Dmpn2dbl.c31 union ieee754_double u; in __mpn_construct_double() local
33 u.ieee.negative = negative; in __mpn_construct_double()
34 u.ieee.exponent = expt + IEEE754_DOUBLE_BIAS; in __mpn_construct_double()
36 u.ieee.mantissa1 = frac_ptr[0]; in __mpn_construct_double()
37 u.ieee.mantissa0 = frac_ptr[1] & (((mp_limb_t) 1 in __mpn_construct_double()
40 u.ieee.mantissa1 = frac_ptr[0] & (((mp_limb_t) 1 << 32) - 1); in __mpn_construct_double()
41 u.ieee.mantissa0 = (frac_ptr[0] >> 32) & (((mp_limb_t) 1 in __mpn_construct_double()
47 return u.d; in __mpn_construct_double()
/haiku/src/system/kernel/
H A Dsem.cpp114 } u; member
158 || (last != -1 && sem->u.used.last_acquirer != last) in dump_sem_list()
159 || (name != NULL && strstr(sem->u.used.name, name) == NULL) in dump_sem_list()
160 || (owner != -1 && sem->u.used.owner != owner)) in dump_sem_list()
165 " %s\n", sem, sem->id, sem->u.used.count, in dump_sem_list()
166 sem->u.used.owner, in dump_sem_list()
167 sem->u.used.last_acquirer > 0 ? sem->u.used.last_acquirer : 0, in dump_sem_list()
168 sem->u.used.name); in dump_sem_list()
181 kprintf("name: '%s'\n", sem->u.used.name); in dump_sem()
182 kprintf("owner: %" B_PRId32 "\n", sem->u.used.owner); in dump_sem()
[all …]

12345678910>>...33