/external/virglrenderer/src/gallium/auxiliary/util/ |
D | u_bitmask.c | 66 struct util_bitmask *bm; in util_bitmask_create() local 68 bm = MALLOC_STRUCT(util_bitmask); in util_bitmask_create() 69 if(!bm) in util_bitmask_create() 72 bm->words = (util_bitmask_word *)CALLOC(UTIL_BITMASK_INITIAL_WORDS, sizeof(util_bitmask_word)); in util_bitmask_create() 73 if(!bm->words) { in util_bitmask_create() 74 FREE(bm); in util_bitmask_create() 78 bm->size = UTIL_BITMASK_INITIAL_WORDS * UTIL_BITMASK_BITS_PER_WORD; in util_bitmask_create() 79 bm->filled = 0; in util_bitmask_create() 81 return bm; in util_bitmask_create() 89 util_bitmask_resize(struct util_bitmask *bm, in util_bitmask_resize() argument [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_bitmask.c | 66 struct util_bitmask *bm; in util_bitmask_create() local 68 bm = MALLOC_STRUCT(util_bitmask); in util_bitmask_create() 69 if (!bm) in util_bitmask_create() 72 bm->words = (util_bitmask_word *)CALLOC(UTIL_BITMASK_INITIAL_WORDS, sizeof(util_bitmask_word)); in util_bitmask_create() 73 if(!bm->words) { in util_bitmask_create() 74 FREE(bm); in util_bitmask_create() 78 bm->size = UTIL_BITMASK_INITIAL_WORDS * UTIL_BITMASK_BITS_PER_WORD; in util_bitmask_create() 79 bm->filled = 0; in util_bitmask_create() 81 return bm; in util_bitmask_create() 89 util_bitmask_resize(struct util_bitmask *bm, in util_bitmask_resize() argument [all …]
|
/external/skqp/tests/ |
D | GifTest.cpp | 58 SkBitmap bm; in test_gif_data_no_colormap() local 59 bool imageDecodeSuccess = decode_memory(data, size, &bm); in test_gif_data_no_colormap() 61 REPORTER_ASSERT(r, bm.width() == 1); in test_gif_data_no_colormap() 62 REPORTER_ASSERT(r, bm.height() == 1); in test_gif_data_no_colormap() 63 REPORTER_ASSERT(r, !(bm.empty())); in test_gif_data_no_colormap() 64 if (!(bm.empty())) { in test_gif_data_no_colormap() 65 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000); in test_gif_data_no_colormap() 69 SkBitmap bm; in test_gif_data() local 70 bool imageDecodeSuccess = decode_memory(data, size, &bm); in test_gif_data() 72 REPORTER_ASSERT(r, bm.width() == 3); in test_gif_data() [all …]
|
D | BitmapTest.cpp | 24 SkBitmap bm; in test_peekpixels() local 27 REPORTER_ASSERT(reporter, !bm.peekPixels(nullptr)); in test_peekpixels() 28 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels() 31 bm.setInfo(SkImageInfo::MakeN32Premul(10, 10)); in test_peekpixels() 32 REPORTER_ASSERT(reporter, !bm.peekPixels(nullptr)); in test_peekpixels() 33 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels() 36 bm.allocPixels(info); in test_peekpixels() 37 REPORTER_ASSERT(reporter, bm.peekPixels(nullptr)); in test_peekpixels() 38 REPORTER_ASSERT(reporter, bm.peekPixels(&pmap)); in test_peekpixels() 39 REPORTER_ASSERT(reporter, pmap.info() == bm.info()); in test_peekpixels() [all …]
|
D | CodecTest.cpp | 60 static void md5(const SkBitmap& bm, SkMD5::Digest* digest) { in md5() argument 61 SkASSERT(bm.getPixels()); in md5() 63 size_t rowLen = bm.info().bytesPerPixel() * bm.width(); in md5() 64 for (int y = 0; y < bm.height(); ++y) { in md5() 65 md5.write(bm.getAddr(0, y), rowLen); in md5() 77 const SkBitmap& bm) { in compare_to_good_digest() argument 79 md5(bm, &digest); in compare_to_good_digest() 92 SkBitmap bm; in test_info() local 93 bm.allocPixels(info); in test_info() 95 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_info() [all …]
|
D | PinnedImageTest.cpp | 21 SkBitmap bm; in surface_is_expected_color() local 22 bm.allocPixels(ii); in surface_is_expected_color() 24 surf->readPixels(bm, 0, 0); in surface_is_expected_color() 26 for (int y = 0; y < bm.height(); ++y) { in surface_is_expected_color() 27 for (int x = 0; x < bm.width(); ++x) { in surface_is_expected_color() 28 if (bm.getColor(x, y) != color) { in surface_is_expected_color() 40 SkBitmap bm; in basic_test() local 41 bm.allocPixels(ii); in basic_test() 43 SkCanvas bmCanvas(bm); in basic_test() 47 sk_sp<SkImage> img = SkMakeImageFromRasterBitmap(bm, kNever_SkCopyPixelsMode); in basic_test() [all …]
|
/external/skia/tests/ |
D | GifTest.cpp | 58 SkBitmap bm; in test_gif_data_no_colormap() local 59 bool imageDecodeSuccess = decode_memory(data, size, &bm); in test_gif_data_no_colormap() 61 REPORTER_ASSERT(r, bm.width() == 1); in test_gif_data_no_colormap() 62 REPORTER_ASSERT(r, bm.height() == 1); in test_gif_data_no_colormap() 63 REPORTER_ASSERT(r, !(bm.empty())); in test_gif_data_no_colormap() 64 if (!(bm.empty())) { in test_gif_data_no_colormap() 65 REPORTER_ASSERT(r, bm.getColor(0, 0) == 0x00000000); in test_gif_data_no_colormap() 69 SkBitmap bm; in test_gif_data() local 70 bool imageDecodeSuccess = decode_memory(data, size, &bm); in test_gif_data() 72 REPORTER_ASSERT(r, bm.width() == 3); in test_gif_data() [all …]
|
D | BitmapTest.cpp | 24 SkBitmap bm; in test_peekpixels() local 27 REPORTER_ASSERT(reporter, !bm.peekPixels(nullptr)); in test_peekpixels() 28 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels() 31 bm.setInfo(SkImageInfo::MakeN32Premul(10, 10)); in test_peekpixels() 32 REPORTER_ASSERT(reporter, !bm.peekPixels(nullptr)); in test_peekpixels() 33 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels() 36 bm.allocPixels(info); in test_peekpixels() 37 REPORTER_ASSERT(reporter, bm.peekPixels(nullptr)); in test_peekpixels() 38 REPORTER_ASSERT(reporter, bm.peekPixels(&pmap)); in test_peekpixels() 39 REPORTER_ASSERT(reporter, pmap.info() == bm.info()); in test_peekpixels() [all …]
|
D | CodecTest.cpp | 60 static void md5(const SkBitmap& bm, SkMD5::Digest* digest) { in md5() argument 61 SkASSERT(bm.getPixels()); in md5() 63 size_t rowLen = bm.info().bytesPerPixel() * bm.width(); in md5() 64 for (int y = 0; y < bm.height(); ++y) { in md5() 65 md5.write(bm.getAddr(0, y), rowLen); in md5() 77 const SkBitmap& bm) { in compare_to_good_digest() argument 79 md5(bm, &digest); in compare_to_good_digest() 92 SkBitmap bm; in test_info() local 93 bm.allocPixels(info); in test_info() 95 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_info() [all …]
|
D | PinnedImageTest.cpp | 21 SkBitmap bm; in surface_is_expected_color() local 22 bm.allocPixels(ii); in surface_is_expected_color() 24 surf->readPixels(bm, 0, 0); in surface_is_expected_color() 26 for (int y = 0; y < bm.height(); ++y) { in surface_is_expected_color() 27 for (int x = 0; x < bm.width(); ++x) { in surface_is_expected_color() 28 if (bm.getColor(x, y) != color) { in surface_is_expected_color() 40 SkBitmap bm; in basic_test() local 41 bm.allocPixels(ii); in basic_test() 43 SkCanvas bmCanvas(bm); in basic_test() 47 sk_sp<SkImage> img = SkMakeImageFromRasterBitmap(bm, kNever_SkCopyPixelsMode); in basic_test() [all …]
|
/external/skia/gm/ |
D | showmiplevels.cpp | 23 SkBitmap bm; in make_bitmap() local 24 bm.allocN32Pixels(w, h); in make_bitmap() 25 SkCanvas canvas(bm); in make_bitmap() 32 return bm; in make_bitmap() 36 SkBitmap bm; in make_bitmap2() local 37 bm.allocN32Pixels(w, h); in make_bitmap2() 38 SkCanvas canvas(bm); in make_bitmap2() 51 return bm; in make_bitmap2() 56 SkBitmap bm; in make_bitmap3() local 57 bm.allocN32Pixels(w, h); in make_bitmap3() [all …]
|
D | spritebitmap.cpp | 14 static void make_bm(SkBitmap* bm) { in make_bm() argument 15 bm->allocN32Pixels(100, 100); in make_bm() 16 bm->eraseColor(SK_ColorBLUE); in make_bm() 18 SkCanvas canvas(*bm); in make_bm() 25 static void draw_1_bitmap(SkCanvas* canvas, const SkBitmap& bm, bool doClip, in draw_1_bitmap() argument 32 SkIntToScalar(bm.width()), in draw_1_bitmap() 33 SkIntToScalar(bm.height())); in draw_1_bitmap() 38 canvas->translate(SkIntToScalar(bm.width() + 20), 0); in draw_1_bitmap() 44 canvas->drawBitmap(bm, SkIntToScalar(dx), SkIntToScalar(dy), &paint); in draw_1_bitmap() 68 SkBitmap bm; in onDraw() local [all …]
|
D | downsamplebitmap.cpp | 30 SkBitmap bm = fMakeBitmap(SkImageInfo::MakeN32Premul(1,1)/*whatever*/); in onISize() local 31 return SkISize::Make(bm.width(), 4 * bm.height()); in onISize() 39 SkBitmap bm = fMakeBitmap(info); in onDraw() local 55 canvas->drawBitmap(bm, 0, 0, &paint); in onDraw() 58 curHeight = (int) (bm.height() * curScale + 2); in onDraw() 61 } while (curHeight >= 2 && curY < 4*bm.height()); in onDraw() 80 SkBitmap bm; in make_text() local 81 bm.allocPixels(info.makeWH(int(textSize * 8), int(textSize * 6))); in make_text() 82 SkCanvas canvas(bm); in make_text() 99 return bm; in make_text() [all …]
|
D | bitmapfilters.cpp | 11 static void make_bm(SkBitmap* bm) { in make_bm() argument 20 bm->allocN32Pixels(2, 2, true); in make_bm() 22 *bm->getAddr32(0, 0) = colorsPM[0]; in make_bm() 23 *bm->getAddr32(1, 0) = colorsPM[1]; in make_bm() 24 *bm->getAddr32(0, 1) = colorsPM[2]; in make_bm() 25 *bm->getAddr32(1, 1) = colorsPM[3]; in make_bm() 28 static SkScalar draw_bm(SkCanvas* canvas, const SkBitmap& bm, in draw_bm() argument 30 canvas->drawBitmap(bm, x, y, paint); in draw_bm() 31 return SkIntToScalar(bm.width()) * 5/4; in draw_bm() 34 static SkScalar draw_set(SkCanvas* c, const SkBitmap& bm, SkScalar x, in draw_set() argument [all …]
|
/external/skqp/gm/ |
D | showmiplevels.cpp | 23 SkBitmap bm; in make_bitmap() local 24 bm.allocN32Pixels(w, h); in make_bitmap() 25 SkCanvas canvas(bm); in make_bitmap() 32 return bm; in make_bitmap() 36 SkBitmap bm; in make_bitmap2() local 37 bm.allocN32Pixels(w, h); in make_bitmap2() 38 SkCanvas canvas(bm); in make_bitmap2() 51 return bm; in make_bitmap2() 56 SkBitmap bm; in make_bitmap3() local 57 bm.allocN32Pixels(w, h); in make_bitmap3() [all …]
|
D | spritebitmap.cpp | 14 static void make_bm(SkBitmap* bm) { in make_bm() argument 15 bm->allocN32Pixels(100, 100); in make_bm() 16 bm->eraseColor(SK_ColorBLUE); in make_bm() 18 SkCanvas canvas(*bm); in make_bm() 25 static void draw_1_bitmap(SkCanvas* canvas, const SkBitmap& bm, bool doClip, in draw_1_bitmap() argument 32 SkIntToScalar(bm.width()), in draw_1_bitmap() 33 SkIntToScalar(bm.height())); in draw_1_bitmap() 38 canvas->translate(SkIntToScalar(bm.width() + 20), 0); in draw_1_bitmap() 44 canvas->drawBitmap(bm, SkIntToScalar(dx), SkIntToScalar(dy), &paint); in draw_1_bitmap() 68 SkBitmap bm; in onDraw() local [all …]
|
D | downsamplebitmap.cpp | 30 SkBitmap bm = fMakeBitmap(SkImageInfo::MakeN32Premul(1,1)/*whatever*/); in onISize() local 31 return SkISize::Make(bm.width(), 4 * bm.height()); in onISize() 39 SkBitmap bm = fMakeBitmap(info); in onDraw() local 55 canvas->drawBitmap(bm, 0, 0, &paint); in onDraw() 58 curHeight = (int) (bm.height() * curScale + 2); in onDraw() 61 } while (curHeight >= 2 && curY < 4*bm.height()); in onDraw() 80 SkBitmap bm; in make_text() local 81 bm.allocPixels(info.makeWH(int(textSize * 8), int(textSize * 6))); in make_text() 82 SkCanvas canvas(bm); in make_text() 99 return bm; in make_text() [all …]
|
D | bitmapfilters.cpp | 11 static void make_bm(SkBitmap* bm) { in make_bm() argument 20 bm->allocN32Pixels(2, 2, true); in make_bm() 22 *bm->getAddr32(0, 0) = colorsPM[0]; in make_bm() 23 *bm->getAddr32(1, 0) = colorsPM[1]; in make_bm() 24 *bm->getAddr32(0, 1) = colorsPM[2]; in make_bm() 25 *bm->getAddr32(1, 1) = colorsPM[3]; in make_bm() 28 static SkScalar draw_bm(SkCanvas* canvas, const SkBitmap& bm, in draw_bm() argument 30 canvas->drawBitmap(bm, x, y, paint); in draw_bm() 31 return SkIntToScalar(bm.width()) * 5/4; in draw_bm() 34 static SkScalar draw_set(SkCanvas* c, const SkBitmap& bm, SkScalar x, in draw_set() argument [all …]
|
/external/libcxx/utils/google-benchmark/test/ |
D | user_counters_test.cc | 109 namespace bm = benchmark; in BM_Counters_Rate() 110 state.counters["foo"] = bm::Counter{1, bm::Counter::kIsRate}; in BM_Counters_Rate() 111 state.counters["bar"] = bm::Counter{2, bm::Counter::kIsRate}; in BM_Counters_Rate() 180 namespace bm = benchmark; in BM_Counters_AvgThreads() 181 state.counters["foo"] = bm::Counter{1, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads() 182 state.counters["bar"] = bm::Counter{2, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads() 217 namespace bm = benchmark; in BM_Counters_AvgThreadsRate() 218 state.counters["foo"] = bm::Counter{1, bm::Counter::kAvgThreadsRate}; in BM_Counters_AvgThreadsRate() 219 state.counters["bar"] = bm::Counter{2, bm::Counter::kAvgThreadsRate}; in BM_Counters_AvgThreadsRate() 254 namespace bm = benchmark; in BM_Counters_IterationInvariant() [all …]
|
D | user_counters_tabular_test.cc | 61 namespace bm = benchmark; in BM_Counters_Tabular() 63 {"Foo", {1, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 64 {"Bar", {2, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 65 {"Baz", {4, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 66 {"Bat", {8, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 67 {"Frob", {16, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 68 {"Lob", {32, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 108 namespace bm = benchmark; in BM_CounterRates_Tabular() 110 {"Foo", {1, bm::Counter::kAvgThreadsRate}}, in BM_CounterRates_Tabular() 111 {"Bar", {2, bm::Counter::kAvgThreadsRate}}, in BM_CounterRates_Tabular() [all …]
|
/external/google-benchmark/test/ |
D | user_counters_test.cc | 109 namespace bm = benchmark; in BM_Counters_Rate() 110 state.counters["foo"] = bm::Counter{1, bm::Counter::kIsRate}; in BM_Counters_Rate() 111 state.counters["bar"] = bm::Counter{2, bm::Counter::kIsRate}; in BM_Counters_Rate() 180 namespace bm = benchmark; in BM_Counters_AvgThreads() 181 state.counters["foo"] = bm::Counter{1, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads() 182 state.counters["bar"] = bm::Counter{2, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads() 217 namespace bm = benchmark; in BM_Counters_AvgThreadsRate() 218 state.counters["foo"] = bm::Counter{1, bm::Counter::kAvgThreadsRate}; in BM_Counters_AvgThreadsRate() 219 state.counters["bar"] = bm::Counter{2, bm::Counter::kAvgThreadsRate}; in BM_Counters_AvgThreadsRate() 254 namespace bm = benchmark; in BM_Counters_IterationInvariant() [all …]
|
D | user_counters_tabular_test.cc | 61 namespace bm = benchmark; in BM_Counters_Tabular() 63 {"Foo", {1, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 64 {"Bar", {2, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 65 {"Baz", {4, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 66 {"Bat", {8, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 67 {"Frob", {16, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 68 {"Lob", {32, bm::Counter::kAvgThreads}}, in BM_Counters_Tabular() 108 namespace bm = benchmark; in BM_CounterRates_Tabular() 110 {"Foo", {1, bm::Counter::kAvgThreadsRate}}, in BM_CounterRates_Tabular() 111 {"Bar", {2, bm::Counter::kAvgThreadsRate}}, in BM_CounterRates_Tabular() [all …]
|
/external/skia/samplecode/ |
D | SampleHairline.cpp | 46 static bool check_bitmap_margin(const SkBitmap& bm, int margin) { in check_bitmap_margin() argument 47 size_t rb = bm.rowBytes(); in check_bitmap_margin() 49 if (!check_zeros(bm.getAddr32(0, i), bm.width(), 1)) { in check_bitmap_margin() 52 int bottom = bm.height() - i - 1; in check_bitmap_margin() 53 if (!check_zeros(bm.getAddr32(0, bottom), bm.width(), 1)) { in check_bitmap_margin() 57 if (!check_zeros(bm.getAddr32(i, 0), bm.height(), SkToInt(rb >> 2))) { in check_bitmap_margin() 60 int right = bm.width() - margin + i; in check_bitmap_margin() 61 if (!check_zeros(bm.getAddr32(right, 0), bm.height(), in check_bitmap_margin() 74 const SkBitmap& bm) { in line_proc() argument 81 if (!check_bitmap_margin(bm, MARGIN)) { in line_proc() [all …]
|
/external/skqp/samplecode/ |
D | SampleHairline.cpp | 46 static bool check_bitmap_margin(const SkBitmap& bm, int margin) { in check_bitmap_margin() argument 47 size_t rb = bm.rowBytes(); in check_bitmap_margin() 49 if (!check_zeros(bm.getAddr32(0, i), bm.width(), 1)) { in check_bitmap_margin() 52 int bottom = bm.height() - i - 1; in check_bitmap_margin() 53 if (!check_zeros(bm.getAddr32(0, bottom), bm.width(), 1)) { in check_bitmap_margin() 57 if (!check_zeros(bm.getAddr32(i, 0), bm.height(), SkToInt(rb >> 2))) { in check_bitmap_margin() 60 int right = bm.width() - margin + i; in check_bitmap_margin() 61 if (!check_zeros(bm.getAddr32(right, 0), bm.height(), in check_bitmap_margin() 74 const SkBitmap& bm) { in line_proc() argument 81 if (!check_bitmap_margin(bm, MARGIN)) { in line_proc() [all …]
|
/external/u-boot/arch/nios2/lib/ |
D | libgcc.c | 57 const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; in __ashldi3() local 60 if (bm <= 0) in __ashldi3() 63 w.s.high = (UWtype) uu.s.low << -bm; in __ashldi3() 67 const UWtype carries = (UWtype) uu.s.low >> bm; in __ashldi3() 83 const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; in __ashrdi3() local 86 if (bm <= 0) in __ashrdi3() 90 w.s.low = uu.s.high >> -bm; in __ashrdi3() 94 const UWtype carries = (UWtype) uu.s.high << bm; in __ashrdi3() 110 const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b; in __lshrdi3() local 113 if (bm <= 0) in __lshrdi3() [all …]
|