Searched refs:bits (Results 51 - 75 of 152) sorted by relevance

1234567

/openjdk7/jdk/src/share/native/sun/java2d/cmm/lcms/
H A Dcmsmd5.c81 cmsUInt32Number bits[2]; member in struct:__anon831
196 ctx->bits[0] = 0;
197 ctx->bits[1] = 0;
209 t = ctx->bits[0];
210 if ((ctx->bits[0] = t + (len << 3)) < t)
211 ctx->bits[1]++;
213 ctx->bits[1] += len >> 29;
254 count = (ctx->bits[0] >> 3) & 0x3F;
273 ((cmsUInt32Number *) ctx->in)[14] = ctx->bits[0];
274 ((cmsUInt32Number *) ctx->in)[15] = ctx->bits[
[all...]
/openjdk7/jdk/src/share/classes/sun/awt/image/
H A DBytePackedRaster.java54 * The bit stride of a pixel, equal to the total number of bits
214 * Returns pixel bit stride -- the number of bits between two
604 int bits = 8 - bitpos;
609 if (copybits < bits) {
611 // of 'bits - copybits'.
614 // 'bits' bits set to '1'. We want it to have a total
615 // of 'copybits' bits set, therefore we want to introduce
616 // 'bits - copybits' zeroes on the right.
617 mask &= 0xff << (bits
[all...]
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DWaveExtensibleFileReader.java212 int bits = 1;
231 bits = chunk.readUnsignedShort();
236 if (validBitsPerSample > bits)
265 if (bits == 8) {
267 samplerate, bits, channels, framesize, samplerate,
271 bits, channels, framesize, samplerate, false, p);
275 samplerate, bits, channels, framesize, samplerate, false, p);
H A DWaveFloatFileReader.java77 int bits = 1;
92 bits = chunk.readUnsignedShort();
106 Encoding.PCM_FLOAT, samplerate, bits, channels,
H A DDirectAudioDevice.java112 int bits = format.getSampleSizeInBits();
125 int bits = format.getSampleSizeInBits();
129 if (bits == 8) {
134 format.getSampleRate(), bits, format.getChannels(),
141 format.getSampleRate(), bits, format.getChannels(),
145 } else if (bits > 8 && (isSigned || isUnsigned)) {
149 format.getSampleRate(), bits,
268 private static void addFormat(Vector v, int bits, int frameSizeInBytes, int channels, float sampleRate, argument
277 if (bits != 8) {
278 if (Printer.err) Printer.err("DirectAudioDevice.addFormat called with ULAW, but bitsPerSample="+bits);
[all...]
/openjdk7/jdk/src/share/classes/sun/security/util/
H A DDerOutputStream.java235 * @param bits the bit string, MSB first
237 public void putBitString(byte[] bits) throws IOException { argument
239 putLength(bits.length + 1);
241 write(bits);
248 * @param bits the bit string, MSB first
251 byte[] bits = ba.toByteArray();
254 putLength(bits.length + 1);
255 write(bits.length*8 - ba.length()); // excess bits in last octet
256 write(bits);
[all...]
H A DDerInputBuffer.java192 throw new IOException("Invalid number of padding bits");
194 // minus the first byte which indicates the number of padding bits
198 // get rid of the padding bits
226 throw new IOException("Invalid value for unused bits: " + unusedBits);
228 byte[] bits = new byte[len - 1];
229 // number of valid bits
230 int length = (bits.length == 0) ? 0 : bits.length * 8 - unusedBits;
232 System.arraycopy(buf, pos + 1, bits, 0, len - 1);
234 BitArray bitArray = new BitArray(length, bits);
[all...]
H A DObjectIdentifier.java470 * Repack all bits from input to output. On the both sides, only a portion
471 * (from the least significant bit) of the 8 bits in a byte is used. This
472 * number is defined as the number of useful bits (NUB) for the array. All the
473 * used bits from the input byte array and repacked into the output in the
474 * exactly same order. The output bits are aligned so that the final bit of
478 * necessary. All unused bits in the output are also zeroed.
483 * The first 2 bits of the output bytes are unused bits. The other bits
484 * turn out to be 000001 001100. While the 8 bits o
[all...]
/openjdk7/jdk/src/share/classes/java/awt/image/
H A DColorModel.java103 * there is such a correspondence, the number of bits in a sample is not
104 * necessarily the same as the number of bits in the corresponding color/alpha
125 * 2<sup>n</sup> - 1, where n is the number of significant bits for a
160 * The total number of bits in the pixel.
224 * The format for the RGB values is an integer with 8 bits
249 * specified number of bits to color/alpha components. The color
258 * (or DataBuffer.TYPE_UNDEFINED if bits is greater
260 * number of bits per color and alpha component, any subclass calling
263 * @param bits the number of bits o
267 ColorModel(int bits) argument
325 ColorModel(int pixel_bits, int[] bits, ColorSpace cspace, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType) argument
[all...]
/openjdk7/hotspot/src/share/vm/gc_implementation/parallelScavenge/
H A DparMarkBitMap.cpp49 const idx_t bits = bits_required(covered_region); local
50 // The bits will be divided evenly between two bitmaps; each of them should be
52 assert(bits % (BitsPerWord * 2) == 0, "region size unaligned");
54 const size_t words = bits / BitsPerWord;
74 _beg_bits.set_size(bits / 2);
76 _end_bits.set_size(bits / 2);
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/lib/
H A DExsltMath.java379 int bits = new Double(precision).intValue();
381 if (bits <= value.length())
382 value = value.substring(0, bits);
/openjdk7/jaxp/src/com/sun/org/apache/xpath/internal/axes/
H A DWalkingIterator.java85 * Get the analysis bits for this walker, as defined in the WalkerFactory.
90 int bits = 0;
98 bits |= bit;
102 return bits;
/openjdk7/jdk/test/com/sun/crypto/provider/KeyAgreement/
H A DTestExponentSize.java44 * the number of bits needed to actually represent the number. i.e.
67 byte [] bits = new byte[intSize/8];
68 Arrays.fill(bits, (byte)0xff);
69 bigIntValue = new BigInteger(1, bits);
134 throw new Exception("X has more bits than expected: " +
/openjdk7/jdk/src/share/native/sun/awt/medialib/
H A Dmlib_ImageColorTrue2Index.c96 mlib_s32 bits = s->bits; \
97 mlib_s32 nbits = 8 - bits; \
105 switch( bits ) \
110 mlib_s32 bits0 = 8 - bits; \
111 mlib_s32 bits1 = bits0 - bits; \
112 mlib_s32 bits2 = bits1 - bits; \
158 mlib_s32 bits0 = 8 - bits; \
159 mlib_s32 bits1 = bits * 2 - 8; \
160 mlib_s32 bits2 = bits1 + bits; \
3660 mlib_s32 bits = s->bits; local
3700 mlib_s32 bits = s->bits; local
3741 mlib_s32 bits = s->bits; local
3776 mlib_s32 bits = s->bits; local
3827 mlib_s32 bits = s->bits; local
3879 mlib_s32 bits = s->bits; local
3930 mlib_s32 bits = s->bits; local
3978 mlib_s32 bits = s->bits; local
4027 mlib_s32 bits = s->bits; local
4080 mlib_s32 bits = s->bits; local
4117 mlib_s32 bits = s->bits; local
4155 mlib_s32 bits = s->bits; local
[all...]
H A Dmlib_ImageColormap.h40 mlib_s32 bits; member in struct:__anon747
114 ((mlib_s32)((( mlib_colormap *)( colormap))->bits))
/openjdk7/jdk/src/share/classes/java/text/
H A DChoiceFormat.java531 long bits = Double.doubleToLongBits(d);
532 long significand = bits & SIGNIFICAND;
533 if (bits < 0) {
536 long exponent = bits & EXPONENT;
544 bits = exponent | (significand & ~EXPONENT);
545 return Double.longBitsToDouble(bits);
583 /* hold all bits in a long for later use */
584 long bits = Double.doubleToLongBits(d);
587 long magnitude = bits & ~SIGN;
590 if ((bits >
[all...]
/openjdk7/jdk/src/share/classes/javax/imageio/stream/
H A DImageOutputStream.java46 * non-zero bit offset causes the remaining bits in the byte to be written
56 * The 24 high-order bits of <code>b</code> are ignored.
66 * @param b an <code>int</code> whose lower 8 bits are to be
137 * Writes the 8 low-order bits of <code>v</code> to the
138 * stream. The 24 high-order bits of <code>v</code> are ignored.
155 * Writes the 16 low-order bits of <code>v</code> to the
156 * stream. The 16 high-order bits of <code>v</code> are ignored.
198 * Writes the 32 bits of <code>v</code> to the stream. If the
231 * Writes the 64 bits of <code>v</code> to the stream. If the
323 * the <code>writeByte</code> method. The high-order eight bits o
645 writeBits(long bits, int numBits) argument
[all...]
H A DImageOutputStreamImpl.java393 public void writeBits(long bits, int numBits) throws IOException { argument
403 // Prologue: deal with pre-existing bits
406 // and the bit offset is 0, there can't be any pre-existing bits
417 // Notch out the partial byte and drop in the new bits
420 partialByte &= ~(mask << shift); // Clear out old bits
421 partialByte |= ((bits & mask) << shift); // Or in new ones
430 partialByte &= ~mask; // Clear out bits
431 partialByte |= ((bits >> (numBits - num)) & mask);
445 ? bits & 0xFF
446 : (bits>>shif
[all...]
/openjdk7/jdk/src/macosx/native/sun/awt/
H A DAWTWindow.m155 // creates a new NSWindow style mask based on the _STYLE_PROP_BITMASK bits
178 - (void) setPropertiesForStyleBits:(jint)bits mask:(jint)mask {
180 BOOL resizable = IS(bits, RESIZABLE);
186 [self.nsWindow setHasShadow:IS(bits, HAS_SHADOW)];
190 [[self.nsWindow standardWindowButton:NSWindowZoomButton] setEnabled:IS(bits, ZOOMABLE)];
194 [self.nsWindow setLevel:IS(bits, ALWAYS_ON_TOP) ? NSFloatingWindowLevel : NSNormalWindowLevel];
198 [self.nsWindow setHidesOnDeactivate:IS(bits, HIDES_ON_DEACTIVATE)];
202 [self.nsWindow setMovableByWindowBackground:IS(bits, DRAGGABLE_BACKGROUND)];
206 [self.nsWindow setDocumentEdited:IS(bits, DOCUMENT_MODIFIED)];
210 if (IS(bits, FULLSCREENABL
[all...]
/openjdk7/jdk/src/share/classes/java/awt/geom/
H A DArc2D.java1434 long bits = java.lang.Double.doubleToLongBits(getX());
1435 bits += java.lang.Double.doubleToLongBits(getY()) * 37;
1436 bits += java.lang.Double.doubleToLongBits(getWidth()) * 43;
1437 bits += java.lang.Double.doubleToLongBits(getHeight()) * 47;
1438 bits += java.lang.Double.doubleToLongBits(getAngleStart()) * 53;
1439 bits += java.lang.Double.doubleToLongBits(getAngleExtent()) * 59;
1440 bits += getArcType() * 61;
1441 return (((int) bits) ^ ((int) (bits >> 32)));
H A DRectangle2D.java220 * x+w or y+h is done in float, then some bits may be
897 long bits = java.lang.Double.doubleToLongBits(getX());
898 bits += java.lang.Double.doubleToLongBits(getY()) * 37;
899 bits += java.lang.Double.doubleToLongBits(getWidth()) * 43;
900 bits += java.lang.Double.doubleToLongBits(getHeight()) * 47;
901 return (((int) bits) ^ ((int) (bits >> 32)));
/openjdk7/hotspot/src/share/vm/utilities/
H A DaccessFlags.hpp71 // Note: these flags must be defined in the low order 16 bits because
74 // These bits must not conflict with any other field-related access flags
167 void atomic_set_bits(jint bits);
168 void atomic_clear_bits(jint bits);
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/bmp/
H A DBMPMetadata.java230 String bits = "";
232 bits = "8 8 8 ";
234 bits = "" + countBits(redMask) + " " + countBits(greenMask) +
239 subNode.setAttribute("value", bits);
/openjdk7/hotspot/src/share/vm/prims/
H A DjvmtiEventController.hpp90 void set_bits(jlong bits);
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/common/
H A DImageUtil.java220 int bits = 0;
222 bits += sampleSize[i];
225 return new DirectColorModel(bits, rmask, gmask, bmask, amask);
247 * The data will be packed as eight bits per byte with no bit offset,
640 // when all the bits in this BYTE will be set
646 // All the "leftShift" high bits will be set
648 // "rightShift" low bits will be set.
656 // Less than "leftShift" high bits will be set.
691 // Mask the bits to be set.
702 // But not all the low bits wil
[all...]

Completed in 75 milliseconds

1234567