/external/webp/src/utils/ |
bit_writer.c | 25 static int BitWriterResize(VP8BitWriter* const bw, size_t extra_size) { 28 const uint64_t needed_size_64b = (uint64_t)bw->pos_ + extra_size; 31 bw->error_ = 1; 34 if (needed_size <= bw->max_pos_) return 1; 36 new_size = 2 * bw->max_pos_; 41 bw->error_ = 1; 44 memcpy(new_buf, bw->buf_, bw->pos_); 45 free(bw->buf_); 46 bw->buf_ = new_buf [all...] |
bit_writer.h | 37 int VP8BitWriterInit(VP8BitWriter* const bw, size_t expected_size); 39 uint8_t* VP8BitWriterFinish(VP8BitWriter* const bw); 42 void VP8BitWriterWipeOut(VP8BitWriter* const bw); 44 int VP8PutBit(VP8BitWriter* const bw, int bit, int prob); 45 int VP8PutBitUniform(VP8BitWriter* const bw, int bit); 46 void VP8PutValue(VP8BitWriter* const bw, int value, int nb_bits); 47 void VP8PutSignedValue(VP8BitWriter* const bw, int value, int nb_bits); 50 int VP8BitWriterAppend(VP8BitWriter* const bw, 54 static WEBP_INLINE uint64_t VP8BitWriterPos(const VP8BitWriter* const bw) { 55 return (uint64_t)(bw->pos_ + bw->run_) * 8 + 8 + bw->nb_bits_ [all...] |
/external/flac/libFLAC/include/private/ |
bitwriter.h | 48 void FLAC__bitwriter_delete(FLAC__BitWriter *bw); 49 FLAC__bool FLAC__bitwriter_init(FLAC__BitWriter *bw); 50 void FLAC__bitwriter_free(FLAC__BitWriter *bw); /* does not 'free(buffer)' */ 51 void FLAC__bitwriter_clear(FLAC__BitWriter *bw); 52 void FLAC__bitwriter_dump(const FLAC__BitWriter *bw, FILE *out); 57 * non-const *bw because they have to cal FLAC__bitwriter_get_buffer() 59 FLAC__bool FLAC__bitwriter_get_write_crc16(FLAC__BitWriter *bw, FLAC__uint16 *crc); 60 FLAC__bool FLAC__bitwriter_get_write_crc8(FLAC__BitWriter *bw, FLAC__byte *crc); 65 FLAC__bool FLAC__bitwriter_is_byte_aligned(const FLAC__BitWriter *bw); 66 unsigned FLAC__bitwriter_get_input_bits_unconsumed(const FLAC__BitWriter *bw); /* can be called anytime, returns total # of bits unconsumed * [all...] |
stream_encoder_framing.h | 38 FLAC__bool FLAC__add_metadata_block(const FLAC__StreamMetadata *metadata, FLAC__BitWriter *bw); 39 FLAC__bool FLAC__frame_add_header(const FLAC__FrameHeader *header, FLAC__BitWriter *bw); 40 FLAC__bool FLAC__subframe_add_constant(const FLAC__Subframe_Constant *subframe, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw); 41 FLAC__bool FLAC__subframe_add_fixed(const FLAC__Subframe_Fixed *subframe, unsigned residual_samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw); 42 FLAC__bool FLAC__subframe_add_lpc(const FLAC__Subframe_LPC *subframe, unsigned residual_samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw); 43 FLAC__bool FLAC__subframe_add_verbatim(const FLAC__Subframe_Verbatim *subframe, unsigned samples, unsigned subframe_bps, unsigned wasted_bits, FLAC__BitWriter *bw);
|
/external/flac/libFLAC/ |
bitwriter.c | 84 #define FLAC__TOTAL_BITS(bw) (FLAC__WORDS_TO_BITS((bw)->words) + (bw)->bits) 120 static FLAC__bool bitwriter_grow_(FLAC__BitWriter *bw, unsigned bits_to_add) 125 FLAC__ASSERT(0 != bw); 126 FLAC__ASSERT(0 != bw->buffer); 129 new_capacity = bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLAC__BITS_PER_WORD); 134 if(bw->capacity >= new_capacity) 138 if((new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT 162 FLAC__BitWriter *bw = (FLAC__BitWriter*)calloc(1, sizeof(FLAC__BitWriter)); local [all...] |
stream_encoder_framing.c | 47 static FLAC__bool add_entropy_coding_method_(FLAC__BitWriter *bw, const FLAC__EntropyCodingMethod *method); 48 static FLAC__bool add_residual_partitioned_rice_(FLAC__BitWriter *bw, const FLAC__int32 residual[], const unsigned residual_samples, const unsigned predictor_order, const unsigned rice_parameters[], const unsigned raw_bits[], const unsigned partition_order, const FLAC__bool is_extended); 50 FLAC__bool FLAC__add_metadata_block(const FLAC__StreamMetadata *metadata, FLAC__BitWriter *bw) 55 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->is_last, FLAC__STREAM_METADATA_IS_LAST_LEN)) 58 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->type, FLAC__STREAM_METADATA_TYPE_LEN)) 71 if(!FLAC__bitwriter_write_raw_uint32(bw, i, FLAC__STREAM_METADATA_LENGTH_LEN)) 77 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.min_blocksize, FLAC__STREAM_METADATA_STREAMINFO_MIN_BLOCK_SIZE_LEN)) 80 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.max_blocksize, FLAC__STREAM_METADATA_STREAMINFO_MAX_BLOCK_SIZE_LEN)) 83 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.min_framesize, FLAC__STREAM_METADATA_STREAMINFO_MIN_FRAME_SIZE_LEN)) 86 if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.max_framesize, FLAC__STREAM_METADATA_STREAMINFO_MAX_FRAME_SIZE_LEN) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldBufferedWriterTest.java | 27 BufferedWriter bw; field in class:OldBufferedWriterTest 36 bw = new BufferedWriter(sw); 38 bw.write("Hi", 0, 2); 40 bw.flush(); 49 bw = new BufferedWriter(sw, 0); 55 bw = new BufferedWriter(sw, 10); 57 bw.write("Hi", 0, 2); 59 bw.flush(); 69 bw.close(); 70 bw.write(testString) [all...] |
/external/webp/src/enc/ |
tree.c | 273 static int PutI4Mode(VP8BitWriter* const bw, int mode, 275 if (VP8PutBit(bw, mode != B_DC_PRED, prob[0])) { 276 if (VP8PutBit(bw, mode != B_TM_PRED, prob[1])) { 277 if (VP8PutBit(bw, mode != B_VE_PRED, prob[2])) { 278 if (!VP8PutBit(bw, mode >= B_LD_PRED, prob[3])) { 279 if (VP8PutBit(bw, mode != B_HE_PRED, prob[4])) { 280 VP8PutBit(bw, mode != B_RD_PRED, prob[5]); 283 if (VP8PutBit(bw, mode != B_LD_PRED, prob[6])) { 284 if (VP8PutBit(bw, mode != B_VL_PRED, prob[7])) { 285 VP8PutBit(bw, mode != B_HD_PRED, prob[8]) 317 VP8BitWriter* const bw = &enc->bw_; local [all...] |
syntax.c | 189 static void PutSegmentHeader(VP8BitWriter* const bw, 193 if (VP8PutBitUniform(bw, (hdr->num_segments_ > 1))) { 197 VP8PutBitUniform(bw, hdr->update_map_); 198 if (VP8PutBitUniform(bw, update_data)) { 200 VP8PutBitUniform(bw, 1); // (segment_feature_mode = 1. Paragraph 9.3.) 202 VP8PutSignedValue(bw, enc->dqm_[s].quant_, 7); 205 VP8PutSignedValue(bw, enc->dqm_[s].fstrength_, 6); 210 if (VP8PutBitUniform(bw, (proba->segments_[s] != 255u))) { 211 VP8PutValue(bw, proba->segments_[s], 8); 219 static void PutFilterHeader(VP8BitWriter* const bw, 274 VP8BitWriter* const bw = &enc->bw_; local 301 VP8BitWriter* const bw = &enc->bw_; local 356 VP8BitWriter* const bw = &enc->bw_; local [all...] |
vp8l.c | 244 VP8LBitWriter* const bw, const uint8_t* code_length_bitdepth) { 259 VP8LWriteBits(bw, 4, codes_to_store - 4); 261 VP8LWriteBits(bw, 3, code_length_bitdepth[kStorageOrder[i]]); 282 VP8LBitWriter* const bw, 289 VP8LWriteBits(bw, huffman_code->code_lengths[ix], huffman_code->codes[ix]); 292 VP8LWriteBits(bw, 2, extra_bits); 295 VP8LWriteBits(bw, 3, extra_bits); 298 VP8LWriteBits(bw, 7, extra_bits); 304 static int StoreFullHuffmanCode(VP8LBitWriter* const bw, 320 VP8LWriteBits(bw, 1, 0) 1068 VP8LBitWriter bw; local [all...] |
alpha.c | 51 VP8BitWriter* const bw, 92 VP8BitWriterAppend(bw, buffer, buffer_size); 95 return ok && !bw->error_; 104 VP8BitWriter* const bw, 126 VP8BitWriterInit(bw, expected_size); 127 VP8BitWriterAppend(bw, &header, ALPHA_HEADER_LEN); 138 ok = VP8BitWriterAppend(bw, alpha_src, width * height); 139 ok = ok && !bw->error_; 141 ok = EncodeLossless(alpha_src, width, height, effort_level, bw, stats); 142 VP8BitWriterFinish(bw); 207 VP8BitWriter bw; local [all...] |
/external/e2fsprogs/debugfs/ |
icheck.c | 40 struct block_walk_struct *bw = (struct block_walk_struct *) private; variable in typeref:struct:block_walk_struct 43 for (i=0; i < bw->num_blocks; i++) { 44 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) { 45 bw->barray[i].ino = bw->inode; 46 bw->blocks_left--; 49 if (!bw->blocks_left) 57 struct block_walk_struct bw; local 73 bw.barray = malloc(sizeof(struct block_info) * argc) [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
FileReaderTest.java | 33 BufferedWriter bw; field in class:FileReaderTest 43 bw = new BufferedWriter(new FileWriter(f.getPath())); 44 bw.write(" After test string", 0, 18); 45 bw.close(); 58 bw = new BufferedWriter(new FileWriter(f.getPath())); 59 bw.write(" After test string", 0, 18); 60 bw.close(); 75 bw = new BufferedWriter(new FileWriter(f.getPath())); 76 bw.write(" After test string", 0, 18); 77 bw.close() [all...] |
BufferedWriterTest.java | 30 BufferedWriter bw; field in class:BufferedWriterTest 41 bw = new BufferedWriter(sw); 85 bw.close(); 86 bw.write(testString); 95 BufferedWriter bw = new BufferedWriter(mw); local 96 bw.write('a'); 97 bw.close(); 115 BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new ByteArrayOutputStream())); local 116 bw.close(); 123 bw.write("This should not cause a flush") [all...] |
FileWriterTest.java | 37 BufferedWriter bw; field in class:FileWriterTest 52 bw = new BufferedWriter(new FileWriter(f)); 53 bw.write(" After test string", 0, 18); 54 bw.close(); 125 bw = new BufferedWriter(new FileWriter(f.getPath())); 126 bw.write(" After test string", 0, 18); 127 bw.close(); 143 bw = new BufferedWriter(new FileWriter(f.getPath(), true)); 144 bw.write(" After test string", 0, 18); 145 bw.close() [all...] |
/bionic/libc/kernel/arch-x86/asm/ |
io_32.h | 30 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 31 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/development/ndk/platforms/android-9/arch-x86/include/asm/ |
io_32.h | 30 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 31 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/asm/ |
io_32.h | 25 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 26 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/asm/ |
io_32.h | 25 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 26 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/prebuilts/ndk/6/platforms/android-9/arch-x86/usr/include/asm/ |
io_32.h | 25 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 26 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/prebuilts/ndk/7/platforms/android-14/arch-x86/usr/include/asm/ |
io_32.h | 25 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 26 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/prebuilts/ndk/7/platforms/android-9/arch-x86/usr/include/asm/ |
io_32.h | 25 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 26 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/prebuilts/ndk/8/platforms/android-14/arch-x86/usr/include/asm/ |
io_32.h | 30 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 31 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/prebuilts/ndk/8/platforms/android-9/arch-x86/usr/include/asm/ |
io_32.h | 30 #define __BUILDIO(bwl,bw,type) static inline void out##bwl(unsigned type value, int port) { out##bwl##_local(value, port); } static inline unsigned type in##bwl(int port) { return in##bwl##_local(port); } 31 #define BUILDIO(bwl,bw,type) static inline void out##bwl##_local(unsigned type value, int port) { __asm__ __volatile__("out" #bwl " %" #bw "0, %w1" : : "a"(value), "Nd"(port)); } static inline unsigned type in##bwl##_local(int port) { unsigned type value; __asm__ __volatile__("in" #bwl " %w1, %" #bw "0" : "=a"(value) : "Nd"(port)); return value; } static inline void out##bwl##_local_p(unsigned type value, int port) { out##bwl##_local(value, port); slow_down_io(); } static inline unsigned type in##bwl##_local_p(int port) { unsigned type value = in##bwl##_local(port); slow_down_io(); return value; } __BUILDIO(bwl,bw,type) static inline void out##bwl##_p(unsigned type value, int port) { out##bwl(value, port); slow_down_io(); } static inline unsigned type in##bwl##_p(int port) { unsigned type value = in##bwl(port); slow_down_io(); return value; } static inline void outs##bwl(int port, const void *addr, unsigned long count) { __asm__ __volatile__("rep; outs" #bwl : "+S"(addr), "+c"(count) : "d"(port)); } static inline void ins##bwl(int port, void *addr, unsigned long count) { __asm__ __volatile__("rep; ins" #bwl : "+D"(addr), "+c"(count) : "d"(port)); }
|
/external/genext2fs/ |
genext2fs.c | 958 init_bw(blockwalker *bw) 960 bw->bnum = 0; 961 bw->bpdir = EXT2_INIT_BLOCK; 973 walk_bw(filesystem *fs, uint32 nod, blockwalker *bw, int32 *create, uint32 hole) 980 if(bw->bnum >= get_nod(fs, nod)->i_blocks / INOBLK) 991 if(bw->bpdir == EXT2_INIT_BLOCK) 993 bkref = &get_nod(fs, nod)->i_block[bw->bpdir = 0]; 1000 else if(bw->bpdir < EXT2_NDIR_BLOCKS) 1002 bkref = &get_nod(fs, nod)->i_block[++bw->bpdir]; 1009 else if(bw->bpdir == EXT2_NDIR_BLOCKS 1208 blockwalker bw, lbw; local 1250 blockwalker bw; local 1322 blockwalker bw; local 1909 blockwalker bw; local 1943 blockwalker bw; local 2162 blockwalker bw; local 2175 blockwalker bw; local 2188 blockwalker bw; local 2217 blockwalker bw; local [all...] |