text
stringlengths
1
22.8M
```c++ ////////////////////////////////////////////////////////////////////////////// // // LICENSE_1_0.txt or copy at path_to_url // // See path_to_url for documentation. // ////////////////////////////////////////////////////////////////////////////// #include <boost/interprocess/detail/config_begin.hpp> //[doc_message_queueA #include <boost/interprocess/ipc/message_queue.hpp> #include <iostream> #include <vector> using namespace boost::interprocess; int main () { try{ //Erase previous message queue message_queue::remove("message_queue"); //Create a message_queue. message_queue mq (create_only //only create ,"message_queue" //name ,100 //max message number ,sizeof(int) //max message size ); //Send 100 numbers for(int i = 0; i < 100; ++i){ mq.send(&i, sizeof(i), 0); } } catch(interprocess_exception &ex){ std::cout << ex.what() << std::endl; return 1; } return 0; } //] #include <boost/interprocess/detail/config_end.hpp> ```
```c++ /* This file is free software: you can redistribute it and/or modify (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with the this software. If not, see <path_to_url */ #ifndef ENABLE_SSE2 #error This code requires SSE2 support. #warning This error might occur if this file is compiled directly. Do not compile this file directly, as it is already included in GPU_Operations.cpp. #else #include "GPU_Operations_SSE2.h" #include "./utils/colorspacehandler/colorspacehandler_SSE2.h" static const ColorOperation_SSE2 colorop_vec; static const PixelOperation_SSE2 pixelop_vec; template <s32 INTEGERSCALEHINT, bool SCALEVERTICAL, bool NEEDENDIANSWAP, size_t ELEMENTSIZE> static FORCEINLINE void CopyLineExpand(void *__restrict dst, const void *__restrict src, size_t dstWidth, size_t dstLineCount) { if (INTEGERSCALEHINT == 0) { memcpy(dst, src, dstWidth * ELEMENTSIZE); } else if (INTEGERSCALEHINT == 1) { MACRODO_N( GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE), _mm_store_si128((__m128i *)dst + (X), _mm_load_si128((__m128i *)src + (X))) ); } else if (INTEGERSCALEHINT == 2) { __m128i srcVec; __m128i srcPixOut[2]; switch (ELEMENTSIZE) { case 1: { if (SCALEVERTICAL) { MACRODO_N( GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE), \ srcVec = _mm_load_si128((__m128i *)((__m128i *)src + (X))); \ srcPixOut[0] = _mm_unpacklo_epi8(srcVec, srcVec); \ srcPixOut[1] = _mm_unpackhi_epi8(srcVec, srcVec); \ _mm_store_si128((__m128i *)dst + ((X) * 2) + ((GPU_FRAMEBUFFER_NATIVE_WIDTH * 2 / (sizeof(__m128i) / ELEMENTSIZE)) * 0) + 0, srcPixOut[0]); \ _mm_store_si128((__m128i *)dst + ((X) * 2) + ((GPU_FRAMEBUFFER_NATIVE_WIDTH * 2 / (sizeof(__m128i) / ELEMENTSIZE)) * 0) + 1, srcPixOut[1]); \ _mm_store_si128((__m128i *)dst + ((X) * 2) + ((GPU_FRAMEBUFFER_NATIVE_WIDTH * 2 / (sizeof(__m128i) / ELEMENTSIZE)) * 1) + 0, srcPixOut[0]); \ _mm_store_si128((__m128i *)dst + ((X) * 2) + ((GPU_FRAMEBUFFER_NATIVE_WIDTH * 2 / (sizeof(__m128i) / ELEMENTSIZE)) * 1) + 1, srcPixOut[1]); \ ); } else { MACRODO_N( GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE), \ srcVec = _mm_load_si128((__m128i *)((__m128i *)src + (X))); \ srcPixOut[0] = _mm_unpacklo_epi8(srcVec, srcVec); \ srcPixOut[1] = _mm_unpackhi_epi8(srcVec, srcVec); \ _mm_store_si128((__m128i *)dst + ((X) * 2) + 0, srcPixOut[0]); \ _mm_store_si128((__m128i *)dst + ((X) * 2) + 1, srcPixOut[1]); \ ); } break; } case 2: { if (SCALEVERTICAL) { MACRODO_N( GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE), \ srcVec = _mm_load_si128((__m128i *)((__m128i *)src + (X))); \ srcPixOut[0] = _mm_unpacklo_epi16(srcVec, srcVec); \ srcPixOut[1] = _mm_unpackhi_epi16(srcVec, srcVec); \ _mm_store_si128((__m128i *)dst + ((X) * 2) + ((GPU_FRAMEBUFFER_NATIVE_WIDTH * 2 / (sizeof(__m128i) / ELEMENTSIZE)) * 0) + 0, srcPixOut[0]); \ _mm_store_si128((__m128i *)dst + ((X) * 2) + ((GPU_FRAMEBUFFER_NATIVE_WIDTH * 2 / (sizeof(__m128i) / ELEMENTSIZE)) * 0) + 1, srcPixOut[1]); \ _mm_store_si128((__m128i *)dst + ((X) * 2) + ((GPU_FRAMEBUFFER_NATIVE_WIDTH * 2 / (sizeof(__m128i) / ELEMENTSIZE)) * 1) + 0, srcPixOut[0]); \ _mm_store_si128((__m128i *)dst + ((X) * 2) + ((GPU_FRAMEBUFFER_NATIVE_WIDTH * 2 / (sizeof(__m128i) / ELEMENTSIZE)) * 1) + 1, srcPixOut[1]); \ ); } else { MACRODO_N( GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE), \ srcVec = _mm_load_si128((__m128i *)((__m128i *)src + (X))); \ srcPixOut[0] = _mm_unpacklo_epi16(srcVec, srcVec); \ srcPixOut[1] = _mm_unpackhi_epi16(srcVec, srcVec); \ _mm_store_si128((__m128i *)dst + ((X) * 2) + 0, srcPixOut[0]); \ _mm_store_si128((__m128i *)dst + ((X) * 2) + 1, srcPixOut[1]); \ ); } break; } case 4: { // If we're also doing vertical expansion, then the total number of instructions for a fully // unrolled loop is 448 instructions. Therefore, let's not unroll the loop in this case in // order to avoid overusing the CPU's instruction cache. for (size_t srcX = 0, dstX = 0; srcX < GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE); srcX++, dstX+=INTEGERSCALEHINT) { srcVec = _mm_load_si128((__m128i *)src + srcX); srcPixOut[0] = _mm_shuffle_epi32(srcVec, 0x50); srcPixOut[1] = _mm_shuffle_epi32(srcVec, 0xFA); _mm_store_si128((__m128i *)dst + dstX + 0, srcPixOut[0]); _mm_store_si128((__m128i *)dst + dstX + 1, srcPixOut[1]); if (SCALEVERTICAL) { _mm_store_si128((__m128i *)dst + dstX + ((GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE) * INTEGERSCALEHINT) * 1) + 0, srcPixOut[0]); _mm_store_si128((__m128i *)dst + dstX + ((GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE) * INTEGERSCALEHINT) * 1) + 1, srcPixOut[1]); } } break; } } } else if (INTEGERSCALEHINT == 3) { __m128i srcPixOut[3]; for (size_t srcX = 0, dstX = 0; srcX < GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE); srcX++, dstX+=INTEGERSCALEHINT) { const __m128i srcVec = _mm_load_si128((__m128i *)src + srcX); if (ELEMENTSIZE == 1) { #ifdef ENABLE_SSSE3 srcPixOut[0] = _mm_shuffle_epi8(srcVec, _mm_set_epi8( 5, 4, 4, 4, 3, 3, 3, 2, 2, 2, 1, 1, 1, 0, 0, 0)); srcPixOut[1] = _mm_shuffle_epi8(srcVec, _mm_set_epi8(10,10, 9, 9, 9, 8, 8, 8, 7, 7, 7, 6, 6, 6, 5, 5)); srcPixOut[2] = _mm_shuffle_epi8(srcVec, _mm_set_epi8(15,15,15,14,14,14,13,13,13,12,12,12,11,11,11,10)); #else __m128i src8As32[4]; src8As32[0] = _mm_unpacklo_epi8(srcVec, srcVec); src8As32[1] = _mm_unpackhi_epi8(srcVec, srcVec); src8As32[2] = _mm_unpacklo_epi8(src8As32[1], src8As32[1]); src8As32[3] = _mm_unpackhi_epi8(src8As32[1], src8As32[1]); src8As32[1] = _mm_unpackhi_epi8(src8As32[0], src8As32[0]); src8As32[0] = _mm_unpacklo_epi8(src8As32[0], src8As32[0]); src8As32[0] = _mm_and_si128(src8As32[0], _mm_set_epi32(0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF)); src8As32[1] = _mm_and_si128(src8As32[1], _mm_set_epi32(0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF)); src8As32[2] = _mm_and_si128(src8As32[2], _mm_set_epi32(0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF)); src8As32[3] = _mm_and_si128(src8As32[3], _mm_set_epi32(0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF)); __m128i srcWorking[4]; srcWorking[0] = _mm_shuffle_epi32(src8As32[0], 0x40); srcWorking[1] = _mm_shuffle_epi32(src8As32[0], 0xA5); srcWorking[2] = _mm_shuffle_epi32(src8As32[0], 0xFE); srcWorking[3] = _mm_shuffle_epi32(src8As32[1], 0x40); srcPixOut[0] = _mm_packus_epi16( _mm_packus_epi16(srcWorking[0], srcWorking[1]), _mm_packus_epi16(srcWorking[2], srcWorking[3]) ); srcWorking[0] = _mm_shuffle_epi32(src8As32[1], 0xA5); srcWorking[1] = _mm_shuffle_epi32(src8As32[1], 0xFE); srcWorking[2] = _mm_shuffle_epi32(src8As32[2], 0x40); srcWorking[3] = _mm_shuffle_epi32(src8As32[2], 0xA5); srcPixOut[1] = _mm_packus_epi16( _mm_packus_epi16(srcWorking[0], srcWorking[1]), _mm_packus_epi16(srcWorking[2], srcWorking[3]) ); srcWorking[0] = _mm_shuffle_epi32(src8As32[2], 0xFE); srcWorking[1] = _mm_shuffle_epi32(src8As32[3], 0x40); srcWorking[2] = _mm_shuffle_epi32(src8As32[3], 0xA5); srcWorking[3] = _mm_shuffle_epi32(src8As32[3], 0xFE); srcPixOut[2] = _mm_packus_epi16( _mm_packus_epi16(srcWorking[0], srcWorking[1]), _mm_packus_epi16(srcWorking[2], srcWorking[3]) ); #endif } else if (ELEMENTSIZE == 2) { #ifdef ENABLE_SSSE3 srcPixOut[0] = _mm_shuffle_epi8(srcVec, _mm_set_epi8( 5, 4, 5, 4, 3, 2, 3, 2, 3, 2, 1, 0, 1, 0, 1, 0)); srcPixOut[1] = _mm_shuffle_epi8(srcVec, _mm_set_epi8(11,10, 9, 8, 9, 8, 9, 8, 7, 6, 7, 6, 7, 6, 5, 4)); srcPixOut[2] = _mm_shuffle_epi8(srcVec, _mm_set_epi8(15,14,15,14,15,14,13,12,13,12,13,12,11,10,11,10)); #else const __m128i src16lo = _mm_shuffle_epi32(srcVec, 0x44); const __m128i src16hi = _mm_shuffle_epi32(srcVec, 0xEE); srcPixOut[0] = _mm_shufflehi_epi16(_mm_shufflelo_epi16(src16lo, 0x40), 0xA5); srcPixOut[1] = _mm_shufflehi_epi16(_mm_shufflelo_epi16(srcVec, 0xFE), 0x40); srcPixOut[2] = _mm_shufflehi_epi16(_mm_shufflelo_epi16(src16hi, 0xA5), 0xFE); #endif } else if (ELEMENTSIZE == 4) { srcPixOut[0] = _mm_shuffle_epi32(srcVec, 0x40); srcPixOut[1] = _mm_shuffle_epi32(srcVec, 0xA5); srcPixOut[2] = _mm_shuffle_epi32(srcVec, 0xFE); } for (size_t lx = 0; lx < (size_t)INTEGERSCALEHINT; lx++) { _mm_store_si128((__m128i *)dst + dstX + lx, srcPixOut[lx]); } if (SCALEVERTICAL) { for (size_t ly = 1; ly < (size_t)INTEGERSCALEHINT; ly++) { for (size_t lx = 0; lx < (size_t)INTEGERSCALEHINT; lx++) { _mm_store_si128((__m128i *)dst + dstX + ((GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE) * INTEGERSCALEHINT) * ly) + lx, srcPixOut[lx]); } } } } } else if (INTEGERSCALEHINT == 4) { __m128i srcPixOut[4]; for (size_t srcX = 0, dstX = 0; srcX < GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE); srcX++, dstX+=INTEGERSCALEHINT) { const __m128i srcVec = _mm_load_si128((__m128i *)src + srcX); if (ELEMENTSIZE == 1) { #ifdef ENABLE_SSSE3 srcPixOut[0] = _mm_shuffle_epi8(srcVec, _mm_set_epi8( 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0)); srcPixOut[1] = _mm_shuffle_epi8(srcVec, _mm_set_epi8( 7, 7, 7, 7, 6, 6, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4)); srcPixOut[2] = _mm_shuffle_epi8(srcVec, _mm_set_epi8(11,11,11,11,10,10,10,10, 9, 9, 9, 9, 8, 8, 8, 8)); srcPixOut[3] = _mm_shuffle_epi8(srcVec, _mm_set_epi8(15,15,15,15,14,14,14,14,13,13,13,13,12,12,12,12)); #else const __m128i src8_lo = _mm_unpacklo_epi8(srcVec, srcVec); const __m128i src8_hi = _mm_unpackhi_epi8(srcVec, srcVec); srcPixOut[0] = _mm_unpacklo_epi8(src8_lo, src8_lo); srcPixOut[1] = _mm_unpackhi_epi8(src8_lo, src8_lo); srcPixOut[2] = _mm_unpacklo_epi8(src8_hi, src8_hi); srcPixOut[3] = _mm_unpackhi_epi8(src8_hi, src8_hi); #endif } else if (ELEMENTSIZE == 2) { #ifdef ENABLE_SSSE3 srcPixOut[0] = _mm_shuffle_epi8(srcVec, _mm_set_epi8( 3, 2, 3, 2, 3, 2, 3, 2, 1, 0, 1, 0, 1, 0, 1, 0)); srcPixOut[1] = _mm_shuffle_epi8(srcVec, _mm_set_epi8( 7, 6, 7, 6, 7, 6, 7, 6, 5, 4, 5, 4, 5, 4, 5, 4)); srcPixOut[2] = _mm_shuffle_epi8(srcVec, _mm_set_epi8(11,10,11,10,11,10,11,10, 9, 8, 9, 8, 9, 8, 9, 8)); srcPixOut[3] = _mm_shuffle_epi8(srcVec, _mm_set_epi8(15,14,15,14,15,14,15,14,13,12,13,12,13,12,13,12)); #else const __m128i src16_lo = _mm_unpacklo_epi16(srcVec, srcVec); const __m128i src16_hi = _mm_unpackhi_epi16(srcVec, srcVec); srcPixOut[0] = _mm_unpacklo_epi16(src16_lo, src16_lo); srcPixOut[1] = _mm_unpackhi_epi16(src16_lo, src16_lo); srcPixOut[2] = _mm_unpacklo_epi16(src16_hi, src16_hi); srcPixOut[3] = _mm_unpackhi_epi16(src16_hi, src16_hi); #endif } else if (ELEMENTSIZE == 4) { srcPixOut[0] = _mm_shuffle_epi32(srcVec, 0x00); srcPixOut[1] = _mm_shuffle_epi32(srcVec, 0x55); srcPixOut[2] = _mm_shuffle_epi32(srcVec, 0xAA); srcPixOut[3] = _mm_shuffle_epi32(srcVec, 0xFF); } for (size_t lx = 0; lx < (size_t)INTEGERSCALEHINT; lx++) { _mm_store_si128((__m128i *)dst + dstX + lx, srcPixOut[lx]); } if (SCALEVERTICAL) { for (size_t ly = 1; ly < (size_t)INTEGERSCALEHINT; ly++) { for (size_t lx = 0; lx < (size_t)INTEGERSCALEHINT; lx++) { _mm_store_si128((__m128i *)dst + dstX + ((GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE) * INTEGERSCALEHINT) * ly) + lx, srcPixOut[lx]); } } } } } #ifdef ENABLE_SSSE3 else if (INTEGERSCALEHINT > 1) { const size_t scale = dstWidth / GPU_FRAMEBUFFER_NATIVE_WIDTH; for (size_t srcX = 0, dstX = 0; srcX < GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE); srcX++, dstX+=scale) { const __m128i srcVec = _mm_load_si128((__m128i *)src + srcX); v128u8 ssse3idx; for (size_t lx = 0; lx < scale; lx++) { if (ELEMENTSIZE == 1) { ssse3idx = _mm_load_si128((__m128i *)(_gpuDstToSrcSSSE3_u8_16e + (lx * sizeof(v128u8)))); } else if (ELEMENTSIZE == 2) { ssse3idx = _mm_load_si128((__m128i *)(_gpuDstToSrcSSSE3_u16_8e + (lx * sizeof(v128u8)))); } else if (ELEMENTSIZE == 4) { ssse3idx = _mm_load_si128((__m128i *)(_gpuDstToSrcSSSE3_u32_4e + (lx * sizeof(v128u8)))); } _mm_store_si128( (__m128i *)dst + dstX + lx, _mm_shuffle_epi8(srcVec, ssse3idx) ); } } if (SCALEVERTICAL) { CopyLinesForVerticalCount<ELEMENTSIZE>(dst, dstWidth, dstLineCount); } } #endif else { for (size_t x = 0; x < GPU_FRAMEBUFFER_NATIVE_WIDTH; x++) { for (size_t p = 0; p < _gpuDstPitchCount[x]; p++) { if (ELEMENTSIZE == 1) { ( (u8 *)dst)[_gpuDstPitchIndex[x] + p] = ((u8 *)src)[x]; } else if (ELEMENTSIZE == 2) { ((u16 *)dst)[_gpuDstPitchIndex[x] + p] = ((u16 *)src)[x]; } else if (ELEMENTSIZE == 4) { ((u32 *)dst)[_gpuDstPitchIndex[x] + p] = ((u32 *)src)[x]; } } } if (SCALEVERTICAL) { CopyLinesForVerticalCount<ELEMENTSIZE>(dst, dstWidth, dstLineCount); } } } template <s32 INTEGERSCALEHINT, bool NEEDENDIANSWAP, size_t ELEMENTSIZE> static FORCEINLINE void CopyLineReduce(void *__restrict dst, const void *__restrict src, size_t srcWidth) { if (INTEGERSCALEHINT == 0) { memcpy(dst, src, srcWidth * ELEMENTSIZE); } else if (INTEGERSCALEHINT == 1) { MACRODO_N( GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE), _mm_store_si128((__m128i *)dst + (X), _mm_load_si128((__m128i *)src + (X))) ); } else if (INTEGERSCALEHINT == 2) { __m128i srcPix[2]; for (size_t dstX = 0; dstX < (GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE)); dstX++) { srcPix[0] = _mm_load_si128((__m128i *)src + (dstX * 2) + 0); srcPix[1] = _mm_load_si128((__m128i *)src + (dstX * 2) + 1); if (ELEMENTSIZE == 1) { srcPix[0] = _mm_and_si128(srcPix[0], _mm_set1_epi32(0x00FF00FF)); srcPix[1] = _mm_and_si128(srcPix[1], _mm_set1_epi32(0x00FF00FF)); _mm_store_si128((__m128i *)dst + dstX, _mm_packus_epi16(srcPix[0], srcPix[1])); } else if (ELEMENTSIZE == 2) { srcPix[0] = _mm_and_si128(srcPix[0], _mm_set1_epi32(0x0000FFFF)); srcPix[1] = _mm_and_si128(srcPix[1], _mm_set1_epi32(0x0000FFFF)); #if defined(ENABLE_SSE4_1) _mm_store_si128((__m128i *)dst + dstX, _mm_packus_epi32(srcPix[0], srcPix[1])); #elif defined(ENABLE_SSSE3) srcPix[0] = _mm_shuffle_epi8(srcPix[0], _mm_set_epi8(15,14,11,10, 7, 6, 3, 2,13,12, 9, 8, 5, 4, 1, 0)); srcPix[1] = _mm_shuffle_epi8(srcPix[1], _mm_set_epi8(13,12, 9, 8, 5, 4, 1, 0,15,14,11,10, 7, 6, 3, 2)); _mm_store_si128((__m128i *)dst + dstX, _mm_or_si128(srcPix[0], srcPix[1])); #else srcPix[0] = _mm_shufflelo_epi16(srcPix[0], 0xD8); srcPix[0] = _mm_shufflehi_epi16(srcPix[0], 0xD8); srcPix[0] = _mm_shuffle_epi32(srcPix[0], 0xD8); srcPix[1] = _mm_shufflelo_epi16(srcPix[1], 0xD8); srcPix[1] = _mm_shufflehi_epi16(srcPix[1], 0xD8); srcPix[1] = _mm_shuffle_epi32(srcPix[1], 0x8D); _mm_store_si128((__m128i *)dst + dstX, _mm_or_si128(srcPix[0], srcPix[1])); #endif } else if (ELEMENTSIZE == 4) { srcPix[0] = _mm_and_si128(srcPix[0], _mm_set_epi32(0, 0xFFFFFFFF, 0, 0xFFFFFFFF)); srcPix[1] = _mm_and_si128(srcPix[1], _mm_set_epi32(0, 0xFFFFFFFF, 0, 0xFFFFFFFF)); srcPix[0] = _mm_shuffle_epi32(srcPix[0], 0xD8); srcPix[1] = _mm_shuffle_epi32(srcPix[1], 0x8D); _mm_store_si128((__m128i *)dst + dstX, _mm_or_si128(srcPix[0], srcPix[1])); } } } else if (INTEGERSCALEHINT == 3) { #ifdef ENABLE_SSSE3 static const u8 X = 0x80; #endif __m128i srcPix[3]; for (size_t dstX = 0; dstX < (GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE)); dstX++) { srcPix[0] = _mm_load_si128((__m128i *)src + (dstX * 3) + 0); srcPix[1] = _mm_load_si128((__m128i *)src + (dstX * 3) + 1); srcPix[2] = _mm_load_si128((__m128i *)src + (dstX * 3) + 2); if (ELEMENTSIZE == 1) { #ifdef ENABLE_SSSE3 srcPix[0] = _mm_shuffle_epi8(srcPix[0], _mm_set_epi8( X, X, X, X, X, X, X, X, X, X,15,12, 9, 6, 3, 0)); srcPix[1] = _mm_shuffle_epi8(srcPix[1], _mm_set_epi8( X, X, X, X, X,14,11, 8, 5, 2, X, X, X, X, X, X)); srcPix[2] = _mm_shuffle_epi8(srcPix[2], _mm_set_epi8(13,10, 7, 4, 1, X, X, X, X, X, X, X, X, X, X, X)); srcPix[0] = _mm_or_si128(srcPix[0], srcPix[1]); srcPix[0] = _mm_or_si128(srcPix[0], srcPix[2]); #else __m128i srcWorking[3]; srcPix[0] = _mm_and_si128(srcPix[0], _mm_set_epi32(0xFF0000FF, 0x0000FF00, 0x00FF0000, 0xFF0000FF)); srcPix[1] = _mm_and_si128(srcPix[1], _mm_set_epi32(0x00FF0000, 0xFF0000FF, 0x0000FF00, 0x00FF0000)); srcPix[2] = _mm_and_si128(srcPix[2], _mm_set_epi32(0x0000FF00, 0x00FF0000, 0xFF0000FF, 0x0000FF00)); srcWorking[0] = _mm_unpacklo_epi8(srcPix[0], _mm_setzero_si128()); srcWorking[1] = _mm_unpackhi_epi8(srcPix[0], _mm_setzero_si128()); srcWorking[2] = _mm_unpacklo_epi8(srcPix[1], _mm_setzero_si128()); srcPix[0] = _mm_or_si128(srcWorking[0], srcWorking[1]); srcPix[0] = _mm_or_si128(srcPix[0], srcWorking[2]); srcWorking[0] = _mm_unpackhi_epi8(srcPix[1], _mm_setzero_si128()); srcWorking[1] = _mm_unpacklo_epi8(srcPix[2], _mm_setzero_si128()); srcWorking[2] = _mm_unpackhi_epi8(srcPix[2], _mm_setzero_si128()); srcPix[1] = _mm_or_si128(srcWorking[0], srcWorking[1]); srcPix[1] = _mm_or_si128(srcPix[1], srcWorking[2]); srcPix[0] = _mm_shufflelo_epi16(srcPix[0], 0x6C); srcPix[0] = _mm_shufflehi_epi16(srcPix[0], 0x6C); srcPix[1] = _mm_shufflelo_epi16(srcPix[1], 0x6C); srcPix[1] = _mm_shufflehi_epi16(srcPix[1], 0x6C); srcPix[0] = _mm_packus_epi16(srcPix[0], srcPix[1]); srcPix[1] = _mm_shuffle_epi32(srcPix[0], 0xB1); srcPix[0] = _mm_and_si128(srcPix[0], _mm_set_epi32(0xFF00FFFF, 0xFF00FFFF, 0xFF00FFFF, 0xFF00FFFF)); srcPix[1] = _mm_and_si128(srcPix[1], _mm_set_epi32(0x00FF0000, 0x00FF0000, 0x00FF0000, 0x00FF0000)); srcPix[0] = _mm_or_si128(srcPix[0], srcPix[1]); #endif _mm_store_si128((__m128i *)dst + dstX, srcPix[0]); } else if (ELEMENTSIZE == 2) { #ifdef ENABLE_SSSE3 srcPix[0] = _mm_shuffle_epi8(srcPix[0], _mm_set_epi8( X, X, X, X, X, X, X, X, X, X,13,12, 7, 6, 1, 0)); srcPix[1] = _mm_shuffle_epi8(srcPix[1], _mm_set_epi8( X, X, X, X,15,14, 9, 8, 3, 2, X, X, X, X, X, X)); srcPix[2] = _mm_shuffle_epi8(srcPix[2], _mm_set_epi8(11,10, 5, 4, X, X, X, X, X, X, X, X, X, X, X, X)); #else srcPix[0] = _mm_and_si128(srcPix[0], _mm_set_epi32(0x0000FFFF, 0x00000000, 0xFFFF0000, 0x0000FFFF)); srcPix[1] = _mm_and_si128(srcPix[1], _mm_set_epi32(0xFFFF0000, 0x0000FFFF, 0x00000000, 0xFFFF0000)); srcPix[2] = _mm_and_si128(srcPix[2], _mm_set_epi32(0x00000000, 0xFFFF0000, 0x0000FFFF, 0x00000000)); srcPix[0] = _mm_shufflelo_epi16(srcPix[0], 0x9C); srcPix[1] = _mm_shufflehi_epi16(srcPix[1], 0x9C); srcPix[2] = _mm_shuffle_epi32(srcPix[2], 0x9C); srcPix[0] = _mm_shuffle_epi32(srcPix[0], 0x9C); srcPix[1] = _mm_shuffle_epi32(srcPix[1], 0xE1); srcPix[2] = _mm_shufflehi_epi16(srcPix[2], 0xC9); #endif srcPix[0] = _mm_or_si128(srcPix[0], srcPix[1]); srcPix[0] = _mm_or_si128(srcPix[0], srcPix[2]); _mm_store_si128((__m128i *)dst + dstX, srcPix[0]); } else if (ELEMENTSIZE == 4) { srcPix[0] = _mm_and_si128(srcPix[0], _mm_set_epi32(0xFFFFFFFF, 0x00000000, 0x00000000, 0xFFFFFFFF)); srcPix[1] = _mm_and_si128(srcPix[1], _mm_set_epi32(0x00000000, 0xFFFFFFFF, 0x00000000, 0x00000000)); srcPix[2] = _mm_and_si128(srcPix[2], _mm_set_epi32(0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000000)); srcPix[0] = _mm_shuffle_epi32(srcPix[0], 0x9C); srcPix[2] = _mm_shuffle_epi32(srcPix[2], 0x78); srcPix[0] = _mm_or_si128(srcPix[0], srcPix[1]); srcPix[0] = _mm_or_si128(srcPix[0], srcPix[2]); _mm_store_si128((__m128i *)dst + dstX, srcPix[0]); } } } else if (INTEGERSCALEHINT == 4) { __m128i srcPix[4]; for (size_t dstX = 0; dstX < (GPU_FRAMEBUFFER_NATIVE_WIDTH / (sizeof(__m128i) / ELEMENTSIZE)); dstX++) { srcPix[0] = _mm_load_si128((__m128i *)src + (dstX * 4) + 0); srcPix[1] = _mm_load_si128((__m128i *)src + (dstX * 4) + 1); srcPix[2] = _mm_load_si128((__m128i *)src + (dstX * 4) + 2); srcPix[3] = _mm_load_si128((__m128i *)src + (dstX * 4) + 3); if (ELEMENTSIZE == 1) { srcPix[0] = _mm_and_si128(srcPix[0], _mm_set1_epi32(0x000000FF)); srcPix[1] = _mm_and_si128(srcPix[1], _mm_set1_epi32(0x000000FF)); srcPix[2] = _mm_and_si128(srcPix[2], _mm_set1_epi32(0x000000FF)); srcPix[3] = _mm_and_si128(srcPix[3], _mm_set1_epi32(0x000000FF)); srcPix[0] = _mm_packus_epi16(srcPix[0], srcPix[1]); srcPix[1] = _mm_packus_epi16(srcPix[2], srcPix[3]); _mm_store_si128((__m128i *)dst + dstX, _mm_packus_epi16(srcPix[0], srcPix[1])); } else if (ELEMENTSIZE == 2) { srcPix[0] = _mm_and_si128(srcPix[0], _mm_set_epi32(0x00000000, 0x0000FFFF, 0x00000000, 0x0000FFFF)); srcPix[1] = _mm_and_si128(srcPix[1], _mm_set_epi32(0x00000000, 0x0000FFFF, 0x00000000, 0x0000FFFF)); srcPix[2] = _mm_and_si128(srcPix[2], _mm_set_epi32(0x00000000, 0x0000FFFF, 0x00000000, 0x0000FFFF)); srcPix[3] = _mm_and_si128(srcPix[3], _mm_set_epi32(0x00000000, 0x0000FFFF, 0x00000000, 0x0000FFFF)); #if defined(ENABLE_SSE4_1) srcPix[0] = _mm_packus_epi32(srcPix[0], srcPix[1]); srcPix[1] = _mm_packus_epi32(srcPix[2], srcPix[3]); _mm_store_si128((__m128i *)dst + dstX, _mm_packus_epi32(srcPix[0], srcPix[1])); #elif defined(ENABLE_SSSE3) srcPix[0] = _mm_shuffle_epi8(srcPix[0], _mm_set_epi8(15,14,13,12,11,10, 7, 6, 5, 4, 3, 2, 9, 8, 1, 0)); srcPix[1] = _mm_shuffle_epi8(srcPix[1], _mm_set_epi8(13,12,13,12,11,10, 7, 6, 9, 8, 1, 0, 5, 4, 3, 2)); srcPix[2] = _mm_shuffle_epi8(srcPix[2], _mm_set_epi8(13,12,13,12, 9, 8, 1, 0,11,10, 7, 6, 5, 4, 3, 2)); srcPix[3] = _mm_shuffle_epi8(srcPix[3], _mm_set_epi8( 9, 8, 1, 0,15,14,13,12,11,10, 7, 6, 5, 4, 3, 2)); srcPix[0] = _mm_or_si128(srcPix[0], srcPix[1]); srcPix[1] = _mm_or_si128(srcPix[2], srcPix[3]); _mm_store_si128((__m128i *)dst + dstX, _mm_or_si128(srcPix[0], srcPix[1])); #else srcPix[0] = _mm_shuffle_epi32(srcPix[0], 0xD8); srcPix[1] = _mm_shuffle_epi32(srcPix[1], 0xD8); srcPix[2] = _mm_shuffle_epi32(srcPix[2], 0x8D); srcPix[3] = _mm_shuffle_epi32(srcPix[3], 0x8D); srcPix[0] = _mm_or_si128(srcPix[0], srcPix[2]); srcPix[1] = _mm_or_si128(srcPix[1], srcPix[3]); srcPix[0] = _mm_shufflelo_epi16(srcPix[0], 0xD8); srcPix[0] = _mm_shufflehi_epi16(srcPix[0], 0xD8); srcPix[1] = _mm_shufflelo_epi16(srcPix[1], 0x8D); srcPix[1] = _mm_shufflehi_epi16(srcPix[1], 0x8D); srcPix[0] = _mm_or_si128(srcPix[0], srcPix[1]); _mm_store_si128((__m128i *)dst + dstX, srcPix[0]); #endif } else if (ELEMENTSIZE == 4) { srcPix[0] = _mm_and_si128(srcPix[0], _mm_set_epi32(0x00000000, 0x00000000, 0x00000000, 0xFFFFFFFF)); srcPix[1] = _mm_and_si128(srcPix[1], _mm_set_epi32(0x00000000, 0x00000000, 0x00000000, 0xFFFFFFFF)); srcPix[2] = _mm_and_si128(srcPix[2], _mm_set_epi32(0x00000000, 0x00000000, 0x00000000, 0xFFFFFFFF)); srcPix[3] = _mm_and_si128(srcPix[3], _mm_set_epi32(0x00000000, 0x00000000, 0x00000000, 0xFFFFFFFF)); srcPix[0] = _mm_unpacklo_epi32(srcPix[0], srcPix[1]); srcPix[1] = _mm_unpacklo_epi32(srcPix[2], srcPix[3]); #ifdef HOST_64 srcPix[0] = _mm_unpacklo_epi64(srcPix[0], srcPix[1]); #else srcPix[1] = _mm_shuffle_epi32(srcPix[1], 0x4E); srcPix[0] = _mm_or_si128(srcPix[0], srcPix[1]); #endif _mm_store_si128((__m128i *)dst + dstX, srcPix[0]); } } } else if (INTEGERSCALEHINT > 1) { const size_t scale = srcWidth / GPU_FRAMEBUFFER_NATIVE_WIDTH; for (size_t x = 0; x < GPU_FRAMEBUFFER_NATIVE_WIDTH; x++) { if (ELEMENTSIZE == 1) { ((u8 *)dst)[x] = ((u8 *)src)[x * scale]; } else if (ELEMENTSIZE == 2) { ((u16 *)dst)[x] = ((u16 *)src)[x * scale]; } else if (ELEMENTSIZE == 4) { ((u32 *)dst)[x] = ((u32 *)src)[x * scale]; } } } else { for (size_t i = 0; i < GPU_FRAMEBUFFER_NATIVE_WIDTH; i++) { if (ELEMENTSIZE == 1) { ( (u8 *)dst)[i] = ( (u8 *)src)[_gpuDstPitchIndex[i]]; } else if (ELEMENTSIZE == 2) { ((u16 *)dst)[i] = ((u16 *)src)[_gpuDstPitchIndex[i]]; } else if (ELEMENTSIZE == 4) { ((u32 *)dst)[i] = ((u32 *)src)[_gpuDstPitchIndex[i]]; } } } } FORCEINLINE v128u16 ColorOperation_SSE2::blend(const v128u16 &colA, const v128u16 &colB, const v128u16 &blendEVA, const v128u16 &blendEVB) const { v128u16 ra; v128u16 ga; v128u16 ba; v128u16 colorBitMask = _mm_set1_epi16(0x001F); #ifdef ENABLE_SSSE3 ra = _mm_or_si128( _mm_and_si128( colA, colorBitMask), _mm_and_si128(_mm_slli_epi16(colB, 8), _mm_set1_epi16(0x1F00)) ); ga = _mm_or_si128( _mm_and_si128(_mm_srli_epi16(colA, 5), colorBitMask), _mm_and_si128(_mm_slli_epi16(colB, 3), _mm_set1_epi16(0x1F00)) ); ba = _mm_or_si128( _mm_and_si128(_mm_srli_epi16(colA, 10), colorBitMask), _mm_and_si128(_mm_srli_epi16(colB, 2), _mm_set1_epi16(0x1F00)) ); const v128u16 blendAB = _mm_or_si128(blendEVA, _mm_slli_epi16(blendEVB, 8)); ra = _mm_maddubs_epi16(ra, blendAB); ga = _mm_maddubs_epi16(ga, blendAB); ba = _mm_maddubs_epi16(ba, blendAB); #else ra = _mm_and_si128( colA, colorBitMask); ga = _mm_and_si128(_mm_srli_epi16(colA, 5), colorBitMask); ba = _mm_and_si128(_mm_srli_epi16(colA, 10), colorBitMask); v128u16 rb = _mm_and_si128( colB, colorBitMask); v128u16 gb = _mm_and_si128(_mm_srli_epi16(colB, 5), colorBitMask); v128u16 bb = _mm_and_si128(_mm_srli_epi16(colB, 10), colorBitMask); ra = _mm_add_epi16( _mm_mullo_epi16(ra, blendEVA), _mm_mullo_epi16(rb, blendEVB) ); ga = _mm_add_epi16( _mm_mullo_epi16(ga, blendEVA), _mm_mullo_epi16(gb, blendEVB) ); ba = _mm_add_epi16( _mm_mullo_epi16(ba, blendEVA), _mm_mullo_epi16(bb, blendEVB) ); #endif ra = _mm_srli_epi16(ra, 4); ga = _mm_srli_epi16(ga, 4); ba = _mm_srli_epi16(ba, 4); ra = _mm_min_epi16(ra, colorBitMask); ga = _mm_min_epi16(ga, colorBitMask); ba = _mm_min_epi16(ba, colorBitMask); return _mm_or_si128(ra, _mm_or_si128( _mm_slli_epi16(ga, 5), _mm_slli_epi16(ba, 10)) ); } // Note that if USECONSTANTBLENDVALUESHINT is true, then this method will assume that blendEVA contains identical values // for each 16-bit vector element, and also that blendEVB contains identical values for each 16-bit vector element. If // this assumption is broken, then the resulting color will be undefined. template <NDSColorFormat COLORFORMAT, bool USECONSTANTBLENDVALUESHINT> FORCEINLINE v128u32 ColorOperation_SSE2::blend(const v128u32 &colA, const v128u32 &colB, const v128u16 &blendEVA, const v128u16 &blendEVB) const { v128u16 outColorLo; v128u16 outColorHi; v128u32 outColor; #ifdef ENABLE_SSSE3 const v128u16 blendAB = _mm_or_si128(blendEVA, _mm_slli_epi16(blendEVB, 8)); outColorLo = _mm_unpacklo_epi8(colA, colB); outColorHi = _mm_unpackhi_epi8(colA, colB); if (USECONSTANTBLENDVALUESHINT) { outColorLo = _mm_maddubs_epi16(outColorLo, blendAB); outColorHi = _mm_maddubs_epi16(outColorHi, blendAB); } else { const v128u16 blendABLo = _mm_unpacklo_epi16(blendAB, blendAB); const v128u16 blendABHi = _mm_unpackhi_epi16(blendAB, blendAB); outColorLo = _mm_maddubs_epi16(outColorLo, blendABLo); outColorHi = _mm_maddubs_epi16(outColorHi, blendABHi); } #else const v128u16 colALo = _mm_unpacklo_epi8(colA, _mm_setzero_si128()); const v128u16 colAHi = _mm_unpackhi_epi8(colA, _mm_setzero_si128()); const v128u16 colBLo = _mm_unpacklo_epi8(colB, _mm_setzero_si128()); const v128u16 colBHi = _mm_unpackhi_epi8(colB, _mm_setzero_si128()); if (USECONSTANTBLENDVALUESHINT) { outColorLo = _mm_add_epi16( _mm_mullo_epi16(colALo, blendEVA), _mm_mullo_epi16(colBLo, blendEVB) ); outColorHi = _mm_add_epi16( _mm_mullo_epi16(colAHi, blendEVA), _mm_mullo_epi16(colBHi, blendEVB) ); } else { const v128u16 blendALo = _mm_unpacklo_epi16(blendEVA, blendEVA); const v128u16 blendAHi = _mm_unpackhi_epi16(blendEVA, blendEVA); const v128u16 blendBLo = _mm_unpacklo_epi16(blendEVB, blendEVB); const v128u16 blendBHi = _mm_unpackhi_epi16(blendEVB, blendEVB); outColorLo = _mm_add_epi16( _mm_mullo_epi16(colALo, blendALo), _mm_mullo_epi16(colBLo, blendBLo) ); outColorHi = _mm_add_epi16( _mm_mullo_epi16(colAHi, blendAHi), _mm_mullo_epi16(colBHi, blendBHi) ); } #endif outColorLo = _mm_srli_epi16(outColorLo, 4); outColorHi = _mm_srli_epi16(outColorHi, 4); outColor = _mm_packus_epi16(outColorLo, outColorHi); // When the color format is 888, the packuswb instruction will naturally clamp // the color component values to 255. However, when the color format is 666, the // color component values must be clamped to 63. In this case, we must call pminub // to do the clamp. if (COLORFORMAT == NDSColorFormat_BGR666_Rev) { outColor = _mm_min_epu8(outColor, _mm_set1_epi8(63)); } outColor = _mm_and_si128(outColor, _mm_set1_epi32(0x00FFFFFF)); return outColor; } FORCEINLINE v128u16 ColorOperation_SSE2::blend3D(const v128u32 &colA_Lo, const v128u32 &colA_Hi, const v128u16 &colB) const { // If the color format of B is 555, then the colA_Hi parameter is required. // The color format of A is assumed to be RGB666. v128u32 ra_lo = _mm_and_si128( colA_Lo, _mm_set1_epi32(0x000000FF) ); v128u32 ga_lo = _mm_and_si128( _mm_srli_epi32(colA_Lo, 8), _mm_set1_epi32(0x000000FF) ); v128u32 ba_lo = _mm_and_si128( _mm_srli_epi32(colA_Lo, 16), _mm_set1_epi32(0x000000FF) ); v128u32 aa_lo = _mm_srli_epi32(colA_Lo, 24); v128u32 ra_hi = _mm_and_si128( colA_Hi, _mm_set1_epi32(0x000000FF) ); v128u32 ga_hi = _mm_and_si128( _mm_srli_epi32(colA_Hi, 8), _mm_set1_epi32(0x000000FF) ); v128u32 ba_hi = _mm_and_si128( _mm_srli_epi32(colA_Hi, 16), _mm_set1_epi32(0x000000FF) ); v128u32 aa_hi = _mm_srli_epi32(colA_Hi, 24); v128u16 ra = _mm_packs_epi32(ra_lo, ra_hi); v128u16 ga = _mm_packs_epi32(ga_lo, ga_hi); v128u16 ba = _mm_packs_epi32(ba_lo, ba_hi); v128u16 aa = _mm_packs_epi32(aa_lo, aa_hi); #ifdef ENABLE_SSSE3 ra = _mm_or_si128( ra, _mm_and_si128(_mm_slli_epi16(colB, 9), _mm_set1_epi16(0x3E00)) ); ga = _mm_or_si128( ga, _mm_and_si128(_mm_slli_epi16(colB, 4), _mm_set1_epi16(0x3E00)) ); ba = _mm_or_si128( ba, _mm_and_si128(_mm_srli_epi16(colB, 1), _mm_set1_epi16(0x3E00)) ); aa = _mm_adds_epu8(aa, _mm_set1_epi16(1)); aa = _mm_or_si128( aa, _mm_slli_epi16(_mm_subs_epu16(_mm_set1_epi8(32), aa), 8) ); ra = _mm_maddubs_epi16(ra, aa); ga = _mm_maddubs_epi16(ga, aa); ba = _mm_maddubs_epi16(ba, aa); #else aa = _mm_adds_epu16(aa, _mm_set1_epi16(1)); v128u16 rb = _mm_and_si128( _mm_slli_epi16(colB, 1), _mm_set1_epi16(0x003E) ); v128u16 gb = _mm_and_si128( _mm_srli_epi16(colB, 4), _mm_set1_epi16(0x003E) ); v128u16 bb = _mm_and_si128( _mm_srli_epi16(colB, 9), _mm_set1_epi16(0x003E) ); v128u16 ab = _mm_subs_epu16( _mm_set1_epi16(32), aa ); ra = _mm_add_epi16( _mm_mullo_epi16(ra, aa), _mm_mullo_epi16(rb, ab) ); ga = _mm_add_epi16( _mm_mullo_epi16(ga, aa), _mm_mullo_epi16(gb, ab) ); ba = _mm_add_epi16( _mm_mullo_epi16(ba, aa), _mm_mullo_epi16(bb, ab) ); #endif ra = _mm_srli_epi16(ra, 6); ga = _mm_srli_epi16(ga, 6); ba = _mm_srli_epi16(ba, 6); return _mm_or_si128( _mm_or_si128(ra, _mm_slli_epi16(ga, 5)), _mm_slli_epi16(ba, 10) ); } template <NDSColorFormat COLORFORMAT> FORCEINLINE v128u32 ColorOperation_SSE2::blend3D(const v128u32 &colA, const v128u32 &colB) const { // If the color format of B is 666 or 888, then the colA_Hi parameter is ignored. // The color format of A is assumed to match the color format of B. v128u16 rgbALo; v128u16 rgbAHi; #ifdef ENABLE_SSSE3 if (COLORFORMAT == NDSColorFormat_BGR666_Rev) { // Does not work for RGBA8888 color format. The reason is because this // algorithm depends on the pmaddubsw instruction, which multiplies // two unsigned 8-bit integers into an intermediate signed 16-bit // integer. This means that we can overrun the signed 16-bit value // range, which would be limited to [-32767 - 32767]. For example, a // color component of value 255 multiplied by an alpha value of 255 // would equal 65025, which is greater than the upper range of a signed // 16-bit value. rgbALo = _mm_unpacklo_epi8(colA, colB); rgbAHi = _mm_unpackhi_epi8(colA, colB); v128u32 alpha = _mm_and_si128( _mm_srli_epi32(colA, 24), _mm_set1_epi32(0x0000001F) ); alpha = _mm_or_si128( alpha, _mm_or_si128(_mm_slli_epi32(alpha, 8), _mm_slli_epi32(alpha, 16)) ); alpha = _mm_adds_epu8(alpha, _mm_set1_epi8(1)); v128u32 invAlpha = _mm_subs_epu8(_mm_set1_epi8(32), alpha); v128u16 alphaLo = _mm_unpacklo_epi8(alpha, invAlpha); v128u16 alphaHi = _mm_unpackhi_epi8(alpha, invAlpha); rgbALo = _mm_maddubs_epi16(rgbALo, alphaLo); rgbAHi = _mm_maddubs_epi16(rgbAHi, alphaHi); } else #endif { rgbALo = _mm_unpacklo_epi8(colA, _mm_setzero_si128()); rgbAHi = _mm_unpackhi_epi8(colA, _mm_setzero_si128()); v128u16 rgbBLo = _mm_unpacklo_epi8(colB, _mm_setzero_si128()); v128u16 rgbBHi = _mm_unpackhi_epi8(colB, _mm_setzero_si128()); v128u32 alpha = _mm_and_si128( _mm_srli_epi32(colA, 24), _mm_set1_epi32(0x000000FF) ); alpha = _mm_or_si128( alpha, _mm_or_si128(_mm_slli_epi32(alpha, 8), _mm_slli_epi32(alpha, 16)) ); v128u16 alphaLo = _mm_unpacklo_epi8(alpha, _mm_setzero_si128()); v128u16 alphaHi = _mm_unpackhi_epi8(alpha, _mm_setzero_si128()); alphaLo = _mm_add_epi16(alphaLo, _mm_set1_epi16(1)); alphaHi = _mm_add_epi16(alphaHi, _mm_set1_epi16(1)); if (COLORFORMAT == NDSColorFormat_BGR666_Rev) { rgbALo = _mm_add_epi16( _mm_mullo_epi16(rgbALo, alphaLo), _mm_mullo_epi16(rgbBLo, _mm_sub_epi16(_mm_set1_epi16(32), alphaLo)) ); rgbAHi = _mm_add_epi16( _mm_mullo_epi16(rgbAHi, alphaHi), _mm_mullo_epi16(rgbBHi, _mm_sub_epi16(_mm_set1_epi16(32), alphaHi)) ); } else if (COLORFORMAT == NDSColorFormat_BGR888_Rev) { rgbALo = _mm_add_epi16( _mm_mullo_epi16(rgbALo, alphaLo), _mm_mullo_epi16(rgbBLo, _mm_sub_epi16(_mm_set1_epi16(256), alphaLo)) ); rgbAHi = _mm_add_epi16( _mm_mullo_epi16(rgbAHi, alphaHi), _mm_mullo_epi16(rgbBHi, _mm_sub_epi16(_mm_set1_epi16(256), alphaHi)) ); } } if (COLORFORMAT == NDSColorFormat_BGR666_Rev) { rgbALo = _mm_srli_epi16(rgbALo, 5); rgbAHi = _mm_srli_epi16(rgbAHi, 5); } else if (COLORFORMAT == NDSColorFormat_BGR888_Rev) { rgbALo = _mm_srli_epi16(rgbALo, 8); rgbAHi = _mm_srli_epi16(rgbAHi, 8); } return _mm_and_si128( _mm_packus_epi16(rgbALo, rgbAHi), _mm_set1_epi32(0x00FFFFFF) ); } FORCEINLINE v128u16 ColorOperation_SSE2::increase(const v128u16 &col, const v128u16 &blendEVY) const { v128u16 r = _mm_and_si128( col, _mm_set1_epi16(0x001F) ); v128u16 g = _mm_and_si128( _mm_srli_epi16(col, 5), _mm_set1_epi16(0x001F) ); v128u16 b = _mm_and_si128( _mm_srli_epi16(col, 10), _mm_set1_epi16(0x001F) ); r = _mm_add_epi16( r, _mm_srli_epi16(_mm_mullo_epi16(_mm_sub_epi16(_mm_set1_epi16(31), r), blendEVY), 4) ); g = _mm_add_epi16( g, _mm_srli_epi16(_mm_mullo_epi16(_mm_sub_epi16(_mm_set1_epi16(31), g), blendEVY), 4) ); b = _mm_add_epi16( b, _mm_srli_epi16(_mm_mullo_epi16(_mm_sub_epi16(_mm_set1_epi16(31), b), blendEVY), 4) ); return _mm_or_si128(r, _mm_or_si128( _mm_slli_epi16(g, 5), _mm_slli_epi16(b, 10)) ); } template <NDSColorFormat COLORFORMAT> FORCEINLINE v128u32 ColorOperation_SSE2::increase(const v128u32 &col, const v128u16 &blendEVY) const { v128u16 rgbLo = _mm_unpacklo_epi8(col, _mm_setzero_si128()); v128u16 rgbHi = _mm_unpackhi_epi8(col, _mm_setzero_si128()); rgbLo = _mm_add_epi16( rgbLo, _mm_srli_epi16(_mm_mullo_epi16(_mm_sub_epi16(_mm_set1_epi16((COLORFORMAT == NDSColorFormat_BGR666_Rev) ? 63 : 255), rgbLo), blendEVY), 4) ); rgbHi = _mm_add_epi16( rgbHi, _mm_srli_epi16(_mm_mullo_epi16(_mm_sub_epi16(_mm_set1_epi16((COLORFORMAT == NDSColorFormat_BGR666_Rev) ? 63 : 255), rgbHi), blendEVY), 4) ); return _mm_and_si128( _mm_packus_epi16(rgbLo, rgbHi), _mm_set1_epi32(0x00FFFFFF) ); } FORCEINLINE v128u16 ColorOperation_SSE2::decrease(const v128u16 &col, const v128u16 &blendEVY) const { v128u16 r = _mm_and_si128( col, _mm_set1_epi16(0x001F) ); v128u16 g = _mm_and_si128( _mm_srli_epi16(col, 5), _mm_set1_epi16(0x001F) ); v128u16 b = _mm_and_si128( _mm_srli_epi16(col, 10), _mm_set1_epi16(0x001F) ); r = _mm_sub_epi16( r, _mm_srli_epi16(_mm_mullo_epi16(r, blendEVY), 4) ); g = _mm_sub_epi16( g, _mm_srli_epi16(_mm_mullo_epi16(g, blendEVY), 4) ); b = _mm_sub_epi16( b, _mm_srli_epi16(_mm_mullo_epi16(b, blendEVY), 4) ); return _mm_or_si128(r, _mm_or_si128( _mm_slli_epi16(g, 5), _mm_slli_epi16(b, 10)) ); } template <NDSColorFormat COLORFORMAT> FORCEINLINE v128u32 ColorOperation_SSE2::decrease(const v128u32 &col, const v128u16 &blendEVY) const { v128u16 rgbLo = _mm_unpacklo_epi8(col, _mm_setzero_si128()); v128u16 rgbHi = _mm_unpackhi_epi8(col, _mm_setzero_si128()); rgbLo = _mm_sub_epi16( rgbLo, _mm_srli_epi16(_mm_mullo_epi16(rgbLo, blendEVY), 4) ); rgbHi = _mm_sub_epi16( rgbHi, _mm_srli_epi16(_mm_mullo_epi16(rgbHi, blendEVY), 4) ); return _mm_and_si128( _mm_packus_epi16(rgbLo, rgbHi), _mm_set1_epi32(0x00FFFFFF) ); } template <NDSColorFormat OUTPUTFORMAT, bool ISDEBUGRENDER> FORCEINLINE void PixelOperation_SSE2::_copy16(GPUEngineCompositorInfo &compInfo, const v128u8 &srcLayerID, const v128u16 &src1, const v128u16 &src0) const { if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 alphaBits = _mm_set1_epi16(0x8000); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_or_si128(src0, alphaBits) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_or_si128(src1, alphaBits) ); } else { v128u32 src32[4]; if (OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) { ColorspaceConvert555xTo6665Opaque_SSE2<false>(src0, src32[0], src32[1]); ColorspaceConvert555xTo6665Opaque_SSE2<false>(src1, src32[2], src32[3]); } else { ColorspaceConvert555xTo8888Opaque_SSE2<false>(src0, src32[0], src32[1]); ColorspaceConvert555xTo8888Opaque_SSE2<false>(src1, src32[2], src32[3]); } _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, src32[0] ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, src32[1] ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, src32[2] ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, src32[3] ); } if (!ISDEBUGRENDER) { _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, srcLayerID ); } } template <NDSColorFormat OUTPUTFORMAT, bool ISDEBUGRENDER> FORCEINLINE void PixelOperation_SSE2::_copy32(GPUEngineCompositorInfo &compInfo, const v128u8 &srcLayerID, const v128u32 &src3, const v128u32 &src2, const v128u32 &src1, const v128u32 &src0) const { if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 src16[2] = { ColorspaceConvert6665To5551_SSE2<false>(src0, src1), ColorspaceConvert6665To5551_SSE2<false>(src2, src3) //_mm_set1_epi16(0x801F), //_mm_set1_epi16(0x801F) }; const v128u16 alphaBits = _mm_set1_epi16(0x8000); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_or_si128(src16[0], alphaBits) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_or_si128(src16[1], alphaBits) ); } else { const v128u32 alphaBits = _mm_set1_epi32((OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? 0x1F000000 : 0xFF000000); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, _mm_or_si128(src0, alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, _mm_or_si128(src1, alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, _mm_or_si128(src2, alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, _mm_or_si128(src3, alphaBits) ); } if (!ISDEBUGRENDER) { _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, srcLayerID ); } } template <NDSColorFormat OUTPUTFORMAT, bool ISDEBUGRENDER> FORCEINLINE void PixelOperation_SSE2::_copyMask16(GPUEngineCompositorInfo &compInfo, const v128u8 &passMask8, const v128u8 &srcLayerID, const v128u16 &src1, const v128u16 &src0) const { const v128u16 passMask16[2] = { _mm_unpacklo_epi8(passMask8, passMask8), _mm_unpackhi_epi8(passMask8, passMask8) }; if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 dst16[2] = { _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 0), _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 1) }; const v128u16 alphaBits = _mm_set1_epi16(0x8000); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_blendv_epi8(dst16[0], _mm_or_si128(src0, alphaBits), passMask16[0]) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_blendv_epi8(dst16[1], _mm_or_si128(src1, alphaBits), passMask16[1]) ); } else { v128u32 src32[4]; if (OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) { ColorspaceConvert555xTo6665Opaque_SSE2<false>(src0, src32[0], src32[1]); ColorspaceConvert555xTo6665Opaque_SSE2<false>(src1, src32[2], src32[3]); } else { ColorspaceConvert555xTo8888Opaque_SSE2<false>(src0, src32[0], src32[1]); ColorspaceConvert555xTo8888Opaque_SSE2<false>(src1, src32[2], src32[3]); } const v128u32 dst32[4] = { _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 0), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 1), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 2), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 3), }; const v128u32 passMask32[4] = { _mm_unpacklo_epi16(passMask16[0], passMask16[0]), _mm_unpackhi_epi16(passMask16[0], passMask16[0]), _mm_unpacklo_epi16(passMask16[1], passMask16[1]), _mm_unpackhi_epi16(passMask16[1], passMask16[1]) }; _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, _mm_blendv_epi8(dst32[0], src32[0], passMask32[0]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, _mm_blendv_epi8(dst32[1], src32[1], passMask32[1]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, _mm_blendv_epi8(dst32[2], src32[2], passMask32[2]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, _mm_blendv_epi8(dst32[3], src32[3], passMask32[3]) ); } if (!ISDEBUGRENDER) { const v128u8 dstLayerID = _mm_load_si128((v128u8 *)compInfo.target.lineLayerID); _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, _mm_blendv_epi8(dstLayerID, srcLayerID, passMask8) ); } } template <NDSColorFormat OUTPUTFORMAT, bool ISDEBUGRENDER> FORCEINLINE void PixelOperation_SSE2::_copyMask32(GPUEngineCompositorInfo &compInfo, const v128u8 &passMask8, const v128u8 &srcLayerID, const v128u32 &src3, const v128u32 &src2, const v128u32 &src1, const v128u32 &src0) const { const v128u16 passMask16[2] = { _mm_unpacklo_epi8(passMask8, passMask8), _mm_unpackhi_epi8(passMask8, passMask8) }; if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 src16[2] = { ColorspaceConvert6665To5551_SSE2<false>(src0, src1), ColorspaceConvert6665To5551_SSE2<false>(src2, src3) }; const v128u16 dst16[2] = { _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 0), _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 1) }; const v128u16 alphaBits = _mm_set1_epi16(0x8000); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_blendv_epi8(dst16[0], _mm_or_si128(src16[0], alphaBits), passMask16[0]) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_blendv_epi8(dst16[1], _mm_or_si128(src16[1], alphaBits), passMask16[1]) ); } else { const v128u32 passMask32[4] = { _mm_unpacklo_epi16(passMask16[0], passMask16[0]), _mm_unpackhi_epi16(passMask16[0], passMask16[0]), _mm_unpacklo_epi16(passMask16[1], passMask16[1]), _mm_unpackhi_epi16(passMask16[1], passMask16[1]) }; const v128u32 dst[4] = { _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 0), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 1), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 2), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 3), }; const v128u32 alphaBits = _mm_set1_epi32((OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? 0x1F000000 : 0xFF000000); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, _mm_blendv_epi8(dst[0], _mm_or_si128(src0, alphaBits), passMask32[0]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, _mm_blendv_epi8(dst[1], _mm_or_si128(src1, alphaBits), passMask32[1]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, _mm_blendv_epi8(dst[2], _mm_or_si128(src2, alphaBits), passMask32[2]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, _mm_blendv_epi8(dst[3], _mm_or_si128(src3, alphaBits), passMask32[3]) ); } if (!ISDEBUGRENDER) { const v128u8 dstLayerID = _mm_load_si128((v128u8 *)compInfo.target.lineLayerID); _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, _mm_blendv_epi8(dstLayerID, srcLayerID, passMask8) ); } } template <NDSColorFormat OUTPUTFORMAT> FORCEINLINE void PixelOperation_SSE2::_brightnessUp16(GPUEngineCompositorInfo &compInfo, const v128u16 &evy16, const v128u8 &srcLayerID, const v128u16 &src1, const v128u16 &src0) const { if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 alphaBits = _mm_set1_epi16(0x8000); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_or_si128(colorop_vec.increase(src0, evy16), alphaBits) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_or_si128(colorop_vec.increase(src1, evy16), alphaBits) ); } else { v128u32 dst[4]; if (OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) { ColorspaceConvert555xTo666x_SSE2<false>(src0, dst[0], dst[1]); ColorspaceConvert555xTo666x_SSE2<false>(src1, dst[2], dst[3]); } else { ColorspaceConvert555xTo888x_SSE2<false>(src0, dst[0], dst[1]); ColorspaceConvert555xTo888x_SSE2<false>(src1, dst[2], dst[3]); } const v128u32 alphaBits = (OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? _mm_set1_epi32(0x1F000000) : _mm_set1_epi32(0xFF000000); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(dst[0], evy16), alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(dst[1], evy16), alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(dst[2], evy16), alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(dst[3], evy16), alphaBits) ); } _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, srcLayerID ); } template <NDSColorFormat OUTPUTFORMAT> FORCEINLINE void PixelOperation_SSE2::_brightnessUp32(GPUEngineCompositorInfo &compInfo, const v128u16 &evy16, const v128u8 &srcLayerID, const v128u32 &src3, const v128u32 &src2, const v128u32 &src1, const v128u32 &src0) const { if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 alphaBits = _mm_set1_epi16(0x8000); const v128u16 src16[2] = { ColorspaceConvert6665To5551_SSE2<false>(src0, src1), ColorspaceConvert6665To5551_SSE2<false>(src2, src3) }; _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_or_si128(colorop_vec.increase(src16[0], evy16), alphaBits) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_or_si128(colorop_vec.increase(src16[1], evy16), alphaBits) ); } else { const v128u32 alphaBits = _mm_set1_epi32((OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? 0x1F000000 : 0xFF000000); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(src0, evy16), alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(src1, evy16), alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(src2, evy16), alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(src3, evy16), alphaBits) ); } _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, srcLayerID ); } template <NDSColorFormat OUTPUTFORMAT> FORCEINLINE void PixelOperation_SSE2::_brightnessUpMask16(GPUEngineCompositorInfo &compInfo, const v128u8 &passMask8, const v128u16 &evy16, const v128u8 &srcLayerID, const v128u16 &src1, const v128u16 &src0) const { const v128u16 passMask16[2] = { _mm_unpacklo_epi8(passMask8, passMask8), _mm_unpackhi_epi8(passMask8, passMask8) }; if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 dst16[2] = { _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 0), _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 1) }; const v128u16 alphaBits = _mm_set1_epi16(0x8000); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_blendv_epi8(dst16[0], _mm_or_si128(colorop_vec.increase(src0, evy16), alphaBits), passMask16[0]) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_blendv_epi8(dst16[1], _mm_or_si128(colorop_vec.increase(src1, evy16), alphaBits), passMask16[1]) ); } else { const v128u32 passMask32[4] = { _mm_unpacklo_epi16(passMask16[0], passMask16[0]), _mm_unpackhi_epi16(passMask16[0], passMask16[0]), _mm_unpacklo_epi16(passMask16[1], passMask16[1]), _mm_unpackhi_epi16(passMask16[1], passMask16[1]) }; v128u32 src32[4]; if (OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) { ColorspaceConvert555xTo666x_SSE2<false>(src0, src32[0], src32[1]); ColorspaceConvert555xTo666x_SSE2<false>(src1, src32[2], src32[3]); } else { ColorspaceConvert555xTo888x_SSE2<false>(src0, src32[0], src32[1]); ColorspaceConvert555xTo888x_SSE2<false>(src1, src32[2], src32[3]); } const v128u32 dst32[4] = { _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 0), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 1), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 2), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 3), }; const v128u32 alphaBits = _mm_set1_epi32((OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? 0x1F000000 : 0xFF000000); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, _mm_blendv_epi8(dst32[0], _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(src32[0], evy16), alphaBits), passMask32[0]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, _mm_blendv_epi8(dst32[1], _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(src32[1], evy16), alphaBits), passMask32[1]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, _mm_blendv_epi8(dst32[2], _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(src32[2], evy16), alphaBits), passMask32[2]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, _mm_blendv_epi8(dst32[3], _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(src32[3], evy16), alphaBits), passMask32[3]) ); } const v128u8 dstLayerID = _mm_load_si128((v128u8 *)compInfo.target.lineLayerID); _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, _mm_blendv_epi8(dstLayerID, srcLayerID, passMask8) ); } template <NDSColorFormat OUTPUTFORMAT> FORCEINLINE void PixelOperation_SSE2::_brightnessUpMask32(GPUEngineCompositorInfo &compInfo, const v128u8 &passMask8, const v128u16 &evy16, const v128u8 &srcLayerID, const v128u32 &src3, const v128u32 &src2, const v128u32 &src1, const v128u32 &src0) const { const v128u16 passMask16[2] = { _mm_unpacklo_epi8(passMask8, passMask8), _mm_unpackhi_epi8(passMask8, passMask8) }; if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 src16[2] = { ColorspaceConvert6665To5551_SSE2<false>(src0, src1), ColorspaceConvert6665To5551_SSE2<false>(src2, src3) }; const v128u16 dst16[2] = { _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 0), _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 1) }; const v128u16 alphaBits = _mm_set1_epi16(0x8000); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_blendv_epi8(dst16[0], _mm_or_si128(colorop_vec.increase(src16[0], evy16), alphaBits), passMask16[0]) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_blendv_epi8(dst16[1], _mm_or_si128(colorop_vec.increase(src16[1], evy16), alphaBits), passMask16[1]) ); } else { const v128u32 passMask32[4] = { _mm_unpacklo_epi16(passMask16[0], passMask16[0]), _mm_unpackhi_epi16(passMask16[0], passMask16[0]), _mm_unpacklo_epi16(passMask16[1], passMask16[1]), _mm_unpackhi_epi16(passMask16[1], passMask16[1]) }; const v128u32 dst32[4] = { _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 0), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 1), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 2), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 3), }; const v128u32 alphaBits = _mm_set1_epi32((OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? 0x1F000000 : 0xFF000000); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, _mm_blendv_epi8(dst32[0], _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(src0, evy16), alphaBits), passMask32[0]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, _mm_blendv_epi8(dst32[1], _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(src1, evy16), alphaBits), passMask32[1]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, _mm_blendv_epi8(dst32[2], _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(src2, evy16), alphaBits), passMask32[2]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, _mm_blendv_epi8(dst32[3], _mm_or_si128(colorop_vec.increase<OUTPUTFORMAT>(src3, evy16), alphaBits), passMask32[3]) ); } const v128u8 dstLayerID = _mm_load_si128((v128u8 *)compInfo.target.lineLayerID); _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, _mm_blendv_epi8(dstLayerID, srcLayerID, passMask8) ); } template <NDSColorFormat OUTPUTFORMAT> FORCEINLINE void PixelOperation_SSE2::_brightnessDown16(GPUEngineCompositorInfo &compInfo, const v128u16 &evy16, const v128u8 &srcLayerID, const v128u16 &src1, const v128u16 &src0) const { if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 alphaBits = _mm_set1_epi16(0x8000); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_or_si128(colorop_vec.decrease(src0, evy16), alphaBits) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_or_si128(colorop_vec.decrease(src1, evy16), alphaBits) ); } else { v128u32 dst[4]; if (OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) { ColorspaceConvert555xTo666x_SSE2<false>(src0, dst[0], dst[1]); ColorspaceConvert555xTo666x_SSE2<false>(src1, dst[2], dst[3]); } else { ColorspaceConvert555xTo888x_SSE2<false>(src0, dst[0], dst[1]); ColorspaceConvert555xTo888x_SSE2<false>(src1, dst[2], dst[3]); } const v128u32 alphaBits = (OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? _mm_set1_epi32(0x1F000000) : _mm_set1_epi32(0xFF000000); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(dst[0], evy16), alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(dst[1], evy16), alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(dst[2], evy16), alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(dst[3], evy16), alphaBits) ); } _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, srcLayerID ); } template <NDSColorFormat OUTPUTFORMAT> FORCEINLINE void PixelOperation_SSE2::_brightnessDown32(GPUEngineCompositorInfo &compInfo, const v128u16 &evy16, const v128u8 &srcLayerID, const v128u32 &src3, const v128u32 &src2, const v128u32 &src1, const v128u32 &src0) const { if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 alphaBits = _mm_set1_epi16(0x8000); const v128u16 src16[2] = { ColorspaceConvert6665To5551_SSE2<false>(src0, src1), ColorspaceConvert6665To5551_SSE2<false>(src2, src3) }; _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_or_si128(colorop_vec.decrease(src16[0], evy16), alphaBits) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_or_si128(colorop_vec.decrease(src16[1], evy16), alphaBits) ); } else { const v128u32 alphaBits = _mm_set1_epi32((OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? 0x1F000000 : 0xFF000000); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(src0, evy16), alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(src1, evy16), alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(src2, evy16), alphaBits) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(src3, evy16), alphaBits) ); } _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, srcLayerID ); } template <NDSColorFormat OUTPUTFORMAT> FORCEINLINE void PixelOperation_SSE2::_brightnessDownMask16(GPUEngineCompositorInfo &compInfo, const v128u8 &passMask8, const v128u16 &evy16, const v128u8 &srcLayerID, const v128u16 &src1, const v128u16 &src0) const { const v128u16 passMask16[2] = { _mm_unpacklo_epi8(passMask8, passMask8), _mm_unpackhi_epi8(passMask8, passMask8) }; if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 dst16[2] = { _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 0), _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 1) }; const v128u16 alphaBits = _mm_set1_epi16(0x8000); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_blendv_epi8(dst16[0], _mm_or_si128(colorop_vec.decrease(src0, evy16), alphaBits), passMask16[0]) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_blendv_epi8(dst16[1], _mm_or_si128(colorop_vec.decrease(src1, evy16), alphaBits), passMask16[1]) ); } else { const v128u32 passMask32[4] = { _mm_unpacklo_epi16(passMask16[0], passMask16[0]), _mm_unpackhi_epi16(passMask16[0], passMask16[0]), _mm_unpacklo_epi16(passMask16[1], passMask16[1]), _mm_unpackhi_epi16(passMask16[1], passMask16[1]) }; v128u32 src32[4]; if (OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) { ColorspaceConvert555xTo666x_SSE2<false>(src0, src32[0], src32[1]); ColorspaceConvert555xTo666x_SSE2<false>(src1, src32[2], src32[3]); } else { ColorspaceConvert555xTo888x_SSE2<false>(src0, src32[0], src32[1]); ColorspaceConvert555xTo888x_SSE2<false>(src1, src32[2], src32[3]); } const v128u32 dst32[4] = { _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 0), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 1), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 2), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 3), }; const v128u32 alphaBits = _mm_set1_epi32((OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? 0x1F000000 : 0xFF000000); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, _mm_blendv_epi8(dst32[0], _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(src32[0], evy16), alphaBits), passMask32[0]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, _mm_blendv_epi8(dst32[1], _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(src32[1], evy16), alphaBits), passMask32[1]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, _mm_blendv_epi8(dst32[2], _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(src32[2], evy16), alphaBits), passMask32[2]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, _mm_blendv_epi8(dst32[3], _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(src32[3], evy16), alphaBits), passMask32[3]) ); } const v128u8 dstLayerID = _mm_load_si128((v128u8 *)compInfo.target.lineLayerID); _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, _mm_blendv_epi8(dstLayerID, srcLayerID, passMask8) ); } template <NDSColorFormat OUTPUTFORMAT> FORCEINLINE void PixelOperation_SSE2::_brightnessDownMask32(GPUEngineCompositorInfo &compInfo, const v128u8 &passMask8, const v128u16 &evy16, const v128u8 &srcLayerID, const v128u32 &src3, const v128u32 &src2, const v128u32 &src1, const v128u32 &src0) const { const v128u16 passMask16[2] = { _mm_unpacklo_epi8(passMask8, passMask8), _mm_unpackhi_epi8(passMask8, passMask8) }; if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 src16[2] = { ColorspaceConvert6665To5551_SSE2<false>(src0, src1), ColorspaceConvert6665To5551_SSE2<false>(src2, src3) }; const v128u16 dst16[2] = { _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 0), _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 1) }; const v128u16 alphaBits = _mm_set1_epi16(0x8000); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_blendv_epi8(dst16[0], _mm_or_si128(colorop_vec.decrease(src16[0], evy16), alphaBits), passMask16[0]) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_blendv_epi8(dst16[1], _mm_or_si128(colorop_vec.decrease(src16[1], evy16), alphaBits), passMask16[1]) ); } else { const v128u32 passMask32[4] = { _mm_unpacklo_epi16(passMask16[0], passMask16[0]), _mm_unpackhi_epi16(passMask16[0], passMask16[0]), _mm_unpacklo_epi16(passMask16[1], passMask16[1]), _mm_unpackhi_epi16(passMask16[1], passMask16[1]) }; const v128u32 dst32[4] = { _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 0), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 1), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 2), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 3), }; const v128u32 alphaBits = _mm_set1_epi32((OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? 0x1F000000 : 0xFF000000); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, _mm_blendv_epi8(dst32[0], _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(src0, evy16), alphaBits), passMask32[0]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, _mm_blendv_epi8(dst32[1], _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(src1, evy16), alphaBits), passMask32[1]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, _mm_blendv_epi8(dst32[2], _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(src2, evy16), alphaBits), passMask32[2]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, _mm_blendv_epi8(dst32[3], _mm_or_si128(colorop_vec.decrease<OUTPUTFORMAT>(src3, evy16), alphaBits), passMask32[3]) ); } const v128u8 dstLayerID = _mm_load_si128((v128u8 *)compInfo.target.lineLayerID); _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, _mm_blendv_epi8(dstLayerID, srcLayerID, passMask8) ); } template <NDSColorFormat OUTPUTFORMAT, GPULayerType LAYERTYPE> FORCEINLINE void PixelOperation_SSE2::_unknownEffectMask16(GPUEngineCompositorInfo &compInfo, const v128u8 &passMask8, const v128u16 &evy16, const v128u8 &srcLayerID, const v128u16 &src1, const v128u16 &src0, const v128u8 &srcEffectEnableMask, const v128u8 &dstBlendEnableMaskLUT, const v128u8 &enableColorEffectMask, const v128u8 &spriteAlpha, const v128u8 &spriteMode) const { const v128u8 dstLayerID = _mm_load_si128((v128u8 *)compInfo.target.lineLayerID); _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, _mm_blendv_epi8(dstLayerID, srcLayerID, passMask8) ); v128u8 dstTargetBlendEnableMask; #ifdef ENABLE_SSSE3 dstTargetBlendEnableMask = _mm_shuffle_epi8(dstBlendEnableMaskLUT, dstLayerID); #else dstTargetBlendEnableMask = _mm_and_si128(_mm_cmpeq_epi8(dstLayerID, _mm_set1_epi8(GPULayerID_BG0)), _mm_set1_epi8(compInfo.renderState.dstBlendEnable[GPULayerID_BG0])); dstTargetBlendEnableMask = _mm_or_si128( dstTargetBlendEnableMask, _mm_and_si128(_mm_cmpeq_epi8(dstLayerID, _mm_set1_epi8(GPULayerID_BG1)), _mm_set1_epi8(compInfo.renderState.dstBlendEnable[GPULayerID_BG1])) ); dstTargetBlendEnableMask = _mm_or_si128( dstTargetBlendEnableMask, _mm_and_si128(_mm_cmpeq_epi8(dstLayerID, _mm_set1_epi8(GPULayerID_BG2)), _mm_set1_epi8(compInfo.renderState.dstBlendEnable[GPULayerID_BG2])) ); dstTargetBlendEnableMask = _mm_or_si128( dstTargetBlendEnableMask, _mm_and_si128(_mm_cmpeq_epi8(dstLayerID, _mm_set1_epi8(GPULayerID_BG3)), _mm_set1_epi8(compInfo.renderState.dstBlendEnable[GPULayerID_BG3])) ); dstTargetBlendEnableMask = _mm_or_si128( dstTargetBlendEnableMask, _mm_and_si128(_mm_cmpeq_epi8(dstLayerID, _mm_set1_epi8(GPULayerID_OBJ)), _mm_set1_epi8(compInfo.renderState.dstBlendEnable[GPULayerID_OBJ])) ); dstTargetBlendEnableMask = _mm_or_si128( dstTargetBlendEnableMask, _mm_and_si128(_mm_cmpeq_epi8(dstLayerID, _mm_set1_epi8(GPULayerID_Backdrop)), _mm_set1_epi8(compInfo.renderState.dstBlendEnable[GPULayerID_Backdrop])) ); #endif dstTargetBlendEnableMask = _mm_andnot_si128( _mm_cmpeq_epi8(dstLayerID, srcLayerID), dstTargetBlendEnableMask ); v128u8 forceDstTargetBlendMask = (LAYERTYPE == GPULayerType_3D) ? dstTargetBlendEnableMask : _mm_setzero_si128(); // Do note that OBJ layers can modify EVA or EVB, meaning that these blend values may not be constant for OBJ layers. // Therefore, we're going to treat EVA and EVB as vectors of uint8 so that the OBJ layer can modify them, and then // convert EVA and EVB into vectors of uint16 right before we use them. __m128i eva_vec128 = (LAYERTYPE == GPULayerType_OBJ) ? _mm_set1_epi8(compInfo.renderState.blendEVA) : _mm_set1_epi16(compInfo.renderState.blendEVA); __m128i evb_vec128 = (LAYERTYPE == GPULayerType_OBJ) ? _mm_set1_epi8(compInfo.renderState.blendEVB) : _mm_set1_epi16(compInfo.renderState.blendEVB); if (LAYERTYPE == GPULayerType_OBJ) { const v128u8 isObjTranslucentMask = _mm_and_si128( dstTargetBlendEnableMask, _mm_or_si128(_mm_cmpeq_epi8(spriteMode, _mm_set1_epi8(OBJMode_Transparent)), _mm_cmpeq_epi8(spriteMode, _mm_set1_epi8(OBJMode_Bitmap))) ); forceDstTargetBlendMask = isObjTranslucentMask; const v128u8 spriteAlphaMask = _mm_andnot_si128(_mm_cmpeq_epi8(spriteAlpha, _mm_set1_epi8(0xFF)), isObjTranslucentMask); eva_vec128 = _mm_blendv_epi8(eva_vec128, spriteAlpha, spriteAlphaMask); evb_vec128 = _mm_blendv_epi8(evb_vec128, _mm_sub_epi8(_mm_set1_epi8(16), spriteAlpha), spriteAlphaMask); } // Select the color effect based on the BLDCNT target flags. const v128u8 colorEffect_vec128 = _mm_blendv_epi8(_mm_set1_epi8(ColorEffect_Disable), _mm_set1_epi8(compInfo.renderState.colorEffect), enableColorEffectMask); // ---------- __m128i tmpSrc[4]; if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { tmpSrc[0] = src0; tmpSrc[1] = src1; tmpSrc[2] = _mm_setzero_si128(); tmpSrc[3] = _mm_setzero_si128(); } else if (OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) { ColorspaceConvert555xTo666x_SSE2<false>(src0, tmpSrc[0], tmpSrc[1]); ColorspaceConvert555xTo666x_SSE2<false>(src1, tmpSrc[2], tmpSrc[3]); } else { ColorspaceConvert555xTo888x_SSE2<false>(src0, tmpSrc[0], tmpSrc[1]); ColorspaceConvert555xTo888x_SSE2<false>(src1, tmpSrc[2], tmpSrc[3]); } switch (compInfo.renderState.colorEffect) { case ColorEffect_IncreaseBrightness: { const v128u8 brightnessMask8 = _mm_andnot_si128( forceDstTargetBlendMask, _mm_and_si128(srcEffectEnableMask, _mm_cmpeq_epi8(colorEffect_vec128, _mm_set1_epi8(ColorEffect_IncreaseBrightness))) ); const int brightnessUpMaskValue = _mm_movemask_epi8(brightnessMask8); if (brightnessUpMaskValue != 0x00000000) { const v128u16 brightnessMask16[2] = { _mm_unpacklo_epi8(brightnessMask8, brightnessMask8), _mm_unpackhi_epi8(brightnessMask8, brightnessMask8) }; if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { tmpSrc[0] = _mm_blendv_epi8( tmpSrc[0], colorop_vec.increase(tmpSrc[0], evy16), brightnessMask16[0] ); tmpSrc[1] = _mm_blendv_epi8( tmpSrc[1], colorop_vec.increase(tmpSrc[1], evy16), brightnessMask16[1] ); } else { const v128u32 brightnessMask32[4] = { _mm_unpacklo_epi16(brightnessMask16[0], brightnessMask16[0]), _mm_unpackhi_epi16(brightnessMask16[0], brightnessMask16[0]), _mm_unpacklo_epi16(brightnessMask16[1], brightnessMask16[1]), _mm_unpackhi_epi16(brightnessMask16[1], brightnessMask16[1]) }; tmpSrc[0] = _mm_blendv_epi8( tmpSrc[0], colorop_vec.increase<OUTPUTFORMAT>(tmpSrc[0], evy16), brightnessMask32[0] ); tmpSrc[1] = _mm_blendv_epi8( tmpSrc[1], colorop_vec.increase<OUTPUTFORMAT>(tmpSrc[1], evy16), brightnessMask32[1] ); tmpSrc[2] = _mm_blendv_epi8( tmpSrc[2], colorop_vec.increase<OUTPUTFORMAT>(tmpSrc[2], evy16), brightnessMask32[2] ); tmpSrc[3] = _mm_blendv_epi8( tmpSrc[3], colorop_vec.increase<OUTPUTFORMAT>(tmpSrc[3], evy16), brightnessMask32[3] ); } } break; } case ColorEffect_DecreaseBrightness: { const v128u8 brightnessMask8 = _mm_andnot_si128( forceDstTargetBlendMask, _mm_and_si128(srcEffectEnableMask, _mm_cmpeq_epi8(colorEffect_vec128, _mm_set1_epi8(ColorEffect_DecreaseBrightness))) ); const int brightnessDownMaskValue = _mm_movemask_epi8(brightnessMask8); if (brightnessDownMaskValue != 0x00000000) { const v128u16 brightnessMask16[2] = { _mm_unpacklo_epi8(brightnessMask8, brightnessMask8), _mm_unpackhi_epi8(brightnessMask8, brightnessMask8) }; if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { tmpSrc[0] = _mm_blendv_epi8( tmpSrc[0], colorop_vec.decrease(tmpSrc[0], evy16), brightnessMask16[0] ); tmpSrc[1] = _mm_blendv_epi8( tmpSrc[1], colorop_vec.decrease(tmpSrc[1], evy16), brightnessMask16[1] ); } else { const v128u32 brightnessMask32[4] = { _mm_unpacklo_epi16(brightnessMask16[0], brightnessMask16[0]), _mm_unpackhi_epi16(brightnessMask16[0], brightnessMask16[0]), _mm_unpacklo_epi16(brightnessMask16[1], brightnessMask16[1]), _mm_unpackhi_epi16(brightnessMask16[1], brightnessMask16[1]) }; tmpSrc[0] = _mm_blendv_epi8( tmpSrc[0], colorop_vec.decrease<OUTPUTFORMAT>(tmpSrc[0], evy16), brightnessMask32[0] ); tmpSrc[1] = _mm_blendv_epi8( tmpSrc[1], colorop_vec.decrease<OUTPUTFORMAT>(tmpSrc[1], evy16), brightnessMask32[1] ); tmpSrc[2] = _mm_blendv_epi8( tmpSrc[2], colorop_vec.decrease<OUTPUTFORMAT>(tmpSrc[2], evy16), brightnessMask32[2] ); tmpSrc[3] = _mm_blendv_epi8( tmpSrc[3], colorop_vec.decrease<OUTPUTFORMAT>(tmpSrc[3], evy16), brightnessMask32[3] ); } } break; } default: break; } // Render the pixel using the selected color effect. const v128u8 blendMask8 = _mm_or_si128( forceDstTargetBlendMask, _mm_and_si128(_mm_and_si128(srcEffectEnableMask, dstTargetBlendEnableMask), _mm_cmpeq_epi8(colorEffect_vec128, _mm_set1_epi8(ColorEffect_Blend))) ); const int blendMaskValue = _mm_movemask_epi8(blendMask8); if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 dst16[2] = { _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 0), _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 1) }; if (blendMaskValue != 0x00000000) { const v128u16 blendMask16[2] = { _mm_unpacklo_epi8(blendMask8, blendMask8), _mm_unpackhi_epi8(blendMask8, blendMask8) }; v128u16 blendSrc16[2]; switch (LAYERTYPE) { case GPULayerType_3D: //blendSrc16[0] = colorop_vec.blend3D(src0, src1, dst16[0]); //blendSrc16[1] = colorop_vec.blend3D(src2, src3, dst16[1]); printf("GPU: 3D layers cannot be in RGBA5551 format. To composite a 3D layer, use the _unknownEffectMask32() method instead.\n"); assert(false); break; case GPULayerType_BG: blendSrc16[0] = colorop_vec.blend(tmpSrc[0], dst16[0], eva_vec128, evb_vec128); blendSrc16[1] = colorop_vec.blend(tmpSrc[1], dst16[1], eva_vec128, evb_vec128); break; case GPULayerType_OBJ: { // For OBJ layers, we need to convert EVA and EVB from vectors of uint8 into vectors of uint16. const v128u16 tempEVA[2] = { _mm_unpacklo_epi8(eva_vec128, _mm_setzero_si128()), _mm_unpackhi_epi8(eva_vec128, _mm_setzero_si128()) }; const v128u16 tempEVB[2] = { _mm_unpacklo_epi8(evb_vec128, _mm_setzero_si128()), _mm_unpackhi_epi8(evb_vec128, _mm_setzero_si128()) }; blendSrc16[0] = colorop_vec.blend(tmpSrc[0], dst16[0], tempEVA[0], tempEVB[0]); blendSrc16[1] = colorop_vec.blend(tmpSrc[1], dst16[1], tempEVA[1], tempEVB[1]); break; } } tmpSrc[0] = _mm_blendv_epi8(tmpSrc[0], blendSrc16[0], blendMask16[0]); tmpSrc[1] = _mm_blendv_epi8(tmpSrc[1], blendSrc16[1], blendMask16[1]); } // Store the final colors. const v128u16 passMask16[2] = { _mm_unpacklo_epi8(passMask8, passMask8), _mm_unpackhi_epi8(passMask8, passMask8) }; const v128u16 alphaBits = _mm_set1_epi16(0x8000); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_blendv_epi8(dst16[0], _mm_or_si128(tmpSrc[0], alphaBits), passMask16[0]) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_blendv_epi8(dst16[1], _mm_or_si128(tmpSrc[1], alphaBits), passMask16[1]) ); } else { const v128u16 blendMask16[2] = { _mm_unpacklo_epi8(blendMask8, blendMask8), _mm_unpackhi_epi8(blendMask8, blendMask8) }; const v128u32 dst32[4] = { _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 0), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 1), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 2), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 3), }; if (blendMaskValue != 0x00000000) { v128u32 blendSrc32[4]; switch (LAYERTYPE) { case GPULayerType_3D: //blendSrc32[0] = colorop_vec.blend3D<OUTPUTFORMAT>(src0, dst32[0]); //blendSrc32[1] = colorop_vec.blend3D<OUTPUTFORMAT>(src1, dst32[1]); //blendSrc32[2] = colorop_vec.blend3D<OUTPUTFORMAT>(src2, dst32[2]); //blendSrc32[3] = colorop_vec.blend3D<OUTPUTFORMAT>(src3, dst32[3]); printf("GPU: 3D layers cannot be in RGBA5551 format. To composite a 3D layer, use the _unknownEffectMask32() method instead.\n"); assert(false); break; case GPULayerType_BG: blendSrc32[0] = colorop_vec.blend<OUTPUTFORMAT, true>(tmpSrc[0], dst32[0], eva_vec128, evb_vec128); blendSrc32[1] = colorop_vec.blend<OUTPUTFORMAT, true>(tmpSrc[1], dst32[1], eva_vec128, evb_vec128); blendSrc32[2] = colorop_vec.blend<OUTPUTFORMAT, true>(tmpSrc[2], dst32[2], eva_vec128, evb_vec128); blendSrc32[3] = colorop_vec.blend<OUTPUTFORMAT, true>(tmpSrc[3], dst32[3], eva_vec128, evb_vec128); break; case GPULayerType_OBJ: { // For OBJ layers, we need to convert EVA and EVB from vectors of uint8 into vectors of uint16. // // Note that we are sending only 4 colors for each colorop_vec.blend() call, and so we are only // going to send the 4 correspending EVA/EVB vectors as well. In this case, each individual // EVA/EVB value is mirrored for each adjacent 16-bit boundary. v128u16 tempBlendLo = _mm_unpacklo_epi8(eva_vec128, eva_vec128); v128u16 tempBlendHi = _mm_unpackhi_epi8(eva_vec128, eva_vec128); const v128u16 tempEVA[4] = { _mm_unpacklo_epi8(tempBlendLo, _mm_setzero_si128()), _mm_unpackhi_epi8(tempBlendLo, _mm_setzero_si128()), _mm_unpacklo_epi8(tempBlendHi, _mm_setzero_si128()), _mm_unpackhi_epi8(tempBlendHi, _mm_setzero_si128()) }; tempBlendLo = _mm_unpacklo_epi8(evb_vec128, evb_vec128); tempBlendHi = _mm_unpackhi_epi8(evb_vec128, evb_vec128); const v128u16 tempEVB[4] = { _mm_unpacklo_epi8(tempBlendLo, _mm_setzero_si128()), _mm_unpackhi_epi8(tempBlendLo, _mm_setzero_si128()), _mm_unpacklo_epi8(tempBlendHi, _mm_setzero_si128()), _mm_unpackhi_epi8(tempBlendHi, _mm_setzero_si128()) }; blendSrc32[0] = colorop_vec.blend<OUTPUTFORMAT, false>(tmpSrc[0], dst32[0], tempEVA[0], tempEVB[0]); blendSrc32[1] = colorop_vec.blend<OUTPUTFORMAT, false>(tmpSrc[1], dst32[1], tempEVA[1], tempEVB[1]); blendSrc32[2] = colorop_vec.blend<OUTPUTFORMAT, false>(tmpSrc[2], dst32[2], tempEVA[2], tempEVB[2]); blendSrc32[3] = colorop_vec.blend<OUTPUTFORMAT, false>(tmpSrc[3], dst32[3], tempEVA[3], tempEVB[3]); break; } } const v128u32 blendMask32[4] = { _mm_unpacklo_epi16(blendMask16[0], blendMask16[0]), _mm_unpackhi_epi16(blendMask16[0], blendMask16[0]), _mm_unpacklo_epi16(blendMask16[1], blendMask16[1]), _mm_unpackhi_epi16(blendMask16[1], blendMask16[1]) }; tmpSrc[0] = _mm_blendv_epi8(tmpSrc[0], blendSrc32[0], blendMask32[0]); tmpSrc[1] = _mm_blendv_epi8(tmpSrc[1], blendSrc32[1], blendMask32[1]); tmpSrc[2] = _mm_blendv_epi8(tmpSrc[2], blendSrc32[2], blendMask32[2]); tmpSrc[3] = _mm_blendv_epi8(tmpSrc[3], blendSrc32[3], blendMask32[3]); } // Store the final colors. const v128u16 passMask16[2] = { _mm_unpacklo_epi8(passMask8, passMask8), _mm_unpackhi_epi8(passMask8, passMask8) }; const v128u32 passMask32[4] = { _mm_unpacklo_epi16(passMask16[0], passMask16[0]), _mm_unpackhi_epi16(passMask16[0], passMask16[0]), _mm_unpacklo_epi16(passMask16[1], passMask16[1]), _mm_unpackhi_epi16(passMask16[1], passMask16[1]) }; const v128u32 alphaBits = _mm_set1_epi32((OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? 0x1F000000 : 0xFF000000); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, _mm_blendv_epi8(dst32[0], _mm_or_si128(tmpSrc[0], alphaBits), passMask32[0]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, _mm_blendv_epi8(dst32[1], _mm_or_si128(tmpSrc[1], alphaBits), passMask32[1]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, _mm_blendv_epi8(dst32[2], _mm_or_si128(tmpSrc[2], alphaBits), passMask32[2]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, _mm_blendv_epi8(dst32[3], _mm_or_si128(tmpSrc[3], alphaBits), passMask32[3]) ); } } template <NDSColorFormat OUTPUTFORMAT, GPULayerType LAYERTYPE> FORCEINLINE void PixelOperation_SSE2::_unknownEffectMask32(GPUEngineCompositorInfo &compInfo, const v128u8 &passMask8, const v128u16 &evy16, const v128u8 &srcLayerID, const v128u32 &src3, const v128u32 &src2, const v128u32 &src1, const v128u32 &src0, const v128u8 &srcEffectEnableMask, const v128u8 &dstBlendEnableMaskLUT, const v128u8 &enableColorEffectMask, const v128u8 &spriteAlpha, const v128u8 &spriteMode) const { const v128u8 dstLayerID = _mm_load_si128((v128u8 *)compInfo.target.lineLayerID); _mm_store_si128( (v128u8 *)compInfo.target.lineLayerID, _mm_blendv_epi8(dstLayerID, srcLayerID, passMask8) ); v128u8 dstTargetBlendEnableMask; #ifdef ENABLE_SSSE3 dstTargetBlendEnableMask = _mm_shuffle_epi8(dstBlendEnableMaskLUT, dstLayerID); #else dstTargetBlendEnableMask = _mm_and_si128(_mm_cmpeq_epi8(dstLayerID, _mm_set1_epi8(GPULayerID_BG0)), _mm_set1_epi8(compInfo.renderState.dstBlendEnable[GPULayerID_BG0])); dstTargetBlendEnableMask = _mm_or_si128( dstTargetBlendEnableMask, _mm_and_si128(_mm_cmpeq_epi8(dstLayerID, _mm_set1_epi8(GPULayerID_BG1)), _mm_set1_epi8(compInfo.renderState.dstBlendEnable[GPULayerID_BG1])) ); dstTargetBlendEnableMask = _mm_or_si128( dstTargetBlendEnableMask, _mm_and_si128(_mm_cmpeq_epi8(dstLayerID, _mm_set1_epi8(GPULayerID_BG2)), _mm_set1_epi8(compInfo.renderState.dstBlendEnable[GPULayerID_BG2])) ); dstTargetBlendEnableMask = _mm_or_si128( dstTargetBlendEnableMask, _mm_and_si128(_mm_cmpeq_epi8(dstLayerID, _mm_set1_epi8(GPULayerID_BG3)), _mm_set1_epi8(compInfo.renderState.dstBlendEnable[GPULayerID_BG3])) ); dstTargetBlendEnableMask = _mm_or_si128( dstTargetBlendEnableMask, _mm_and_si128(_mm_cmpeq_epi8(dstLayerID, _mm_set1_epi8(GPULayerID_OBJ)), _mm_set1_epi8(compInfo.renderState.dstBlendEnable[GPULayerID_OBJ])) ); dstTargetBlendEnableMask = _mm_or_si128( dstTargetBlendEnableMask, _mm_and_si128(_mm_cmpeq_epi8(dstLayerID, _mm_set1_epi8(GPULayerID_Backdrop)), _mm_set1_epi8(compInfo.renderState.dstBlendEnable[GPULayerID_Backdrop])) ); #endif dstTargetBlendEnableMask = _mm_andnot_si128( _mm_cmpeq_epi8(dstLayerID, srcLayerID), dstTargetBlendEnableMask ); v128u8 forceDstTargetBlendMask = (LAYERTYPE == GPULayerType_3D) ? dstTargetBlendEnableMask : _mm_setzero_si128(); // Do note that OBJ layers can modify EVA or EVB, meaning that these blend values may not be constant for OBJ layers. // Therefore, we're going to treat EVA and EVB as vectors of uint8 so that the OBJ layer can modify them, and then // convert EVA and EVB into vectors of uint16 right before we use them. __m128i eva_vec128 = (LAYERTYPE == GPULayerType_OBJ) ? _mm_set1_epi8(compInfo.renderState.blendEVA) : _mm_set1_epi16(compInfo.renderState.blendEVA); __m128i evb_vec128 = (LAYERTYPE == GPULayerType_OBJ) ? _mm_set1_epi8(compInfo.renderState.blendEVB) : _mm_set1_epi16(compInfo.renderState.blendEVB); if (LAYERTYPE == GPULayerType_OBJ) { const v128u8 isObjTranslucentMask = _mm_and_si128( dstTargetBlendEnableMask, _mm_or_si128(_mm_cmpeq_epi8(spriteMode, _mm_set1_epi8(OBJMode_Transparent)), _mm_cmpeq_epi8(spriteMode, _mm_set1_epi8(OBJMode_Bitmap))) ); forceDstTargetBlendMask = isObjTranslucentMask; const v128u8 spriteAlphaMask = _mm_andnot_si128(_mm_cmpeq_epi8(spriteAlpha, _mm_set1_epi8(0xFF)), isObjTranslucentMask); eva_vec128 = _mm_blendv_epi8(eva_vec128, spriteAlpha, spriteAlphaMask); evb_vec128 = _mm_blendv_epi8(evb_vec128, _mm_sub_epi8(_mm_set1_epi8(16), spriteAlpha), spriteAlphaMask); } // Select the color effect based on the BLDCNT target flags. const v128u8 colorEffect_vec128 = _mm_blendv_epi8(_mm_set1_epi8(ColorEffect_Disable), _mm_set1_epi8(compInfo.renderState.colorEffect), enableColorEffectMask); // ---------- __m128i tmpSrc[4]; if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { tmpSrc[0] = ColorspaceConvert6665To5551_SSE2<false>(src0, src1); tmpSrc[1] = ColorspaceConvert6665To5551_SSE2<false>(src2, src3); tmpSrc[2] = _mm_setzero_si128(); tmpSrc[3] = _mm_setzero_si128(); } else { tmpSrc[0] = src0; tmpSrc[1] = src1; tmpSrc[2] = src2; tmpSrc[3] = src3; } switch (compInfo.renderState.colorEffect) { case ColorEffect_IncreaseBrightness: { const v128u8 brightnessMask8 = _mm_andnot_si128( forceDstTargetBlendMask, _mm_and_si128(srcEffectEnableMask, _mm_cmpeq_epi8(colorEffect_vec128, _mm_set1_epi8(ColorEffect_IncreaseBrightness))) ); const int brightnessUpMaskValue = _mm_movemask_epi8(brightnessMask8); if (brightnessUpMaskValue != 0x00000000) { const v128u16 brightnessMask16[2] = { _mm_unpacklo_epi8(brightnessMask8, brightnessMask8), _mm_unpackhi_epi8(brightnessMask8, brightnessMask8) }; if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { tmpSrc[0] = _mm_blendv_epi8( tmpSrc[0], colorop_vec.increase(tmpSrc[0], evy16), brightnessMask16[0] ); tmpSrc[1] = _mm_blendv_epi8( tmpSrc[1], colorop_vec.increase(tmpSrc[1], evy16), brightnessMask16[1] ); } else { const v128u32 brightnessMask32[4] = { _mm_unpacklo_epi16(brightnessMask16[0], brightnessMask16[0]), _mm_unpackhi_epi16(brightnessMask16[0], brightnessMask16[0]), _mm_unpacklo_epi16(brightnessMask16[1], brightnessMask16[1]), _mm_unpackhi_epi16(brightnessMask16[1], brightnessMask16[1]) }; tmpSrc[0] = _mm_blendv_epi8( tmpSrc[0], colorop_vec.increase<OUTPUTFORMAT>(tmpSrc[0], evy16), brightnessMask32[0] ); tmpSrc[1] = _mm_blendv_epi8( tmpSrc[1], colorop_vec.increase<OUTPUTFORMAT>(tmpSrc[1], evy16), brightnessMask32[1] ); tmpSrc[2] = _mm_blendv_epi8( tmpSrc[2], colorop_vec.increase<OUTPUTFORMAT>(tmpSrc[2], evy16), brightnessMask32[2] ); tmpSrc[3] = _mm_blendv_epi8( tmpSrc[3], colorop_vec.increase<OUTPUTFORMAT>(tmpSrc[3], evy16), brightnessMask32[3] ); } } break; } case ColorEffect_DecreaseBrightness: { const v128u8 brightnessMask8 = _mm_andnot_si128( forceDstTargetBlendMask, _mm_and_si128(srcEffectEnableMask, _mm_cmpeq_epi8(colorEffect_vec128, _mm_set1_epi8(ColorEffect_DecreaseBrightness))) ); const int brightnessDownMaskValue = _mm_movemask_epi8(brightnessMask8); if (brightnessDownMaskValue != 0x00000000) { const v128u16 brightnessMask16[2] = { _mm_unpacklo_epi8(brightnessMask8, brightnessMask8), _mm_unpackhi_epi8(brightnessMask8, brightnessMask8) }; if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { tmpSrc[0] = _mm_blendv_epi8( tmpSrc[0], colorop_vec.decrease(tmpSrc[0], evy16), brightnessMask16[0] ); tmpSrc[1] = _mm_blendv_epi8( tmpSrc[1], colorop_vec.decrease(tmpSrc[1], evy16), brightnessMask16[1] ); } else { const v128u32 brightnessMask32[4] = { _mm_unpacklo_epi16(brightnessMask16[0], brightnessMask16[0]), _mm_unpackhi_epi16(brightnessMask16[0], brightnessMask16[0]), _mm_unpacklo_epi16(brightnessMask16[1], brightnessMask16[1]), _mm_unpackhi_epi16(brightnessMask16[1], brightnessMask16[1]) }; tmpSrc[0] = _mm_blendv_epi8( tmpSrc[0], colorop_vec.decrease<OUTPUTFORMAT>(tmpSrc[0], evy16), brightnessMask32[0] ); tmpSrc[1] = _mm_blendv_epi8( tmpSrc[1], colorop_vec.decrease<OUTPUTFORMAT>(tmpSrc[1], evy16), brightnessMask32[1] ); tmpSrc[2] = _mm_blendv_epi8( tmpSrc[2], colorop_vec.decrease<OUTPUTFORMAT>(tmpSrc[2], evy16), brightnessMask32[2] ); tmpSrc[3] = _mm_blendv_epi8( tmpSrc[3], colorop_vec.decrease<OUTPUTFORMAT>(tmpSrc[3], evy16), brightnessMask32[3] ); } } break; } default: break; } // Render the pixel using the selected color effect. const v128u8 blendMask8 = _mm_or_si128( forceDstTargetBlendMask, _mm_and_si128(_mm_and_si128(srcEffectEnableMask, dstTargetBlendEnableMask), _mm_cmpeq_epi8(colorEffect_vec128, _mm_set1_epi8(ColorEffect_Blend))) ); const int blendMaskValue = _mm_movemask_epi8(blendMask8); if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { const v128u16 dst16[2] = { _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 0), _mm_load_si128((v128u16 *)compInfo.target.lineColor16 + 1) }; if (blendMaskValue != 0x00000000) { const v128u16 blendMask16[2] = { _mm_unpacklo_epi8(blendMask8, blendMask8), _mm_unpackhi_epi8(blendMask8, blendMask8) }; v128u16 blendSrc16[2]; switch (LAYERTYPE) { case GPULayerType_3D: blendSrc16[0] = colorop_vec.blend3D(src0, src1, dst16[0]); blendSrc16[1] = colorop_vec.blend3D(src2, src3, dst16[1]); break; case GPULayerType_BG: blendSrc16[0] = colorop_vec.blend(tmpSrc[0], dst16[0], eva_vec128, evb_vec128); blendSrc16[1] = colorop_vec.blend(tmpSrc[1], dst16[1], eva_vec128, evb_vec128); break; case GPULayerType_OBJ: { // For OBJ layers, we need to convert EVA and EVB from vectors of uint8 into vectors of uint16. const v128u16 tempEVA[2] = { _mm_unpacklo_epi8(eva_vec128, _mm_setzero_si128()), _mm_unpackhi_epi8(eva_vec128, _mm_setzero_si128()) }; const v128u16 tempEVB[2] = { _mm_unpacklo_epi8(evb_vec128, _mm_setzero_si128()), _mm_unpackhi_epi8(evb_vec128, _mm_setzero_si128()) }; blendSrc16[0] = colorop_vec.blend(tmpSrc[0], dst16[0], tempEVA[0], tempEVB[0]); blendSrc16[1] = colorop_vec.blend(tmpSrc[1], dst16[1], tempEVA[1], tempEVB[1]); break; } } tmpSrc[0] = _mm_blendv_epi8(tmpSrc[0], blendSrc16[0], blendMask16[0]); tmpSrc[1] = _mm_blendv_epi8(tmpSrc[1], blendSrc16[1], blendMask16[1]); } // Store the final colors. const v128u16 passMask16[2] = { _mm_unpacklo_epi8(passMask8, passMask8), _mm_unpackhi_epi8(passMask8, passMask8) }; const v128u16 alphaBits = _mm_set1_epi16(0x8000); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 0, _mm_blendv_epi8(dst16[0], _mm_or_si128(tmpSrc[0], alphaBits), passMask16[0]) ); _mm_store_si128( (v128u16 *)compInfo.target.lineColor16 + 1, _mm_blendv_epi8(dst16[1], _mm_or_si128(tmpSrc[1], alphaBits), passMask16[1]) ); } else { const v128u32 dst32[4] = { _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 0), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 1), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 2), _mm_load_si128((v128u32 *)compInfo.target.lineColor32 + 3), }; if (blendMaskValue != 0x00000000) { const v128u16 blendMask16[2] = { _mm_unpacklo_epi8(blendMask8, blendMask8), _mm_unpackhi_epi8(blendMask8, blendMask8) }; v128u32 blendSrc32[4]; switch (LAYERTYPE) { case GPULayerType_3D: blendSrc32[0] = colorop_vec.blend3D<OUTPUTFORMAT>(tmpSrc[0], dst32[0]); blendSrc32[1] = colorop_vec.blend3D<OUTPUTFORMAT>(tmpSrc[1], dst32[1]); blendSrc32[2] = colorop_vec.blend3D<OUTPUTFORMAT>(tmpSrc[2], dst32[2]); blendSrc32[3] = colorop_vec.blend3D<OUTPUTFORMAT>(tmpSrc[3], dst32[3]); break; case GPULayerType_BG: blendSrc32[0] = colorop_vec.blend<OUTPUTFORMAT, true>(tmpSrc[0], dst32[0], eva_vec128, evb_vec128); blendSrc32[1] = colorop_vec.blend<OUTPUTFORMAT, true>(tmpSrc[1], dst32[1], eva_vec128, evb_vec128); blendSrc32[2] = colorop_vec.blend<OUTPUTFORMAT, true>(tmpSrc[2], dst32[2], eva_vec128, evb_vec128); blendSrc32[3] = colorop_vec.blend<OUTPUTFORMAT, true>(tmpSrc[3], dst32[3], eva_vec128, evb_vec128); break; case GPULayerType_OBJ: { // For OBJ layers, we need to convert EVA and EVB from vectors of uint8 into vectors of uint16. // // Note that we are sending only 4 colors for each colorop_vec.blend() call, and so we are only // going to send the 4 correspending EVA/EVB vectors as well. In this case, each individual // EVA/EVB value is mirrored for each adjacent 16-bit boundary. v128u16 tempBlendLo = _mm_unpacklo_epi8(eva_vec128, eva_vec128); v128u16 tempBlendHi = _mm_unpackhi_epi8(eva_vec128, eva_vec128); const v128u16 tempEVA[4] = { _mm_unpacklo_epi8(tempBlendLo, _mm_setzero_si128()), _mm_unpackhi_epi8(tempBlendLo, _mm_setzero_si128()), _mm_unpacklo_epi8(tempBlendHi, _mm_setzero_si128()), _mm_unpackhi_epi8(tempBlendHi, _mm_setzero_si128()) }; tempBlendLo = _mm_unpacklo_epi8(evb_vec128, evb_vec128); tempBlendHi = _mm_unpackhi_epi8(evb_vec128, evb_vec128); const v128u16 tempEVB[4] = { _mm_unpacklo_epi8(tempBlendLo, _mm_setzero_si128()), _mm_unpackhi_epi8(tempBlendLo, _mm_setzero_si128()), _mm_unpacklo_epi8(tempBlendHi, _mm_setzero_si128()), _mm_unpackhi_epi8(tempBlendHi, _mm_setzero_si128()) }; blendSrc32[0] = colorop_vec.blend<OUTPUTFORMAT, false>(tmpSrc[0], dst32[0], tempEVA[0], tempEVB[0]); blendSrc32[1] = colorop_vec.blend<OUTPUTFORMAT, false>(tmpSrc[1], dst32[1], tempEVA[1], tempEVB[1]); blendSrc32[2] = colorop_vec.blend<OUTPUTFORMAT, false>(tmpSrc[2], dst32[2], tempEVA[2], tempEVB[2]); blendSrc32[3] = colorop_vec.blend<OUTPUTFORMAT, false>(tmpSrc[3], dst32[3], tempEVA[3], tempEVB[3]); break; } } const v128u32 blendMask32[4] = { _mm_unpacklo_epi16(blendMask16[0], blendMask16[0]), _mm_unpackhi_epi16(blendMask16[0], blendMask16[0]), _mm_unpacklo_epi16(blendMask16[1], blendMask16[1]), _mm_unpackhi_epi16(blendMask16[1], blendMask16[1]) }; tmpSrc[0] = _mm_blendv_epi8(tmpSrc[0], blendSrc32[0], blendMask32[0]); tmpSrc[1] = _mm_blendv_epi8(tmpSrc[1], blendSrc32[1], blendMask32[1]); tmpSrc[2] = _mm_blendv_epi8(tmpSrc[2], blendSrc32[2], blendMask32[2]); tmpSrc[3] = _mm_blendv_epi8(tmpSrc[3], blendSrc32[3], blendMask32[3]); } // Store the final colors. const v128u16 passMask16[2] = { _mm_unpacklo_epi8(passMask8, passMask8), _mm_unpackhi_epi8(passMask8, passMask8) }; const v128u32 passMask32[4] = { _mm_unpacklo_epi16(passMask16[0], passMask16[0]), _mm_unpackhi_epi16(passMask16[0], passMask16[0]), _mm_unpacklo_epi16(passMask16[1], passMask16[1]), _mm_unpackhi_epi16(passMask16[1], passMask16[1]) }; const v128u32 alphaBits = _mm_set1_epi32((OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? 0x1F000000 : 0xFF000000); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 0, _mm_blendv_epi8(dst32[0], _mm_or_si128(tmpSrc[0], alphaBits), passMask32[0]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 1, _mm_blendv_epi8(dst32[1], _mm_or_si128(tmpSrc[1], alphaBits), passMask32[1]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 2, _mm_blendv_epi8(dst32[2], _mm_or_si128(tmpSrc[2], alphaBits), passMask32[2]) ); _mm_store_si128( (v128u32 *)compInfo.target.lineColor32 + 3, _mm_blendv_epi8(dst32[3], _mm_or_si128(tmpSrc[3], alphaBits), passMask32[3]) ); } } template <GPUCompositorMode COMPOSITORMODE, NDSColorFormat OUTPUTFORMAT, GPULayerType LAYERTYPE, bool WILLPERFORMWINDOWTEST> FORCEINLINE void PixelOperation_SSE2::Composite16(GPUEngineCompositorInfo &compInfo, const bool didAllPixelsPass, const v128u8 &passMask8, const v128u16 &evy16, const v128u8 &srcLayerID, const v128u16 &src1, const v128u16 &src0, const v128u8 &srcEffectEnableMask, const v128u8 &dstBlendEnableMaskLUT, const u8 *__restrict enableColorEffectPtr, const u8 *__restrict sprAlphaPtr, const u8 *__restrict sprModePtr) const { if ((COMPOSITORMODE != GPUCompositorMode_Unknown) && didAllPixelsPass) { switch (COMPOSITORMODE) { case GPUCompositorMode_Debug: this->_copy16<OUTPUTFORMAT, true>(compInfo, srcLayerID, src1, src0); break; case GPUCompositorMode_Copy: this->_copy16<OUTPUTFORMAT, false>(compInfo, srcLayerID, src1, src0); break; case GPUCompositorMode_BrightUp: this->_brightnessUp16<OUTPUTFORMAT>(compInfo, evy16, srcLayerID, src1, src0); break; case GPUCompositorMode_BrightDown: this->_brightnessDown16<OUTPUTFORMAT>(compInfo, evy16, srcLayerID, src1, src0); break; default: break; } } else { switch (COMPOSITORMODE) { case GPUCompositorMode_Debug: this->_copyMask16<OUTPUTFORMAT, true>(compInfo, passMask8, srcLayerID, src1, src0); break; case GPUCompositorMode_Copy: this->_copyMask16<OUTPUTFORMAT, false>(compInfo, passMask8, srcLayerID, src1, src0); break; case GPUCompositorMode_BrightUp: this->_brightnessUpMask16<OUTPUTFORMAT>(compInfo, passMask8, evy16, srcLayerID, src1, src0); break; case GPUCompositorMode_BrightDown: this->_brightnessDownMask16<OUTPUTFORMAT>(compInfo, passMask8, evy16, srcLayerID, src1, src0); break; default: { const v128u8 enableColorEffectMask = (WILLPERFORMWINDOWTEST) ? _mm_load_si128((v128u8 *)enableColorEffectPtr) : _mm_set1_epi8(0xFF); const v128u8 spriteAlpha = (LAYERTYPE == GPULayerType_OBJ) ? _mm_load_si128((v128u8 *)sprAlphaPtr) : _mm_setzero_si128(); const v128u8 spriteMode = (LAYERTYPE == GPULayerType_OBJ) ? _mm_load_si128((v128u8 *)sprModePtr) : _mm_setzero_si128(); this->_unknownEffectMask16<OUTPUTFORMAT, LAYERTYPE>(compInfo, passMask8, evy16, srcLayerID, src1, src0, srcEffectEnableMask, dstBlendEnableMaskLUT, enableColorEffectMask, spriteAlpha, spriteMode); break; } } } } template <GPUCompositorMode COMPOSITORMODE, NDSColorFormat OUTPUTFORMAT, GPULayerType LAYERTYPE, bool WILLPERFORMWINDOWTEST> FORCEINLINE void PixelOperation_SSE2::Composite32(GPUEngineCompositorInfo &compInfo, const bool didAllPixelsPass, const v128u8 &passMask8, const v128u16 &evy16, const v128u8 &srcLayerID, const v128u32 &src3, const v128u32 &src2, const v128u32 &src1, const v128u32 &src0, const v128u8 &srcEffectEnableMask, const v128u8 &dstBlendEnableMaskLUT, const u8 *__restrict enableColorEffectPtr, const u8 *__restrict sprAlphaPtr, const u8 *__restrict sprModePtr) const { if ((COMPOSITORMODE != GPUCompositorMode_Unknown) && didAllPixelsPass) { switch (COMPOSITORMODE) { case GPUCompositorMode_Debug: this->_copy32<OUTPUTFORMAT, true>(compInfo, srcLayerID, src3, src2, src1, src0); break; case GPUCompositorMode_Copy: this->_copy32<OUTPUTFORMAT, false>(compInfo, srcLayerID, src3, src2, src1, src0); break; case GPUCompositorMode_BrightUp: this->_brightnessUp32<OUTPUTFORMAT>(compInfo, evy16, srcLayerID, src3, src2, src1, src0); break; case GPUCompositorMode_BrightDown: this->_brightnessDown32<OUTPUTFORMAT>(compInfo, evy16, srcLayerID, src3, src2, src1, src0); break; default: break; } } else { switch (COMPOSITORMODE) { case GPUCompositorMode_Debug: this->_copyMask32<OUTPUTFORMAT, true>(compInfo, passMask8, srcLayerID, src3, src2, src1, src0); break; case GPUCompositorMode_Copy: this->_copyMask32<OUTPUTFORMAT, false>(compInfo, passMask8, srcLayerID, src3, src2, src1, src0); break; case GPUCompositorMode_BrightUp: this->_brightnessUpMask32<OUTPUTFORMAT>(compInfo, passMask8, evy16, srcLayerID, src3, src2, src1, src0); break; case GPUCompositorMode_BrightDown: this->_brightnessDownMask32<OUTPUTFORMAT>(compInfo, passMask8, evy16, srcLayerID, src3, src2, src1, src0); break; default: { const v128u8 enableColorEffectMask = (WILLPERFORMWINDOWTEST) ? _mm_load_si128((v128u8 *)enableColorEffectPtr): _mm_set1_epi8(0xFF); const v128u8 spriteAlpha = (LAYERTYPE == GPULayerType_OBJ) ? _mm_load_si128((v128u8 *)sprAlphaPtr) : _mm_setzero_si128(); const v128u8 spriteMode = (LAYERTYPE == GPULayerType_OBJ) ? _mm_load_si128((v128u8 *)sprModePtr) : _mm_setzero_si128(); this->_unknownEffectMask32<OUTPUTFORMAT, LAYERTYPE>(compInfo, passMask8, evy16, srcLayerID, src3, src2, src1, src0, srcEffectEnableMask, dstBlendEnableMaskLUT, enableColorEffectMask, spriteAlpha, spriteMode); break; } } } } template <bool ISFIRSTLINE> void GPUEngineBase::_MosaicLine(GPUEngineCompositorInfo &compInfo) { const u16 *mosaicColorBG = this->_mosaicColors.bg[compInfo.renderState.selectedLayerID]; for (size_t x = 0; x < GPU_FRAMEBUFFER_NATIVE_WIDTH; x+=sizeof(v128u16)) { const v128u16 dstColor16[2] = { _mm_load_si128((v128u16 *)(this->_deferredColorNative + x) + 0), _mm_load_si128((v128u16 *)(this->_deferredColorNative + x) + 1) }; if (ISFIRSTLINE) { const v128u8 indexVec = _mm_load_si128((v128u8 *)(this->_deferredIndexNative + x)); const v128u8 idxMask8 = _mm_cmpeq_epi8(indexVec, _mm_setzero_si128()); const v128u16 idxMask16[2] = { _mm_unpacklo_epi8(idxMask8, idxMask8), _mm_unpackhi_epi8(idxMask8, idxMask8) }; const v128u16 mosaicColor16[2] = { _mm_blendv_epi8(_mm_and_si128(dstColor16[0], _mm_set1_epi16(0x7FFF)), _mm_set1_epi16(0xFFFF), idxMask16[0]), _mm_blendv_epi8(_mm_and_si128(dstColor16[1], _mm_set1_epi16(0x7FFF)), _mm_set1_epi16(0xFFFF), idxMask16[1]) }; const v128u16 mosaicSetColorMask8 = _mm_cmpeq_epi16( _mm_loadu_si128((v128u8 *)(compInfo.renderState.mosaicWidthBG->begin + x)), _mm_setzero_si128() ); const v128u16 mosaicSetColorMask16[2] = { _mm_unpacklo_epi8(mosaicSetColorMask8, mosaicSetColorMask8), _mm_unpackhi_epi8(mosaicSetColorMask8, mosaicSetColorMask8) }; _mm_storeu_si128( (v128u16 *)(mosaicColorBG + x) + 0, _mm_blendv_epi8(mosaicColor16[0], _mm_loadu_si128((v128u16 *)(mosaicColorBG + x) + 0), mosaicSetColorMask16[0]) ); _mm_storeu_si128( (v128u16 *)(mosaicColorBG + x) + 1, _mm_blendv_epi8(mosaicColor16[1], _mm_loadu_si128((v128u16 *)(mosaicColorBG + x) + 1), mosaicSetColorMask16[1]) ); } const v128u16 outColor16[2] = { _mm_setr_epi16(mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+0]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+1]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+2]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+3]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+4]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+5]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+6]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+7]]), _mm_setr_epi16(mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+8]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+9]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+10]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+11]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+12]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+13]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+14]], mosaicColorBG[compInfo.renderState.mosaicWidthBG->trunc32[x+15]]) }; const v128u16 writeColorMask16[2] = { _mm_cmpeq_epi16(outColor16[0], _mm_set1_epi16(0xFFFF)), _mm_cmpeq_epi16(outColor16[1], _mm_set1_epi16(0xFFFF)) }; _mm_store_si128( (v128u16 *)(this->_deferredColorNative + x) + 0, _mm_blendv_epi8(outColor16[0], dstColor16[0], writeColorMask16[0]) ); _mm_store_si128( (v128u16 *)(this->_deferredColorNative + x) + 1, _mm_blendv_epi8(outColor16[1], dstColor16[1], writeColorMask16[1]) ); } } template <GPUCompositorMode COMPOSITORMODE, NDSColorFormat OUTPUTFORMAT, bool WILLPERFORMWINDOWTEST> void GPUEngineBase::_CompositeNativeLineOBJ_LoopOp(GPUEngineCompositorInfo &compInfo, const u16 *__restrict srcColorNative16, const Color4u8 *__restrict srcColorNative32) { static const size_t step = sizeof(v128u8); const bool isUsingSrc32 = (srcColorNative32 != NULL); const v128u16 evy16 = _mm_set1_epi16(compInfo.renderState.blendEVY); const v128u8 srcLayerID = _mm_set1_epi8(compInfo.renderState.selectedLayerID); const v128u8 srcEffectEnableMask = _mm_set1_epi8(compInfo.renderState.srcEffectEnable[GPULayerID_OBJ]); const v128u8 dstBlendEnableMaskLUT = (COMPOSITORMODE == GPUCompositorMode_Unknown) ? _mm_load_si128((v128u8 *)compInfo.renderState.dstBlendEnableVecLookup) : _mm_setzero_si128(); for (size_t i = 0; i < GPU_FRAMEBUFFER_NATIVE_WIDTH; i+=step, srcColorNative16+=step, srcColorNative32+=step, compInfo.target.xNative+=step, compInfo.target.lineColor16+=step, compInfo.target.lineColor32+=step, compInfo.target.lineLayerID+=step) { v128u8 passMask8; int passMaskValue; bool didAllPixelsPass; if (WILLPERFORMWINDOWTEST) { // Do the window test. passMask8 = _mm_load_si128((v128u8 *)(this->_didPassWindowTestNative[GPULayerID_OBJ] + i)); // If none of the pixels within the vector pass, then reject them all at once. passMaskValue = _mm_movemask_epi8(passMask8); if (passMaskValue == 0) { continue; } didAllPixelsPass = (passMaskValue == 0xFFFF); } else { passMask8 = _mm_set1_epi8(0xFF); passMaskValue = 0xFFFF; didAllPixelsPass = true; } if (isUsingSrc32) { const v128u32 src[4] = { _mm_load_si128((v128u32 *)srcColorNative32 + 0), _mm_load_si128((v128u32 *)srcColorNative32 + 1), _mm_load_si128((v128u32 *)srcColorNative32 + 2), _mm_load_si128((v128u32 *)srcColorNative32 + 3) }; pixelop_vec.Composite32<COMPOSITORMODE, OUTPUTFORMAT, GPULayerType_OBJ, WILLPERFORMWINDOWTEST>(compInfo, didAllPixelsPass, passMask8, evy16, srcLayerID, src[3], src[2], src[1], src[0], srcEffectEnableMask, dstBlendEnableMaskLUT, this->_enableColorEffectNative[GPULayerID_OBJ] + i, this->_sprAlpha[compInfo.line.indexNative] + i, this->_sprType[compInfo.line.indexNative] + i); } else { const v128u16 src[2] = { _mm_load_si128((v128u16 *)srcColorNative16 + 0), _mm_load_si128((v128u16 *)srcColorNative16 + 1) }; pixelop_vec.Composite16<COMPOSITORMODE, OUTPUTFORMAT, GPULayerType_OBJ, WILLPERFORMWINDOWTEST>(compInfo, didAllPixelsPass, passMask8, evy16, srcLayerID, src[1], src[0], srcEffectEnableMask, dstBlendEnableMaskLUT, this->_enableColorEffectNative[GPULayerID_OBJ] + i, this->_sprAlpha[compInfo.line.indexNative] + i, this->_sprType[compInfo.line.indexNative] + i); } } } template <GPUCompositorMode COMPOSITORMODE, NDSColorFormat OUTPUTFORMAT, GPULayerType LAYERTYPE, bool WILLPERFORMWINDOWTEST> size_t GPUEngineBase::_CompositeLineDeferred_LoopOp(GPUEngineCompositorInfo &compInfo, const u8 *__restrict windowTestPtr, const u8 *__restrict colorEffectEnablePtr, const u16 *__restrict srcColorCustom16, const u8 *__restrict srcIndexCustom) { static const size_t step = sizeof(v128u8); const size_t ssePixCount = (compInfo.line.pixelCount - (compInfo.line.pixelCount % step)); const v128u16 evy16 = _mm_set1_epi16(compInfo.renderState.blendEVY); const v128u8 srcLayerID = _mm_set1_epi8(compInfo.renderState.selectedLayerID); const v128u8 srcEffectEnableMask = _mm_set1_epi8(compInfo.renderState.srcEffectEnable[compInfo.renderState.selectedLayerID]); const v128u8 dstBlendEnableMaskLUT = (COMPOSITORMODE == GPUCompositorMode_Unknown) ? _mm_load_si128((v128u8 *)compInfo.renderState.dstBlendEnableVecLookup) : _mm_setzero_si128(); size_t i = 0; for (; i < ssePixCount; i+=step, compInfo.target.xCustom+=step, compInfo.target.lineColor16+=step, compInfo.target.lineColor32+=step, compInfo.target.lineLayerID+=step) { if (compInfo.target.xCustom >= compInfo.line.widthCustom) { compInfo.target.xCustom -= compInfo.line.widthCustom; } v128u8 passMask8; int passMaskValue; bool didAllPixelsPass; if (WILLPERFORMWINDOWTEST || (LAYERTYPE == GPULayerType_BG)) { if (WILLPERFORMWINDOWTEST) { // Do the window test. passMask8 = _mm_load_si128((v128u8 *)(windowTestPtr + compInfo.target.xCustom)); } if (LAYERTYPE == GPULayerType_BG) { // Do the index test. Pixels with an index value of 0 are rejected. const v128u8 idxPassMask8 = _mm_cmpeq_epi8(_mm_load_si128((v128u8 *)(srcIndexCustom + compInfo.target.xCustom)), _mm_setzero_si128()); if (WILLPERFORMWINDOWTEST) { passMask8 = _mm_andnot_si128(idxPassMask8, passMask8); } else { passMask8 = _mm_xor_si128(idxPassMask8, _mm_set1_epi32(0xFFFFFFFF)); } } // If none of the pixels within the vector pass, then reject them all at once. passMaskValue = _mm_movemask_epi8(passMask8); if (passMaskValue == 0) { continue; } didAllPixelsPass = (passMaskValue == 0xFFFF); } else { passMask8 = _mm_set1_epi8(0xFF); passMaskValue = 0xFFFF; didAllPixelsPass = true; } const v128u16 src[2] = { _mm_load_si128((v128u16 *)(srcColorCustom16 + compInfo.target.xCustom) + 0), _mm_load_si128((v128u16 *)(srcColorCustom16 + compInfo.target.xCustom) + 1) }; pixelop_vec.Composite16<COMPOSITORMODE, OUTPUTFORMAT, LAYERTYPE, WILLPERFORMWINDOWTEST>(compInfo, didAllPixelsPass, passMask8, evy16, srcLayerID, src[1], src[0], srcEffectEnableMask, dstBlendEnableMaskLUT, colorEffectEnablePtr + compInfo.target.xCustom, this->_sprAlphaCustom + compInfo.target.xCustom, this->_sprTypeCustom + compInfo.target.xCustom); } return i; } template <GPUCompositorMode COMPOSITORMODE, NDSColorFormat OUTPUTFORMAT, GPULayerType LAYERTYPE, bool WILLPERFORMWINDOWTEST> size_t GPUEngineBase::_CompositeVRAMLineDeferred_LoopOp(GPUEngineCompositorInfo &compInfo, const u8 *__restrict windowTestPtr, const u8 *__restrict colorEffectEnablePtr, const void *__restrict vramColorPtr) { static const size_t step = sizeof(v128u8); const size_t ssePixCount = (compInfo.line.pixelCount - (compInfo.line.pixelCount % step)); const v128u16 evy16 = _mm_set1_epi16(compInfo.renderState.blendEVY); const v128u8 srcLayerID = _mm_set1_epi8(compInfo.renderState.selectedLayerID); const v128u8 srcEffectEnableMask = _mm_set1_epi8(compInfo.renderState.srcEffectEnable[compInfo.renderState.selectedLayerID]); const v128u8 dstBlendEnableMaskLUT = (COMPOSITORMODE == GPUCompositorMode_Unknown) ? _mm_load_si128((v128u8 *)compInfo.renderState.dstBlendEnableVecLookup) : _mm_setzero_si128(); size_t i = 0; for (; i < ssePixCount; i+=step, compInfo.target.xCustom+=step, compInfo.target.lineColor16+=step, compInfo.target.lineColor32+=step, compInfo.target.lineLayerID+=step) { if (compInfo.target.xCustom >= compInfo.line.widthCustom) { compInfo.target.xCustom -= compInfo.line.widthCustom; } v128u8 passMask8; int passMaskValue; if (WILLPERFORMWINDOWTEST) { // Do the window test. passMask8 = _mm_load_si128((v128u8 *)(windowTestPtr + compInfo.target.xCustom)); // If none of the pixels within the vector pass, then reject them all at once. passMaskValue = _mm_movemask_epi8(passMask8); if (passMaskValue == 0) { continue; } } else { passMask8 = _mm_set1_epi8(0xFF); passMaskValue = 0xFFFF; } switch (OUTPUTFORMAT) { case NDSColorFormat_BGR555_Rev: case NDSColorFormat_BGR666_Rev: { const v128u16 src16[2] = { _mm_load_si128((v128u16 *)((u16 *)vramColorPtr + i) + 0), _mm_load_si128((v128u16 *)((u16 *)vramColorPtr + i) + 1) }; if (LAYERTYPE != GPULayerType_OBJ) { v128u8 tempPassMask = _mm_packus_epi16( _mm_srli_epi16(src16[0], 15), _mm_srli_epi16(src16[1], 15) ); tempPassMask = _mm_cmpeq_epi8(tempPassMask, _mm_set1_epi8(1)); passMask8 = _mm_and_si128(tempPassMask, passMask8); passMaskValue = _mm_movemask_epi8(passMask8); } // If none of the pixels within the vector pass, then reject them all at once. if (passMaskValue == 0) { continue; } // Write out the pixels. const bool didAllPixelsPass = (passMaskValue == 0xFFFF); pixelop_vec.Composite16<COMPOSITORMODE, OUTPUTFORMAT, LAYERTYPE, WILLPERFORMWINDOWTEST>(compInfo, didAllPixelsPass, passMask8, evy16, srcLayerID, src16[1], src16[0], srcEffectEnableMask, dstBlendEnableMaskLUT, colorEffectEnablePtr + compInfo.target.xCustom, this->_sprAlphaCustom + compInfo.target.xCustom, this->_sprTypeCustom + compInfo.target.xCustom); break; } case NDSColorFormat_BGR888_Rev: { const v128u32 src32[4] = { _mm_load_si128((v128u32 *)((Color4u8 *)vramColorPtr + i) + 0), _mm_load_si128((v128u32 *)((Color4u8 *)vramColorPtr + i) + 1), _mm_load_si128((v128u32 *)((Color4u8 *)vramColorPtr + i) + 2), _mm_load_si128((v128u32 *)((Color4u8 *)vramColorPtr + i) + 3) }; if (LAYERTYPE != GPULayerType_OBJ) { v128u8 tempPassMask = _mm_packus_epi16( _mm_packs_epi32(_mm_srli_epi32(src32[0], 24), _mm_srli_epi32(src32[1], 24)), _mm_packs_epi32(_mm_srli_epi32(src32[2], 24), _mm_srli_epi32(src32[3], 24)) ); tempPassMask = _mm_cmpeq_epi8(tempPassMask, _mm_setzero_si128()); passMask8 = _mm_andnot_si128(tempPassMask, passMask8); passMaskValue = _mm_movemask_epi8(passMask8); } // If none of the pixels within the vector pass, then reject them all at once. if (passMaskValue == 0) { continue; } // Write out the pixels. const bool didAllPixelsPass = (passMaskValue == 0xFFFF); pixelop_vec.Composite32<COMPOSITORMODE, OUTPUTFORMAT, LAYERTYPE, WILLPERFORMWINDOWTEST>(compInfo, didAllPixelsPass, passMask8, evy16, srcLayerID, src32[3], src32[2], src32[1], src32[0], srcEffectEnableMask, dstBlendEnableMaskLUT, colorEffectEnablePtr + compInfo.target.xCustom, this->_sprAlphaCustom + compInfo.target.xCustom, this->_sprTypeCustom + compInfo.target.xCustom); break; } } } return i; } template <bool ISDEBUGRENDER> size_t GPUEngineBase::_RenderSpriteBMP_LoopOp(const size_t length, const u8 spriteAlpha, const u8 prio, const u8 spriteNum, const u16 *__restrict vramBuffer, size_t &frameX, size_t &spriteX, u16 *__restrict dst, u8 *__restrict dst_alpha, u8 *__restrict typeTab, u8 *__restrict prioTab) { size_t i = 0; static const size_t step = sizeof(v128u16); const v128u8 prioVec8 = _mm_set1_epi8(prio); const size_t ssePixCount = length - (length % step); for (; i < ssePixCount; i+=step, spriteX+=step, frameX+=step) { const v128u8 prioTabVec8 = _mm_loadu_si128((v128u8 *)(prioTab + frameX)); const v128u16 color16Lo = _mm_loadu_si128((v128u16 *)(vramBuffer + spriteX) + 0); const v128u16 color16Hi = _mm_loadu_si128((v128u16 *)(vramBuffer + spriteX) + 1); const v128u8 alphaCompare = _mm_cmpeq_epi8( _mm_packus_epi16(_mm_srli_epi16(color16Lo, 15), _mm_srli_epi16(color16Hi, 15)), _mm_set1_epi8(0x01) ); const v128u8 prioCompare = _mm_cmpgt_epi8(prioTabVec8, prioVec8); const v128u8 combinedCompare = _mm_and_si128(prioCompare, alphaCompare); const v128u16 combinedLoCompare = _mm_unpacklo_epi8(combinedCompare, combinedCompare); const v128u16 combinedHiCompare = _mm_unpackhi_epi8(combinedCompare, combinedCompare); // Just in case you're wondering why we're not using maskmovdqu, but instead using movdqu+pblendvb+movdqu, it's because // maskmovdqu won't keep the data in cache, and we really need the data in cache since we're about to render the sprite // to the framebuffer. In addition, the maskmovdqu instruction can be brutally slow on many non-Intel CPUs. _mm_storeu_si128( (v128u16 *)(dst + frameX) + 0, _mm_blendv_epi8(_mm_loadu_si128((v128u16 *)(dst + frameX) + 0), color16Lo, combinedLoCompare) ); _mm_storeu_si128( (v128u16 *)(dst + frameX) + 1, _mm_blendv_epi8(_mm_loadu_si128((v128u16 *)(dst + frameX) + 1), color16Hi, combinedHiCompare) ); _mm_storeu_si128( (v128u8 *)(prioTab + frameX), _mm_blendv_epi8(prioTabVec8, prioVec8, combinedCompare) ); if (!ISDEBUGRENDER) { _mm_storeu_si128( (v128u8 *)(dst_alpha + frameX), _mm_blendv_epi8(_mm_loadu_si128((v128u8 *)(dst_alpha + frameX)), _mm_set1_epi8(spriteAlpha + 1), combinedCompare) ); _mm_storeu_si128( (v128u8 *)(typeTab + frameX), _mm_blendv_epi8(_mm_loadu_si128((v128u8 *)(typeTab + frameX)), _mm_set1_epi8(OBJMode_Bitmap), combinedCompare) ); _mm_storeu_si128( (v128u8 *)(this->_sprNum + frameX), _mm_blendv_epi8(_mm_loadu_si128((v128u8 *)(this->_sprNum + frameX)), _mm_set1_epi8(spriteNum), combinedCompare) ); } } return i; } void GPUEngineBase::_PerformWindowTestingNative(GPUEngineCompositorInfo &compInfo, const size_t layerID, const u8 *__restrict win0, const u8 *__restrict win1, const u8 *__restrict winObj, u8 *__restrict didPassWindowTestNative, u8 *__restrict enableColorEffectNative) { const v128u8 *__restrict win0Ptr = (const v128u8 *__restrict)win0; const v128u8 *__restrict win1Ptr = (const v128u8 *__restrict)win1; const v128u8 *__restrict winObjPtr = (const v128u8 *__restrict)winObj; v128u8 *__restrict didPassWindowTestNativePtr = (v128u8 *__restrict)didPassWindowTestNative; v128u8 *__restrict enableColorEffectNativePtr = (v128u8 *__restrict)enableColorEffectNative; __m128i didPassWindowTest; __m128i enableColorEffect; __m128i win0HandledMask; __m128i win1HandledMask; __m128i winOBJHandledMask; __m128i winOUTHandledMask; for (size_t i = 0; i < GPU_FRAMEBUFFER_NATIVE_WIDTH/sizeof(v128u8); i++) { didPassWindowTest = _mm_setzero_si128(); enableColorEffect = _mm_setzero_si128(); win0HandledMask = _mm_setzero_si128(); win1HandledMask = _mm_setzero_si128(); winOBJHandledMask = _mm_setzero_si128(); // Window 0 has the highest priority, so always check this first. if (win0Ptr != NULL) { const v128u8 win0Enable = _mm_set1_epi8(compInfo.renderState.WIN0_enable[layerID]); const v128u8 win0Effect = _mm_set1_epi8(compInfo.renderState.WIN0_enable[WINDOWCONTROL_EFFECTFLAG]); win0HandledMask = _mm_cmpeq_epi8(_mm_load_si128(win0Ptr + i), _mm_set1_epi8(1)); didPassWindowTest = _mm_and_si128(win0HandledMask, win0Enable); enableColorEffect = _mm_and_si128(win0HandledMask, win0Effect); } // Window 1 has medium priority, and is checked after Window 0. if (win1Ptr != NULL) { const v128u8 win1Enable = _mm_set1_epi8(compInfo.renderState.WIN1_enable[layerID]); const v128u8 win1Effect = _mm_set1_epi8(compInfo.renderState.WIN1_enable[WINDOWCONTROL_EFFECTFLAG]); win1HandledMask = _mm_andnot_si128(win0HandledMask, _mm_cmpeq_epi8(_mm_load_si128(win1Ptr + i), _mm_set1_epi8(1))); didPassWindowTest = _mm_blendv_epi8(didPassWindowTest, win1Enable, win1HandledMask); enableColorEffect = _mm_blendv_epi8(enableColorEffect, win1Effect, win1HandledMask); } // Window OBJ has low priority, and is checked after both Window 0 and Window 1. if (winObjPtr != NULL) { const v128u8 winObjEnable = _mm_set1_epi8(compInfo.renderState.WINOBJ_enable[layerID]); const v128u8 winObjEffect = _mm_set1_epi8(compInfo.renderState.WINOBJ_enable[WINDOWCONTROL_EFFECTFLAG]); winOBJHandledMask = _mm_andnot_si128( _mm_or_si128(win0HandledMask, win1HandledMask), _mm_cmpeq_epi8(_mm_load_si128(winObjPtr + i), _mm_set1_epi8(1)) ); didPassWindowTest = _mm_blendv_epi8(didPassWindowTest, winObjEnable, winOBJHandledMask); enableColorEffect = _mm_blendv_epi8(enableColorEffect, winObjEffect, winOBJHandledMask); } // If the pixel isn't inside any windows, then the pixel is outside, and therefore uses the WINOUT flags. // This has the lowest priority, and is always checked last. const v128u8 winOutEnable = _mm_set1_epi8(compInfo.renderState.WINOUT_enable[layerID]); const v128u8 winOutEffect = _mm_set1_epi8(compInfo.renderState.WINOUT_enable[WINDOWCONTROL_EFFECTFLAG]); winOUTHandledMask = _mm_xor_si128( _mm_or_si128(win0HandledMask, _mm_or_si128(win1HandledMask, winOBJHandledMask)), _mm_set1_epi32(0xFFFFFFFF) ); didPassWindowTest = _mm_blendv_epi8(didPassWindowTest, winOutEnable, winOUTHandledMask); enableColorEffect = _mm_blendv_epi8(enableColorEffect, winOutEffect, winOUTHandledMask); _mm_store_si128(didPassWindowTestNativePtr + i, didPassWindowTest); _mm_store_si128(enableColorEffectNativePtr + i, enableColorEffect); } } template <GPUCompositorMode COMPOSITORMODE, NDSColorFormat OUTPUTFORMAT, bool WILLPERFORMWINDOWTEST> size_t GPUEngineA::_RenderLine_Layer3D_LoopOp(GPUEngineCompositorInfo &compInfo, const u8 *__restrict windowTestPtr, const u8 *__restrict colorEffectEnablePtr, const Color4u8 *__restrict srcLinePtr) { static const size_t step = sizeof(v128u8); const size_t ssePixCount = (compInfo.line.pixelCount - (compInfo.line.pixelCount % step)); const v128u16 evy16 = _mm_set1_epi16(compInfo.renderState.blendEVY); const v128u8 srcLayerID = _mm_set1_epi8(compInfo.renderState.selectedLayerID); const v128u8 srcEffectEnableMask = _mm_set1_epi8(compInfo.renderState.srcEffectEnable[GPULayerID_BG0]); const v128u8 dstBlendEnableMaskLUT = (COMPOSITORMODE == GPUCompositorMode_Unknown) ? _mm_load_si128((v128u8 *)compInfo.renderState.dstBlendEnableVecLookup) : _mm_setzero_si128(); size_t i = 0; for (; i < ssePixCount; i+=step, srcLinePtr+=step, compInfo.target.xCustom+=step, compInfo.target.lineColor16+=step, compInfo.target.lineColor32+=step, compInfo.target.lineLayerID+=step) { if (compInfo.target.xCustom >= compInfo.line.widthCustom) { compInfo.target.xCustom -= compInfo.line.widthCustom; } // Determine which pixels pass by doing the window test and the alpha test. v128u8 passMask8; int passMaskValue; if (WILLPERFORMWINDOWTEST) { // Do the window test. passMask8 = _mm_load_si128((v128u8 *)(windowTestPtr + compInfo.target.xCustom)); // If none of the pixels within the vector pass, then reject them all at once. passMaskValue = _mm_movemask_epi8(passMask8); if (passMaskValue == 0) { continue; } } else { passMask8 = _mm_set1_epi8(0xFF); passMaskValue = 0xFFFF; } const v128u32 src[4] = { _mm_load_si128((v128u32 *)srcLinePtr + 0), _mm_load_si128((v128u32 *)srcLinePtr + 1), _mm_load_si128((v128u32 *)srcLinePtr + 2), _mm_load_si128((v128u32 *)srcLinePtr + 3) }; // Do the alpha test. Pixels with an alpha value of 0 are rejected. const v128u32 srcAlpha = _mm_packs_epi16( _mm_packs_epi32(_mm_srli_epi32(src[0], 24), _mm_srli_epi32(src[1], 24)), _mm_packs_epi32(_mm_srli_epi32(src[2], 24), _mm_srli_epi32(src[3], 24)) ); passMask8 = _mm_andnot_si128(_mm_cmpeq_epi8(srcAlpha, _mm_setzero_si128()), passMask8); // If none of the pixels within the vector pass, then reject them all at once. passMaskValue = _mm_movemask_epi8(passMask8); if (passMaskValue == 0) { continue; } // Write out the pixels. const bool didAllPixelsPass = (passMaskValue == 0xFFFF); pixelop_vec.Composite32<COMPOSITORMODE, OUTPUTFORMAT, GPULayerType_3D, WILLPERFORMWINDOWTEST>(compInfo, didAllPixelsPass, passMask8, evy16, srcLayerID, src[3], src[2], src[1], src[0], srcEffectEnableMask, dstBlendEnableMaskLUT, colorEffectEnablePtr + compInfo.target.xCustom, NULL, NULL); } return i; } template <NDSColorFormat OUTPUTFORMAT> size_t GPUEngineA::_RenderLine_DispCapture_Blend_VecLoop(const void *srcA, const void *srcB, void *dst, const u8 blendEVA, const u8 blendEVB, const size_t length) { const v128u16 blendEVA_vec = _mm_set1_epi16(blendEVA); const v128u16 blendEVB_vec = _mm_set1_epi16(blendEVB); __m128i srcA_vec; __m128i srcB_vec; __m128i dstColor; #ifdef ENABLE_SSSE3 const v128u8 blendAB = _mm_or_si128( blendEVA_vec, _mm_slli_epi16(blendEVB_vec, 8) ); #endif size_t i = 0; const size_t vecCount = (OUTPUTFORMAT == NDSColorFormat_BGR888_Rev) ? length * sizeof(u32) / sizeof(__m128i) : length * sizeof(u16) / sizeof(__m128i); for (; i < vecCount; i++) { srcA_vec = _mm_load_si128((__m128i *)srcA + i); srcB_vec = _mm_load_si128((__m128i *)srcB + i); if (OUTPUTFORMAT == NDSColorFormat_BGR888_Rev) { // Get color masks based on if the alpha value is 0. Colors with an alpha value // equal to 0 are rejected. v128u32 srcA_alpha = _mm_and_si128(srcA_vec, _mm_set1_epi32(0xFF000000)); v128u32 srcB_alpha = _mm_and_si128(srcB_vec, _mm_set1_epi32(0xFF000000)); v128u32 srcA_masked = _mm_andnot_si128(_mm_cmpeq_epi32(srcA_alpha, _mm_setzero_si128()), srcA_vec); v128u32 srcB_masked = _mm_andnot_si128(_mm_cmpeq_epi32(srcB_alpha, _mm_setzero_si128()), srcB_vec); v128u16 outColorLo; v128u16 outColorHi; // Temporarily convert the color component values from 8-bit to 16-bit, and then // do the blend calculation. #ifdef ENABLE_SSSE3 outColorLo = _mm_unpacklo_epi8(srcA_masked, srcB_masked); outColorHi = _mm_unpackhi_epi8(srcA_masked, srcB_masked); outColorLo = _mm_maddubs_epi16(outColorLo, blendAB); outColorHi = _mm_maddubs_epi16(outColorHi, blendAB); #else v128u16 srcA_maskedLo = _mm_unpacklo_epi8(srcA_masked, _mm_setzero_si128()); v128u16 srcA_maskedHi = _mm_unpackhi_epi8(srcA_masked, _mm_setzero_si128()); v128u16 srcB_maskedLo = _mm_unpacklo_epi8(srcB_masked, _mm_setzero_si128()); v128u16 srcB_maskedHi = _mm_unpackhi_epi8(srcB_masked, _mm_setzero_si128()); outColorLo = _mm_add_epi16( _mm_mullo_epi16(srcA_maskedLo, blendEVA_vec), _mm_mullo_epi16(srcB_maskedLo, blendEVB_vec) ); outColorHi = _mm_add_epi16( _mm_mullo_epi16(srcA_maskedHi, blendEVA_vec), _mm_mullo_epi16(srcB_maskedHi, blendEVB_vec) ); #endif outColorLo = _mm_srli_epi16(outColorLo, 4); outColorHi = _mm_srli_epi16(outColorHi, 4); // Convert the color components back from 16-bit to 8-bit using a saturated pack. dstColor = _mm_packus_epi16(outColorLo, outColorHi); // Add the alpha components back in. dstColor = _mm_and_si128(dstColor, _mm_set1_epi32(0x00FFFFFF)); dstColor = _mm_or_si128(dstColor, srcA_alpha); dstColor = _mm_or_si128(dstColor, srcB_alpha); } else { v128u16 srcA_alpha = _mm_and_si128(srcA_vec, _mm_set1_epi16(0x8000)); v128u16 srcB_alpha = _mm_and_si128(srcB_vec, _mm_set1_epi16(0x8000)); v128u16 srcA_masked = _mm_andnot_si128( _mm_cmpeq_epi16(srcA_alpha, _mm_setzero_si128()), srcA_vec ); v128u16 srcB_masked = _mm_andnot_si128( _mm_cmpeq_epi16(srcB_alpha, _mm_setzero_si128()), srcB_vec ); v128u16 colorBitMask = _mm_set1_epi16(0x001F); v128u16 ra; v128u16 ga; v128u16 ba; #ifdef ENABLE_SSSE3 ra = _mm_or_si128( _mm_and_si128( srcA_masked, colorBitMask), _mm_and_si128(_mm_slli_epi16(srcB_masked, 8), _mm_set1_epi16(0x1F00)) ); ga = _mm_or_si128( _mm_and_si128(_mm_srli_epi16(srcA_masked, 5), colorBitMask), _mm_and_si128(_mm_slli_epi16(srcB_masked, 3), _mm_set1_epi16(0x1F00)) ); ba = _mm_or_si128( _mm_and_si128(_mm_srli_epi16(srcA_masked, 10), colorBitMask), _mm_and_si128(_mm_srli_epi16(srcB_masked, 2), _mm_set1_epi16(0x1F00)) ); ra = _mm_maddubs_epi16(ra, blendAB); ga = _mm_maddubs_epi16(ga, blendAB); ba = _mm_maddubs_epi16(ba, blendAB); #else ra = _mm_and_si128( srcA_masked, colorBitMask); ga = _mm_and_si128(_mm_srli_epi16(srcA_masked, 5), colorBitMask); ba = _mm_and_si128(_mm_srli_epi16(srcA_masked, 10), colorBitMask); v128u16 rb = _mm_and_si128( srcB_masked, colorBitMask); v128u16 gb = _mm_and_si128(_mm_srli_epi16(srcB_masked, 5), colorBitMask); v128u16 bb = _mm_and_si128(_mm_srli_epi16(srcB_masked, 10), colorBitMask); ra = _mm_add_epi16( _mm_mullo_epi16(ra, blendEVA_vec), _mm_mullo_epi16(rb, blendEVB_vec) ); ga = _mm_add_epi16( _mm_mullo_epi16(ga, blendEVA_vec), _mm_mullo_epi16(gb, blendEVB_vec) ); ba = _mm_add_epi16( _mm_mullo_epi16(ba, blendEVA_vec), _mm_mullo_epi16(bb, blendEVB_vec) ); #endif ra = _mm_srli_epi16(ra, 4); ga = _mm_srli_epi16(ga, 4); ba = _mm_srli_epi16(ba, 4); ra = _mm_min_epi16(ra, colorBitMask); ga = _mm_min_epi16(ga, colorBitMask); ba = _mm_min_epi16(ba, colorBitMask); dstColor = _mm_or_si128( _mm_or_si128(_mm_or_si128(ra, _mm_slli_epi16(ga, 5)), _mm_slli_epi16(ba, 10)), _mm_or_si128(srcA_alpha, srcB_alpha) ); } _mm_store_si128((__m128i *)dst + i, dstColor); } return (OUTPUTFORMAT == NDSColorFormat_BGR888_Rev) ? i * sizeof(v128u32) / sizeof(u32) : i * sizeof(v128u16) / sizeof(u16); } template <NDSColorFormat OUTPUTFORMAT> size_t NDSDisplay::_ApplyMasterBrightnessUp_LoopOp(void *__restrict dst, const size_t pixCount, const u8 intensityClamped) { size_t i = 0; const size_t vecCount = (OUTPUTFORMAT == NDSColorFormat_BGR888_Rev) ? pixCount * sizeof(u32) / sizeof(v128u32) : pixCount * sizeof(u16) / sizeof(v128u16); for (; i < vecCount; i++) { if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { v128u16 dstColor = _mm_load_si128((v128u16 *)dst + i); dstColor = colorop_vec.increase(dstColor, _mm_set1_epi16(intensityClamped)); dstColor = _mm_or_si128(dstColor, _mm_set1_epi16(0x8000)); _mm_store_si128((v128u16 *)dst + i, dstColor); } else { v128u32 dstColor = _mm_load_si128((v128u32 *)dst + i); dstColor = colorop_vec.increase<OUTPUTFORMAT>(dstColor, _mm_set1_epi16(intensityClamped)); dstColor = _mm_or_si128(dstColor, (OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? _mm_set1_epi32(0x1F000000) : _mm_set1_epi32(0xFF000000)); _mm_store_si128((v128u32 *)dst + i, dstColor); } } return (i * sizeof(__m128i)); } template <NDSColorFormat OUTPUTFORMAT> size_t NDSDisplay::_ApplyMasterBrightnessDown_LoopOp(void *__restrict dst, const size_t pixCount, const u8 intensityClamped) { size_t i = 0; const size_t vecCount = (OUTPUTFORMAT == NDSColorFormat_BGR888_Rev) ? pixCount * sizeof(u32) / sizeof(v128u32) : pixCount * sizeof(u16) / sizeof(v128u16); for (; i < vecCount; i++) { if (OUTPUTFORMAT == NDSColorFormat_BGR555_Rev) { v128u16 dstColor = _mm_load_si128((v128u16 *)dst + i); dstColor = colorop_vec.decrease(dstColor, _mm_set1_epi16(intensityClamped)); dstColor = _mm_or_si128(dstColor, _mm_set1_epi16(0x8000)); _mm_store_si128((v128u16 *)dst + i, dstColor); } else { v128u32 dstColor = _mm_load_si128((v128u32 *)dst + i); dstColor = colorop_vec.decrease<OUTPUTFORMAT>(dstColor, _mm_set1_epi16(intensityClamped)); dstColor = _mm_or_si128(dstColor, (OUTPUTFORMAT == NDSColorFormat_BGR666_Rev) ? _mm_set1_epi32(0x1F000000) : _mm_set1_epi32(0xFF000000)); _mm_store_si128((v128u32 *)dst + i, dstColor); } } return (i * sizeof(__m128i)); } #endif // ENABLE_SSE2 ```
```html <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "path_to_url"> <html xmlns="path_to_url" xml:lang="en" lang="en"> <!-- file LICENSE_1_0.txt or copy at path_to_url --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.3.6: path_to_url" /> <title>THE BOOST MPL LIBRARY: Metafunction Composition</title> <link rel="stylesheet" href="../style.css" type="text/css" /> </head> <body class="docframe"> <table class="header"><tr class="header"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./partial-metafunction.html" class="navigation-link">Prev</a>&nbsp;<a href="./lambda-details.html" class="navigation-link">Next</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./partial-metafunction.html" class="navigation-link">Back</a>&nbsp;Along</span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./more-lambda-capabilities.html" class="navigation-link">Up</a>&nbsp;<a href="../index.html" class="navigation-link">Home</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./tutorial_toc.html" class="navigation-link">Full TOC</a></span></td> <td class="header-group page-location"><a href="../index.html" class="navigation-link">Front Page</a> / <a href="./tutorial-metafunctions.html" class="navigation-link">Tutorial: Metafunctions and Higher-Order Metaprogramming</a> / <a href="./more-lambda-capabilities.html" class="navigation-link">More Lambda Capabilities</a> / <a href="./metafunction-composition.html" class="navigation-link">Metafunction Composition</a></td> </tr></table><div class="header-separator"></div> <div class="section" id="metafunction-composition"> <h1><a class="toc-backref" href="./more-lambda-capabilities.html#id53" name="metafunction-composition">Metafunction Composition</a></h1> <p>Lambda expressions can also be used to assemble more interesting computations from simple metafunctions. For example, the following expression, which multiplies the sum of two numbers by their difference, is a <strong>composition</strong> of the three metafunctions <tt class="literal"><span class="pre">multiplies</span></tt>, <tt class="literal"><span class="pre">plus</span></tt>, and <tt class="literal"><span class="pre">minus</span></tt>:</p> <pre class="literal-block"> mpl::multiplies&lt;mpl::plus&lt;_1,_2&gt;, mpl::minus&lt;_1,_2&gt; &gt; </pre> <!-- @ example.wrap(apply_test[0], ', mpl::int_<5>,mpl::int_<3>' + apply_test[1] % 16) # Can't exactly justify this yet, but there's no way to get # it into the text prefix += ['#include <boost/mpl/multiplies.hpp>'] compile() --> <p>When evaluating a lambda expression, MPL checks to see if any of its arguments are themselves lambda expressions, and evaluates each one that it finds. The results of these inner evaluations are substituted into the outer expression before it is evaluated.</p> </div> <div class="footer-separator"></div> <table class="footer"><tr class="footer"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./partial-metafunction.html" class="navigation-link">Prev</a>&nbsp;<a href="./lambda-details.html" class="navigation-link">Next</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./partial-metafunction.html" class="navigation-link">Back</a>&nbsp;Along</span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./more-lambda-capabilities.html" class="navigation-link">Up</a>&nbsp;<a href="../index.html" class="navigation-link">Home</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./tutorial_toc.html" class="navigation-link">Full TOC</a></span></td> </tr></table></body> </html> ```
```makefile ################################################################################ # # qt5enginio # ################################################################################ QT5ENGINIO_VERSION = $(QT5_VERSION) QT5ENGINIO_SITE = $(QT5_SITE) QT5ENGINIO_SOURCE = qtenginio-opensource-src-$(QT5ENGINIO_VERSION).tar.xz QT5ENGINIO_DEPENDENCIES = openssl qt5base QT5ENGINIO_INSTALL_STAGING = YES ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y) QT5ENGINIO_LICENSE = LGPLv2.1 or GPLv3.0 QT5ENGINIO_LICENSE_FILES = LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt else QT5ENGINIO_LICENSE = Commercial license QT5ENGINIO_REDISTRIBUTE = NO endif ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y) QT5ENGINIO_DEPENDENCIES += qt5declarative endif define QT5ENGINIO_CONFIGURE_CMDS (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake) endef define QT5ENGINIO_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) endef define QT5ENGINIO_INSTALL_STAGING_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install $(QT5_LA_PRL_FILES_FIXUP) endef ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y) define QT5ENGINIO_INSTALL_TARGET_QMLS cp -dpfr $(STAGING_DIR)/usr/qml/Enginio $(TARGET_DIR)/usr/qml/ endef endif ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y) define QT5ENGINIO_INSTALL_TARGET_EXAMPLES cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/enginio $(TARGET_DIR)/usr/lib/qt/examples/ endef endif ifneq ($(BR2_STATIC_LIBS),y) define QT5ENGINIO_INSTALL_TARGET_LIBS cp -dpf $(STAGING_DIR)/usr/lib/libEnginio.so.* $(TARGET_DIR)/usr/lib endef endif define QT5ENGINIO_INSTALL_TARGET_CMDS $(QT5ENGINIO_INSTALL_TARGET_LIBS) $(QT5ENGINIO_INSTALL_TARGET_QMLS) $(QT5ENGINIO_INSTALL_TARGET_EXAMPLES) endef $(eval $(generic-package)) ```
The 2007 Fort Worth mayoral election took place on May 12, 2007, to elect the Mayor of Fort Worth, Texas. The election was held concurrently with various other local elections, and was officially nonpartisan. The election saw the reelection of incumbent mayor Mike Moncrief. The mayoral term in Fort Worth is two years. If no candidate received a majority of the vote in the general election, a runoff would have been held. General election Results References 2007 Texas elections 2007 United States mayoral elections 2007 Non-partisan elections
```smalltalk using System; using Volo.Abp.MultiTenancy; namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling; [Serializable] [IgnoreMultiTenancy] public class InMemoryFileInfoCacheItem { public InMemoryFileInfoCacheItem(string dynamicPath, byte[] fileContent, string name) { DynamicPath = dynamicPath; Name = name; FileContent = fileContent; } public string DynamicPath { get; set; } public string Name { get; set; } public byte[] FileContent { get; set; } } ```
```java /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ package fastdex.build.lib.aapt; /** * reflect the object property and invoke the method * * @author Dandelion * @since 2008-04-?? */ public final class ObjectUtil { private ObjectUtil() { } /** * when object is null return blank,when the object is not null it return object; * * @param object * @return Object */ public static Object nullToBlank(Object object) { if (object == null) { return StringUtil.BLANK; } return object; } /** * equal * * @param a * @param b * @return boolean */ public static boolean equal(Object a, Object b) { return a == b || (a != null && a.equals(b)); } /** * field name to method name * * @param methodPrefix * @param fieldName * @return methodName */ public static String fieldNameToMethodName(String methodPrefix, String fieldName) { return fieldNameToMethodName(methodPrefix, fieldName, false); } /** * field name to method name * * @param methodPrefix * @param fieldName * @param ignoreFirstLetterCase * @return methodName */ public static String fieldNameToMethodName(String methodPrefix, String fieldName, boolean ignoreFirstLetterCase) { String methodName = null; if (fieldName != null && fieldName.length() > 0) { if (ignoreFirstLetterCase) { methodName = methodPrefix + fieldName; } else { methodName = methodPrefix + fieldName.substring(0, 1).toUpperCase() + fieldName.substring(1); } } else { methodName = methodPrefix; } return methodName; } /** * method name to field name * * @param methodPrefix * @param methodName * @return fieldName */ public static String methodNameToFieldName(String methodPrefix, String methodName) { return methodNameToFieldName(methodPrefix, methodName, false); } /** * method name to field name * * @param methodPrefix * @param methodName * @param ignoreFirstLetterCase * @return fieldName */ public static String methodNameToFieldName(String methodPrefix, String methodName, boolean ignoreFirstLetterCase) { String fieldName = null; if (methodName != null && methodName.length() > methodPrefix.length()) { int front = methodPrefix.length(); if (ignoreFirstLetterCase) { fieldName = methodName.substring(front, front + 1) + methodName.substring(front + 1); } else { fieldName = methodName.substring(front, front + 1).toLowerCase() + methodName.substring(front + 1); } } return fieldName; } } ```
Out of pocket may refer to: Out-of-pocket expenses "Out of Pocket", a song on Mayer Hawthorne's 2016 album Man About Town Out of pocket, a slang term meaning crazy, wild, or extreme.
```ruby require_relative '../../spec_helper' describe :rational_plus_rat, shared: true do it "returns the result of subtracting other from self as a Rational" do (Rational(3, 4) + Rational(0, 1)).should eql(Rational(3, 4)) (Rational(3, 4) + Rational(1, 4)).should eql(Rational(1, 1)) (Rational(3, 4) + Rational(2, 1)).should eql(Rational(11, 4)) end end describe :rational_plus_int, shared: true do it "returns the result of subtracting other from self as a Rational" do (Rational(3, 4) + 1).should eql(Rational(7, 4)) (Rational(3, 4) + 2).should eql(Rational(11, 4)) end end describe :rational_plus_float, shared: true do it "returns the result of subtracting other from self as a Float" do (Rational(3, 4) + 0.2).should eql(0.95) (Rational(3, 4) + 2.5).should eql(3.25) end end describe :rational_plus, shared: true do it "calls #coerce on the passed argument with self" do rational = Rational(3, 4) obj = mock("Object") obj.should_receive(:coerce).with(rational).and_return([1, 2]) rational + obj end it "calls #+ on the coerced Rational with the coerced Object" do rational = Rational(3, 4) coerced_rational = mock("Coerced Rational") coerced_rational.should_receive(:+).and_return(:result) coerced_obj = mock("Coerced Object") obj = mock("Object") obj.should_receive(:coerce).and_return([coerced_rational, coerced_obj]) (rational + obj).should == :result end end ```
```objective-c // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_ARGUMENTS_H_ #define V8_ARGUMENTS_H_ #include "src/allocation.h" #include "src/objects-inl.h" #include "src/tracing/trace-event.h" namespace v8 { namespace internal { // Arguments provides access to runtime call parameters. // // It uses the fact that the instance fields of Arguments // (length_, arguments_) are "overlayed" with the parameters // (no. of parameters, and the parameter pointer) passed so // that inside the C++ function, the parameters passed can // be accessed conveniently: // // Object* Runtime_function(Arguments args) { // ... use args[i] here ... // } // // Note that length_ (whose value is in the integer range) is defined // as intptr_t to provide endian-neutrality on 64-bit archs. class Arguments BASE_EMBEDDED { public: Arguments(int length, Object** arguments) : length_(length), arguments_(arguments) { DCHECK_GE(length_, 0); } Object*& operator[] (int index) { DCHECK_GE(index, 0); DCHECK_LT(static_cast<uint32_t>(index), static_cast<uint32_t>(length_)); return *(reinterpret_cast<Object**>(reinterpret_cast<intptr_t>(arguments_) - index * kPointerSize)); } template <class S> Handle<S> at(int index) { Object** value = &((*this)[index]); // This cast checks that the object we're accessing does indeed have the // expected type. S::cast(*value); return Handle<S>(reinterpret_cast<S**>(value)); } int smi_at(int index) { return Smi::cast((*this)[index])->value(); } double number_at(int index) { return (*this)[index]->Number(); } // Get the total number of arguments including the receiver. int length() const { return static_cast<int>(length_); } Object** arguments() { return arguments_; } Object** lowest_address() { return &this->operator[](length() - 1); } Object** highest_address() { return &this->operator[](0); } private: intptr_t length_; Object** arguments_; }; double ClobberDoubleRegisters(double x1, double x2, double x3, double x4); #ifdef DEBUG #define CLOBBER_DOUBLE_REGISTERS() ClobberDoubleRegisters(1, 2, 3, 4); #else #define CLOBBER_DOUBLE_REGISTERS() #endif // TODO(cbruni): add global flag to check whether any tracing events have been // enabled. #define RUNTIME_FUNCTION_RETURNS_TYPE(Type, Name) \ static INLINE(Type __RT_impl_##Name(Arguments args, Isolate* isolate)); \ \ V8_NOINLINE static Type Stats_##Name(int args_length, Object** args_object, \ Isolate* isolate) { \ RuntimeCallTimerScope timer(isolate, &RuntimeCallStats::Name); \ TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.runtime"), \ "V8.Runtime_" #Name); \ Arguments args(args_length, args_object); \ return __RT_impl_##Name(args, isolate); \ } \ \ Type Name(int args_length, Object** args_object, Isolate* isolate) { \ DCHECK(isolate->context() == nullptr || isolate->context()->IsContext()); \ CLOBBER_DOUBLE_REGISTERS(); \ if (V8_UNLIKELY(FLAG_runtime_stats)) { \ return Stats_##Name(args_length, args_object, isolate); \ } \ Arguments args(args_length, args_object); \ return __RT_impl_##Name(args, isolate); \ } \ \ static Type __RT_impl_##Name(Arguments args, Isolate* isolate) #define RUNTIME_FUNCTION(Name) RUNTIME_FUNCTION_RETURNS_TYPE(Object*, Name) #define RUNTIME_FUNCTION_RETURN_PAIR(Name) \ RUNTIME_FUNCTION_RETURNS_TYPE(ObjectPair, Name) #define RUNTIME_FUNCTION_RETURN_TRIPLE(Name) \ RUNTIME_FUNCTION_RETURNS_TYPE(ObjectTriple, Name) } // namespace internal } // namespace v8 #endif // V8_ARGUMENTS_H_ ```
```css .joint-paper-background { background: #FFFFFF; } .ice-bar { color: #333; background: #f5f6f7; border-bottom: 1px solid #e7e7e7; } .footer { color: #333; background: #f5f6f7; border-top: 1px solid #d5dadd; } .dropdown a { color: #333 !important; } .navbar-nav>.open>a { background: #e7e7e7 !important; } .dropdown-menu>li>a:hover { background: #eee !important; color: #333; } .dropdown-menu>li>a:focus { background: #eee !important; color: #333; } .dropdown:active { background: #eee; } .dropdown-menu { background: #f5f6f7 !important; } .dropdown-menu>li>a { background: #f5f6f7; color: #333; } .dropdown-submenu { background: #f5f6f7; } .divider { background: #e5e5e5 !important; } .breadcrumbs-container { padding-left: 5px; } .breadcrumb { background: #f5f6f7; } .breadcrumb>.active { color: #333; } .breadcrumb span { color: #333; } .breadcrumb a { color: #007aff; } .info { color: #656565; background: #fff; } .info-block .info-render { color: #656565;; } .markdown-body { color: #24292e !important; } .markdown-body a { color: #0366d6; text-decoration: none; } .markdown-body table th { background: #efefef; border: 1px solid #aaa; } .markdown-body table td { background: #fff; border: 1px solid #aaa; } .markdown-body pre { color: #24292e; background: #f6f8fa; } .read-only { color: #444; background: #fb959e; } .back-button { color: #007aff; background: #f6f8fa; } .edit-button { background: rgba(0,0,0,0); } .io-block .io-virtual-content { background: #E2FBC9; } .io-block .io-virtual-content .header label { color: #333 !important; font-weight: bold !important; } .sk-cube-grid .sk-cube { background-color: #333; } .spinner-wrapper--bg { background-color: #7ccff4; } /*ICM*/ .icm-menu-button::before { background: linear-gradient(#7ccff4 20%, transparent 20%, transparent 40%, #7ccff4 40%, #7ccff4 60%, transparent 60%, transparent 80%, #7ccff4 80%) } .icm-menu { background-color: #f5f6f7; } .icm-morph-shape { fill: #f5f6f7; } .icm-icon-list span{ color: #333; } /*END_ICM*/ .ajs-dialog { background: #fff !important; } .ajs-body { color: #000 !important; } .ajs-footer { background: #fff !important; } .ajs-button { color: #333 !important; background: #fff !important; border-radius: 4px; } .ajs-ok{ color: #3593d2 !important; } .ajs-input, .form-control { color: #333; background: #fff !important; border: 1px solid rgb(118, 118, 118) !important; } /*NOK*/ .generic-block .generic-content { background: #C0DFEB; border: 1px solid #777; } .io-block .io-fpga-content { background: #FBFBC9; border: 1px solid #777 !important; } .select2-container--default .select2-selection--single { border: 1px solid #aaa; border-radius: 4px; background-color: #fff; } .select2-container--default .select2-selection--single .select2-selection__rendered { color: #333; } .select2-selection__clear { color: #777; } /*NOK*/ .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: #777 transparent transparent transparent; } .constant-block .constant-content input { border: 1px solid #777; background-color: #fff; } .io-block .io-fpga-content .header label{ text-transform:uppercase; } .memory-block .memory-content { background: #FBFBC9; border: 1px solid #777; } .constant-block .constant-content{ background: #FBFBC9; border: 1px solid #777; } /*NOK*/ .config-block { background: #FBFBC9 !important; } .code-block .code-content { background: #C0DFEB; border: 1px solid #777; } .info-block .info-content { background: #DDD; border: 1px solid #777; } .io-block .io-virtual-content { border: 1px solid #777; } .io-block .io-virtual-content { border: 1px solid #777 !important; background-size: cover !important; border-radius:5px !important; mix-blend-mode: screen; } .io-block .io-virtual-content .header { margin-top: 12px; } .highlight{ border: 6px solid rgba(255,0,0,1) !important; border-radius: 13px; width: 120px; height: 64px !important; position: relative; top: -25px; padding-top: 19px !important; left: -13px } .greyedout{ opacity: 0.2; } /* Label-Finder */ .lFinder-popup{ display: block; opacity: 1; position: fixed; width: 500px; height: 42px; background: #f5f6f7; top: 40px; left: 50%; transform: translateX(-50%); z-index: 999; border: 1px solid rgba(220,220,220,1); border-radius: 4px; box-shadow: 0 6px 12px rgb(0 0 0 / 18%); animation: fadeIn 0.2s ease; } .lifted{ opacity: 1; top: -100px; animation: fadeOut 0.2s ease; } @keyframes fadeIn{ 0% {opacity: 0; top: -100px;} 100% {opacity: 1; top: 42px; } } @keyframes fadeOut{ 0% {opacity: 1; top: 42px;} 100% {opacity: 0; top: -100px; } } .lFinder-advanced--toggle { position: absolute; width: 8px; height: 30px; top: 5px; left: 10px; content: url(/resources/images/icons/light_chevron-right.svg); opacity: 0.3; } .lFinder-advanced--toggle:hover{ opacity: 1; } .lFinder-advanced--toggle.on{ transform: rotate(90deg); } .lFinder-case--option { position: absolute; width: 20px; height: 30px; top: 5px; left: 50px; content: url(/resources/images/icons/light_case-sensitive.svg); opacity: 0.3; } .lFinder-case--option.on { opacity: 1; } .lFinder-exact--option { position: absolute; width: 15px; height: 30px; top: 5px; left: 85px; content: url(/resources/images/icons/light_exact-match.svg); opacity: 0.3; } .lFinder-exact--option.on { opacity: 1; } .lFinder-field { position: absolute; width: 155px; height: 30px; top: 5px; left: 115px; background: rgba(255,255,255,1); border: 1px solid #eee; border-radius: 4px; color: rgba(0,0,0,0.75); padding-left: 8px; line-height: 30px; padding-right: 50px; } .lFinder-field:focus{ border-radius: 4px; outline: none; } .lFinder-field::placeholder{ color: rgba(0,0,0,0.25); } .items-found { position: absolute; line-height: 30px; top: 5px; left: 230px; color: rgba(30,30,30,0.75); } .lFinder-find { position: absolute; width: 100px; height: 30px; left: 360px; top: 5px; text-align: center; line-height: 30px; color: #333; border: 1px solid #eee; border-radius: 4px; opacity: 1; background: #eee0; } .lFinder-find:hover { opacity: 1; background: #eeef; } .lFinder-prev { position: absolute; width: 30px; height: 30px; top: 5px; left: 275px; color: #fff; line-height: 30px; border: 0px solid #fff; border-radius: 4px; text-align: center; opacity: 0.3; background: rgba(220,220,220,0); content: url(/resources/images/icons/light_left-arrow.svg); } .lFinder-prev:hover { opacity: 1; } .lFinder-next { position: absolute; width: 30px; height: 30px; top: 5px; left: 310px; color: #fff; line-height: 30px; border: 0px solid #fff; border-radius: 4px; text-align: center; opacity: 0.3; background: rgba(220,220,220,0); content: url(/resources/images/icons/light_right-arrow.svg); } .lFinder-next:hover { opacity: 1; } .lFinder-close { position: absolute; width: 10px; height: 30px; top: 0px; right: 10px; content: url(/resources/images/icons/light_cross.svg); opacity: 0.3; } .lFinder-close:hover { opacity: 1; } .lFinder-advanced { position: relative; overflow: hidden; width: 500px; height: 0px; top: 45px; left: -1px; background: #f5f6f7; border: 1px solid rgba(220,220,220,1); border-radius: 4px; opacity: 0; box-shadow: 0 6px 12px rgb(0 0 0 / 18%); animation: fadeOut_adv 0.2s ease; } .lFinder-advanced.show{ height: 77px; opacity: 1; animation: fadeIn_adv 0.2s ease; } @keyframes fadeIn_adv{ 0% {opacity: 0; height: 0px;} 100% {opacity: 1; height: 75px; } } @keyframes fadeOut_adv{ 0% {opacity: 1; height: 75px;} 100% {opacity: 0; height: 0px; } } .lFinder-name { position: absolute; width: 100px; height: 30px; left: 10px; top: 5px; color: rgba(30,30,30,0.5); text-align: right; line-height: 30px; } .lFinder-name--field { position: absolute; width: 160px; height: 30px; top: 5px; left: 115px; background: rgba(255,255,255,1); border: 1px solid #eee; border-radius: 4px; color: rgba(0,0,0,0.75); padding-left: 8px; line-height: 30px; padding-right: 8px; } .lFinder-name--field:focus{ border-radius: 4px; outline: none; } .lFinder-color { position: absolute; width: 100px; height: 30px; top: 40px; left: 10px; text-align: right; color: rgba(30,30,30,0.5); line-height: 30px; } .lFinder-color--dropdown{ position: fixed; width: 160px; height: 30px; background: rgba(255,255,255,1); left: 115px; top: 85px; border-radius: 4px; } .lf-dropdown-title{ position: relative; width: 160px; height: 30px; background: rgba(0,0,0,0); border-radius: 4px; line-height: 30px; padding-left: 25px; color: #333; } .lf-selected-color{ position: absolute; width: 10px; height: 10px; left: 8px; top: 10px; border-radius: 5px; border: none !important; } .lf-dropdown-icon{ content: url(/resources/images/icons/light_chevron-right.svg); position: absolute; height: 10px; width: 10px; right: 8px; top: 10px; transform: rotate(90deg); } .lf-dropdown-menu{ width: 160px; height: 0px; position: relative; top: 0px; border-radius: 0 0 4px 4px; background: rgba(255,255,255,1); overflow-y: auto; box-shadow: 0 6px 12px rgb(0 0 0 / 18%); animation: fadeOut_dropdown 0.2s ease; } .lf-dropdown-menu.show{ height: 300px; animation: fadeIn_dropdown 0.2s ease; } @keyframes fadeIn_dropdown{ 0% {opacity: 0; height: 0px;} 100% {opacity: 1; height: 300px; } } @keyframes fadeOut_dropdown{ 0% {opacity: 1; height: 300px;} 100% {opacity: 0; height: 0px; } } .lf-dropdown-option{ position: relative; width: 140px; height: 30px; color: #333; line-height: 30px; padding-left: 25px; border-radius: 4px; } .lf-dropdown-option:hover{ color: #333; background: #eee; } .lf-option-color{ position: absolute; width: 10px; height: 10px; left: 8px; top: 10px; border-radius: 5px; border: none !important; } .lFinder-replace--name { position: absolute; width: 100px; height: 30px; background: rgba(220,220,220,0); opacity: 1; color: #333; line-height: 30px; text-align: center; left: 280px; top: 5px; border-radius: 4px; border: 1px solid #eee; } .lFinder-replace--name:hover{ opacity: 1; background: #eeef; } .lFinder-change--color { position: absolute; width: 100px; height: 30px; background: rgba(220,220,220,0); opacity: 1; color: #333; line-height: 30px; text-align: center; left: 280px; top: 40px; border-radius: 4px; border: 1px solid #eee; } .lFinder-change--color:hover { opacity: 1; background: #eeef; } .lFinder-replace--all { position: absolute; width: 110px; height: 30px; right: 10px; top: 5px; text-align: center; line-height: 30px; color: #333; border: 1px solid #eee; border-radius: 4px; background: rgba(220,220,220,0); opacity: 1; } .lFinder-replace--all:hover { opacity: 1; background: #eeef; } /* color-dropdown in forms panel */ .lb-color--dropdown{ position: relative; width: 510px; height: 40px; top: 0px; left: 5px; text-align: right; color: #333; line-height: 30px; background: rgba(255,255,255,1); border: 1px solid #333; border-radius: 4px; } .lb-dropdown-title{ position: relative; width: 100%; height: 38px; background: rgba(0,0,0,0); border-radius: 4px; line-height: 38px; padding-left: 30px; color: #333; left: 0px; text-align: left; } .lb-selected-color{ position: absolute; width: 10px; height: 10px; left: 10px; top: 14px; border-radius: 5px; border: none !important; } .lb-dropdown-icon{ content: url(/resources/images/icons/light_chevron-right.svg); position: absolute; height: 10px; width: 10px; right: 10px; top: 14px; transform: rotate(90deg); } .lb-dropdown-menu{ width: 100%; height: 0px; /* change to 0px */ position: relative; top: 0px; border-radius: 0 0 4px 4px; background: #fff; overflow-y: auto; box-shadow: 0 6px 12px rgb(0 0 0 / 18%); animation: fadeOut_dropdown 0.2s ease; } .lb-dropdown-menu.show{ height: 300px; animation: fadeIn_dropdown 0.2s ease; } .lb-dropdown-option{ position: relative; width: 100%; height: 30px; color: #333; line-height: 30px; padding-left: 30px; border-radius: 4px; text-align: left; } .lb-dropdown-option:hover{ color: #333; background: #eee; } .lb-option-color{ position: absolute; width: 10px; height: 10px; left: 10px; top: 10px; border-radius: 5px; border: none !important; } /*END MOD_0*/ /* toolbox */ #iceToolbox .title-bar{ position: relative; width: 100%; height: 30px; border-radius: 4px; color: #333; line-height: 26px; padding-left: 10px; } .closeToolbox-button{ position: absolute; width: 10px; height: 10px; right: 8px; content: url(/resources/images/icons/light_cross.svg); top: 8px; text-align: center; line-height: 30px; opacity: 0.3; } .closeToolbox-button:hover{ opacity: 1; } #iceToolbox.opened .dropdown-menu{ margin-top: 25px; } /* Colors */ .color-indianred{ background: rgba(205,92,92,0.6) !important; } .color-red{ background: rgba(255,0,0,0.6) !important; } .color-deeppink{ background: rgba(255,20,147,0.6) !important; } .color-mediumvioletred{ background: rgba(199,21,133,0.6) !important; } .color-coral{ background: rgba(255,127,80,0.6) !important; } .color-orangered{ background: rgba(255,69,0,0.6) !important; } .color-darkorange{ background: rgba(255,140,0,0.6) !important; } .color-gold{ background: rgba(255,215,0,0.6) !important; } .color-yellow{ background: rgba(255,255,0,0.6) !important; } .color-fuchsia{ background: rgba(255,0,255,0.6) !important; } .color-slateblue{ background: rgba(106,90,205,0.6) !important; } .color-greenyellow{ background: rgba(173,255,47,0.6) !important; } .color-springgreen{ background: rgba(0,255,127,0.6) !important; } .color-darkgreen{ background: rgba(0,100,0,0.6) !important; } .color-olivedrab{ background: rgba(107,142,35,0.6)!important; } .color-lightseagreen{ background: rgba(32,178,170,0.6) !important; } .color-turquoise{ background: rgba(64,224,208,0.6) !important; } .color-steelblue{ background: rgba(70,130,180,0.6) !important; } .color-deepskyblue{ background: rgba(0,191,255,0.6) !important; } .color-royalblue{ background: rgba(65,105,225,0.6) !important; } .color-navy{ background: rgba(0,0,128,0.6) !important; } .color-lightgray{ background: rgba(180,180,180,0.6) !important; } .markdown-body pre>code { color:#2ecc71; } .markdown-body pre{ background:#444; border-color:#333; border-radius:5px; } .icon--verify{ display:block; width:100%; height:100%; min-height:100%; background:url(../../images/icons/verify_light.svg) center center; background-repeat: no-repeat; background-size: contain; } .icon--build{ display:block; width:100%; height:100%; min-height:100%; background:url(../../images/icons/build_light.svg) center center; background-repeat: no-repeat; background-size: contain; } .icon--upload{ display:block; width:100%; height:100%; min-height:100%; background:url(../../images/icons/upload_light.svg) center center; background-repeat: no-repeat; background-size: contain; } ```
```smalltalk using DSharpPlus.Commands.Trees; namespace DSharpPlus.Commands.ContextChecks.ParameterChecks; /// <summary> /// Presents information about a parameter check. /// </summary> /// <param name="Parameter">The parameter as represented in the command tree.</param> /// <param name="Value">The processed value of the parameter.</param> public sealed record ParameterCheckInfo(CommandParameter Parameter, object? Value); ```
```javascript var QRErrorCorrectLevel = require('./QRErrorCorrectLevel'); function QRRSBlock(totalCount, dataCount) { this.totalCount = totalCount; this.dataCount = dataCount; } QRRSBlock.RS_BLOCK_TABLE = [ // L // M // Q // H // 1 [1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], // 2 [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], // 3 [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], // 4 [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], // 5 [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], // 6 [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], // 7 [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], // 8 [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], // 9 [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], // 10 [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], // 11 [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], // 12 [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], // 13 [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], // 14 [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], // 15 [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12], // 16 [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], // 17 [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], // 18 [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], // 19 [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], // 20 [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], // 21 [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], // 22 [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], // 23 [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], // 24 [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], // 25 [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], // 26 [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], // 27 [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], // 28 [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], // 29 [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], // 30 [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], // 31 [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], // 32 [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], // 33 [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], // 34 [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], // 35 [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], // 36 [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], // 37 [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], // 38 [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], // 39 [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], // 40 [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16] ]; QRRSBlock.getRSBlocks = function(typeNumber, errorCorrectLevel) { var rsBlock = QRRSBlock.getRsBlockTable(typeNumber, errorCorrectLevel); if (rsBlock === undefined) { throw new Error("bad rs block @ typeNumber:" + typeNumber + "/errorCorrectLevel:" + errorCorrectLevel); } var length = rsBlock.length / 3; var list = []; for (var i = 0; i < length; i++) { var count = rsBlock[i * 3 + 0]; var totalCount = rsBlock[i * 3 + 1]; var dataCount = rsBlock[i * 3 + 2]; for (var j = 0; j < count; j++) { list.push(new QRRSBlock(totalCount, dataCount) ); } } return list; }; QRRSBlock.getRsBlockTable = function(typeNumber, errorCorrectLevel) { switch(errorCorrectLevel) { case QRErrorCorrectLevel.L : return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0]; case QRErrorCorrectLevel.M : return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1]; case QRErrorCorrectLevel.Q : return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2]; case QRErrorCorrectLevel.H : return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3]; default : return undefined; } }; module.exports = QRRSBlock; ```
The Empire Theatre (earlier the Queen's Theatre) was a theatre in Longton in Stoke-on-Trent, England. It was later a cinema and a bingo hall; it was destroyed by fire in 1992. History The theatre was originally named the Queen's Theatre. The first theatre on the site in Commerce Street, Longton (coordinates ) was opened on 10 September 1888; it was a three-storey building of red sandstone. After extensive alterations in 1890 it seated 1800. It was destroyed by fire on 28 September 1893. A new theatre, designed by Frank Matcham, was opened on 18 May 1896. It had a richly decorated interior, and seated 2500, in orchestra stalls, dress circle and balcony levels. From 1911 films were also being shown. In 1914 it was renamed the Empire Theatre. Cinema and bingo hall It was converted for use as a cinema in 1921; it was subsequently used mostly as a cinema, and staged productions eventually ceased. It later became part of ABC Cinemas. It closed as a cinema in 1966 and was converted into a bingo hall: as the Alpha Bingo Club, later the Tudor Bingo Club; it was later operated by Gala Bingo Clubs. The building was given listed status, Grade II. In 1991 it closed. A fire, thought to be arson, destroyed most of the building on 31 December 1992. The façade survived, and rebuilding was considered; but it was eventually demolished in 1997. The Stoke-on-Trent Repertory Theatre Players, who were within a few days of completing the purchase of the building for their new theatre when it burned down, later built the Stoke-on-Trent Repertory Theatre. References External links "Part of the auditorium of the Empire Theatre in use as a bingo hall, showing the false ceiling and elaborate plasterwork on the circle" at Historic England Former theatres in England Theatres completed in 1896 1992 disestablishments in England Demolished theatres in the United Kingdom Former cinemas in England History of Stoke-on-Trent
Ieuan Gethin ap Ieuan ap Lleision (fl. c. 1450) was a Welsh language poet, of Baglan, Glamorgan. References Welsh-language poets 15th-century Welsh poets
```python import functools import itertools import numpy import pytest try: import scipy.sparse except ImportError: pass import cupy import cupyx from cupy import testing from cupy.cuda import runtime from cupyx.scipy import sparse try: import scipy scipy_113_or_later = scipy.__version__ >= "1.13" except ImportError: scipy_113_or_later = False def _get_index_combos(idx): return [dict['arr_fn'](idx, dtype=dict['dtype']) for dict in testing.product({ "arr_fn": [numpy.array, cupy.array], "dtype": [numpy.int32, numpy.int64] })] def _check_shares_memory(xp, sp, x, y): if sp.issparse(x) and sp.issparse(y): assert not xp.shares_memory(x.indptr, y.indptr) assert not xp.shares_memory(x.indices, y.indices) assert not xp.shares_memory(x.data, y.data) @testing.parameterize(*testing.product({ 'format': ['csr', 'csc'], 'density': [0.9], 'dtype': ['float32', 'float64', 'complex64', 'complex128'], 'n_rows': [25, 150], 'n_cols': [25, 150] })) @testing.with_requires('scipy>=1.4.0') class TestSetitemIndexing: def _run(self, maj, min=None, data=5): import scipy.sparse for i in range(2): shape = self.n_rows, self.n_cols a = testing.shaped_sparse_random( shape, sparse, self.dtype, self.density, self.format) expected = testing.shaped_sparse_random( shape, scipy.sparse, self.dtype, self.density, self.format) maj_h = maj.get() if isinstance(maj, cupy.ndarray) else maj min_h = min.get() if isinstance(min, cupy.ndarray) else min data_is_cupy = isinstance(data, (cupy.ndarray, sparse.spmatrix)) data_h = data.get() if data_is_cupy else data if min is not None: actual = a actual[maj, min] = data expected[maj_h, min_h] = data_h else: actual = a actual[maj] = data expected[maj_h] = data_h if cupyx.scipy.sparse.isspmatrix(actual): actual.sort_indices() expected.sort_indices() cupy.testing.assert_array_equal( actual.indptr, expected.indptr) cupy.testing.assert_array_equal( actual.indices, expected.indices) cupy.testing.assert_array_equal( actual.data, expected.data) else: cupy.testing.assert_array_equal( actual.ravel(), cupy.array(expected).ravel()) def test_set_sparse(self): x = cupyx.scipy.sparse.random(1, 5, format='csr', density=0.8) # Test inner indexing with sparse data for maj, min in zip(_get_index_combos([0, 1, 2, 3, 5]), _get_index_combos([1, 2, 3, 4, 5])): self._run(maj, min, data=x) self._run([0, 1, 2, 3, 5], [1, 2, 3, 4, 5], data=x) # Test 2d major indexing 1d minor indexing with sparse data for maj, min in zip(_get_index_combos([[0], [1], [2], [3], [5]]), _get_index_combos([1, 2, 3, 4, 5])): self._run(maj, min, data=x) self._run([[0], [1], [2], [3], [5]], [1, 2, 3, 4, 5], data=x) # Test 1d major indexing 2d minor indexing with sparse data for maj, min in zip(_get_index_combos([0, 1, 2, 3, 5]), _get_index_combos([[1], [2], [3], [4], [5]])): self._run(maj, min, data=x) self._run([0, 1, 2, 3, 5], [[1], [2], [3], [4], [5]], data=x) # Test minor indexing numpy scalar / cupy 0-dim for maj, min in zip(_get_index_combos([0, 2, 4, 5, 6]), _get_index_combos(1)): self._run(maj, min, data=x) @pytest.mark.xfail(scipy_113_or_later, reason="XXX: scipy1.13") @testing.with_requires('scipy>=1.5.0') def test_set_zero_dim_bool_mask(self): zero_dim_data = [numpy.array(5), cupy.array(5)] for data in zero_dim_data: self._run([False, True], data=data) def test_set_zero_dim_scalar(self): zero_dim_data = [numpy.array(5), cupy.array(5)] for data in zero_dim_data: self._run(slice(5, 10000), data=data) self._run([1, 5, 4, 5], data=data) self._run(0, 2, data=data) def test_major_slice(self): self._run(slice(5, 10000), data=5) self._run(slice(5, 4), data=5) self._run(slice(4, 5, 2), data=5) self._run(slice(5, 4, -2), data=5) self._run(slice(2, 4), slice(0, 2), [[4], [1]]) self._run(slice(2, 4), slice(0, 2), [[4, 5], [6, 7]]) self._run(slice(2, 4), 0, [[4], [6]]) self._run(slice(5, 9)) self._run(slice(9, 5)) def test_major_all(self): self._run(slice(None)) def test_major_scalar(self): self._run(10) def test_major_fancy(self): self._run([1, 5, 4]) self._run([10, 2]) self._run([2]) def test_major_slice_minor_slice(self): self._run(slice(1, 5), slice(1, 5)) def test_major_slice_minor_all(self): self._run(slice(1, 5), slice(None)) self._run(slice(5, 1), slice(None)) def test_major_slice_minor_scalar(self): self._run(slice(1, 5), 5) self._run(slice(5, 1), 5) self._run(slice(5, 1, -1), 5) def test_major_slice_minor_fancy(self): self._run(slice(1, 10, 2), [1, 5, 4]) def test_major_scalar_minor_slice(self): self._run(5, slice(1, 5)) def test_major_scalar_minor_all(self): self._run(5, slice(None)) def test_major_scalar_minor_scalar(self): self._run(5, 5) self._run(10, 24, 5) def test_major_scalar_minor_fancy(self): self._run(5, [1, 5, 4]) def test_major_all_minor_all(self): self._run(slice(None), slice(None)) def test_major_all_minor_fancy(self): for min in _get_index_combos( [0, 3, 4, 1, 1, 5, 5, 2, 3, 4, 5, 4, 1, 5]): self._run(slice(None), min) self._run(slice(None), [0, 3, 4, 1, 1, 5, 5, 2, 3, 4, 5, 4, 1, 5]) def test_major_fancy_minor_fancy(self): for maj, min in zip(_get_index_combos([1, 2, 3, 4, 1, 6, 1, 8, 9]), _get_index_combos([1, 5, 2, 3, 4, 5, 4, 1, 5])): self._run(maj, min) self._run([1, 2, 3, 4, 1, 6, 1, 8, 9], [1, 5, 2, 3, 4, 5, 4, 1, 5]) for idx in _get_index_combos([1, 5, 4]): self._run(idx, idx) self._run([1, 5, 4], [1, 5, 4]) for maj, min in zip(_get_index_combos([2, 0, 10]), _get_index_combos([9, 2, 1])): self._run(maj, min) self._run([2, 0, 10], [9, 2, 1]) for maj, min in zip(_get_index_combos([2, 9]), _get_index_combos([2, 1])): self._run(maj, min) self._run([2, 0], [2, 1]) def test_major_fancy_minor_all(self): for idx in _get_index_combos([1, 5, 4]): self._run(idx, slice(None)) self._run([1, 5, 4], slice(None)) def test_major_fancy_minor_scalar(self): for idx in _get_index_combos([1, 5, 4]): self._run(idx, 5) self._run([1, 5, 4], 5) def test_major_fancy_minor_slice(self): for idx in _get_index_combos([1, 5, 4]): self._run(idx, slice(1, 5)) self._run(idx, slice(5, 1, -1)) self._run([1, 5, 4], slice(1, 5)) self._run([1, 5, 4], slice(5, 1, -1)) def test_major_bool_fancy(self): rand_bool = testing.shaped_random(self.n_rows, dtype=bool) self._run(rand_bool) def test_major_slice_with_step(self): # positive step self._run(slice(1, 10, 2)) self._run(slice(2, 10, 5)) self._run(slice(0, 10, 10)) self._run(slice(1, None, 2)) self._run(slice(2, None, 5)) self._run(slice(0, None, 10)) # negative step self._run(slice(10, 1, -2)) self._run(slice(10, 2, -5)) self._run(slice(10, 0, -10)) self._run(slice(10, None, -2)) self._run(slice(10, None, -5)) self._run(slice(10, None, -10)) def test_major_slice_with_step_minor_slice_with_step(self): # positive step self._run(slice(1, 10, 2), slice(1, 10, 2)) self._run(slice(2, 10, 5), slice(2, 10, 5)) self._run(slice(0, 10, 10), slice(0, 10, 10)) # negative step self._run(slice(10, 1, 2), slice(10, 1, 2)) self._run(slice(10, 2, 5), slice(10, 2, 5)) self._run(slice(10, 0, 10), slice(10, 0, 10)) def test_major_slice_with_step_minor_all(self): # positive step self._run(slice(1, 10, 2), slice(None)) self._run(slice(2, 10, 5), slice(None)) self._run(slice(0, 10, 10), slice(None)) # negative step self._run(slice(10, 1, 2), slice(None)) self._run(slice(10, 2, 5), slice(None)) self._run(slice(10, 0, 10), slice(None)) @pytest.mark.xfail(scipy_113_or_later, reason="XXX: scipy 1.13") @testing.with_requires('scipy>=1.5.0') def test_fancy_setting_bool(self): # Unfortunately, boolean setting is implemented slightly # differently between Scipy 1.4 and 1.5. Using the most # up-to-date version in CuPy. for maj in _get_index_combos( [[True], [False], [False], [True], [True], [True]]): self._run(maj, data=5) self._run([[True], [False], [False], [True], [True], [True]], data=5) for maj in _get_index_combos([True, False, False, True, True, True]): self._run(maj, data=5) self._run([True, False, False, True, True, True], data=5) for maj in _get_index_combos([[True], [False], [True]]): self._run(maj, data=5) self._run([[True], [False], [True]], data=5) def test_fancy_setting(self): for maj, data in zip(_get_index_combos([0, 5, 10, 2]), _get_index_combos([1, 2, 3, 2])): self._run(maj, 0, data) self._run([0, 5, 10, 2], 0, [1, 2, 3, 2]) # Indexes with duplicates should follow 'last-in-wins' # But Cupy dense indexing doesn't support this yet: # ref: path_to_url # Starting with an empty array for now, since insertions # use `last-in-wins`. self.density = 0.0 # Zeroing out density to force only insertions for maj, min, data in zip(_get_index_combos([0, 5, 10, 2, 0, 10]), _get_index_combos([1, 2, 3, 4, 1, 3]), _get_index_combos([1, 2, 3, 4, 5, 6])): self._run(maj, min, data) class IndexingTestBase: def _make_matrix(self, sp, dtype): shape = self.n_rows, self.n_cols return testing.shaped_sparse_random( shape, sp, dtype, self.density, self.format) def _make_indices(self, xp, dtype=None): indices = [] for ind in self.indices: if isinstance(ind, slice): indices.append(ind) else: indices.append(xp.array(ind, dtype=dtype)) return tuple(indices) _int_index = [0, -1, 10, -10] _slice_index = [ slice(0, 0), slice(None), slice(3, 17), slice(17, 3, -1) ] _slice_index_full = [ slice(0, 0), slice(0, 1), slice(5, 6), slice(None), slice(3, 17, 1), slice(17, 3, 1), slice(2, -1, 1), slice(-1, 2, 1), slice(3, 17, -1), slice(17, 3, -1), slice(2, -1, -1), slice(-1, 2, -1), slice(3, 17, 2), slice(17, 3, 2), slice(3, 17, -2), slice(17, 3, -2), ] _int_array_index = [ [], [0], [0, 0], [1, 5, 4, 5, 2, 4, 1] ] @testing.parameterize(*testing.product({ 'format': ['csr', 'csc'], 'density': [0.0, 0.5], 'n_rows': [1, 25], 'n_cols': [1, 25], 'indices': ( # Int _int_index # Slice + _slice_index_full # Int x Int + list(itertools.product(_int_index, _int_index)) # Slice x Slice + list(itertools.product(_slice_index, _slice_index)) # Int x Slice + list(itertools.product(_int_index, _slice_index)) + list(itertools.product(_slice_index, _int_index)) # Ellipsis + [ (Ellipsis,), (Ellipsis, slice(None)), (slice(None), Ellipsis), (Ellipsis, 1), (1, Ellipsis), (slice(1, None), Ellipsis), (Ellipsis, slice(1, None)), ] ), })) @testing.with_requires('scipy>=1.4.0') class TestSliceIndexing(IndexingTestBase): @testing.for_dtypes('fdFD') @testing.numpy_cupy_array_equal( sp_name='sp', type_check=False, accept_error=IndexError) def test_indexing(self, xp, sp, dtype): a = self._make_matrix(sp, dtype) res = a[self.indices] _check_shares_memory(xp, sp, a, res) return res def skip_HIP_0_size_matrix(): def decorator(impl): @functools.wraps(impl) def test_func(self, *args, **kw): try: impl(self, *args, **kw) except AssertionError as e: if runtime.is_hip: assert 'ValueError: hipSPARSE' in str(e) pytest.xfail('may be buggy') raise return test_func return decorator def _check_bounds(indices, n_rows, n_cols, **kwargs): if not isinstance(indices, tuple): indices = (indices,) for index, size in zip(indices, [n_rows, n_cols]): if isinstance(index, list): for ind in index: if not (0 <= ind < size): # CuPy does not check boundaries. # pytest.skip('Out of bounds') return False return True @testing.parameterize(*[params for params in testing.product({ 'format': ['csr', 'csc'], 'density': [0.0, 0.5], 'n_rows': [1, 25], 'n_cols': [1, 25], 'indices': ( # Array _int_array_index # Array x Int + list(itertools.product(_int_array_index, _int_index)) + list(itertools.product(_int_index, _int_array_index)) # Array x Slice + list(itertools.product(_slice_index, _int_array_index)) # SciPy chose inner indexing for int-array x slice inputs. # + list(itertools.product(_int_array_index, _slice_index)) # Array x Array (Inner indexing) + [ ([], []), ([0], [0]), ([1, 5, 4], [1, 5, 4]), ([2, 0, 10, 0, 2], [9, 2, 1, 0, 2]), ([2, 0, 10, 0], [9, 2, 1, 0]), ([2, 0, 2], [2, 1, 1]), ([2, 0, 2], [2, 1, 2]), ] ) }) if _check_bounds(**params)]) @testing.with_requires('scipy>=1.4.0') class TestArrayIndexing(IndexingTestBase): @skip_HIP_0_size_matrix() @testing.for_dtypes('fdFD') @testing.numpy_cupy_array_equal( sp_name='sp', type_check=False, accept_error=IndexError) def test_list_indexing(self, xp, sp, dtype): a = self._make_matrix(sp, dtype) res = a[self.indices] _check_shares_memory(xp, sp, a, res) return res @skip_HIP_0_size_matrix() @testing.for_dtypes('fdFD') @testing.for_dtypes('il', name='ind_dtype') @testing.numpy_cupy_array_equal( sp_name='sp', type_check=False, accept_error=IndexError) def test_numpy_ndarray_indexing(self, xp, sp, dtype, ind_dtype): a = self._make_matrix(sp, dtype) indices = self._make_indices(numpy, ind_dtype) res = a[indices] _check_shares_memory(xp, sp, a, res) return res @skip_HIP_0_size_matrix() @testing.for_dtypes('fdFD') @testing.for_dtypes('il', name='ind_dtype') @testing.numpy_cupy_array_equal( sp_name='sp', type_check=False, accept_error=IndexError) def test_cupy_ndarray_indexing(self, xp, sp, dtype, ind_dtype): a = self._make_matrix(sp, dtype) indices = self._make_indices(xp, ind_dtype) res = a[indices] _check_shares_memory(xp, sp, a, res) return res @testing.parameterize(*testing.product({ 'format': ['csr', 'csc'], 'density': [0.0, 0.5], 'indices': [ # Bool array x Int ([True, False, True], 3), (2, [True, False, True, False, True]), # Bool array x Slice ([True, False, True], slice(None)), ([True, False, True], slice(1, 4)), (slice(None), [True, False, True, False, True]), (slice(1, 4), [True, False, True, False, True]), # Bool array x Bool array # SciPy chose inner indexing for int-array x slice inputs. ([True, False, True], [True, False, True]), ], })) @testing.with_requires('scipy>=1.4.0') class TestBoolMaskIndexing(IndexingTestBase): n_rows = 3 n_cols = 5 # In older environments (e.g., py35, scipy 1.4), scipy sparse arrays are # crashing when indexed with native Python boolean list. @testing.with_requires('scipy>=1.5.0') @testing.for_dtypes('fdFD') @testing.numpy_cupy_array_equal(sp_name='sp', type_check=False) def test_bool_mask(self, xp, sp, dtype): if self.indices == ([True, False, True], [True, False, True]): pytest.xfail(reason="XXX: np2.0: scipy 1.13 sparse raises") a = self._make_matrix(sp, dtype) res = a[self.indices] _check_shares_memory(xp, sp, a, res) return res @testing.for_dtypes('fdFD') @testing.numpy_cupy_array_equal(sp_name='sp', type_check=False) def test_numpy_bool_mask(self, xp, sp, dtype): if self.indices == ([True, False, True], [True, False, True]): pytest.xfail(reason="XXX: np2.0: scipy 1.13 sparse raises") a = self._make_matrix(sp, dtype) indices = self._make_indices(numpy) res = a[indices] _check_shares_memory(xp, sp, a, res) return res @testing.for_dtypes('fdFD') @testing.numpy_cupy_array_equal(sp_name='sp', type_check=False) def test_cupy_bool_mask(self, xp, sp, dtype): if self.indices == ([True, False, True], [True, False, True]): pytest.xfail(reason="XXX: np2.0: scipy 1.13 sparse raises") a = self._make_matrix(sp, dtype) indices = self._make_indices(xp) res = a[indices] _check_shares_memory(xp, sp, a, res) return res @testing.parameterize(*testing.product({ 'format': ['csr', 'csc'], 'density': [0.4], 'dtype': ['float32', 'float64', 'complex64', 'complex128'], 'n_rows': [25, 150], 'n_cols': [25, 150], 'indices': [ ('foo',), (2, 'foo'), ([[0, 0], [1, 1]]), ], })) @testing.with_requires('scipy>=1.4.0') class TestIndexingIndexError(IndexingTestBase): def test_indexing_index_error(self): for xp, sp in [(numpy, scipy.sparse), (cupy, sparse)]: a = self._make_matrix(sp, numpy.float32) with pytest.raises(IndexError): a[self.indices] @testing.parameterize(*testing.product({ 'format': ['csr', 'csc'], 'density': [0.4], 'dtype': ['float32', 'float64', 'complex64', 'complex128'], 'n_rows': [25, 150], 'n_cols': [25, 150], 'indices': [ ([1, 2, 3], [1, 2, 3, 4]), ], })) @testing.with_requires('scipy>=1.4.0') class TestIndexingValueError(IndexingTestBase): def test_indexing_value_error(self): for xp, sp in [(numpy, scipy.sparse), (cupy, sparse)]: a = self._make_matrix(sp, numpy.float32) with pytest.raises(ValueError): a[self.indices] ```
```java /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * Contributors: * ohun@live.cn () */ package com.mpush.zk; import com.mpush.api.spi.Spi; import com.mpush.api.spi.common.ServiceDiscoveryFactory; import com.mpush.api.srd.ServiceDiscovery; /** * Created by ohun on 2016/12/27. * * @author ohun@live.cn () */ @Spi(order = 1) public final class ZKDiscoveryFactory implements ServiceDiscoveryFactory { @Override public ServiceDiscovery get() { return ZKServiceRegistryAndDiscovery.I; } } ```
```powershell function Set-UnattendedIpSettings { [CmdletBinding(DefaultParameterSetName = 'Windows')] param ( [Parameter(ParameterSetName = 'Windows')] [Parameter(ParameterSetName = 'Kickstart')] [Parameter(ParameterSetName = 'Yast')] [Parameter(ParameterSetName = 'CloudInit')] [string]$IpAddress, [Parameter(ParameterSetName = 'Windows')] [Parameter(ParameterSetName = 'Kickstart')] [Parameter(ParameterSetName = 'Yast')] [Parameter(ParameterSetName = 'CloudInit')] [string]$Gateway, [Parameter(ParameterSetName = 'Windows')] [Parameter(ParameterSetName = 'Kickstart')] [Parameter(ParameterSetName = 'Yast')] [Parameter(ParameterSetName = 'CloudInit')] [String[]]$DnsServers, [Parameter(ParameterSetName = 'Windows')] [Parameter(ParameterSetName = 'Kickstart')] [Parameter(ParameterSetName = 'Yast')] [Parameter(ParameterSetName = 'CloudInit')] [string]$DnsDomain, [Parameter(ParameterSetName = 'Kickstart')] [switch] $IsKickstart, [Parameter(ParameterSetName = 'Yast')] [switch] $IsAutoYast, [Parameter(ParameterSetName = 'CloudInit')] [switch] $IsCloudInit ) if (-not $script:un) { Write-Error 'No unattended file imported. Please use Import-UnattendedFile first' return } $command = Get-Command -Name $PSCmdlet.MyInvocation.MyCommand.Name.Replace('Unattended', "Unattended$($PSCmdlet.ParameterSetName)") $parameters = Sync-Parameter $command -Parameters $PSBoundParameters & $command @parameters } ```
Giant Rock is a large freestanding boulder in the Mojave Desert near Landers, California, and the Marine Corps Air Ground Combat Center Twentynine Palms (location ). The boulder covers of ground and is seven stories high. Giant Rock is the largest freestanding boulder in North America and is purported to be the largest free standing boulder in the world. Native Americans of the Joshua Tree area consider it to be sacred. In the 1930s, Frank Critzer moved to Giant Rock. Inspired by desert tortoises that dig holes in which to cool themselves, Critzer dug out a home on the north side of the rock using dynamite. He engineered a rainwater collection system and a tunnel for ventilation. The underground home was reportedly never hotter than and never cooler than . Critzer built an airstrip on the nearby ancient lakebed, which averaged a plane per day by 1941. Critzer perished in a self-detonated dynamite explosion in his underground rooms on July 24, 1942, while being investigated by local police. In the 1950s, Giant Rock was a gathering point for UFO believers. It is located on land which was at that time leased by George Van Tassel, a friend of Critzer's, a purported flying-saucer contactee and organizer of UFO conventions. In 1947, Van Tassel, a former aircraft inspector, leased the property from the Bureau of Land Management and left Los Angeles and moved to Giant Rock with his wife and three children. Van Tassel also built the nearby Integratron and a cafe, store, gas station and the Giant Rock Airport, which he operated from 1947 to 1975. The Giant Rock Airport was certified by the Federal Aviation Administration for emergency use by commercial airliners. In the early 1960s it experienced traffic of about one flight per day. Between November 1961 and October 1962, it served as the launch site for helium-filled balloons used by R. F. Miles, Jr. to measure the density of neutrons in the Earth's atmosphere at altitudes between . In early 2000, Giant Rock fractured in two, revealing an interior of white granite. The exterior surface of the rock is partially covered in graffiti. In popular culture Fictionalized versions of Giant Rock and Van Tassel figure heavily in the plot of the novel Gods Without Men by Hari Kunzru. Australian artist Tina Havelock Stevens won the Blake Prize with a video work depicting her drumming at the site. Live at Giant Rock, a live album by Yawning Man, was recorded with the band performing next to the boulder. Giant Rock plays a major role in the science fiction book Stolen Skies by Tim Powers. References Mojave Desert Rock formations of California Landforms of San Bernardino County, California
Prince David Osei (born 6 December 1983) is a Ghanaian actor, model, producer, director and a philanthropist. He has featured in many Ghanaian and Nigerian movies, including Fortune Island, Last Night, Hero, Forbidden Fruit and others. He has also featured in the American movie titled The Dead. Personal life Family He is married to Nana Ama Asieduaa. Filmography Fortune Island The Dead Last Night Hero Forbidden Fruit Flight by Night Awards Prince David Osei has won the Best Actor at the City People Entertainment Awards. He has also won the award for Most Promising Act at the Africa Magic Viewers Choice Awards. He won Best Actor for the Lead Role at the African International Film Festival Awards 2019 in Dallas, United States of America . References Living people 1983 births Ghanaian male film actors 21st-century Ghanaian male actors
```c /* Definitions for computing resource usage of specific insns. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under Software Foundation; either version 2, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or for more details. along with GCC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "config.h" #include "system.h" #include "toplev.h" #include "rtl.h" #include "tm_p.h" #include "hard-reg-set.h" #include "basic-block.h" #include "function.h" #include "regs.h" #include "flags.h" #include "output.h" #include "resource.h" #include "except.h" #include "insn-attr.h" #include "params.h" /* This structure is used to record liveness information at the targets or fallthrough insns of branches. We will most likely need the information at targets again, so save them in a hash table rather than recomputing them each time. */ struct target_info { int uid; /* INSN_UID of target. */ struct target_info *next; /* Next info for same hash bucket. */ HARD_REG_SET live_regs; /* Registers live at target. */ int block; /* Basic block number containing target. */ int bb_tick; /* Generation count of basic block info. */ }; #define TARGET_HASH_PRIME 257 /* Indicates what resources are required at the beginning of the epilogue. */ static struct resources start_of_epilogue_needs; /* Indicates what resources are required at function end. */ static struct resources end_of_function_needs; /* Define the hash table itself. */ static struct target_info **target_hash_table = NULL; /* For each basic block, we maintain a generation number of its basic block info, which is updated each time we move an insn from the target of a jump. This is the generation number indexed by block number. */ static int *bb_ticks; /* Marks registers possibly live at the current place being scanned by mark_target_live_regs. Also used by update_live_status. */ static HARD_REG_SET current_live_regs; /* Marks registers for which we have seen a REG_DEAD note but no assignment. Also only used by the next two functions. */ static HARD_REG_SET pending_dead_regs; static void update_live_status PARAMS ((rtx, rtx, void *)); static int find_basic_block PARAMS ((rtx, int)); static rtx next_insn_no_annul PARAMS ((rtx)); static rtx find_dead_or_set_registers PARAMS ((rtx, struct resources*, rtx*, int, struct resources, struct resources)); /* Utility function called from mark_target_live_regs via note_stores. It deadens any CLOBBERed registers and livens any SET registers. */ static void update_live_status (dest, x, data) rtx dest; rtx x; void *data ATTRIBUTE_UNUSED; { int first_regno, last_regno; int i; if (GET_CODE (dest) != REG && (GET_CODE (dest) != SUBREG || GET_CODE (SUBREG_REG (dest)) != REG)) return; if (GET_CODE (dest) == SUBREG) first_regno = subreg_regno (dest); else first_regno = REGNO (dest); last_regno = first_regno + HARD_REGNO_NREGS (first_regno, GET_MODE (dest)); if (GET_CODE (x) == CLOBBER) for (i = first_regno; i < last_regno; i++) CLEAR_HARD_REG_BIT (current_live_regs, i); else for (i = first_regno; i < last_regno; i++) { SET_HARD_REG_BIT (current_live_regs, i); CLEAR_HARD_REG_BIT (pending_dead_regs, i); } } /* Find the number of the basic block with correct live register information that starts closest to INSN. Return -1 if we couldn't find such a basic block or the beginning is more than SEARCH_LIMIT instructions before INSN. Use SEARCH_LIMIT = -1 for an unlimited search. The delay slot filling code destroys the control-flow graph so, instead of finding the basic block containing INSN, we search backwards toward a BARRIER where the live register information is correct. */ static int find_basic_block (insn, search_limit) rtx insn; int search_limit; { basic_block bb; /* Scan backwards to the previous BARRIER. Then see if we can find a label that starts a basic block. Return the basic block number. */ for (insn = prev_nonnote_insn (insn); insn && GET_CODE (insn) != BARRIER && search_limit != 0; insn = prev_nonnote_insn (insn), --search_limit) ; /* The closest BARRIER is too far away. */ if (search_limit == 0) return -1; /* The start of the function. */ else if (insn == 0) return ENTRY_BLOCK_PTR->next_bb->index; /* See if any of the upcoming CODE_LABELs start a basic block. If we reach anything other than a CODE_LABEL or note, we can't find this code. */ for (insn = next_nonnote_insn (insn); insn && GET_CODE (insn) == CODE_LABEL; insn = next_nonnote_insn (insn)) { FOR_EACH_BB (bb) if (insn == bb->head) return bb->index; } return -1; } /* Similar to next_insn, but ignores insns in the delay slots of an annulled branch. */ static rtx next_insn_no_annul (insn) rtx insn; { if (insn) { /* If INSN is an annulled branch, skip any insns from the target of the branch. */ if ((GET_CODE (insn) == JUMP_INSN || GET_CODE (insn) == CALL_INSN || GET_CODE (insn) == INSN) && INSN_ANNULLED_BRANCH_P (insn) && NEXT_INSN (PREV_INSN (insn)) != insn) { rtx next = NEXT_INSN (insn); enum rtx_code code = GET_CODE (next); while ((code == INSN || code == JUMP_INSN || code == CALL_INSN) && INSN_FROM_TARGET_P (next)) { insn = next; next = NEXT_INSN (insn); code = GET_CODE (next); } } insn = NEXT_INSN (insn); if (insn && GET_CODE (insn) == INSN && GET_CODE (PATTERN (insn)) == SEQUENCE) insn = XVECEXP (PATTERN (insn), 0, 0); } return insn; } /* Given X, some rtl, and RES, a pointer to a `struct resource', mark which resources are referenced by the insn. If INCLUDE_DELAYED_EFFECTS is TRUE, resources used by the called routine will be included for CALL_INSNs. */ void mark_referenced_resources (x, res, include_delayed_effects) rtx x; struct resources *res; int include_delayed_effects; { enum rtx_code code = GET_CODE (x); int i, j; unsigned int r; const char *format_ptr; /* Handle leaf items for which we set resource flags. Also, special-case CALL, SET and CLOBBER operators. */ switch (code) { case CONST: case CONST_INT: case CONST_DOUBLE: case CONST_VECTOR: case PC: case SYMBOL_REF: case LABEL_REF: return; case SUBREG: if (GET_CODE (SUBREG_REG (x)) != REG) mark_referenced_resources (SUBREG_REG (x), res, 0); else { unsigned int regno = subreg_regno (x); unsigned int last_regno = regno + HARD_REGNO_NREGS (regno, GET_MODE (x)); if (last_regno > FIRST_PSEUDO_REGISTER) abort (); for (r = regno; r < last_regno; r++) SET_HARD_REG_BIT (res->regs, r); } return; case REG: { unsigned int regno = REGNO (x); unsigned int last_regno = regno + HARD_REGNO_NREGS (regno, GET_MODE (x)); if (last_regno > FIRST_PSEUDO_REGISTER) abort (); for (r = regno; r < last_regno; r++) SET_HARD_REG_BIT (res->regs, r); } return; case MEM: /* If this memory shouldn't change, it really isn't referencing memory. */ if (RTX_UNCHANGING_P (x)) res->unch_memory = 1; else res->memory = 1; res->volatil |= MEM_VOLATILE_P (x); /* Mark registers used to access memory. */ mark_referenced_resources (XEXP (x, 0), res, 0); return; case CC0: res->cc = 1; return; case UNSPEC_VOLATILE: case ASM_INPUT: /* Traditional asm's are always volatile. */ res->volatil = 1; return; case TRAP_IF: res->volatil = 1; break; case ASM_OPERANDS: res->volatil |= MEM_VOLATILE_P (x); /* For all ASM_OPERANDS, we must traverse the vector of input operands. We can not just fall through here since then we would be confused by the ASM_INPUT rtx inside ASM_OPERANDS, which do not indicate traditional asms unlike their normal usage. */ for (i = 0; i < ASM_OPERANDS_INPUT_LENGTH (x); i++) mark_referenced_resources (ASM_OPERANDS_INPUT (x, i), res, 0); return; case CALL: /* The first operand will be a (MEM (xxx)) but doesn't really reference memory. The second operand may be referenced, though. */ mark_referenced_resources (XEXP (XEXP (x, 0), 0), res, 0); mark_referenced_resources (XEXP (x, 1), res, 0); return; case SET: /* Usually, the first operand of SET is set, not referenced. But registers used to access memory are referenced. SET_DEST is also referenced if it is a ZERO_EXTRACT or SIGN_EXTRACT. */ mark_referenced_resources (SET_SRC (x), res, 0); x = SET_DEST (x); if (GET_CODE (x) == SIGN_EXTRACT || GET_CODE (x) == ZERO_EXTRACT || GET_CODE (x) == STRICT_LOW_PART) mark_referenced_resources (x, res, 0); else if (GET_CODE (x) == SUBREG) x = SUBREG_REG (x); if (GET_CODE (x) == MEM) mark_referenced_resources (XEXP (x, 0), res, 0); return; case CLOBBER: return; case CALL_INSN: if (include_delayed_effects) { /* A CALL references memory, the frame pointer if it exists, the stack pointer, any global registers and any registers given in USE insns immediately in front of the CALL. However, we may have moved some of the parameter loading insns into the delay slot of this CALL. If so, the USE's for them don't count and should be skipped. */ rtx insn = PREV_INSN (x); rtx sequence = 0; int seq_size = 0; int i; /* If we are part of a delay slot sequence, point at the SEQUENCE. */ if (NEXT_INSN (insn) != x) { sequence = PATTERN (NEXT_INSN (insn)); seq_size = XVECLEN (sequence, 0); if (GET_CODE (sequence) != SEQUENCE) abort (); } res->memory = 1; SET_HARD_REG_BIT (res->regs, STACK_POINTER_REGNUM); if (frame_pointer_needed) { SET_HARD_REG_BIT (res->regs, FRAME_POINTER_REGNUM); #if FRAME_POINTER_REGNUM != HARD_FRAME_POINTER_REGNUM SET_HARD_REG_BIT (res->regs, HARD_FRAME_POINTER_REGNUM); #endif } for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) if (global_regs[i]) SET_HARD_REG_BIT (res->regs, i); /* Check for a REG_SETJMP. If it exists, then we must assume that this call can need any register. This is done to be more conservative about how we handle setjmp. We assume that they both use and set all registers. Using all registers ensures that a register will not be considered dead just because it crosses a setjmp call. A register should be considered dead only if the setjmp call returns nonzero. */ if (find_reg_note (x, REG_SETJMP, NULL)) SET_HARD_REG_SET (res->regs); { rtx link; for (link = CALL_INSN_FUNCTION_USAGE (x); link; link = XEXP (link, 1)) if (GET_CODE (XEXP (link, 0)) == USE) { for (i = 1; i < seq_size; i++) { rtx slot_pat = PATTERN (XVECEXP (sequence, 0, i)); if (GET_CODE (slot_pat) == SET && rtx_equal_p (SET_DEST (slot_pat), XEXP (XEXP (link, 0), 0))) break; } if (i >= seq_size) mark_referenced_resources (XEXP (XEXP (link, 0), 0), res, 0); } } } /* ... fall through to other INSN processing ... */ case INSN: case JUMP_INSN: #ifdef INSN_REFERENCES_ARE_DELAYED if (! include_delayed_effects && INSN_REFERENCES_ARE_DELAYED (x)) return; #endif /* No special processing, just speed up. */ mark_referenced_resources (PATTERN (x), res, include_delayed_effects); return; default: break; } /* Process each sub-expression and flag what it needs. */ format_ptr = GET_RTX_FORMAT (code); for (i = 0; i < GET_RTX_LENGTH (code); i++) switch (*format_ptr++) { case 'e': mark_referenced_resources (XEXP (x, i), res, include_delayed_effects); break; case 'E': for (j = 0; j < XVECLEN (x, i); j++) mark_referenced_resources (XVECEXP (x, i, j), res, include_delayed_effects); break; } } /* A subroutine of mark_target_live_regs. Search forward from TARGET looking for registers that are set before they are used. These are dead. Stop after passing a few conditional jumps, and/or a small number of unconditional branches. */ static rtx find_dead_or_set_registers (target, res, jump_target, jump_count, set, needed) rtx target; struct resources *res; rtx *jump_target; int jump_count; struct resources set, needed; { HARD_REG_SET scratch; rtx insn, next; rtx jump_insn = 0; int i; for (insn = target; insn; insn = next) { rtx this_jump_insn = insn; next = NEXT_INSN (insn); /* If this instruction can throw an exception, then we don't know where we might end up next. That means that we have to assume that whatever we have already marked as live really is live. */ if (can_throw_internal (insn)) break; switch (GET_CODE (insn)) { case CODE_LABEL: /* After a label, any pending dead registers that weren't yet used can be made dead. */ AND_COMPL_HARD_REG_SET (pending_dead_regs, needed.regs); AND_COMPL_HARD_REG_SET (res->regs, pending_dead_regs); CLEAR_HARD_REG_SET (pending_dead_regs); continue; case BARRIER: case NOTE: continue; case INSN: if (GET_CODE (PATTERN (insn)) == USE) { /* If INSN is a USE made by update_block, we care about the underlying insn. Any registers set by the underlying insn are live since the insn is being done somewhere else. */ if (INSN_P (XEXP (PATTERN (insn), 0))) mark_set_resources (XEXP (PATTERN (insn), 0), res, 0, MARK_SRC_DEST_CALL); /* All other USE insns are to be ignored. */ continue; } else if (GET_CODE (PATTERN (insn)) == CLOBBER) continue; else if (GET_CODE (PATTERN (insn)) == SEQUENCE) { /* An unconditional jump can be used to fill the delay slot of a call, so search for a JUMP_INSN in any position. */ for (i = 0; i < XVECLEN (PATTERN (insn), 0); i++) { this_jump_insn = XVECEXP (PATTERN (insn), 0, i); if (GET_CODE (this_jump_insn) == JUMP_INSN) break; } } default: break; } if (GET_CODE (this_jump_insn) == JUMP_INSN) { if (jump_count++ < 10) { if (any_uncondjump_p (this_jump_insn) || GET_CODE (PATTERN (this_jump_insn)) == RETURN) { next = JUMP_LABEL (this_jump_insn); if (jump_insn == 0) { jump_insn = insn; if (jump_target) *jump_target = JUMP_LABEL (this_jump_insn); } } else if (any_condjump_p (this_jump_insn)) { struct resources target_set, target_res; struct resources fallthrough_res; /* We can handle conditional branches here by following both paths, and then IOR the results of the two paths together, which will give us registers that are dead on both paths. Since this is expensive, we give it a much higher cost than unconditional branches. The cost was chosen so that we will follow at most 1 conditional branch. */ jump_count += 4; if (jump_count >= 10) break; mark_referenced_resources (insn, &needed, 1); /* For an annulled branch, mark_set_resources ignores slots filled by instructions from the target. This is correct if the branch is not taken. Since we are following both paths from the branch, we must also compute correct info if the branch is taken. We do this by inverting all of the INSN_FROM_TARGET_P bits, calling mark_set_resources, and then inverting the INSN_FROM_TARGET_P bits again. */ if (GET_CODE (PATTERN (insn)) == SEQUENCE && INSN_ANNULLED_BRANCH_P (this_jump_insn)) { for (i = 1; i < XVECLEN (PATTERN (insn), 0); i++) INSN_FROM_TARGET_P (XVECEXP (PATTERN (insn), 0, i)) = ! INSN_FROM_TARGET_P (XVECEXP (PATTERN (insn), 0, i)); target_set = set; mark_set_resources (insn, &target_set, 0, MARK_SRC_DEST_CALL); for (i = 1; i < XVECLEN (PATTERN (insn), 0); i++) INSN_FROM_TARGET_P (XVECEXP (PATTERN (insn), 0, i)) = ! INSN_FROM_TARGET_P (XVECEXP (PATTERN (insn), 0, i)); mark_set_resources (insn, &set, 0, MARK_SRC_DEST_CALL); } else { mark_set_resources (insn, &set, 0, MARK_SRC_DEST_CALL); target_set = set; } target_res = *res; COPY_HARD_REG_SET (scratch, target_set.regs); AND_COMPL_HARD_REG_SET (scratch, needed.regs); AND_COMPL_HARD_REG_SET (target_res.regs, scratch); fallthrough_res = *res; COPY_HARD_REG_SET (scratch, set.regs); AND_COMPL_HARD_REG_SET (scratch, needed.regs); AND_COMPL_HARD_REG_SET (fallthrough_res.regs, scratch); find_dead_or_set_registers (JUMP_LABEL (this_jump_insn), &target_res, 0, jump_count, target_set, needed); find_dead_or_set_registers (next, &fallthrough_res, 0, jump_count, set, needed); IOR_HARD_REG_SET (fallthrough_res.regs, target_res.regs); AND_HARD_REG_SET (res->regs, fallthrough_res.regs); break; } else break; } else { /* Don't try this optimization if we expired our jump count above, since that would mean there may be an infinite loop in the function being compiled. */ jump_insn = 0; break; } } mark_referenced_resources (insn, &needed, 1); mark_set_resources (insn, &set, 0, MARK_SRC_DEST_CALL); COPY_HARD_REG_SET (scratch, set.regs); AND_COMPL_HARD_REG_SET (scratch, needed.regs); AND_COMPL_HARD_REG_SET (res->regs, scratch); } return jump_insn; } /* Given X, a part of an insn, and a pointer to a `struct resource', RES, indicate which resources are modified by the insn. If MARK_TYPE is MARK_SRC_DEST_CALL, also mark resources potentially set by the called routine. If IN_DEST is nonzero, it means we are inside a SET. Otherwise, objects are being referenced instead of set. We never mark the insn as modifying the condition code unless it explicitly SETs CC0 even though this is not totally correct. The reason for this is that we require a SET of CC0 to immediately precede the reference to CC0. So if some other insn sets CC0 as a side-effect, we know it cannot affect our computation and thus may be placed in a delay slot. */ void mark_set_resources (x, res, in_dest, mark_type) rtx x; struct resources *res; int in_dest; enum mark_resource_type mark_type; { enum rtx_code code; int i, j; unsigned int r; const char *format_ptr; restart: code = GET_CODE (x); switch (code) { case NOTE: case BARRIER: case CODE_LABEL: case USE: case CONST_INT: case CONST_DOUBLE: case CONST_VECTOR: case LABEL_REF: case SYMBOL_REF: case CONST: case PC: /* These don't set any resources. */ return; case CC0: if (in_dest) res->cc = 1; return; case CALL_INSN: /* Called routine modifies the condition code, memory, any registers that aren't saved across calls, global registers and anything explicitly CLOBBERed immediately after the CALL_INSN. */ if (mark_type == MARK_SRC_DEST_CALL) { rtx link; res->cc = res->memory = 1; for (r = 0; r < FIRST_PSEUDO_REGISTER; r++) if (call_used_regs[r] || global_regs[r]) SET_HARD_REG_BIT (res->regs, r); for (link = CALL_INSN_FUNCTION_USAGE (x); link; link = XEXP (link, 1)) if (GET_CODE (XEXP (link, 0)) == CLOBBER) mark_set_resources (SET_DEST (XEXP (link, 0)), res, 1, MARK_SRC_DEST); /* Check for a REG_SETJMP. If it exists, then we must assume that this call can clobber any register. */ if (find_reg_note (x, REG_SETJMP, NULL)) SET_HARD_REG_SET (res->regs); } /* ... and also what its RTL says it modifies, if anything. */ case JUMP_INSN: case INSN: /* An insn consisting of just a CLOBBER (or USE) is just for flow and doesn't actually do anything, so we ignore it. */ #ifdef INSN_SETS_ARE_DELAYED if (mark_type != MARK_SRC_DEST_CALL && INSN_SETS_ARE_DELAYED (x)) return; #endif x = PATTERN (x); if (GET_CODE (x) != USE && GET_CODE (x) != CLOBBER) goto restart; return; case SET: /* If the source of a SET is a CALL, this is actually done by the called routine. So only include it if we are to include the effects of the calling routine. */ mark_set_resources (SET_DEST (x), res, (mark_type == MARK_SRC_DEST_CALL || GET_CODE (SET_SRC (x)) != CALL), mark_type); mark_set_resources (SET_SRC (x), res, 0, MARK_SRC_DEST); return; case CLOBBER: mark_set_resources (XEXP (x, 0), res, 1, MARK_SRC_DEST); return; case SEQUENCE: for (i = 0; i < XVECLEN (x, 0); i++) if (! (INSN_ANNULLED_BRANCH_P (XVECEXP (x, 0, 0)) && INSN_FROM_TARGET_P (XVECEXP (x, 0, i)))) mark_set_resources (XVECEXP (x, 0, i), res, 0, mark_type); return; case POST_INC: case PRE_INC: case POST_DEC: case PRE_DEC: mark_set_resources (XEXP (x, 0), res, 1, MARK_SRC_DEST); return; case PRE_MODIFY: case POST_MODIFY: mark_set_resources (XEXP (x, 0), res, 1, MARK_SRC_DEST); mark_set_resources (XEXP (XEXP (x, 1), 0), res, 0, MARK_SRC_DEST); mark_set_resources (XEXP (XEXP (x, 1), 1), res, 0, MARK_SRC_DEST); return; case SIGN_EXTRACT: case ZERO_EXTRACT: mark_set_resources (XEXP (x, 0), res, in_dest, MARK_SRC_DEST); mark_set_resources (XEXP (x, 1), res, 0, MARK_SRC_DEST); mark_set_resources (XEXP (x, 2), res, 0, MARK_SRC_DEST); return; case MEM: if (in_dest) { res->memory = 1; res->unch_memory |= RTX_UNCHANGING_P (x); res->volatil |= MEM_VOLATILE_P (x); } mark_set_resources (XEXP (x, 0), res, 0, MARK_SRC_DEST); return; case SUBREG: if (in_dest) { if (GET_CODE (SUBREG_REG (x)) != REG) mark_set_resources (SUBREG_REG (x), res, in_dest, mark_type); else { unsigned int regno = subreg_regno (x); unsigned int last_regno = regno + HARD_REGNO_NREGS (regno, GET_MODE (x)); if (last_regno > FIRST_PSEUDO_REGISTER) abort (); for (r = regno; r < last_regno; r++) SET_HARD_REG_BIT (res->regs, r); } } return; case REG: if (in_dest) { unsigned int regno = REGNO (x); unsigned int last_regno = regno + HARD_REGNO_NREGS (regno, GET_MODE (x)); if (last_regno > FIRST_PSEUDO_REGISTER) abort (); for (r = regno; r < last_regno; r++) SET_HARD_REG_BIT (res->regs, r); } return; case UNSPEC_VOLATILE: case ASM_INPUT: /* Traditional asm's are always volatile. */ res->volatil = 1; return; case TRAP_IF: res->volatil = 1; break; case ASM_OPERANDS: res->volatil |= MEM_VOLATILE_P (x); /* For all ASM_OPERANDS, we must traverse the vector of input operands. We can not just fall through here since then we would be confused by the ASM_INPUT rtx inside ASM_OPERANDS, which do not indicate traditional asms unlike their normal usage. */ for (i = 0; i < ASM_OPERANDS_INPUT_LENGTH (x); i++) mark_set_resources (ASM_OPERANDS_INPUT (x, i), res, in_dest, MARK_SRC_DEST); return; default: break; } /* Process each sub-expression and flag what it needs. */ format_ptr = GET_RTX_FORMAT (code); for (i = 0; i < GET_RTX_LENGTH (code); i++) switch (*format_ptr++) { case 'e': mark_set_resources (XEXP (x, i), res, in_dest, mark_type); break; case 'E': for (j = 0; j < XVECLEN (x, i); j++) mark_set_resources (XVECEXP (x, i, j), res, in_dest, mark_type); break; } } /* Set the resources that are live at TARGET. If TARGET is zero, we refer to the end of the current function and can return our precomputed value. Otherwise, we try to find out what is live by consulting the basic block information. This is tricky, because we must consider the actions of reload and jump optimization, which occur after the basic block information has been computed. Accordingly, we proceed as follows:: We find the previous BARRIER and look at all immediately following labels (with no intervening active insns) to see if any of them start a basic block. If we hit the start of the function first, we use block 0. Once we have found a basic block and a corresponding first insns, we can accurately compute the live status from basic_block_live_regs and reg_renumber. (By starting at a label following a BARRIER, we are immune to actions taken by reload and jump.) Then we scan all insns between that point and our target. For each CLOBBER (or for call-clobbered regs when we pass a CALL_INSN), mark the appropriate registers are dead. For a SET, mark them as live. We have to be careful when using REG_DEAD notes because they are not updated by such things as find_equiv_reg. So keep track of registers marked as dead that haven't been assigned to, and mark them dead at the next CODE_LABEL since reload and jump won't propagate values across labels. If we cannot find the start of a basic block (should be a very rare case, if it can happen at all), mark everything as potentially live. Next, scan forward from TARGET looking for things set or clobbered before they are used. These are not live. Because we can be called many times on the same target, save our results in a hash table indexed by INSN_UID. This is only done if the function init_resource_info () was invoked before we are called. */ void mark_target_live_regs (insns, target, res) rtx insns; rtx target; struct resources *res; { int b = -1; unsigned int i; struct target_info *tinfo = NULL; rtx insn; rtx jump_insn = 0; rtx jump_target; HARD_REG_SET scratch; struct resources set, needed; /* Handle end of function. */ if (target == 0) { *res = end_of_function_needs; return; } /* We have to assume memory is needed, but the CC isn't. */ res->memory = 1; res->volatil = res->unch_memory = 0; res->cc = 0; /* See if we have computed this value already. */ if (target_hash_table != NULL) { for (tinfo = target_hash_table[INSN_UID (target) % TARGET_HASH_PRIME]; tinfo; tinfo = tinfo->next) if (tinfo->uid == INSN_UID (target)) break; /* Start by getting the basic block number. If we have saved information, we can get it from there unless the insn at the start of the basic block has been deleted. */ if (tinfo && tinfo->block != -1 && ! INSN_DELETED_P (BLOCK_HEAD (tinfo->block))) b = tinfo->block; } if (b == -1) b = find_basic_block (target, MAX_DELAY_SLOT_LIVE_SEARCH); if (target_hash_table != NULL) { if (tinfo) { /* If the information is up-to-date, use it. Otherwise, we will update it below. */ if (b == tinfo->block && b != -1 && tinfo->bb_tick == bb_ticks[b]) { COPY_HARD_REG_SET (res->regs, tinfo->live_regs); return; } } else { /* Allocate a place to put our results and chain it into the hash table. */ tinfo = (struct target_info *) xmalloc (sizeof (struct target_info)); tinfo->uid = INSN_UID (target); tinfo->block = b; tinfo->next = target_hash_table[INSN_UID (target) % TARGET_HASH_PRIME]; target_hash_table[INSN_UID (target) % TARGET_HASH_PRIME] = tinfo; } } CLEAR_HARD_REG_SET (pending_dead_regs); /* If we found a basic block, get the live registers from it and update them with anything set or killed between its start and the insn before TARGET. Otherwise, we must assume everything is live. */ if (b != -1) { regset regs_live = BASIC_BLOCK (b)->global_live_at_start; unsigned int j; unsigned int regno; rtx start_insn, stop_insn; /* Compute hard regs live at start of block -- this is the real hard regs marked live, plus live pseudo regs that have been renumbered to hard regs. */ REG_SET_TO_HARD_REG_SET (current_live_regs, regs_live); EXECUTE_IF_SET_IN_REG_SET (regs_live, FIRST_PSEUDO_REGISTER, i, { if (reg_renumber[i] >= 0) { regno = reg_renumber[i]; for (j = regno; j < regno + HARD_REGNO_NREGS (regno, PSEUDO_REGNO_MODE (i)); j++) SET_HARD_REG_BIT (current_live_regs, j); } }); /* Get starting and ending insn, handling the case where each might be a SEQUENCE. */ start_insn = (b == 0 ? insns : BLOCK_HEAD (b)); stop_insn = target; if (GET_CODE (start_insn) == INSN && GET_CODE (PATTERN (start_insn)) == SEQUENCE) start_insn = XVECEXP (PATTERN (start_insn), 0, 0); if (GET_CODE (stop_insn) == INSN && GET_CODE (PATTERN (stop_insn)) == SEQUENCE) stop_insn = next_insn (PREV_INSN (stop_insn)); for (insn = start_insn; insn != stop_insn; insn = next_insn_no_annul (insn)) { rtx link; rtx real_insn = insn; enum rtx_code code = GET_CODE (insn); /* If this insn is from the target of a branch, it isn't going to be used in the sequel. If it is used in both cases, this test will not be true. */ if ((code == INSN || code == JUMP_INSN || code == CALL_INSN) && INSN_FROM_TARGET_P (insn)) continue; /* If this insn is a USE made by update_block, we care about the underlying insn. */ if (code == INSN && GET_CODE (PATTERN (insn)) == USE && INSN_P (XEXP (PATTERN (insn), 0))) real_insn = XEXP (PATTERN (insn), 0); if (GET_CODE (real_insn) == CALL_INSN) { /* CALL clobbers all call-used regs that aren't fixed except sp, ap, and fp. Do this before setting the result of the call live. */ AND_COMPL_HARD_REG_SET (current_live_regs, regs_invalidated_by_call); /* A CALL_INSN sets any global register live, since it may have been modified by the call. */ for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) if (global_regs[i]) SET_HARD_REG_BIT (current_live_regs, i); } /* Mark anything killed in an insn to be deadened at the next label. Ignore USE insns; the only REG_DEAD notes will be for parameters. But they might be early. A CALL_INSN will usually clobber registers used for parameters. It isn't worth bothering with the unlikely case when it won't. */ if ((GET_CODE (real_insn) == INSN && GET_CODE (PATTERN (real_insn)) != USE && GET_CODE (PATTERN (real_insn)) != CLOBBER) || GET_CODE (real_insn) == JUMP_INSN || GET_CODE (real_insn) == CALL_INSN) { for (link = REG_NOTES (real_insn); link; link = XEXP (link, 1)) if (REG_NOTE_KIND (link) == REG_DEAD && GET_CODE (XEXP (link, 0)) == REG && REGNO (XEXP (link, 0)) < FIRST_PSEUDO_REGISTER) { unsigned int first_regno = REGNO (XEXP (link, 0)); unsigned int last_regno = (first_regno + HARD_REGNO_NREGS (first_regno, GET_MODE (XEXP (link, 0)))); for (i = first_regno; i < last_regno; i++) SET_HARD_REG_BIT (pending_dead_regs, i); } note_stores (PATTERN (real_insn), update_live_status, NULL); /* If any registers were unused after this insn, kill them. These notes will always be accurate. */ for (link = REG_NOTES (real_insn); link; link = XEXP (link, 1)) if (REG_NOTE_KIND (link) == REG_UNUSED && GET_CODE (XEXP (link, 0)) == REG && REGNO (XEXP (link, 0)) < FIRST_PSEUDO_REGISTER) { unsigned int first_regno = REGNO (XEXP (link, 0)); unsigned int last_regno = (first_regno + HARD_REGNO_NREGS (first_regno, GET_MODE (XEXP (link, 0)))); for (i = first_regno; i < last_regno; i++) CLEAR_HARD_REG_BIT (current_live_regs, i); } } else if (GET_CODE (real_insn) == CODE_LABEL) { /* A label clobbers the pending dead registers since neither reload nor jump will propagate a value across a label. */ AND_COMPL_HARD_REG_SET (current_live_regs, pending_dead_regs); CLEAR_HARD_REG_SET (pending_dead_regs); } /* The beginning of the epilogue corresponds to the end of the RTL chain when there are no epilogue insns. Certain resources are implicitly required at that point. */ else if (GET_CODE (real_insn) == NOTE && NOTE_LINE_NUMBER (real_insn) == NOTE_INSN_EPILOGUE_BEG) IOR_HARD_REG_SET (current_live_regs, start_of_epilogue_needs.regs); } COPY_HARD_REG_SET (res->regs, current_live_regs); if (tinfo != NULL) { tinfo->block = b; tinfo->bb_tick = bb_ticks[b]; } } else /* We didn't find the start of a basic block. Assume everything in use. This should happen only extremely rarely. */ SET_HARD_REG_SET (res->regs); CLEAR_RESOURCE (&set); CLEAR_RESOURCE (&needed); jump_insn = find_dead_or_set_registers (target, res, &jump_target, 0, set, needed); /* If we hit an unconditional branch, we have another way of finding out what is live: we can see what is live at the branch target and include anything used but not set before the branch. We add the live resources found using the test below to those found until now. */ if (jump_insn) { struct resources new_resources; rtx stop_insn = next_active_insn (jump_insn); mark_target_live_regs (insns, next_active_insn (jump_target), &new_resources); CLEAR_RESOURCE (&set); CLEAR_RESOURCE (&needed); /* Include JUMP_INSN in the needed registers. */ for (insn = target; insn != stop_insn; insn = next_active_insn (insn)) { mark_referenced_resources (insn, &needed, 1); COPY_HARD_REG_SET (scratch, needed.regs); AND_COMPL_HARD_REG_SET (scratch, set.regs); IOR_HARD_REG_SET (new_resources.regs, scratch); mark_set_resources (insn, &set, 0, MARK_SRC_DEST_CALL); } IOR_HARD_REG_SET (res->regs, new_resources.regs); } if (tinfo != NULL) { COPY_HARD_REG_SET (tinfo->live_regs, res->regs); } } /* Initialize the resources required by mark_target_live_regs (). This should be invoked before the first call to mark_target_live_regs. */ void init_resource_info (epilogue_insn) rtx epilogue_insn; { int i; /* Indicate what resources are required to be valid at the end of the current function. The condition code never is and memory always is. If the frame pointer is needed, it is and so is the stack pointer unless EXIT_IGNORE_STACK is nonzero. If the frame pointer is not needed, the stack pointer is. Registers used to return the function value are needed. Registers holding global variables are needed. */ end_of_function_needs.cc = 0; end_of_function_needs.memory = 1; end_of_function_needs.unch_memory = 0; CLEAR_HARD_REG_SET (end_of_function_needs.regs); if (frame_pointer_needed) { SET_HARD_REG_BIT (end_of_function_needs.regs, FRAME_POINTER_REGNUM); #if HARD_FRAME_POINTER_REGNUM != FRAME_POINTER_REGNUM SET_HARD_REG_BIT (end_of_function_needs.regs, HARD_FRAME_POINTER_REGNUM); #endif #ifdef EXIT_IGNORE_STACK if (! EXIT_IGNORE_STACK || current_function_sp_is_unchanging) #endif SET_HARD_REG_BIT (end_of_function_needs.regs, STACK_POINTER_REGNUM); } else SET_HARD_REG_BIT (end_of_function_needs.regs, STACK_POINTER_REGNUM); if (current_function_return_rtx != 0) mark_referenced_resources (current_function_return_rtx, &end_of_function_needs, 1); for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) if (global_regs[i] #ifdef EPILOGUE_USES || EPILOGUE_USES (i) #endif ) SET_HARD_REG_BIT (end_of_function_needs.regs, i); /* The registers required to be live at the end of the function are represented in the flow information as being dead just prior to reaching the end of the function. For example, the return of a value might be represented by a USE of the return register immediately followed by an unconditional jump to the return label where the return label is the end of the RTL chain. The end of the RTL chain is then taken to mean that the return register is live. This sequence is no longer maintained when epilogue instructions are added to the RTL chain. To reconstruct the original meaning, the start of the epilogue (NOTE_INSN_EPILOGUE_BEG) is regarded as the point where these registers become live (start_of_epilogue_needs). If epilogue instructions are present, the registers set by those instructions won't have been processed by flow. Thus, those registers are additionally required at the end of the RTL chain (end_of_function_needs). */ start_of_epilogue_needs = end_of_function_needs; while ((epilogue_insn = next_nonnote_insn (epilogue_insn))) mark_set_resources (epilogue_insn, &end_of_function_needs, 0, MARK_SRC_DEST_CALL); /* Allocate and initialize the tables used by mark_target_live_regs. */ target_hash_table = (struct target_info **) xcalloc (TARGET_HASH_PRIME, sizeof (struct target_info *)); bb_ticks = (int *) xcalloc (last_basic_block, sizeof (int)); } /* Free up the resources allcated to mark_target_live_regs (). This should be invoked after the last call to mark_target_live_regs (). */ void free_resource_info () { if (target_hash_table != NULL) { int i; for (i = 0; i < TARGET_HASH_PRIME; ++i) { struct target_info *ti = target_hash_table[i]; while (ti) { struct target_info *next = ti->next; free (ti); ti = next; } } free (target_hash_table); target_hash_table = NULL; } if (bb_ticks != NULL) { free (bb_ticks); bb_ticks = NULL; } } /* Clear any hashed information that we have stored for INSN. */ void clear_hashed_info_for_insn (insn) rtx insn; { struct target_info *tinfo; if (target_hash_table != NULL) { for (tinfo = target_hash_table[INSN_UID (insn) % TARGET_HASH_PRIME]; tinfo; tinfo = tinfo->next) if (tinfo->uid == INSN_UID (insn)) break; if (tinfo) tinfo->block = -1; } } /* Increment the tick count for the basic block that contains INSN. */ void incr_ticks_for_insn (insn) rtx insn; { int b = find_basic_block (insn, MAX_DELAY_SLOT_LIVE_SEARCH); if (b != -1) bb_ticks[b]++; } /* Add TRIAL to the set of resources used at the end of the current function. */ void mark_end_of_function_resources (trial, include_delayed_effects) rtx trial; int include_delayed_effects; { mark_referenced_resources (trial, &end_of_function_needs, include_delayed_effects); } ```
Jelynn Rodriguez (born August 31, 1983) is a Filipino-American host of the American Sí TV show The Drop, as well as an actress, dancer and singer. She has worked in show business since she was a teenager attending Rancho Bernardo High School. On television, Jelynn was a host on the TV Guide Channel, and she appeared on CBS's pilot Three (2005). She also hosted the San Diego TV show, The Beat (2003-2004). She is still a host of The Drop which can be seen on Sí TV. In late 2005, Jelynn shot her first movie to be released sometime in 2007, Bar Starz. She plays Melanie, one of the leads in this movie about "the adventures of some seriously odd club denizens." Jelynn can be seen in the horror film Grizzly Park playing the character KiKi. Grizzly Park was released in Fall 2007. Jelynn is starring in a new Internet show called Engaged. She can be seen in an upcoming episode of NBC's hit drama Las Vegas. External links www.jelynnrodriguez.net www.grizzlypark.com www.engaged.tv Living people Actresses from San Diego American actresses of Filipino descent American television hosts Rancho Bernardo High School alumni 21st-century American women 1983 births
Tolikara Football Club or Toli FC (formerly known as Persitoli Tolikara) is an Indonesian football club based in Tolikara Regency, Highland Papua. Club played in Liga 3. On 9 November 2020, Persitoli Tolikara officially rename to Toli FC, along with the launch of its new logo which took place at the Grand Alison Sentani Hotel, Jayapura Regency. Persitoli stadium named Pendidikan Stadium. Its location was in downtown Wamena, Papua. Honours Liga 3 Papua Champion (1): 2021 References Football clubs in Indonesia Football clubs in Highland Papua Association football clubs established in 2003 2003 establishments in Indonesia
Barton Fink is a 1991 American period black comedy psychological thriller film written, produced, edited and directed by the Coen brothers. Set in 1941, it stars John Turturro in the title role as a young New York City playwright who is hired to write scripts for a film studio in Hollywood, and John Goodman as Charlie Meadows, the insurance salesman who lives next door at the run-down Hotel Earle. The Coens wrote the screenplay for Barton Fink in three weeks while experiencing writer's block during the writing of Miller's Crossing. They began filming soon after Miller's Crossing was finished. The film is influenced by works of several earlier directors, particularly Roman Polanski's Repulsion (1965) and The Tenant (1976). Barton Fink had its premiere at the Cannes Film Festival in May 1991. In a rare sweep, it won the Palme d'Or as well as awards for Best Director and Best Actor (Turturro). Although the film was a box office bomb, only grossing $6 million against its $9 million budget, it received positive reviews and was nominated for three Academy Awards. Prominent themes of Barton Fink include the writing process; slavery and conditions of labor in creative industries; superficial distinctions between high culture and low culture; and the relationship of intellectuals with "the common man". The diverse elements of the film have led it to defy efforts at genre classification, with the work being variously referred to as a film noir, a horror film, a Künstlerroman, and a buddy film. It contains various literary allusions and religious overtones, as well as references to many real-life people and events – most notably the writers Clifford Odets and William Faulkner, of whom the characters of Barton Fink and W. P. Mayhew, respectively, are often seen as fictional representations. Several features of the film's narrative, particularly an image of a woman at the beach which recurs throughout, have sparked much commentary, with the Coens acknowledging some intentional symbolic elements while denying an attempt to communicate any single message in the film. Plot In 1941, up-and-coming Broadway playwright Barton Fink accepts a contract from Capitol Pictures in Hollywood to write film scripts for a thousand dollars per week. Upon moving to Los Angeles, Fink settles into the cheap Hotel Earle. His room's only decoration is a small painting of a woman on the beach, arm raised to block the sun. Fink is assigned to a wrestling film by his new boss Jack Lipnick, but he finds difficulty in writing for the unfamiliar subject. He is distracted by sounds coming from the room next door, and he phones the front desk to alert them of the disturbing sounds. His neighbor, Charlie Meadows, the source of the noise, visits Fink to apologize. During their conversation, Fink proclaims his affection for "the common man", and Meadows describes his life as an insurance salesman. Still unable to proceed beyond the first lines of his script, Fink consults producer Ben Geisler for advice. Irritated, the frenetic Geisler takes him to lunch and orders him to consult another writer for assistance. Fink accidentally meets the novelist W. P. Mayhew in the bathroom. They briefly discuss movie-writing and arrange a second meeting later in the day. Fink later learns from Mayhew's secretary, Audrey Taylor, that Mayhew suffers from alcoholism and that Taylor ghostwrote some of his scripts. With one day left before his meeting with Lipnick to discuss the film, Fink phones Taylor and begs her for assistance. Taylor visits him at the Earle and they have sex. Fink awakens the next morning to find that Taylor had been violently murdered. Horrified, he summons Meadows and asks for help. Meadows is repulsed but disposes of the body and orders Fink to avoid contacting the police. After Fink has a meeting with an unusually supportive Lipnick, Meadows announces to Fink that he is going to New York for several days, and asks him to watch over a package he is leaving behind. Soon afterwards, Fink is visited by two police detectives, who inform him that Meadows's real name is Karl "Madman" Mundt. Mundt is a serial killer whose modus operandi is beheading his victims. Stunned, Fink places the box on his desk without opening it and he begins writing feverishly. Fink produces the entire script in one sitting and he goes out for a night of celebratory dancing. Fink returns to find the detectives in his room, who inform him of Mayhew's murder and accuse Fink of complicity with Mundt. As the hotel is suddenly engulfed in flames, Mundt appears and kills the detectives with a shotgun, after which he mentions that he had paid a visit to Fink's parents and uncle in New York. Fink leaves the still-burning hotel, carrying the box and his script. Shortly thereafter he attempts to telephone his family, but there is no answer. In a final meeting with Lipnick, who has been conscripted by the United States Army Reserve to serve as a colonel in the Second World War, Fink's script (which is suggested to be a nearly word-for-word copy of one of his Broadway plays) is lambasted as "a fruity movie about suffering", and he is informed that he is to remain in Los Angeles; although Fink will remain under contract, Capitol Pictures will not produce anything he writes until he "grows up a little". Dazed, Fink wanders onto a beach, still carrying the package. He meets a woman who looks just like the one in the picture on his wall at the Earle, and she asks about the box. He tells her he does not know what it contains nor who owns it. She then assumes the pose from the picture. Cast John Turturro as Barton Fink John Goodman as Charlie Meadows / Karl "Madman" Mundt Michael Lerner as Jack Lipnick Judy Davis as Audrey Taylor John Mahoney as W. P. "Bill" Mayhew Tony Shalhoub as Ben Geisler Jon Polito as Lou Breeze Steve Buscemi as Chet David Warrilow as Garland Stanford Richard Portnow as Detective Mastrionotti Christopher Murney as Detective Deutsch Frances McDormand as Stage Actress (uncredited) Production Background and writing In 1989, film-makers Joel and Ethan Coen began writing the script for a film eventually released as Miller's Crossing. The many threads of the story became complicated, and after four months they found themselves lost in the process. Although biographers and critics later referred to it as writer's block, the Coen brothers rejected this description. "It's not really the case that we were suffering from writer's block," Joel said in a 1991 interview, "but our working speed had slowed, and we were eager to get a certain distance from Miller's Crossing." They went from Los Angeles to New York and began work on a different project. In three weeks, the Coens wrote a script with a title role written specifically for actor John Turturro, with whom they'd been working on Miller's Crossing. The new film, Barton Fink, was set in a large, seemingly abandoned hotel. This setting, which they named the Hotel Earle, was a driving force behind the story and mood of the new project. While filming their 1984 film Blood Simple in Austin, Texas, the Coens had seen a hotel which made a significant impression: "We thought, 'Wow, Motel Hell.' You know, being condemned to live in the weirdest hotel in the world." The writing process for Barton Fink was smooth, they said, suggesting that the relief of being away from Miller's Crossing may have been a catalyst. They also felt satisfied with the overall shape of the story, which helped them move quickly through the composition. "Certain films come entirely in one's head; we just sort of burped out Barton Fink." While writing, the Coens created a second leading role with another actor in mind: John Goodman, who had appeared in their 1987 comedy Raising Arizona. His new character, Charlie, was Barton's next-door neighbor in the cavernous hotel. Even before writing, the Coens knew how the story would end, and wrote Charlie's final speech at the start of the writing process. The script served its diversionary purpose, and the Coens put it aside: "Barton Fink sort of washed out our brain and we were able to go back and finish Miller's Crossing." Once production of the first film was finished, the Coens began to recruit staff to film Barton Fink. Turturro looked forward to playing the lead role, and spent a month with the Coens in Los Angeles to coordinate views on the project: "I felt I could bring something more human to Barton. Joel and Ethan allowed me a certain contribution. I tried to go a little further than they expected." As they designed detailed storyboards for Barton Fink, the Coens began looking for a new cinematographer, since their associate Barry Sonnenfeld – who had filmed their first three films – was occupied with his own directorial debut, The Addams Family. The Coens had been impressed with the work of English cinematographer Roger Deakins, particularly the interior scenes of the 1988 film Stormy Monday. After screening other films he had worked on (including Sid and Nancy and Pascali's Island), they sent a script to Deakins and invited him to join the project. His agent advised against working with the Coens, but Deakins met with them at a café in Notting Hill and they soon began working together on Barton Fink. Filming Filming began in June 1990 and took eight weeks (a third less time than required by Miller's Crossing), and the estimated final budget for the film was US$9 million. The Coens worked well with Deakins, and they easily translated their ideas for each scene onto film. "There was only one moment we surprised him," Joel Coen recalled later. An extended scene called for a tracking shot out of the bedroom and into a sink drain "plug hole" in the adjacent bathroom as a symbol of sexual intercourse. "The shot was a lot of fun and we had a great time working out how to do it," Joel said. "After that, every time we asked Roger to do something difficult, he would raise an eyebrow and say, 'Don't be having me track down any plug-holes now.'" Three weeks of filming were spent in the Hotel Earle, a set created by art director Dennis Gassner. The film's climax required a huge spreading fire in the hotel's hallway, which the Coens originally planned to add digitally in post-production. When they decided to use real flames, however, the crew built a large alternative set in an abandoned aircraft hangar at Long Beach. A series of gas jets were installed behind the hallway, and the wallpaper was perforated for easy penetration. As Goodman ran through the hallway, a man on an overhead catwalk opened each jet, giving the impression of a fire racing ahead of Charlie. Each take required a rebuild of the apparatus, and a second hallway (sans fire) stood ready nearby for filming pick-up shots between takes. The final scene was shot near Zuma Beach, as was the image of a wave crashing against a rock. The Coens edited the film themselves, as is their custom. "We prefer a hands-on approach," Joel explained in 1996, "rather than sitting next to someone and telling them what to cut." Because of rules for membership in film production guilds, they are required to use a pseudonym; "Roderick Jaynes" is credited with editing Barton Fink. Only a few filmed scenes were removed from the final cut, including a transition scene to show Barton's movement from New York to Hollywood. (In the film, this is shown enigmatically with a wave crashing against a rock.) Several scenes representing work in Hollywood studios were also filmed, but edited out because they were "too conventional". Setting There is a sharp contrast between Fink's living quarters and the polished, pristine environs of Hollywood, especially the home of Jack Lipnick. The spooky, inexplicably empty feel of the Hotel Earle was central to the Coens' conception of the film. "We wanted an art deco stylization," Joel explained in a 1991 interview, "and a place that was falling into ruin after having seen better days." Barton's room is sparsely furnished with two large windows facing another building. The Coens later described the hotel as a "ghost ship floating adrift, where you notice signs of the presence of other passengers, without ever laying eyes on any." In the film, residents' shoes are an indication of this unseen presence; another rare sign of other inhabitants is the sound from adjacent rooms. Joel said: "You can imagine it peopled by failed commercial travelers, with pathetic sex lives, who cry alone in their rooms." Heat and moisture are other important elements of the setting. The wallpaper in Barton's room peels and droops; Charlie experiences the same problem and guesses heat is the cause. The Coens used green and yellow colors liberally in designing the hotel "to suggest an aura of putrefaction." The atmosphere of the hotel was meant to connect with the character of Charlie. As Joel explained: "Our intention, moreover, was that the hotel function as an exteriorization of the character played by John Goodman. The sweat drips off his forehead like the wallpaper peels off the walls. At the end, when Goodman says that he is a prisoner of his own mental state, that this is like some kind of hell, it was necessary for the hotel to have already suggested something infernal." The peeling wallpaper and the paste which seeps through it also mirror Charlie's chronic ear infection and the resultant pus. When Barton first arrives at the Hotel Earle, he is asked by the friendly bellhop, Chet, (Steve Buscemi) if he is "a trans or a res" – transient or resident. Barton explains that he isn't sure but will be staying "indefinitely." The dichotomy between permanent inhabitants and guests reappears several times, notably in the hotel's motto, "A day or a lifetime," which Barton notices on the room's stationery. This idea returns at the end of the film, when Charlie describes Barton as "a tourist with a typewriter." His ability to leave the Earle (while Charlie remains) is presented by critic Erica Rowell as evidence that Barton's story represents the process of writing itself. Barton, she says, represents an author who is able to leave a story, while characters like Charlie cannot. In contrast, the offices of Capitol Pictures and Lipnick's house are pristine, lavishly decorated, and extremely comfortable. The company's rooms are bathed in sunlight and Ben Geisler's office faces a lush array of flora. Barton meets Lipnick in one scene beside an enormous, spotless swimming pool. This echoes his position as studio head, as he explains: "...you can't always be honest, not with the sharks swimming around this town ... if I'd been totally honest, I wouldn't be within a mile of this pool – unless I was cleaning it." In his office, Lipnick showcases another trophy of his power: statues of Atlas, the Titan of Greek mythology who declared war on the gods of Mount Olympus and was severely punished. Barton watches dailies from another wrestling film being made by Capitol Pictures; the date on the clapperboard is December 9, two days after the attack on Pearl Harbor. Later, when Barton celebrates the completed script by dancing at a USO show, he is surrounded by soldiers. In Lipnick's next appearance, he wears a colonel's uniform, which is really a costume from his company. Lipnick has not actually entered the military but declares himself ready to fight the "little yellow bastards." Originally, this historical moment just after the United States entered World War II was to have a significant impact on the Hotel Earle. As the Coens explained: "[W]e were thinking of a hotel where the lodgers were old people, the insane, the physically handicapped, because all the others had left for the war. The further the script was developed, the more this theme got left behind, but it had led us, in the beginning, to settle on that period." The Picture The picture in Barton's room of a woman at the beach is a central focus for both the character and camera. He examines it frequently while at his desk and after finding Audrey's corpse in his bed he goes to stand near it. The image is repeated at the end of the film, when he meets an identical-looking woman at an identical-looking beach, who strikes an identical pose. After complimenting her beauty, he asks her: "Are you in pictures?" She blushes and replies: "Don't be silly.” The Coens decided early in the writing process to include the picture as a key element in the room. "Our intention," Joel explained later, "was that the room would have very little decoration, that the walls would be bare and that the windows would offer no view of any particular interest. In fact, we wanted the only opening on the exterior world to be this picture. It seemed important to us to create a feeling of isolation." Later in the film, Barton places into the frame a small picture of Charlie, dressed in a fine suit and holding a briefcase. The juxtaposition of his neighbor in the uniform of an insurance salesman and the escapist image of the woman on the beach leads to a confusion of reality and fantasy for Barton. Critic Michael Dunne notes: "[V]iewers can only wonder how 'real' Charlie is. ... In the film's final shot ... viewers must wonder how 'real' [the woman] is. The question leads to others: How real is Fink? Lipnick? Audrey? Mayhew? How real are films anyway?" The picture's significance has been the subject of broad speculation. The Washington Post reviewer Desson Howe said that despite its emotional impact, the final scene "feels more like a punchline for punchline's sake, a trumped-up coda." In her book-length analysis of the Coen brothers' films, Rowell suggests that Barton's fixation on the picture is ironic, considering its low culture status and his own pretensions toward high culture (speeches to the contrary notwithstanding). She further notes that the camera focuses on Barton himself as much as the picture while he gazes at it. At one point, the camera moves past Barton to fill the frame with the woman on the beach. This tension between objective and subjective points of view appears again at the end of the film, when Barton finds himself – in a sense – inside the picture. Critic M. Keith Booker calls the final scene an "enigmatic comment on representation and the relationship between art and reality." He suggests that the identical images point to the absurdity of art which reflects life directly. The film transposes the woman directly from art to reality, prompting confusion in the viewer; Booker asserts that such a literal depiction therefore leads inevitably to uncertainty. Many critics noted that "The Law of Non-Contradiction", an episode of the Coen-produced TV series Fargo based on their eponymous 1996 film, features a reference to the picture, as the episode's main character Gloria sits at the beach in shot and position similar to the picture's. The episode's themes were also compared to Barton Fink. Genre The Coens are known for making films that defy simple classification. Although they refer to their first film, Blood Simple (1984), as a relatively straightforward example of detective fiction, the Coens wrote their next script, Raising Arizona (1987), without trying to fit a particular genre. They decided to write a comedy but intentionally added dark elements to produce what Ethan calls "a pretty savage film." Their third film, Miller's Crossing (1990), reversed this order, mixing bits of comedy into a crime film. Yet it also subverts single-genre identity by using conventions from melodrama, love stories, and political satire. This trend of mixing genres continued and intensified with Barton Fink (1991); the Coens insist the film "does not belong to any genre." Ethan has described it as "a buddy movie for the '90s." It contains elements of comedy, film noir, and horror, but other film categories are present. Actor Turturro referred to it as a coming of age story while literature professor and film analyst R. Barton Palmer calls it a Künstlerroman, highlighting the importance of the main character's evolution as a writer. Critic Donald Lyons describes the film as "a retro-surrealist vision.” Because it crosses genres, fragments the characters' experiences, and resists straightforward narrative resolution, Barton Fink is often considered an example of postmodernist film. In his book Postmodern Hollywood, Booker says the film renders the past with an impressionist technique, not a precise accuracy. This technique, he notes, is "typical of postmodern film, which views the past not as the prehistory of the present but as a warehouse of images to be raided for material." In his analysis of the Coens' films, Palmer calls Barton Fink a "postmodern pastiche" which closely examines how past eras have represented themselves. He compares it to The Hours (2002), a film about Virginia Woolf and two women who read her work. He asserts that both films, far from rejecting the importance of the past, add to our understanding of it. He quotes literary theorist Linda Hutcheon: the kind of postmodernism exhibited in these films "does not deny the existence of the past; it does question whether we can ever know that past other than through its textualizing remains.” Certain elements in Barton Fink highlight the veneer of postmodernism: the writer is unable to resolve his modernist focus on high culture with the studio's desire to create formulaic high-profit films; the resulting collision produces a fractured story arc emblematic of postmodernism. The Coens' cinematic style is another example; when Barton and Audrey begin making love, the camera pans away to the bathroom, then moves toward the sink and down its drain. Rowell calls this a "postmodern update" of the notorious sexually suggestive image of a train entering a tunnel, used by director Alfred Hitchcock in his film North by Northwest. Style Barton Fink uses several stylistic conventions to accentuate the story's mood and give visual emphasis to particular themes. For example, the opening credits roll over the Hotel Earle's wallpaper, as the camera moves downward. This motion is repeated many times in the film, especially pursuant to Barton's claim that his job is to "plumb the depths" while writing. His first experiences in the Hotel Earle continue this trope; the bellhop Chet emerges from beneath the floor, carrying a shoe (which he has presumably been polishing) suggesting the real activity is underground. Although Barton's floor is presumably six floors above the lobby, the interior of the elevator is shown only while it is descending. These elements – combined with many dramatic pauses, surreal dialogue, and implied threats of violence – create an atmosphere of extreme tension. The Coens explained that "the whole movie was supposed to feel like impending doom or catastrophe. And we definitely wanted it to end with an apocalyptic feeling." The style of Barton Fink is evocative and representative of films of the 1930s and 1940s. As critic Michael Dunne points out: "Fink's heavy overcoat, his hat, his dark, drab suits come realistically out of the Thirties, but they come even more out of the films of the Thirties." The style of the Hotel Earle and atmosphere of various scenes also reflect the influence of pre-World War II film-making. Even Charlie's underwear matches that worn by his filmic hero Jack Oakie. At the same time, camera techniques used by the Coens in Barton Fink represent a combination of the classic with the original. Careful tracking shots and extreme close-ups distinguish the film as a product of the late 20th century. From the start, the film moves continuously between Barton's subjective view of the world and one which is objective. After the opening credits roll, the camera tilts down to Barton, watching the end of his play. Soon we see the audience from his point of view, cheering wildly for him. As he walks forward, he enters the shot and the viewer is returned to an objective point of view. This blurring of the subjective and objective returns in the final scene. The shifting point of view coincides with the film's subject matter: film-making. The film begins with the end of a play, and the story explores the process of creation. This metanarrative approach is emphasized by the camera's focus in the first scene on Barton (who is mouthing the words spoken by actors offscreen), not on the play he is watching. As Rowell says: "[T]hough we listen to one scene, we watch another. ... The separation of sound and picture shows a crucial dichotomy between two 'views' of artifice: the world created by the protagonist (his play) and the world outside it (what goes into creating a performance)." The film also employs numerous foreshadowing techniques. Signifying the probable contents of the package Charlie leaves with Barton, the word "head" appears 60 times in the original screenplay. In a grim nod to later events, Charlie describes his positive attitude toward his "job" of selling insurance: "Fire, theft and casualty are not things that only happen to other people." Symbolism Much has been written about the symbolic meanings of Barton Fink. Rowell proposes that it is "a figurative head swelling of ideas that all lead back to the artist." The proximity of the sex scene to Audrey's murder prompts Lyons to insist: "Sex in Barton Fink is death." Others have suggested that the second half of the film is an extended dream sequence. The Coens, however, have denied any intent to create a systematic unity from symbols in the film. "We never, ever go into our films with anything like that in mind," Joel said in a 1998 interview. "There's never anything approaching that kind of specific intellectual breakdown. It's always a bunch of instinctive things that feel right, for whatever reason." The Coens have noted their comfort with unresolved ambiguity. Ethan said in 1991: "Barton Fink does end up telling you what's going on to the extent that it's important to know ... What isn't crystal clear isn't intended to become crystal clear, and it's fine to leave it at that." Regarding fantasies and dream sequences, he said: The homoerotic overtones of Barton's relationship with Charlie are not unintentional. Although one detective demands to know if they had "some sick sex thing," their intimacy is presented as anything but deviant, and cloaked in conventions of mainstream sexuality. Charlie's first friendly overture toward his neighbor, for example, comes in the form of a standard pick-up line: "I'd feel better about the damned inconvenience if you'd let me buy you a drink.” The wrestling scene between Barton and Charlie is also cited as an example of homoerotic affection. "We consider that a sex scene," Joel Coen said in 2001. Sound and music Many of the sound effects in Barton Fink are laden with meaning. For example, Barton is summoned by a bell while dining in New York City; its sound is light and pleasant. By contrast, the eerie sustained bell of the Hotel Earle rings endlessly through the lobby, until Chet silences it. The nearby rooms of the hotel emit a constant chorus of guttural cries, moans, and assorted unidentifiable noises. These sounds coincide with Barton's confused mental state and punctuate Charlie's claim that "I hear everything that goes on in this dump." The applause in the first scene foreshadows the tension of Barton's move west, mixed as it is with the sound of an ocean wave crashing – an image which is shown onscreen soon thereafter. Another symbolic sound is the hum of a mosquito. Although Fink's producer insists that these parasites don't live in Los Angeles (since "mosquitos breed in swamps; this is a desert,") its distinctive sound is heard clearly as Barton watches a bug circle overhead in his hotel room. Later, he arrives at meetings with mosquito bites on his face. The insect also figures prominently into the revelation of Audrey's death; Barton slaps a mosquito feeding on her corpse and suddenly realizes she has been murdered. The high pitch of the mosquito's hum is echoed in the high strings used for the film's score. During filming, the Coens were contacted by an animal rights group who expressed concern about how mosquitoes would be treated. The score was composed by Carter Burwell, who has worked with the Coens since their first film. Unlike earlier projects, however – the Irish folk tune used for Miller's Crossing and an American folk song as the basis for Raising Arizona – Burwell wrote the music for Barton Fink without a specific inspiration. The score was released in 1996 on a compact disc, combined with the score for the Coens' film Fargo. Several songs used in the film are laden with meaning. At one point Mayhew stumbles away from Barton and Audrey, drunk. As he wanders, he hollers the folk song "Old Black Joe." (1853) Composed by Stephen Foster, it tells the tale of an elderly slave preparing to join his friends in "a better land." Mayhew's rendition of the song coincides with his condition as an oppressed employee of Capitol Pictures, and it foreshadows Barton's own situation at the film's end. When he finishes writing his script, Barton celebrates by dancing at a United Service Organizations (USO) show. The song used in this scene is a rendition of "Down South Camp Meeting," a swing tune. Its lyrics (unheard in the film) state: "Git ready (Sing) / Here they come! The choir's all set." These lines echo the title of Barton's play, Bare Ruined Choirs. As the celebration erupts into a melee, the intensity of the music increases, and the camera zooms into the cavernous hollow of a trumpet. This sequence mirrors the camera's zoom into a sink drain just before Audrey is murdered earlier in the film. Sources, inspirations, and allusions Inspiration for the film came from several sources, and it contains allusions to many different people and events. For example, the title of Barton's play, Bare Ruined Choirs, comes from line four of Sonnet 73 by William Shakespeare. The poem's focus on aging and death connects to the film's exploration of artistic difficulty. Later, at one point in the picnic scene, as Mayhew wanders drunkenly away from Barton and Audrey, he calls out: "Silent upon a peak in Darien!" This is the last line from John Keats's sonnet "On First Looking into Chapman's Homer." (1816) The literary reference not only demonstrates the character's knowledge of classic texts, but the poem's reference to the Pacific Ocean matches Mayhew's announcement that he will "jus' walk on down to the Pacific, and from there I'll ... improvise.” Other academic allusions are presented elsewhere, often with extreme subtlety. For example, a brief shot of the title page in a Mayhew novel indicates the publishing house of "Swain and Pappas." This is likely a reference to Marshall Swain and George Pappas, philosophers whose work is concerned with themes explored in the film, including the limitations of knowledge and nature of being. One critic notes that Barton's fixation on the stain across the ceiling of his hotel room matches the protagonist's behavior in Flannery O'Connor's short story "The Enduring Chill. Critics have suggested that the film indirectly references the work of writers Dante Alighieri (through the use of Divine Comedy imagery) and Johann Wolfgang von Goethe (through the presence of Faustian bargains). Confounding bureaucratic structures and irrational characters, like those in the novels of Franz Kafka, appear in the film, but the Coens insist the connection was not intended. "I have not read him since college", admitted Joel in 1991, "when I devoured works like The Metamorphosis. Others have mentioned The Castle and 'In the Penal Colony,' but I've never read them." Clifford Odets The character of Barton Fink is loosely based on Clifford Odets, a playwright from New York who in the 1930s joined the Group Theatre, a gathering of dramatists which included Harold Clurman, Cheryl Crawford and Lee Strasberg. Their work emphasized social issues and employed Stanislavski's system of acting to recreate human experience as truthfully as possible. Several of Odets' plays were successfully performed on Broadway, including Awake and Sing! and Waiting for Lefty (both in 1935). When public tastes turned away from politically engaged theater and toward the familial realism of Eugene O'Neill, Odets had difficulty producing successful work, so he moved to Hollywood and spent 20 years writing film scripts. The Coens wrote with Odets in mind; they imagined Barton Fink as "a serious dramatist, honest, politically engaged, and rather naive." As Ethan said in 1991: "It seemed natural that he comes from Group Theater and the decade of the thirties." Like Odets, Barton believes that the theatre should celebrate the trials and triumphs of everyday people; like Barton, Odets was highly egotistical. In the film, a review of Barton's play Bare Ruined Choirs indicates that his characters face a "brute struggle for existence ... in the most squalid corners." This wording is similar to the comment of biographer Gerald Weales that Odets' characters "struggle for life amidst petty conditions." Lines of dialogue from Barton's work are reminiscent of Odets' play Awake and Sing!. For example, one character declares: "I'm awake now, awake for the first time." Another says: "Take that ruined choir. Make it sing." However, many important differences exist between the two men. Joel Coen said: "Both writers wrote the same kind of plays with proletarian heroes, but their personalities were quite different. Odets was much more of an extrovert; in fact he was quite sociable even in Hollywood, and this is not the case with Barton Fink!" Although he was frustrated by his declining popularity in New York, Odets was successful during his time in Hollywood. Several of his later plays were adapted – by him and others – into films. One of these, The Big Knife (1955), matches Barton's life much more than Odets'. In it, an actor becomes overwhelmed by the greed of a film studio which hires him and eventually commits suicide. Another similarity to Odets' work is Audrey's death, which mirrors a scene in Deadline at Dawn, (1946) a film noir written by Odets. In that film, a character awakens to find that the woman he bedded the night before has been inexplicably murdered. Odets chronicled his difficult transition from Broadway to Hollywood in his diary, published as The Time Is Ripe: The 1940 Journal of Clifford Odets. (1988) The diary explored Odets' philosophical deliberations about writing and romance. He often invited women into his apartment, and he describes many of his affairs in the diary. These experiences, like the extended speeches about writing, are echoed in Barton Fink when Audrey visits and seduces Barton at the Hotel Earle. Turturro was the only member of the production who read Odets' Journal, however, and the Coen brothers urge audiences to "take account of the difference between the character and the man." The Coen brothers have stated that although the character of Fink is based on Odets, the character's appearance with "stand-up hair and glasses" is based on that of George S. Kaufmann. William Faulkner Some similarities exist between the character of W.P. Mayhew and novelist William Faulkner. Like Mayhew, Faulkner became known as a preeminent writer of Southern literature and later worked in the film business. Like Faulkner, Mayhew is a heavy drinker and speaks contemptuously about Hollywood. Faulkner's name appeared in the Hollywood 1940s history book City of Nets, which the Coens read while creating Barton Fink. Ethan explained in 1998: "I read this story in passing that Faulkner was assigned to write a wrestling picture... That was part of what got us going on the whole Barton Fink thing.” Faulkner worked on a wrestling film called Flesh, (1932) which starred Wallace Beery, the actor for whom Barton is writing. The focus on wrestling was fortuitous for the Coens, as they participated in the sport in high school. However, the Coens disavow a significant connection between Faulkner and Mayhew, calling the similarities "superficial," "As far as the details of the character are concerned," Ethan said in 1991, "Mayhew is very different from Faulkner, whose experiences in Hollywood were not the same at all." Unlike Mayhew's inability to write due to drink and personal problems, Faulkner continued to pen novels after working in the film business, winning several awards for fiction completed during and after his time in Hollywood. Jack Lipnick Lerner's Academy Award-nominated character of studio mogul Jack Lipnick is a composite of several Hollywood producers, including Harry Cohn, Louis B. Mayer and Jack L. Warner – three of the most powerful men in the film industry at the time in which Barton Fink is set. Like Mayer, Lipnick is originally from the Belarusian capital city Minsk. When World War II broke out, Warner pressed for a position in the military and ordered his wardrobe department to create a military uniform for him; Lipnick does the same in his final scene. Warner once referred to writers as "schmucks with Underwoods," leading to Barton's use in the film of an Underwood typewriter. At the same time, the Coens stress that the labyrinth of deception and difficulty Barton endures is not based on their own experience. Although Joel has said that artists tend to "meet up with Philistines," he added: "Barton Fink is quite far from our own experience. Our professional life in Hollywood has been especially easy, and this is no doubt extraordinary and unfair." Ethan has suggested that Lipnick – like the men on which he is based – is in some ways a product of his time. "I don't know that that kind of character exists anymore. Hollywood is a little more bland and corporate than that now." Cinema The Coens have acknowledged several cinematic inspirations for Barton Fink. Chief among these are three films by Polish-French film-maker Roman Polanski: Repulsion, (1965) Cul-de-Sac (1966) and The Tenant (1976). These films employ a mood of psychological uncertainty coupled with eerie environments that compound the mental instability of the characters. Barton's isolation in his room at the Hotel Earle is frequently compared to that of Trelkovsky in his apartment in The Tenant. Ethan said regarding the genre of Barton Fink: "[I]t is kind of a Polanski movie. It is closer to that than anything else." By coincidence, Polanski was the head of the jury at the Cannes Film Festival in 1991, where Barton Fink premiered. This created an awkward situation. "Obviously," Joel Coen said later, "we have been influenced by his films, but at this time we were very hesitant to speak to him about it because we did not want to give the impression we were sucking up." Other works cited as influences for Barton Fink include the film The Shining, (1980) produced and directed by Stanley Kubrick, and the comedy Sullivan's Travels, (1941) written and directed by Preston Sturges. Set in an empty hotel, Kubrick's film concerns a writer unable to proceed with his latest work. Although the Coens approve of comparisons to The Shining, Joel suggests that Kubrick's film "belongs in a more global sense to the horror film genre". Sullivan's Travels, released the year in which Barton Fink is set, follows successful director John Sullivan, who decides to create a film of deep social import – not unlike Barton's desire to create entertainment for "the common man." Sullivan eventually decides that comedic entertainment is a key role for film-makers, similar to Jack Lipnick's assertion at the end of Barton Fink that "the audience wants to see action, adventure." Additional allusions to films and film history abound in Barton Fink. At one point a character discusses "Victor Soderberg"; the name is a reference to Victor Sjöström, a Swedish director who worked in Hollywood under the name Seastrom. Charlie's line about how his troubles "don't amount to a hill of beans" is a probable homage to the film Casablanca. (1942) Another similarity is that of Barton Fink beach scene to the final moment in La Dolce Vita (1960), wherein a young woman's final line of dialogue is obliterated by the noise of the ocean. The unsettling emptiness of the Hotel Earle has also been compared to the living spaces in Key Largo (1948) and Sunset Boulevard. (1950) Themes Two of the film's central themes – the culture of entertainment production and the writing process – are intertwined and relate specifically to the self-referential nature of the work (as well as the work within the work). It is a film about a man who writes a film based on a play, and at the centre of Barton's entire opus is Barton himself. The dialogue in his play Bare Ruined Choirs (also the first lines of the film, some of which are repeated at the end of the film as lines in Barton's screenplay The Burlyman) give us a glimpse into Barton's self-descriptive art. The mother in the play is named "Lil," which is later revealed to be the name of Barton's own mother. In the play, "The Kid" (a representation of Barton himself) refers to his home "six flights up" – the same floor where Barton resides at the Hotel Earle. Moreover, the characters' writing processes in Barton Fink reflect important differences between the culture of entertainment production in New York's Broadway district and Hollywood. Broadway and Hollywood Although Barton speaks frequently about his desire to help create "a new, living theater, of and about and for the common man," he does not recognize that such a theater has already been created: the films. In fact, he disdains this authentically popular form. On the other hand, the world of Broadway theater in Barton Fink is a place of high culture, where the creator believes most fully that his work embodies his own values. Although he pretends to disdain his own success, Barton believes he has achieved a great victory with Bare Ruined Choirs. He seeks praise; when his agent Garland asks if he has seen the glowing review in the Herald, Barton says "No," even though his producer had just read it to him. Barton feels close to the theater, confident that it can help him create work that honors "the common man." The men and women who funded the production – "those people," as Barton calls them – demonstrate that Broadway is just as concerned with profit as Hollywood; but its intimacy and smaller scale allow the author to feel that his work has real value. Barton does not believe Hollywood offers the same opportunity. In the film, Los Angeles is a world of false fronts and phony people. This is evident in an early line of the screenplay (filmed, but not included in the theatrical release); while informing Barton of Capitol Pictures' offer, his agent tells him: "I'm only asking that your decision be informed by a little realism – if I can use that word and Hollywood in the same breath." Later, as Barton tries to explain why he is staying at the Earle, studio head Jack Lipnick finishes his sentence, recognizing that Barton wants a place that is "less Hollywood." The assumption is that Hollywood is fake and the Earle is genuine. Producer Ben Geisler takes Barton to lunch at a restaurant featuring a mural of the "New York Cafe," a sign of Hollywood's effort to replicate the authenticity of the East Coast of the United States. Lipnick's initial overwhelming exuberance is also a façade. Although he begins by telling Barton: "The writer is king here at Capitol Pictures," in the penultimate scene he insists: "If your opinion mattered, then I guess I'd resign and let you run the studio. It doesn't, and you won't, and the lunatics are not going to run this particular asylum." Deception in Barton Fink is emblematic of Hollywood's focus on low culture, its relentless desire to efficiently produce formulaic entertainment for the sole purpose of economic gain. Capitol Pictures assigns Barton to write a wrestling picture with superstar Wallace Beery in the leading role. Although Lipnick declares otherwise, Geisler assures Barton that "it's just a B picture." Audrey tries to help the struggling writer by telling him: "Look, it's really just a formula. You don't have to type your soul into it.” This formula is made clear by Lipnick, who asks Barton in their first meeting whether the main character should have a love interest or take care of an orphaned child. Barton shows his iconoclasm by answering: "Both, maybe?” In the end, his inability to conform to the studio's norms destroys Barton. A similar depiction of Hollywood appears in Nathanael West's novel The Day of the Locust (1939), which many critics see as an important precursor to Barton Fink. Set in a run-down apartment complex, the book describes a painter reduced to decorating film sets. It portrays Hollywood as crass and exploitative, devouring talented individuals in its neverending quest for profit. In both West's novel and Barton Fink, protagonists suffer under the oppressive industrial machine of the film studio. Writing The film contains further self-referential material, as a film about a writer having difficulty writing (written by the Coen brothers while they were having difficulty writing Miller's Crossing). Barton is trapped between his own desire to create meaningful art and Capitol Pictures' need to use its standard conventions to earn profits. Audrey's advice about following the formula would have saved Barton, but he does not heed it. However, when he puts the mysterious package (which might have contained her head) on his writing desk, she might have been helping him posthumously, in other ways. The film itself toys with standard screenplay formulae. As with Mayhew's scripts, Barton Fink contains a "good wrestler" (Barton, it seems) and a "bad wrestler" (Charlie) who "confront" each other at the end. But in typical Coen fashion, the lines of good and evil are blurred, and the supposed hero in fact reveals himself to be deaf to the pleadings of his "common man" neighbor. By blurring the lines between reality and surreal experience, the film subverts the "simple morality tales" and "road maps" offered to Barton as easy paths for the writer to follow. However, the film-makers point out that Barton Fink is not meant to represent the Coens themselves. "Our life in Hollywood has been particularly easy," they once said. "The film isn't a personal comment." Still, universal themes of the creative process are explored throughout the film. During the picnic scene, for example, Mayhew asks Barton: "Ain't writin' peace?" Barton pauses, then says: "No, I've always found that writing comes from a great inner pain." Such exchanges led critic William Rodney Allen to call Barton Fink "an autobiography of the life of the Coens' minds, not of literal fact." Allen's comment is itself a reference to the phrase "life of the mind," used repeatedly in the film in wildly differing contexts. Fascism Several of the film's elements, including the setting at the start of World War II, have led some critics to highlight parallels to the rise of fascism at the time. For example, the detectives who visit Barton at the Hotel Earle are named "Mastrionatti" and "Deutsch” – Italian and German names, evocative of the regimes of Benito Mussolini and Adolf Hitler. Their contempt for Barton is clear: "Fink. That's a Jewish name, isn't it? ... I didn't think this dump was restricted.” Later, just before killing his last victim, Charlie says: "Heil Hitler”. Jack Lipnick hails originally from the Belarusian capital city Minsk, which was occupied from summer 1941 by Nazi Germany, following Operation Barbarossa. "[I]t's not forcing the issue to suggest that the Holocaust hovers over Barton Fink," writes biographer Ronald Bergan. Others see a more specific message in the film, particularly Barton's obliviousness to Charlie's homicidal tendencies. Critic Roger Ebert wrote in his 1991 review that the Coens intended to create an allegory for the rise of Nazism. "They paint Fink as an ineffectual and impotent left-wing intellectual, who sells out while telling himself he is doing the right thing, who thinks he understands the 'common man' but does not understand that, for many common men, fascism had a seductive appeal." However, he goes on to say: "It would be a mistake to insist too much on this aspect of the movie..." Other critics are more demanding. M. Keith Booker writes: For their part, the Coens deny any intention of presenting an allegorical message. They chose the detectives' names deliberately, but "we just wanted them to be representative of the Axis world powers at the time. It just seemed kind of amusing. It's a tease. All that stuff with Charlie – the "Heil Hitler!" business – sure, it's all there, but it's kind of a tease." In 2001, Joel responded to a question about critics who provide extended comprehensive analysis: "That's how they've been trained to watch movies. In Barton Fink, we may have encouraged it – like teasing animals at the zoo. The movie is intentionally ambiguous in ways they may not be used to seeing.” Slavery Although subdued in dialogue and imagery, the theme of slavery appears several times in the film. Mayhew's crooning of the parlor song "Old Black Joe" depicts him as enslaved to the film studio, not unlike the song's narrator who pines for "my friends from the cotton fields away." One brief shot of the door to Mayhew's workspace shows the title of the film he is supposedly writing: Slave Ship. This is a reference to a 1937 movie written by Mayhew's inspiration, William Faulkner, and starring Wallace Beery, for whom Barton is composing a script in the film. The symbol of the slave ship is furthered by specific set designs, including the round window in Ben Geisler's office which resembles a porthole, as well as the walkway leading to Mayhew's bungalow, which resembles the boarding ramp of a watercraft. Several lines of dialogue make clear by the film's end that Barton has become a slave to the studio: "[T]he contents of your head", Lipnick's assistant tells him, "are the property of Capitol Pictures.” After Barton turns in his script, Lipnick delivers an even more brutal punishment: "Anything you write will be the property of Capitol Pictures. And Capitol Pictures will not produce anything you write." This contempt and control is representative of the opinions expressed by many writers in Hollywood at the time. As Arthur Miller said in his review of Barton Fink: "The only thing about Hollywood that I am sure of is that its mastication of writers can never be too wildly exaggerated.” "The Common Man" During the first third of the film, Barton speaks constantly of his desire to write work which centers on and appeals to "the common man." In one speech he declares: "The hopes and dreams of the common man are as noble as those of any king. It's the stuff of life – why shouldn't it be the stuff of theater? God damn it, why should that be a hard pill to swallow? Don't call it new theater, Charlie; call it real theater. Call it our theater." Yet, despite his rhetoric, Barton is totally unable (or unwilling) to appreciate the humanity of the "common man" living next door to him. Later in the film, Charlie explains that he has brought various horrors upon him because "you don't listen!" In his first conversation with Charlie, Barton constantly interrupts Charlie just as he is saying "I could tell you some stories," demonstrating that despite his fine words he really is not interested in Charlie's experiences; in another scene, Barton symbolically demonstrates his deafness to the world by stuffing his ears with cotton to block the sound of his ringing telephone. Barton's position as screenwriter is of particular consequence to his relationship with "the common man." By refusing to listen to his neighbor, Barton cannot validate Charlie's existence in his writing – with disastrous results. Not only is Charlie stuck in a job which demeans him, but he cannot (at least in Barton's case) have his story told. More centrally, the film traces the evolution of Barton's understanding of "the common man": At first he is an abstraction to be lauded from a vague distance. Then he becomes a complex individual with fears and desires. Finally he shows himself to be a powerful individual in his own right, capable of extreme forms of destruction and therefore feared and/or respected. The complexity of "the common man" is also explored through the oft-mentioned "life of the mind." While expounding on his duty as a writer, Barton drones: "I gotta tell you, the life of the mind ... There's no road map for that territory ... and exploring it can be painful. The kind of pain most people don't know anything about." Barton assumes that he is privy to thoughtful creative considerations while Charlie is not. This delusion shares the film's climax, as Charlie runs through the hallway of the Earle, shooting the detectives with a shotgun and screaming: "Look upon me! I'll show you the life of the mind!!" Charlie's "life of the mind" is no less complex than Barton's; in fact, some critics consider it more so. Charlie's understanding of the world is depicted as omniscient, as when he asks Barton about "the two lovebirds next door," despite the fact that they are several doors away. When Barton asks how he knows about them, Charlie responds: "Seems like I hear everything that goes on in this dump. Pipes or somethin'." His total awareness of the events at the Earle demonstrate the kind of understanding needed to show real empathy, as described by Audrey. This theme returns when Charlie explains in his final scene: "Most guys I just feel sorry for. Yeah. It tears me up inside, to think about what they're going through. How trapped they are. I understand it. I feel for 'em. So I try to help them out." Religion Themes of religious salvation and allusions to the Bible appear only briefly in Barton Fink, but their presence pervades the story. While Barton is experiencing his most desperate moment of confusion and despair, he opens the drawer of his desk and finds a Gideon Bible. He opens it "randomly" to Daniel 2, and reads from it: "And the king, Nebuchadnezzar, answered and said to the Chaldeans, I recall not my dream; if ye will not make known unto me my dream, and its interpretation, ye shall be cut in pieces, and of your tents shall be made a dunghill.” This passage reflects Barton's inability to make sense of his own experiences (wherein Audrey has been "cut in pieces"), as well as the "hopes and dreams" of "the common man." Nebuchadnezzar is also the title of a novel that Mayhew gives to Barton as a "little entertainment" to "divert you in your sojourn among the Philistines.” Mayhew alludes to "the story of Solomon's mammy," a reference to Bathsheba, who gave birth to Solomon after her lover David had her husband Uriah killed. Although Audrey cuts Mayhew off by praising his book (which Audrey herself may have written), the reference foreshadows the love triangle which evolves among the three characters of Barton Fink. Rowell points out that Mayhew is murdered (presumably by Charlie) soon after Barton and Audrey have sex. Another Biblical reference comes when Barton flips to the front of the Bible in his desk drawer and sees his own words transposed into the Book of Genesis. This is seen as a representation of his hubris as a self-conceived omnipotent master of creation, or alternatively, as a playful juxtaposition demonstrating Barton's hallucinatory state of mind. Reception Box office performance The film opened in the United States on eleven screens on August 23, 1991, and earned $268,561 during its opening weekend. During its theatrical release, Barton Fink grossed $6,153,939 in the United States. That the film failed to recoup the expenses of production amused film producer Joel Silver, with whom the Coens would later work in The Hudsucker Proxy (1994): "I don't think it made $5 million, and it cost $9 million to make. [The Coen brothers have] a reputation for being weird, off-center, inaccessible. Critical reception On Rotten Tomatoes, the film holds an approval rating of 89% based on 65 reviews, with an average rating of 7.9/10. The site's critical consensus reads: "Twisty and unsettling, the Coen brothers' satirical tale of a 1940s playwright struggling with writer's block is packed with their trademark sense of humor and terrific performances from its cast." On Metacritic, the film has a weighted average score of 69 out of 100, based on 19 critics, indicating "generally favorable reviews." Audiences polled by CinemaScore gave the film an average grade of "B" on an A+ to F scale.The Washington Post critic Rita Kempley described Barton Fink as "certainly one of the year's best and most intriguing films." The New York Times critic Vincent Canby called it "an unqualified winner" and "a fine dark comedy of flamboyant style and immense though seemingly effortless technique." Critic Jim Emerson called Barton Fink "the Coen brothers' most deliciously, provocatively indescribable picture yet." Some critics disliked the enigmatic plot and ambiguous ending. Chicago Reader critic Jonathan Rosenbaum warned of the Coens' "adolescent smarminess and comic-book cynicism," and described Barton Fink as "a midnight-movie gross-out in Sunday-afternoon art-house clothing." John Simon of The National Review described Barton Fink as "asinine and insufferable." In a 1994 interview, Joel dismissed criticism of unclear elements in their films: "People have a problem dealing with the fact that our movies are not straight-ahead. They would prefer that the last half of Barton Fink just be about a screenwriter's writing-block problems and how they get resolved in the real world." Talk show host Larry King expressed approval of the movie, despite its uncertain conclusion. He wrote in USA Today: "The ending is something I'm still thinking about and if they accomplished that, I guess it worked.” In a 2016 interview, screenwriter Charlie Kaufman said after being asked which film he would want with him on a deserted island, "A movie I really love is Barton Fink. I don't know if that's the movie I'd take to a desert island, but I feel like there's so much in there, you could watch it again and again. That's important to me, especially if that was the only movie I'd have with me for the rest of my life."Barton Fink was ranked by Greg Cwik of IndieWire as the Coens' fifth best film. It was voted the 11th best film of the 1990s in a poll of The A.V. Club contributors, and was described as "one of [the Coens'] most profound, and painful" works. Awards and nominations Winning three major awards at the Cannes Film Festival was extremely rare, and some critics felt the jury was too generous to the exclusion of other worthy entries. Worried that the triple victory could set a precedent which would undervalue other films, Cannes decided after the 1991 festival to limit each movie to a maximum of two awards. Formats The film was released in VHS home video format on March 5, 1992, and a DVD edition was made available on May 20, 2003. The DVD contains a gallery of still photos, theatrical trailers, and eight deleted scenes. The film is also available on Blu-ray Disc, in the UK, in a region-free format that will work in any Blu-ray player. Possible sequel The Coen brothers have expressed interest in making a sequel to Barton Fink called Old Fink, which would take place in the 1960s. "It's the summer of love and [Fink is] teaching at Berkeley. He ratted on a lot of his friends to the House Un-American Activities Committee," said Joel Coen. The brothers have stated that they have had talks with John Turturro about reprising his role as Fink, but they were waiting "until he was actually old enough to play the part." Speaking to The A.V. Club in June 2011, Turturro suggested the sequel would be set in the 1970s, and Fink would be a hippie with a large Jewfro. He said "you'll have to wait another 10 years for that, at least." Notes References Sources External links Barton Fink screenplay at You Know, For Kids fansite "Nietzsche: The Darkness of Life and Barton Fink" by Jorn K. Bramann, from The Educating Rita Workbook''. . – slideshow analysis Nathan Rabin's article about the film 1991 films 1991 black comedy films 1991 independent films 1990s buddy comedy films 1990s serial killer films 1990s psychological thriller films 20th Century Fox films American black comedy films American satirical films American serial killer films 1990s English-language films Films about Hollywood, Los Angeles Films about screenwriters Films directed by the Coen brothers Films set in 1941 Films set in hotels Films set in Los Angeles Films set in New York City Films set on the United States home front during World War II Films shot in California American independent films American buddy comedy films American neo-noir films Palme d'Or winners Postmodern films Films scored by Carter Burwell Films about Jews and Judaism Working Title Films films Films set in a movie theatre 1990s American films Surreal comedy films
```objective-c //===-- ScopedPrinter.h ----------------------------------------*- C++ -*--===// // // See path_to_url for license information. // //===your_sha256_hash------===// #ifndef LLVM_SUPPORT_SCOPEDPRINTER_H #define LLVM_SUPPORT_SCOPEDPRINTER_H #include "llvm/ADT/APSInt.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/DataTypes.h" #include "llvm/Support/Endian.h" #include "llvm/Support/raw_ostream.h" #include <algorithm> namespace llvm { template <typename T> struct EnumEntry { StringRef Name; // While Name suffices in most of the cases, in certain cases // GNU style and LLVM style of ELFDumper do not // display same string for same enum. The AltName if initialized appropriately // will hold the string that GNU style emits. // Example: // "EM_X86_64" string on LLVM style for Elf_Ehdr->e_machine corresponds to // "Advanced Micro Devices X86-64" on GNU style StringRef AltName; T Value; EnumEntry(StringRef N, StringRef A, T V) : Name(N), AltName(A), Value(V) {} EnumEntry(StringRef N, T V) : Name(N), AltName(N), Value(V) {} }; struct HexNumber { // To avoid sign-extension we have to explicitly cast to the appropriate // unsigned type. The overloads are here so that every type that is implicitly // convertible to an integer (including enums and endian helpers) can be used // without requiring type traits or call-site changes. HexNumber(char Value) : Value(static_cast<unsigned char>(Value)) {} HexNumber(signed char Value) : Value(static_cast<unsigned char>(Value)) {} HexNumber(signed short Value) : Value(static_cast<unsigned short>(Value)) {} HexNumber(signed int Value) : Value(static_cast<unsigned int>(Value)) {} HexNumber(signed long Value) : Value(static_cast<unsigned long>(Value)) {} HexNumber(signed long long Value) : Value(static_cast<unsigned long long>(Value)) {} HexNumber(unsigned char Value) : Value(Value) {} HexNumber(unsigned short Value) : Value(Value) {} HexNumber(unsigned int Value) : Value(Value) {} HexNumber(unsigned long Value) : Value(Value) {} HexNumber(unsigned long long Value) : Value(Value) {} uint64_t Value; }; raw_ostream &operator<<(raw_ostream &OS, const HexNumber &Value); const std::string to_hexString(uint64_t Value, bool UpperCase = true); template <class T> const std::string to_string(const T &Value) { std::string number; llvm::raw_string_ostream stream(number); stream << Value; return stream.str(); } class ScopedPrinter { public: ScopedPrinter(raw_ostream &OS) : OS(OS), IndentLevel(0) {} void flush() { OS.flush(); } void indent(int Levels = 1) { IndentLevel += Levels; } void unindent(int Levels = 1) { IndentLevel = std::max(0, IndentLevel - Levels); } void resetIndent() { IndentLevel = 0; } int getIndentLevel() { return IndentLevel; } void setPrefix(StringRef P) { Prefix = P; } void printIndent() { OS << Prefix; for (int i = 0; i < IndentLevel; ++i) OS << " "; } template <typename T> HexNumber hex(T Value) { return HexNumber(Value); } template <typename T, typename TEnum> void printEnum(StringRef Label, T Value, ArrayRef<EnumEntry<TEnum>> EnumValues) { StringRef Name; bool Found = false; for (const auto &EnumItem : EnumValues) { if (EnumItem.Value == Value) { Name = EnumItem.Name; Found = true; break; } } if (Found) { startLine() << Label << ": " << Name << " (" << hex(Value) << ")\n"; } else { startLine() << Label << ": " << hex(Value) << "\n"; } } template <typename T, typename TFlag> void printFlags(StringRef Label, T Value, ArrayRef<EnumEntry<TFlag>> Flags, TFlag EnumMask1 = {}, TFlag EnumMask2 = {}, TFlag EnumMask3 = {}) { typedef EnumEntry<TFlag> FlagEntry; typedef SmallVector<FlagEntry, 10> FlagVector; FlagVector SetFlags; for (const auto &Flag : Flags) { if (Flag.Value == 0) continue; TFlag EnumMask{}; if (Flag.Value & EnumMask1) EnumMask = EnumMask1; else if (Flag.Value & EnumMask2) EnumMask = EnumMask2; else if (Flag.Value & EnumMask3) EnumMask = EnumMask3; bool IsEnum = (Flag.Value & EnumMask) != 0; if ((!IsEnum && (Value & Flag.Value) == Flag.Value) || (IsEnum && (Value & EnumMask) == Flag.Value)) { SetFlags.push_back(Flag); } } llvm::sort(SetFlags, &flagName<TFlag>); startLine() << Label << " [ (" << hex(Value) << ")\n"; for (const auto &Flag : SetFlags) { startLine() << " " << Flag.Name << " (" << hex(Flag.Value) << ")\n"; } startLine() << "]\n"; } template <typename T> void printFlags(StringRef Label, T Value) { startLine() << Label << " [ (" << hex(Value) << ")\n"; uint64_t Flag = 1; uint64_t Curr = Value; while (Curr > 0) { if (Curr & 1) startLine() << " " << hex(Flag) << "\n"; Curr >>= 1; Flag <<= 1; } startLine() << "]\n"; } void printNumber(StringRef Label, uint64_t Value) { startLine() << Label << ": " << Value << "\n"; } void printNumber(StringRef Label, uint32_t Value) { startLine() << Label << ": " << Value << "\n"; } void printNumber(StringRef Label, uint16_t Value) { startLine() << Label << ": " << Value << "\n"; } void printNumber(StringRef Label, uint8_t Value) { startLine() << Label << ": " << unsigned(Value) << "\n"; } void printNumber(StringRef Label, int64_t Value) { startLine() << Label << ": " << Value << "\n"; } void printNumber(StringRef Label, int32_t Value) { startLine() << Label << ": " << Value << "\n"; } void printNumber(StringRef Label, int16_t Value) { startLine() << Label << ": " << Value << "\n"; } void printNumber(StringRef Label, int8_t Value) { startLine() << Label << ": " << int(Value) << "\n"; } void printNumber(StringRef Label, const APSInt &Value) { startLine() << Label << ": " << Value << "\n"; } void printBoolean(StringRef Label, bool Value) { startLine() << Label << ": " << (Value ? "Yes" : "No") << '\n'; } template <typename... T> void printVersion(StringRef Label, T... Version) { startLine() << Label << ": "; printVersionInternal(Version...); getOStream() << "\n"; } template <typename T> void printList(StringRef Label, const T &List) { startLine() << Label << ": ["; bool Comma = false; for (const auto &Item : List) { if (Comma) OS << ", "; OS << Item; Comma = true; } OS << "]\n"; } template <typename T, typename U> void printList(StringRef Label, const T &List, const U &Printer) { startLine() << Label << ": ["; bool Comma = false; for (const auto &Item : List) { if (Comma) OS << ", "; Printer(OS, Item); Comma = true; } OS << "]\n"; } template <typename T> void printHexList(StringRef Label, const T &List) { startLine() << Label << ": ["; bool Comma = false; for (const auto &Item : List) { if (Comma) OS << ", "; OS << hex(Item); Comma = true; } OS << "]\n"; } template <typename T> void printHex(StringRef Label, T Value) { startLine() << Label << ": " << hex(Value) << "\n"; } template <typename T> void printHex(StringRef Label, StringRef Str, T Value) { startLine() << Label << ": " << Str << " (" << hex(Value) << ")\n"; } template <typename T> void printSymbolOffset(StringRef Label, StringRef Symbol, T Value) { startLine() << Label << ": " << Symbol << '+' << hex(Value) << '\n'; } void printString(StringRef Value) { startLine() << Value << "\n"; } void printString(StringRef Label, StringRef Value) { startLine() << Label << ": " << Value << "\n"; } void printString(StringRef Label, const std::string &Value) { printString(Label, StringRef(Value)); } void printString(StringRef Label, const char* Value) { printString(Label, StringRef(Value)); } template <typename T> void printNumber(StringRef Label, StringRef Str, T Value) { startLine() << Label << ": " << Str << " (" << Value << ")\n"; } void printBinary(StringRef Label, StringRef Str, ArrayRef<uint8_t> Value) { printBinaryImpl(Label, Str, Value, false); } void printBinary(StringRef Label, StringRef Str, ArrayRef<char> Value) { auto V = makeArrayRef(reinterpret_cast<const uint8_t *>(Value.data()), Value.size()); printBinaryImpl(Label, Str, V, false); } void printBinary(StringRef Label, ArrayRef<uint8_t> Value) { printBinaryImpl(Label, StringRef(), Value, false); } void printBinary(StringRef Label, ArrayRef<char> Value) { auto V = makeArrayRef(reinterpret_cast<const uint8_t *>(Value.data()), Value.size()); printBinaryImpl(Label, StringRef(), V, false); } void printBinary(StringRef Label, StringRef Value) { auto V = makeArrayRef(reinterpret_cast<const uint8_t *>(Value.data()), Value.size()); printBinaryImpl(Label, StringRef(), V, false); } void printBinaryBlock(StringRef Label, ArrayRef<uint8_t> Value, uint32_t StartOffset) { printBinaryImpl(Label, StringRef(), Value, true, StartOffset); } void printBinaryBlock(StringRef Label, ArrayRef<uint8_t> Value) { printBinaryImpl(Label, StringRef(), Value, true); } void printBinaryBlock(StringRef Label, StringRef Value) { auto V = makeArrayRef(reinterpret_cast<const uint8_t *>(Value.data()), Value.size()); printBinaryImpl(Label, StringRef(), V, true); } template <typename T> void printObject(StringRef Label, const T &Value) { startLine() << Label << ": " << Value << "\n"; } raw_ostream &startLine() { printIndent(); return OS; } raw_ostream &getOStream() { return OS; } private: template <typename T> void printVersionInternal(T Value) { getOStream() << Value; } template <typename S, typename T, typename... TArgs> void printVersionInternal(S Value, T Value2, TArgs... Args) { getOStream() << Value << "."; printVersionInternal(Value2, Args...); } template <typename T> static bool flagName(const EnumEntry<T> &lhs, const EnumEntry<T> &rhs) { return lhs.Name < rhs.Name; } void printBinaryImpl(StringRef Label, StringRef Str, ArrayRef<uint8_t> Value, bool Block, uint32_t StartOffset = 0); raw_ostream &OS; int IndentLevel; StringRef Prefix; }; template <> inline void ScopedPrinter::printHex<support::ulittle16_t>(StringRef Label, support::ulittle16_t Value) { startLine() << Label << ": " << hex(Value) << "\n"; } template<char Open, char Close> struct DelimitedScope { explicit DelimitedScope(ScopedPrinter &W) : W(W) { W.startLine() << Open << '\n'; W.indent(); } DelimitedScope(ScopedPrinter &W, StringRef N) : W(W) { W.startLine() << N; if (!N.empty()) W.getOStream() << ' '; W.getOStream() << Open << '\n'; W.indent(); } ~DelimitedScope() { W.unindent(); W.startLine() << Close << '\n'; } ScopedPrinter &W; }; using DictScope = DelimitedScope<'{', '}'>; using ListScope = DelimitedScope<'[', ']'>; } // namespace llvm #endif ```
Tridacna squamosina is a species of the Tridacna genus, the giant clams. These animals are bivalve mollusks belonging to the family Cardiidae identified by Sturany 1899. In 2008 Roa-Quiaoit, Kochzius, Jantzen, Zibdah & Richter identified what they believed was a new species of giant clam they called Tridacna costata, however in 2011 Markus Huber and Anita Eschner examined a collection of Rudolf Sturanys specimens, held in the Natural History Museum, Vienna, that had remained not properly identified for over 100 years and discovered it was actually Tridacna squamosina. The collection held seven syntypes were identified and Tridacna squamosina was accepted and Tridacna costata formally synonymized. Physical characteristics Tridacna squamosina has is a bivalve mollusk with an elongated. The shell has a few folds compared to other bivalve tridacnas, about 5–7 of the on each shell. The upper shell has somewhat large tooth-like formations projecting form its outer edge. Even when compressed as much as they can be, the T. squamosina has major spaces between the two halves of its shell, especially in the areas of the tooth-like formations. The mollusk also has a well-sized byssus upon its bottom, quite similar to the T. maxima. Common for other bivalve giant clams, the T. squamosina's papillose mantle tissue varies a wide array of hues and colors, which range in various patterns. Unlike the T. maxima or the T. squamosa however, these formations are much more pronounced in the T. squamosina; although some T. maxima and T. squamosa do bear relatively few amounts of papillae. All three's siphon is also ringed with tentacles. Habitat The species is distributed across the Tropical areas of the Indo-Pacific, although when originally formally described it was thought to only exist in the Red Sea where it is actually rare. It inhabits shallow reef areas and various seagrass beds, usually below the surface. T. squamosina is most concentrated around Oceania and Southeast Asia—with the most being around the Philippines and the Malay Archipelago. T. squamosina is also found in areas of the Red Sea. In 2005, a student found a giant clam found in the Gulf of Aqaba. An expedition of the 19th century also collected specimens of the same species in the Gulf of Aqaba and of the coast of modern day Yemen. Yet these were taxonomically identified as the Tridacna elongata with the variation squamosina. The species is also reported to be abundant near the Bazaruto Archipelago off the coast of Southern Mozambique. A survey showed that the T. squamosina makes up only 1% of all tridacnas located in the Red Sea, making the species a rarity in the place they were discovered in. The species also is reported to make up 80% of all tridacnid fossils in the area. This idea leads scientists to believe that the species was heavily hunted nearly 100,000 years ago, when humans had only begun their occupation of the area. References squamosina Molluscs described in 1899
The Samuel Beckett-class offshore patrol vessel is a class of offshore patrol vessels (OPV) ordered by the Irish Naval Service from October 2010. The first vessel is named and was commissioned in May 2014. Construction on this first vessel commenced in November 2011, A further three vessels were named , and , and delivered in 2015, 2016 and 2018 respectively. Background and design Vard Marine Inc. (formerly STX Marine) designed the vessels, which have features in common with an earlier design, the , in service with the Irish Naval Service since 1999. The OPV vessels are designated PV90 by Babcock Marine and approximately longer with an additional in depth to the existing Róisín-class PV80 vessels. This was intended to increase both its capabilities and abilities in the rough waters of the North Atlantic. The PV90 ship is designed carry a crew of 44 and have space for up to 10 trainees. The ships' published cruising speed is , with a top speed of . The New Zealand Navy uses an version of the Vard Marine Inc. OPV design, referred to as the . This is a modified version of the older Irish Naval Service Róisín-class PV80 vessels - with helideck and hangar incorporated. The Samuel Beckett-class ships are designed to carry remotely operated submersibles and a decompression chamber for divers. This is intended to add enhanced capabilities to undertake search and rescue, search and recovery, undersea exploration, and increased sea area surveillance. The expanded deck area would also allow the Naval Service to potentially deploy unmanned aerial vehicles for the first time. Features also include Dynamic Positioning systems and "Power Take In Systems" to enable fuel savings, as the main engines can be shut down and power sourced from battery storage or a smaller more economical engine. The first new ship was commissioned on 17 May 2014 - to replace which was decommissioned on 20 September 2013. Planning and construction In 2007 it was reported that the Defence Forces expected to spend in the region of €180m on replacements for the three existing vessels of the Emer class. In July 2010 the then Irish Minister for Defence, Tony Killeen, announced that the Department of Defence and Naval Service would be entering into talks with UK shipbuilder Babcock Marine on two vessels worth €50m each, with an option for a third. In October 2010 contracts were signed, and the 'cutting of steel' for the first ship occurred on 24 November 2011. On 19 May 2012, Irish Naval Service Flag Office Commodore Mark Mellett (subsequently Rear Admiral, DCOS Sp) attended the traditional keel-laying ceremony for the first of the 90 meter OPVs. While modular construction methods don't strictly involve keel-laying, the term is still considered an important milestone, as it signals the first stage of connecting each of the components together. The keel-laying ceremony took place in Babcock Marine's Appledore Shipbuilding Yard in Devon, UK. The delivery of the first of the vessels was set for 2014 with the second in 2015. The fit-out of crew quarters and facilities on the first two 55-berth ships was contracted to Moss Marine of Southampton in a £4.5 million contract. Fitting out of the first ship began in March 2012 for completion in early 2014. The option on the third vessel was exercised following the commissioning of Samuel Beckett, and delivered in 2016. Payment for the ships was planned to be extended over a number of years to 2017. The cost of the first three ships, including the main armament, was €213 million. While not overtly proposed under the original contract, the Irish government placed an order for a fourth vessel in June 2016, in a contract worth €67 million. Systems Onboard systems include Mercury IP communication systems from communications and broadcast equipment vendors Trilogy. Each vessel is equipped with two such communications systems. The first uses VHF, UHF and HF marine radio channels on panels installed throughout the vessel. The second system aims to connect users in pre-configured work groups using interfaces installed at work stations around each vessel. Names The first two ships were named for Samuel Beckett and James Joyce, as disclosed in July 2013 by the then Minister for Defence Alan Shatter in Dáil Éireann. This decision to name the ships after literary figures, seen as controversial in some quarters, saw a break from the tradition of naming Irish Naval vessels after women in Irish mythology. In July 2015, the then Minister for Defence Simon Coveney declared that the third vessel would be named after William Butler Yeats. At the keel-laying ceremony for the fourth vessel, on 28 February 2017, then Minister of State at the Department of Defence Paul Kehoe announced that the vessel would be named after George Bernard Shaw. Ships References Patrol vessels of the Irish Naval Service Patrol ship classes
"Ice in the Sun" is a song by the band Status Quo. The track was recorded in 1968, and appeared on Picturesque Matchstickable Messages from the Status Quo, an album by Status Quo that was released in August that year. "Ice in the Sun" was also released as a single in the UK in August 1968. Written by Marty Wilde and Ronnie Scott (not the famous jazz musician), and produced by John Schroeder, the song was Status Quo's second hit single. It reached number 8 in the UK Singles Chart, spending twelve weeks in the listing, and number 29 in the Canadian RPM charts. In the U.S., the song peaked at number 70 on the Billboard Hot 100 and it was to be their last appearance in the U.S. charts. The track has appeared on numerous compilation albums including XS All Areas - The Greatest Hits, Whatever You Want - The Very Best of Status Quo and From the Makers of.... Singles 1968: "Ice in the Sun" / "When My Mind Is Not Live" 45 rpm 7" : Pye / 7N 17581 1968: "Hielo en el sol" / "Velos negros de melancolía" 45 rpm 7" : Pye / H 387 1969: "Ice in the Sun" / "Pictures of Matchstick Men" 45 rpm 7" : Pye / L-2222-Y Charts References External links Single details @ Discogs.com 1968 singles Pye Records singles Status Quo (band) songs British songs Songs written by Marty Wilde Songs written by Ronnie Scott (songwriter) Song recordings produced by John Schroeder (musician) 1968 songs
Brady Preston Gentry (March 25, 1896 – November 9, 1966) was a U.S. Representative from Texas. Born in Colfax, Texas, Gentry attended the public schools and East Texas State College, Commerce, Texas. He graduated from Cumberland University, Lebanon, Tennessee, and studied law. He was admitted to the bar and began practice in Tyler, Texas. In 1918, Gentry enlisted in the United States Army; he served in Europe and rose to the rank of captain of Infantry. Gentry was the county attorney of Smith County 1921–1924 and the county judge of Smith County 1931–1939. He served as chairman of the Texas State Highway Commission 1939–1945. Gentry was elected as a Democrat to the Eighty-third and Eighty-fourth Congresses (January 3, 1953 – January 3, 1957). He was not a candidate for renomination in 1956 to the Eighty-fifth Congress. After leaving Congress, Gentry resumed the practice of law. He was one of the majority of the Texan delegation to decline to sign the 1956 Southern Manifesto opposing the desegregation of public schools ordered by the Supreme Court in Brown v. Board of Education. He died in Houston, Texas, November 9, 1966. He was interred in Rose Hill Cemetery, Tyler, Texas. Sources 1896 births 1966 deaths County judges in Texas County district attorneys in Texas Cumberland University alumni Texas A&M University–Commerce alumni United States Army personnel of World War I United States Army officers Democratic Party members of the United States House of Representatives from Texas People from Tyler, Texas People from Van Zandt County, Texas 20th-century American politicians Military personnel from Texas
Mark Christopher Blake (born 17 December 1967) is an English retired footballer, who played as a defender for Southampton, Colchester United, Shrewsbury Town, Fulham, AS Cannes and Aldershot Town. He made 301 appearances in The Football League, scoring 23 goals. Playing career Blake started his career with Southampton, where he made 18 appearances in The Football League, scoring twice. He was loaned out to Colchester United in 1989. He then moved on to Shrewsbury Town in 1990, where he made 142 league appearances scoring three goals, during a four-year period. Blake then joined Fulham where he played 137 league appearances and scored 17 goals. He then moved on to AS Cannes and Aldershot Town. Non-playing career He went on to become player-manager of Winchester City, winning the FA Vase, Wessex League and Wessex League Cup treble in 2003–04. Blake then had a role as head coach at Eastleigh, joining in January 2005, before stepping down in September 2006. Personal life Blake was born in Portsmouth, Hampshire, and has a job in IT. He has two children with his first marriage. Honours Club Fulham Football League Third Division runner-up: 1996–97 Winchester City FA Vase winner: 2003–04 References External links Mark Blake at Coludata.co.uk 1967 births Living people English men's footballers English Football League players Ligue 2 players Southampton F.C. players Colchester United F.C. players Shrewsbury Town F.C. players Fulham F.C. players AS Cannes players Aldershot Town F.C. players Winchester City F.C. players Footballers from Portsmouth Men's association football defenders
```xml <?xml version="1.0" encoding="utf-8"?> Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <bitmap xmlns:android="path_to_url" android:src="@drawable/btn_left" /> ```
```javascript Ext.define('ExtThemeNeptune.Component', { override: 'Ext.Component', initComponent: function() { this.callParent(); if (this.dock && this.border === undefined) { this.border = false; } }, privates: { initStyles: function() { var me = this, hasOwnBorder = me.hasOwnProperty('border'), border = me.border; if (me.dock) { // prevent the superclass method from setting the border style. We want to // allow dock layout to decide which borders to suppress. me.border = null; } me.callParent(arguments); if (hasOwnBorder) { me.border = border; } else { delete me.border; } } } }); Ext.define('ExtThemeNeptune.resizer.Splitter', { override: 'Ext.resizer.Splitter', size: 8 }); Ext.define('ExtThemeNeptune.toolbar.Toolbar', { override: 'Ext.toolbar.Toolbar', usePlainButtons: false, border: false }); Ext.define('ExtThemeNeptune.layout.component.Dock', { override: 'Ext.layout.component.Dock', /** * This table contains the border removal classes indexed by the sum of the edges to * remove. Each edge is assigned a value: * * * `left` = 1 * * `bottom` = 2 * * `right` = 4 * * `top` = 8 * * @private */ noBorderClassTable: [ 0, // TRBL Ext.baseCSSPrefix + 'noborder-l', // 0001 = 1 Ext.baseCSSPrefix + 'noborder-b', // 0010 = 2 Ext.baseCSSPrefix + 'noborder-bl', // 0011 = 3 Ext.baseCSSPrefix + 'noborder-r', // 0100 = 4 Ext.baseCSSPrefix + 'noborder-rl', // 0101 = 5 Ext.baseCSSPrefix + 'noborder-rb', // 0110 = 6 Ext.baseCSSPrefix + 'noborder-rbl', // 0111 = 7 Ext.baseCSSPrefix + 'noborder-t', // 1000 = 8 Ext.baseCSSPrefix + 'noborder-tl', // 1001 = 9 Ext.baseCSSPrefix + 'noborder-tb', // 1010 = 10 Ext.baseCSSPrefix + 'noborder-tbl', // 1011 = 11 Ext.baseCSSPrefix + 'noborder-tr', // 1100 = 12 Ext.baseCSSPrefix + 'noborder-trl', // 1101 = 13 Ext.baseCSSPrefix + 'noborder-trb', // 1110 = 14 Ext.baseCSSPrefix + 'noborder-trbl' ], // 1111 = 15 /** * The numeric values assigned to each edge indexed by the `dock` config value. * @private */ edgeMasks: { top: 8, right: 4, bottom: 2, left: 1 }, handleItemBorders: function() { var me = this, edges = 0, maskT = 8, maskR = 4, maskB = 2, maskL = 1, owner = me.owner, bodyBorder = owner.bodyBorder, ownerBorder = owner.border, collapsed = me.collapsed, edgeMasks = me.edgeMasks, noBorderCls = me.noBorderClassTable, dockedItemsGen = owner.dockedItems.generation, b, borderCls, docked, edgesTouched, i, ln, item, dock, lastValue, mask, addCls, removeCls; if (me.initializedBorders === dockedItemsGen) { return; } addCls = []; removeCls = []; borderCls = me.getBorderCollapseTable(); noBorderCls = me.getBorderClassTable ? me.getBorderClassTable() : noBorderCls; me.initializedBorders = dockedItemsGen; // Borders have to be calculated using expanded docked item collection. me.collapsed = false; docked = me.getDockedItems(); me.collapsed = collapsed; for (i = 0 , ln = docked.length; i < ln; i++) { item = docked[i]; if (item.ignoreBorderManagement) { // headers in framed panels ignore border management, so we do not want // to set "satisfied" on the edge in question continue; } dock = item.dock; mask = edgesTouched = 0; addCls.length = 0; removeCls.length = 0; if (dock !== 'bottom') { if (edges & maskT) { // if (not touching the top edge) b = item.border; } else { b = ownerBorder; if (b !== false) { edgesTouched += maskT; } } if (b === false) { mask += maskT; } } if (dock !== 'left') { if (edges & maskR) { // if (not touching the right edge) b = item.border; } else { b = ownerBorder; if (b !== false) { edgesTouched += maskR; } } if (b === false) { mask += maskR; } } if (dock !== 'top') { if (edges & maskB) { // if (not touching the bottom edge) b = item.border; } else { b = ownerBorder; if (b !== false) { edgesTouched += maskB; } } if (b === false) { mask += maskB; } } if (dock !== 'right') { if (edges & maskL) { // if (not touching the left edge) b = item.border; } else { b = ownerBorder; if (b !== false) { edgesTouched += maskL; } } if (b === false) { mask += maskL; } } if ((lastValue = item.lastBorderMask) !== mask) { item.lastBorderMask = mask; if (lastValue) { removeCls[0] = noBorderCls[lastValue]; } if (mask) { addCls[0] = noBorderCls[mask]; } } if ((lastValue = item.lastBorderCollapse) !== edgesTouched) { item.lastBorderCollapse = edgesTouched; if (lastValue) { removeCls[removeCls.length] = borderCls[lastValue]; } if (edgesTouched) { addCls[addCls.length] = borderCls[edgesTouched]; } } if (removeCls.length) { item.removeCls(removeCls); } if (addCls.length) { item.addCls(addCls); } // mask can use += but edges must use |= because there can be multiple items // on an edge but the mask is reset per item edges |= edgeMasks[dock]; } // = T, R, B or L (8, 4, 2 or 1) mask = edgesTouched = 0; addCls.length = 0; removeCls.length = 0; if (edges & maskT) { // if (not touching the top edge) b = bodyBorder; } else { b = ownerBorder; if (b !== false) { edgesTouched += maskT; } } if (b === false) { mask += maskT; } if (edges & maskR) { // if (not touching the right edge) b = bodyBorder; } else { b = ownerBorder; if (b !== false) { edgesTouched += maskR; } } if (b === false) { mask += maskR; } if (edges & maskB) { // if (not touching the bottom edge) b = bodyBorder; } else { b = ownerBorder; if (b !== false) { edgesTouched += maskB; } } if (b === false) { mask += maskB; } if (edges & maskL) { // if (not touching the left edge) b = bodyBorder; } else { b = ownerBorder; if (b !== false) { edgesTouched += maskL; } } if (b === false) { mask += maskL; } if ((lastValue = me.lastBodyBorderMask) !== mask) { me.lastBodyBorderMask = mask; if (lastValue) { removeCls[0] = noBorderCls[lastValue]; } if (mask) { addCls[0] = noBorderCls[mask]; } } if ((lastValue = me.lastBodyBorderCollapse) !== edgesTouched) { me.lastBodyBorderCollapse = edgesTouched; if (lastValue) { removeCls[removeCls.length] = borderCls[lastValue]; } if (edgesTouched) { addCls[addCls.length] = borderCls[edgesTouched]; } } if (removeCls.length) { owner.removeBodyCls(removeCls); } if (addCls.length) { owner.addBodyCls(addCls); } }, onRemove: function(item) { var lastBorderMask = item.lastBorderMask; if (!item.isDestroyed && !item.ignoreBorderManagement && lastBorderMask) { item.lastBorderMask = 0; item.removeCls(this.noBorderClassTable[lastBorderMask]); } this.callParent([ item ]); } }); Ext.define('ExtThemeNeptune.panel.Panel', { override: 'Ext.panel.Panel', border: false, bodyBorder: false, initBorderProps: Ext.emptyFn, initBodyBorder: function() { // The superclass method converts a truthy bodyBorder into a number and sets // an inline border-width style on the body element. This prevents that from // happening if borderBody === true so that the body will get its border-width // the stylesheet. if (this.bodyBorder !== true) { this.callParent(); } } }); Ext.define('ExtThemeNeptune.panel.Table', { override: 'Ext.panel.Table', initComponent: function() { var me = this; if (!me.hasOwnProperty('bodyBorder') && !me.hideHeaders) { me.bodyBorder = true; } me.callParent(); } }); Ext.define('Ext.theme.crisp.view.Table', { override: 'Ext.view.Table', stripeRows: false }); Ext.define('ExtThemeNeptune.container.ButtonGroup', { override: 'Ext.container.ButtonGroup', usePlainButtons: false }); Ext.define('ExtThemeNeptune.toolbar.Paging', { override: 'Ext.toolbar.Paging', defaultButtonUI: 'plain-toolbar', inputItemWidth: 40 }); Ext.define('ExtThemeNeptune.picker.Month', { override: 'Ext.picker.Month', // Monthpicker contains logic that reduces the margins of the month items if it detects // that the text has wrapped. This can happen in the classic theme in certain // locales such as zh_TW. In order to work around this, Month picker measures // the month items to see if the height is greater than "measureMaxHeight". // In neptune the height of the items is larger, so we must increase this value. // While the actual height of the month items in neptune is 24px, we will only // determine that the text has wrapped if the height of the item exceeds 36px. // this allows theme developers some leeway to increase the month item size in // a neptune-derived theme. measureMaxHeight: 36 }); Ext.define('ExtThemeNeptune.form.field.HtmlEditor', { override: 'Ext.form.field.HtmlEditor', defaultButtonUI: 'plain-toolbar' }); Ext.define('ExtThemeNeptune.grid.RowEditor', { override: 'Ext.grid.RowEditor', buttonUI: 'default-toolbar' }); Ext.define('ExtThemeNeptune.grid.column.RowNumberer', { override: 'Ext.grid.column.RowNumberer', width: 25 }); Ext.define('ExtThemeNeptune.menu.Separator', { override: 'Ext.menu.Separator', border: true }); Ext.define('ExtThemeNeptune.menu.Menu', { override: 'Ext.menu.Menu', showSeparator: false }); ```
```css .red-text { color: red; } ```
Chelone glabra, or white turtlehead, is a herbaceous species of plant native to North America. Its native range extends from Georgia to Newfoundland and Labrador and from Mississippi to Manitoba. Its common name comes from the appearance of its flower petals, which resemble the head of a tortoise. In fact, in Greek, chelone means "tortoise" and was the name of a nymph who refused to attend the wedding of Zeus and was turned into a turtle as punishment. Its natural habitat is wet areas, such as riparian forests and swamps. Its classification at the family level has in the past been controversial, but as a result of DNA sequence studies, it is now regarded as belonging to family Plantaginaceae (the plantain family). In early taxonomic treatments the species was divided into a number of subspecific categories but more recent studies indicate no morphological or genetic basis for these taxonomic categories. [11] Description and ecology This species has opposite, simple leaves, on stout, upright stems. The flowers are white, borne in late summer and early fall. It is the primary plant on which the Baltimore checkerspot butterfly will lay its eggs (although the butterfly to some extent will use a few other species). Chelone glabra is a popular browse plant for deer. It is also a foodplant for the sawflies Macrophya nigra and Tenthredo grandis (Hymenoptera: Tenthredinidae), and a flea beetle in the genus Dibolia (Coleoptera: Chrysomelidae) has also been shown to feed on it. Uses It has been used as a method of birth control by Abenaki people. References 11. Allan D. Nelson; Wayne J. Elisens (1999). "Polyploid evolution and biogeography in Chelone (Scrophulariaceae): morphological and isozyme evidence". American Journal of Botany. Botanical Society of America. 86(10): 1487–1501. doi:10.2307/2656929. JSTOR 2656929. PMID 10523288. External links Plantaginaceae Flora of Eastern Canada Flora of the Northeastern United States Flora of the Southeastern United States Flora of the Appalachian Mountains Flora of the Great Lakes region (North America) Plants described in 1753 Taxa named by Carl Linnaeus Flora of the North-Central United States
```cmake set(program_name gperf) set(program_version 3.0.1) if(CMAKE_HOST_WIN32) set(download_filename "gperf-${program_version}-bin.zip") set(download_sha512 your_sha256_hashyour_sha256_hash) set(download_urls "path_to_url{program_version}/gperf-${program_version}-bin.zip/download") set(paths_to_search "${DOWNLOADS}/tools/gperf/bin") endif() ```
```yaml name: aliases_retype_remote_component_and_child description: A program that replaces a resource component and its child with an alias. runtime: go ```
```objective-c #ifndef VOXEL_STRING_NAMES_H #define VOXEL_STRING_NAMES_H #include "../util/godot/core/string_name.h" #include "../util/math/ortho_basis.h" namespace zylann::voxel { class VoxelStringNames { private: static VoxelStringNames *g_singleton; public: static const VoxelStringNames &get_singleton(); static void create_singleton(); static void destroy_singleton(); VoxelStringNames(); StringName _emerge_block; StringName _immerge_block; StringName _generate_block; StringName _get_used_channels_mask; StringName block_loaded; StringName block_unloaded; StringName mesh_block_entered; StringName mesh_block_exited; StringName store_colors_in_texture; StringName scale; StringName enable_baked_lighting; StringName pivot_mode; StringName u_transition_mask; StringName u_block_local_transform; StringName u_lod_fade; StringName voxel_normalmap_atlas; StringName voxel_normalmap_lookup; StringName u_voxel_normalmap_atlas; StringName u_voxel_cell_lookup; StringName u_voxel_cell_size; StringName u_voxel_block_size; StringName u_voxel_virtual_texture_fade; StringName u_voxel_virtual_texture_tile_size; StringName u_voxel_virtual_texture_offset_scale; StringName u_voxel_lod_info; #ifdef DEBUG_ENABLED StringName _voxel_debug_vt_position; #endif // These are usually in CoreStringNames, but when compiling as a GDExtension, we don't have access to them StringName changed; StringName frame_post_draw; #ifdef TOOLS_ENABLED StringName Add; StringName Remove; StringName EditorIcons; StringName EditorFonts; StringName Pin; StringName ExternalLink; StringName Search; StringName source; StringName _dummy_function; StringName grab_focus; StringName font; StringName font_size; StringName font_color; StringName Label; StringName Editor; #endif StringName _rpc_receive_blocks; StringName _rpc_receive_area; StringName unnamed; StringName air; StringName cube; StringName axis; StringName direction; StringName rotation; StringName x; StringName y; StringName z; StringName negative_x; StringName negative_y; StringName negative_z; StringName positive_x; StringName positive_y; StringName positive_z; FixedArray<StringName, math::ORTHO_ROTATION_COUNT> ortho_rotation_names; String ortho_rotation_enum_hint_string; StringName compiled; StringName _on_async_search_completed; StringName async_search_completed; StringName file_selected; }; } // namespace zylann::voxel #endif // VOXEL_STRING_NAMES_H ```
```c++ /* */ #include "dll_log.hpp" #include <Windows.h> struct scoped_file_handle { ~scoped_file_handle() { if (handle != INVALID_HANDLE_VALUE) CloseHandle(handle); } operator HANDLE() const { return handle; } void operator=(HANDLE new_handle) { handle = new_handle; } private: HANDLE handle = INVALID_HANDLE_VALUE; }; static scoped_file_handle s_file_handle; bool reshade::log::open_log_file(const std::filesystem::path &path, std::error_code &ec) { // Close the previous file first // Do this here, instead of in 'scoped_file_handle::operator=', so that the old handle is closed before the new handle is created if (s_file_handle != INVALID_HANDLE_VALUE) CloseHandle(s_file_handle); // Open the log file for writing (and flush on each write) and clear previous contents s_file_handle = CreateFileW(path.c_str(), GENERIC_WRITE, FILE_SHARE_READ, nullptr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_WRITE_THROUGH, NULL); if (s_file_handle != INVALID_HANDLE_VALUE) { // Last error may be ERROR_ALREADY_EXISTS if an existing file was overwritten, which can be ignored ec.clear(); return true; } else { ec.assign(GetLastError(), std::system_category()); return false; } } void reshade::log::message(level level, const char *format, ...) { static constexpr char level_names[][6] = { "ERROR", "WARN ", "INFO ", "DEBUG" }; if (static_cast<size_t>(level) == 0) level = level::error; if (static_cast<size_t>(level) > std::size(level_names)) level = level::debug; SYSTEMTIME time; GetLocalTime(&time); std::string line_string; line_string.resize(256); // Start a new line const auto meta_length = std::snprintf(line_string.data(), line_string.size(), #if RESHADE_VERBOSE_LOG "%04hd-%02hd-%02hdT" #endif "%02hd:%02hd:%02hd:%03hd [%5lu] | %.5s | ", #if RESHADE_VERBOSE_LOG time.wYear, time.wMonth, time.wDay, #endif time.wHour, time.wMinute, time.wSecond, time.wMilliseconds, GetCurrentThreadId(), level_names[static_cast<size_t>(level) - 1]); va_list args; va_start(args, format); const auto content_length = std::vsnprintf(line_string.data() + meta_length, line_string.size() + 1 - meta_length, format, args); va_end(args); const auto remaining_content = static_cast<size_t>(meta_length) + static_cast<size_t>(content_length) > line_string.size(); line_string.resize(static_cast<size_t>(meta_length) + static_cast<size_t>(content_length)); if (remaining_content) { va_start(args, format); std::vsnprintf(line_string.data() + meta_length, line_string.size() + 1 - meta_length, format, args); va_end(args); } line_string += '\n'; // Terminate line with line feed // Replace all LF with CRLF for (size_t offset = 0; (offset = line_string.find('\n', offset)) != std::string::npos; offset += 2) line_string.replace(offset, 1, "\r\n", 2); // Write line to the log file if (s_file_handle != INVALID_HANDLE_VALUE) { DWORD written = 0; WriteFile(s_file_handle, line_string.data(), static_cast<DWORD>(line_string.size()), &written, nullptr); assert(written == line_string.size()); } #ifndef NDEBUG // Write line to the debug output OutputDebugStringA(line_string.c_str()); #endif } ```
Bamako Sign Language, also known as Malian Sign Language, or LaSiMa (Langue des Signes Malienne), is a sign language that developed outside the Malian educational system, in the urban tea-circles of Bamako where deaf men gathered after work. It is used predominantly by men, and is threatened by the educational use of American Sign Language, which is the language of instruction for those deaf children who go to school. See also Tebul Sign Language, village sign of the Dogon region References External links Sign languages of Mali Sample signs of LaSiMa Project LaSiMa (YouTube) Bamako and Dogon sign languages at the University of Central Lancashire Sign language isolates Sign languages of Mali
Cyperus angolensis is a species of sedge that is native to parts of Africa. The species was first formally described by the botanist Johann Otto Boeckeler in 1880. See also List of Cyperus species References angolensis Taxa named by Johann Otto Boeckeler Plants described in 1880 Flora of Angola Flora of Burundi Flora of Cameroon Flora of Chad Flora of the Democratic Republic of the Congo
```go //go:build linux package cgroups import ( "fmt" "path/filepath" "strconv" "github.com/opencontainers/runc/libcontainer/cgroups" "github.com/opencontainers/runc/libcontainer/cgroups/fs" "github.com/opencontainers/runc/libcontainer/cgroups/fs2" "github.com/opencontainers/runc/libcontainer/configs" ) type linuxMemHandler struct { Mem fs.MemoryGroup } func getMemoryHandler() *linuxMemHandler { return &linuxMemHandler{} } // Apply set the specified constraints func (c *linuxMemHandler) Apply(ctr *CgroupControl, res *configs.Resources) error { if ctr.cgroup2 { man, err := fs2.NewManager(ctr.config, filepath.Join(cgroupRoot, ctr.config.Path)) if err != nil { return err } return man.Set(res) } path := filepath.Join(cgroupRoot, Memory, ctr.config.Path) return c.Mem.Set(path, res) } // Create the cgroup func (c *linuxMemHandler) Create(ctr *CgroupControl) (bool, error) { if ctr.cgroup2 { return false, nil } return ctr.createCgroupDirectory(Memory) } // Destroy the cgroup func (c *linuxMemHandler) Destroy(ctr *CgroupControl) error { return rmDirRecursively(ctr.getCgroupv1Path(Memory)) } // Stat fills a metrics structure with usage stats for the controller func (c *linuxMemHandler) Stat(ctr *CgroupControl, m *cgroups.Stats) error { var err error memUsage := cgroups.MemoryStats{} var memoryRoot string var limitFilename string if ctr.cgroup2 { memoryRoot = filepath.Join(cgroupRoot, ctr.config.Path) limitFilename = "memory.max" if memUsage.Usage.Usage, err = readFileByKeyAsUint64(filepath.Join(memoryRoot, "memory.stat"), "anon"); err != nil { return err } } else { memoryRoot = ctr.getCgroupv1Path(Memory) limitFilename = "memory.limit_in_bytes" path := filepath.Join(memoryRoot, "memory.stat") values, err := readCgroupMapPath(path) if err != nil { return err } // cgroup v1 does not have a single "anon" field, but we can calculate it // from total_active_anon and total_inactive_anon memUsage.Usage.Usage = 0 for _, key := range []string{"total_active_anon", "total_inactive_anon"} { if _, found := values[key]; !found { continue } res, err := strconv.ParseUint(values[key][0], 10, 64) if err != nil { return fmt.Errorf("parse %s from %s: %w", key, path, err) } memUsage.Usage.Usage += res } } memUsage.Usage.Limit, err = readFileAsUint64(filepath.Join(memoryRoot, limitFilename)) if err != nil { return err } m.MemoryStats = memUsage return nil } ```
The Chagane () is an Azerbaijani four-stringed bowed musical instrument. Its range is F#2 to F#5. While played, instrument is held in a vertical position. Sound is produced with a bow in the right hand. The total length of the instrument is 820 mm, the body length is 420 mm, the width is 220 mm, and the height is 140 mm. Chagane was painted by Grigory Gagarin in his painting "Shemakha dancers" among other music instruments. References Azerbaijani musical instruments Bowed instruments String instruments
```smalltalk // *********************************************************************** // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // *********************************************************************** #if CLR_2_0 || CLR_4_0 using System.Collections.Generic; #endif using System.Reflection; using NUnit.Framework.Api; using NUnit.Framework.Internal.Commands; using NUnit.Framework.Internal.WorkItems; namespace NUnit.Framework.Internal { /// <summary> /// The TestMethod class represents a Test implemented as a method. /// Because of how exceptions are handled internally, this class /// must incorporate processing of expected exceptions. A change to /// the Test interface might make it easier to process exceptions /// in an object that aggregates a TestMethod in the future. /// </summary> public class TestMethod : Test { #region Fields /// <summary> /// The test method /// </summary> internal MethodInfo method; /// <summary> /// A list of all decorators applied to the test by attributes or parameterset arguments /// </summary> #if CLR_2_0 || CLR_4_0 private List<ICommandDecorator> decorators = new List<ICommandDecorator>(); #else private System.Collections.ArrayList decorators = new System.Collections.ArrayList(); #endif /// <summary> /// The ParameterSet used to create this test method /// </summary> internal ParameterSet parms; #endregion #region Constructor /// <summary> /// Initializes a new instance of the <see cref="TestMethod"/> class. /// </summary> /// <param name="method">The method to be used as a test.</param> /// <param name="parentSuite">The suite or fixture to which the new test will be added</param> public TestMethod(MethodInfo method, Test parentSuite) : base( method.ReflectedType ) { this.Name = method.Name; this.FullName += "." + this.Name; // Disambiguate call to base class methods // TODO: This should not be here - it's a presentation issue if( method.DeclaringType != method.ReflectedType) this.Name = method.DeclaringType.Name + "." + method.Name; // Needed to give proper fullname to test in a parameterized fixture. // Without this, the arguments to the fixture are not included. string prefix = method.ReflectedType.FullName; if (parentSuite != null) { prefix = parentSuite.FullName; this.FullName = prefix + "." + this.Name; } this.method = method; } #endregion #region Properties /// <summary> /// Gets the method. /// </summary> /// <value>The method that performs the test.</value> public MethodInfo Method { get { return method; } } /// <summary> /// Gets a list of custom decorators for this test. /// </summary> #if CLR_2_0 || CLR_4_0 public IList<ICommandDecorator> CustomDecorators #else public System.Collections.IList CustomDecorators #endif { get { return decorators; } } internal bool HasExpectedResult { get { return parms != null && parms.HasExpectedResult; } } internal object ExpectedResult { get { return parms != null ? parms.ExpectedResult : null; } } internal object[] Arguments { get { return parms != null ? parms.Arguments : null; } } internal bool IsAsync { get { #if NET_4_5 return method.IsDefined(typeof(System.Runtime.CompilerServices.AsyncStateMachineAttribute), false); #else return false; #endif } } #endregion #region Test Overrides /// <summary> /// Overridden to return a TestCaseResult. /// </summary> /// <returns>A TestResult for this test.</returns> public override TestResult MakeTestResult() { return new TestCaseResult(this); } /// <summary> /// Gets a bool indicating whether the current test /// has any descendant tests. /// </summary> public override bool HasChildren { get { return false; } } /// <summary> /// Returns an XmlNode representing the current result after /// adding it as a child of the supplied parent node. /// </summary> /// <param name="parentNode">The parent node.</param> /// <param name="recursive">If true, descendant results are included</param> /// <returns></returns> public override XmlNode AddToXml(XmlNode parentNode, bool recursive) { XmlNode thisNode = parentNode.AddElement(XmlElementName); PopulateTestNode(thisNode, recursive); thisNode.AddAttribute("seed", this.Seed.ToString()); return thisNode; } /// <summary> /// Gets this test's child tests /// </summary> /// <value>A list of child tests</value> #if CLR_2_0 || CLR_4_0 public override IList<ITest> Tests #else public override System.Collections.IList Tests #endif { get { return new ITest[0]; } } /// <summary> /// Gets the name used for the top-level element in the /// XML representation of this test /// </summary> public override string XmlElementName { get { return "test-case"; } } /// <summary> /// Creates a test command for use in running this test. /// </summary> /// <returns></returns> public virtual TestCommand MakeTestCommand() { if (RunState != RunState.Runnable && RunState != RunState.Explicit) return new SkipCommand(this); TestCommand command = new TestMethodCommand(this); command = ApplyDecoratorsToCommand(command); IApplyToContext[] changes = (IApplyToContext[])this.Method.GetCustomAttributes(typeof(IApplyToContext), true); if (changes.Length > 0) command = new ApplyChangesToContextCommand(command, changes); return command; } /// <summary> /// Creates a WorkItem for executing this test. /// </summary> /// <param name="childFilter">A filter to be used in selecting child tests</param> /// <returns>A new WorkItem</returns> public override WorkItem CreateWorkItem(ITestFilter childFilter) { // For simple test cases, we ignore the filter return new SimpleWorkItem(this); } #endregion #region Helper Methods private TestCommand ApplyDecoratorsToCommand(TestCommand command) { CommandDecoratorList decorators = new CommandDecoratorList(); // Add Standard stuff decorators.Add(new SetUpTearDownDecorator()); // Add Decorators supplied by attributes and parameter sets foreach (ICommandDecorator decorator in CustomDecorators) decorators.Add(decorator); decorators.OrderByStage(); foreach (ICommandDecorator decorator in decorators) { command = decorator.Decorate(command); } return command; } #endregion } } ```
Can Mario Museum is the Fundació Vila Casas Museum of Contemporary Sculpture in Palafrugell (Costa Brava). It was opened in 2004. It has around 220 works on show dating from the 1960s to the present day by a wide range of artists born or living in Catalonia. Temporary exhibitions are also held every year. Temporary exhibitions are organised every year. Can Mario was a cork factory dating from the early 20th century and was one of the buildings of the Miquel & Vincke cork company. Today it is a place for contemplating art situated in the Plaça de Can Mario, where we can also find a modernista water tower and the Cork Museum. Since April 2011, 33 sculptures by artists from the Empordà region of Catalonia have been placed in the Gardens of Can Mario, as permanent, open air exhibits. In October of the same year the Empordà Gallery was opened in the Museum, for holding temporary exhibitions of artists from the region. References External links Can Mario Website, Fundació Vila Casas Empordà Guia Can Mario Visit Palafrugell Can Mario Art museums and galleries in Catalonia Sculpture galleries in Spain Museums in Baix Empordà
```java * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.flowable.dmn.converter.child; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.xml.stream.XMLStreamReader; import org.apache.commons.lang3.StringUtils; import org.flowable.dmn.model.Decision; import org.flowable.dmn.model.DmnElement; import org.flowable.dmn.xml.constants.DmnXMLConstants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author Tijs Rademakers * @author Yvo Swillens */ public abstract class BaseChildElementParser implements DmnXMLConstants { protected static final Logger LOGGER = LoggerFactory.getLogger(BaseChildElementParser.class); public abstract String getElementName(); public abstract void parseChildElement(XMLStreamReader xtr, DmnElement parentElement, Decision decision) throws Exception; protected void parseChildElements(XMLStreamReader xtr, DmnElement parentElement, Decision decision, BaseChildElementParser parser) throws Exception { boolean readyWithChildElements = false; while (!readyWithChildElements && xtr.hasNext()) { xtr.next(); if (xtr.isStartElement()) { if (parser.getElementName().equals(xtr.getLocalName())) { parser.parseChildElement(xtr, parentElement, decision); } } else if (xtr.isEndElement() && getElementName().equalsIgnoreCase(xtr.getLocalName())) { readyWithChildElements = true; } } } public boolean accepts(DmnElement element) { return element != null; } public List<Object> splitAndFormatInputOutputValues(String valuesText) { if (StringUtils.isEmpty(valuesText)) { return Collections.emptyList(); } List<Object> result = new ArrayList<>(); int start = 0; int subStart, subEnd; boolean inQuotes = false; for (int current = 0; current < valuesText.length(); current++) { if (valuesText.charAt(current) == '\"') { inQuotes = !inQuotes; } else if (valuesText.charAt(current) == ',' && !inQuotes) { subStart = getSubStringStartPos(start, valuesText); subEnd = getSubStringEndPos(current, valuesText); result.add(valuesText.substring(subStart, subEnd)); start = current + 1; if (valuesText.charAt(start) == ' ') { start++; } } } subStart = getSubStringStartPos(start, valuesText); subEnd = getSubStringEndPos(valuesText.length(), valuesText); result.add(valuesText.substring(subStart, subEnd)); return result; } protected int getSubStringStartPos(int initialStart, String searchString) { if (searchString.charAt(initialStart) == '\"') { return initialStart + 1; } return initialStart; } protected int getSubStringEndPos(int initialEnd, String searchString) { if (searchString.charAt(initialEnd - 1) == '\"') { return initialEnd - 1; } return initialEnd; } } ```
Jack Owens may refer to: Jack Owens (blues singer) (1904–1997), American Delta blues singer and guitarist Jack Owens (footballer) (1902–1942), Australian rules footballer who played for Glenelg during the 1920s and 1930s Jack Owens (singer-songwriter) (1912–1982), American singer/songwriter, pianist, known as "The Cruising Crooner" Jack Owens (baseball) (1908–1958), American baseball player Jack Owens (rugby league) (born 1994), rugby league player Jack Owens (basketball) (born 1977), basketball coach Jack Owens (rugby union) (born 1995), Irish rugby player See also John Owens (disambiguation) Jack Owen (disambiguation)
is a passenger railway station in the city of Hitachiōta, Ibaraki Prefecture, operated by East Japan Railway Company (JR East). Lines Yagawara Station is served by the Hitachi-Ōta Spur Line of the Suigun Line, and is located 8.2 rail kilometers from the official starting point of the spur line at Kami-Sugaya Station. Station layout The station consists of a single side platform serving traffic in both directions. There is no station building, and station is unattended. History Yagawara Station opened on September 1, 1935 as . The station was closed from August 10, 1941 until October 21, 1954, when it reopened under its present name. The station was absorbed into the JR East network upon the privatization of the Japanese National Railways (JNR) on April 1, 1987. Surrounding area Satake Post Office See also List of railway stations in Japan External links JR East Station information Railway stations in Ibaraki Prefecture Suigun Line Railway stations in Japan opened in 1935 Hitachiōta, Ibaraki
```smalltalk using System; using System.Threading; using System.Threading.Tasks; using NAudio.CoreAudioApi; using NAudio.Wave; namespace EspionSpotify.AudioSessions { public class AudioLoopback: IAudioLoopback, IDisposable { private readonly bool _canDo = false; private bool _isDisposed = false; private const int BUFFER_TOTAL_SIZE_MS = 10_000; private readonly BufferedWaveProvider _bufferedWaveProvider; private readonly WasapiLoopbackCapture _waveIn; private readonly WaveOut _waveOut; private CancellationTokenSource _cancellationTokenSource; public bool Running { get; set; } public AudioLoopback(MMDevice currentEndpointDevice, MMDevice defaultEndpointDevice) { _canDo = currentEndpointDevice.ID != defaultEndpointDevice.ID; _waveIn = new WasapiLoopbackCapture(currentEndpointDevice); _waveIn.DataAvailable += OnDataAvailable; _bufferedWaveProvider = new BufferedWaveProvider(_waveIn.WaveFormat) { DiscardOnBufferOverflow = true, BufferDuration = TimeSpan.FromMilliseconds(BUFFER_TOTAL_SIZE_MS) }; _waveOut = new WaveOut(); } public async Task Run(CancellationTokenSource cancellationTokenSource) { if (!_canDo) return; _cancellationTokenSource = cancellationTokenSource; Running = true; _waveIn.StartRecording(); _waveOut.Init(_bufferedWaveProvider); _waveOut.Play(); while (Running) { if (_cancellationTokenSource.IsCancellationRequested) return; await Task.Delay(100); } _waveOut.Stop(); _waveIn.StopRecording(); } private void OnDataAvailable(object sender, WaveInEventArgs waveInEventArgs) { _bufferedWaveProvider.AddSamples(waveInEventArgs.Buffer,0, waveInEventArgs.BytesRecorded); } public void Dispose() { if (!_isDisposed) { _isDisposed = true; _waveIn.Dispose(); _waveOut.Dispose(); } } } } ```
```c /* Loop unswitching. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it Free Software Foundation; either version 2, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or for more details. along with GCC; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "config.h" #include "system.h" #include "coretypes.h" #include "tm.h" #include "tree.h" #include "rtl.h" #include "tm_p.h" #include "hard-reg-set.h" #include "basic-block.h" #include "output.h" #include "diagnostic.h" #include "tree-flow.h" #include "tree-dump.h" #include "timevar.h" #include "cfgloop.h" #include "domwalk.h" #include "params.h" #include "tree-pass.h" /* This file implements the loop unswitching, i.e. transformation of loops like while (A) { if (inv) B; X; if (!inv) C; } where inv is the loop invariant, into if (inv) { while (A) { B; X; } } else { while (A) { X; C; } } Inv is considered invariant iff the values it compares are both invariant; tree-ssa-loop-im.c ensures that all the suitable conditions are in this shape. */ static struct loop *tree_unswitch_loop (struct loops *, struct loop *, basic_block, tree); static bool tree_unswitch_single_loop (struct loops *, struct loop *, int); static tree tree_may_unswitch_on (basic_block, struct loop *); /* Main entry point. Perform loop unswitching on all suitable LOOPS. */ unsigned int tree_ssa_unswitch_loops (struct loops *loops) { int i, num; struct loop *loop; bool changed = false; /* Go through inner loops (only original ones). */ num = loops->num; for (i = 1; i < num; i++) { /* Removed loop? */ loop = loops->parray[i]; if (!loop) continue; if (loop->inner) continue; changed |= tree_unswitch_single_loop (loops, loop, 0); } if (changed) return TODO_cleanup_cfg; return 0; } /* Checks whether we can unswitch LOOP on condition at end of BB -- one of its basic blocks (for what it means see comments below). */ static tree tree_may_unswitch_on (basic_block bb, struct loop *loop) { tree stmt, def, cond, use; basic_block def_bb; ssa_op_iter iter; /* BB must end in a simple conditional jump. */ stmt = last_stmt (bb); if (!stmt || TREE_CODE (stmt) != COND_EXPR) return NULL_TREE; /* Condition must be invariant. */ FOR_EACH_SSA_TREE_OPERAND (use, stmt, iter, SSA_OP_USE) { def = SSA_NAME_DEF_STMT (use); def_bb = bb_for_stmt (def); if (def_bb && flow_bb_inside_loop_p (loop, def_bb)) return NULL_TREE; } cond = COND_EXPR_COND (stmt); /* To keep the things simple, we do not directly remove the conditions, but just replace tests with 0/1. Prevent the infinite loop where we would unswitch again on such a condition. */ if (integer_zerop (cond) || integer_nonzerop (cond)) return NULL_TREE; return cond; } /* Simplifies COND using checks in front of the entry of the LOOP. Just very simplish (sufficient to prevent us from duplicating loop in unswitching unnecessarily). */ static tree simplify_using_entry_checks (struct loop *loop, tree cond) { edge e = loop_preheader_edge (loop); tree stmt; while (1) { stmt = last_stmt (e->src); if (stmt && TREE_CODE (stmt) == COND_EXPR && operand_equal_p (COND_EXPR_COND (stmt), cond, 0)) return (e->flags & EDGE_TRUE_VALUE ? boolean_true_node : boolean_false_node); if (!single_pred_p (e->src)) return cond; e = single_pred_edge (e->src); if (e->src == ENTRY_BLOCK_PTR) return cond; } } /* Unswitch single LOOP. NUM is number of unswitchings done; we do not allow it to grow too much, it is too easy to create example on that the code would grow exponentially. */ static bool tree_unswitch_single_loop (struct loops *loops, struct loop *loop, int num) { basic_block *bbs; struct loop *nloop; unsigned i; tree cond = NULL_TREE, stmt; bool changed = false; /* Do not unswitch too much. */ if (num > PARAM_VALUE (PARAM_MAX_UNSWITCH_LEVEL)) { if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, ";; Not unswitching anymore, hit max level\n"); return false; } /* Only unswitch innermost loops. */ if (loop->inner) { if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, ";; Not unswitching, not innermost loop\n"); return false; } /* The loop should not be too large, to limit code growth. */ if (tree_num_loop_insns (loop) > (unsigned) PARAM_VALUE (PARAM_MAX_UNSWITCH_INSNS)) { if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, ";; Not unswitching, loop too big\n"); return false; } i = 0; bbs = get_loop_body (loop); while (1) { /* Find a bb to unswitch on. */ for (; i < loop->num_nodes; i++) if ((cond = tree_may_unswitch_on (bbs[i], loop))) break; if (i == loop->num_nodes) { free (bbs); return changed; } cond = simplify_using_entry_checks (loop, cond); stmt = last_stmt (bbs[i]); if (integer_nonzerop (cond)) { /* Remove false path. */ COND_EXPR_COND (stmt) = boolean_true_node; changed = true; } else if (integer_zerop (cond)) { /* Remove true path. */ COND_EXPR_COND (stmt) = boolean_false_node; changed = true; } else break; update_stmt (stmt); i++; } if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, ";; Unswitching loop\n"); initialize_original_copy_tables (); /* Unswitch the loop on this condition. */ nloop = tree_unswitch_loop (loops, loop, bbs[i], cond); if (!nloop) { free_original_copy_tables (); free (bbs); return changed; } /* Update the SSA form after unswitching. */ update_ssa (TODO_update_ssa); free_original_copy_tables (); /* Invoke itself on modified loops. */ tree_unswitch_single_loop (loops, nloop, num + 1); tree_unswitch_single_loop (loops, loop, num + 1); free (bbs); return true; } /* Unswitch a LOOP w.r. to given basic block UNSWITCH_ON. We only support unswitching of innermost loops. COND is the condition determining which loop is entered -- the new loop is entered if COND is true. Returns NULL if impossible, new loop otherwise. */ static struct loop * tree_unswitch_loop (struct loops *loops, struct loop *loop, basic_block unswitch_on, tree cond) { basic_block condition_bb; /* Some sanity checking. */ gcc_assert (flow_bb_inside_loop_p (loop, unswitch_on)); gcc_assert (EDGE_COUNT (unswitch_on->succs) == 2); gcc_assert (loop->inner == NULL); return loop_version (loops, loop, unshare_expr (cond), &condition_bb, false); } ```
```javascript (window.webpackJsonp=window.webpackJsonp||[]).push([[49],{826:function(e,n){e.exports=function(e){var n={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},a={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},s={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[e.inherit(n,{className:"meta-string"}),{className:"meta-string",begin:"<",end:">",illegal:"\\n"}]},n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:"variable",begin:"\\&[a-z\\d_]*\\b"},d={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},l={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},c={className:"params",begin:"<",end:">",contains:[a,i]},_={className:"class",begin:/[a-zA-Z_][a-zA-Z\d_@]*\s{/,end:/[{;=]/,returnBegin:!0,excludeEnd:!0};return{keywords:"",contains:[{className:"class",begin:"/\\s*{",end:"};",relevance:10,contains:[i,d,l,_,c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,n]},i,d,l,_,c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,n,s,{begin:e.IDENT_RE+"::",keywords:""}]}}}}]); ```
```java package com.yahoo.vdslib.distribution; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; import com.yahoo.config.subscription.ConfigGetter; import com.yahoo.document.BucketId; import com.yahoo.vdslib.state.ClusterState; import com.yahoo.vdslib.state.NodeType; import com.yahoo.vespa.config.content.StorDistributionConfig; import java.util.ArrayList; import java.util.List; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; // TODO: Use config builder instead of ConfigGetter to create test config. public final class DistributionTestFactory extends CrossPlatformTestFactory { final ObjectMapper mapper = new ObjectMapper(); private static final String testDirectory = "src/tests/distribution/testdata"; private int redundancy; private int nodeCount; private ClusterState state; private StorDistributionConfig.Builder distributionConfig; private NodeType nodeType; private String upStates; private int testsRecorded = 0; private final List<Test> results = new ArrayList<>(); private int testsVerified = 0; enum Failure { NONE, TOO_FEW_BITS, NO_DISTRIBUTORS_AVAILABLE } static public class Test { private final BucketId bucket; private final List<Integer> nodes; private Failure failure; public Test(BucketId bucket) { this.bucket = bucket; nodes = new ArrayList<>(); failure = Failure.NONE; } @Override public boolean equals(Object other) { if (!(other instanceof Test t)) return false; return (bucket.equals(t.bucket) && nodes.equals(t.nodes) && failure.equals(t.failure)); } @Override public int hashCode() { return java.util.Objects.hash(bucket, nodes); } public String toString() { StringBuilder sb = new StringBuilder().append(bucket.toString()); if (failure == Failure.NONE) { sb.append(" ["); for (int i=0; i<nodes.size(); ++i) { if (i != 0) sb.append(" "); sb.append(nodes.get(i)); } sb.append("]"); } else { sb.append(' ').append(failure); } return sb.toString(); } public List<Integer> getNodes() { return nodes; } public Test assertNodeCount(int count) { if (count > 0) assertEquals(toString(), Failure.NONE, failure); assertEquals(toString(), count, nodes.size()); return this; } public void assertNodeUsed(int node) { assertEquals(toString(), Failure.NONE, failure); assertTrue(toString(), nodes.contains(node)); } } public DistributionTestFactory(String name) { super(testDirectory, name); try{ redundancy = 3; nodeCount = 10; state = new ClusterState("distributor:" + nodeCount); distributionConfig = deserializeConfig(Distribution.getDefaultDistributionConfig(redundancy, nodeCount)); nodeType = NodeType.DISTRIBUTOR; upStates = "uim"; loadTestResults(); } catch (Exception e) { throw new RuntimeException(e); } } @SuppressWarnings("deprecation") private static StorDistributionConfig.Builder deserializeConfig(String s) { return new StorDistributionConfig.Builder( new ConfigGetter<>(StorDistributionConfig.class).getConfig("raw:" + s)); } public DistributionTestFactory setNodeCount(int count) throws Exception { nodeCount = count; distributionConfig = deserializeConfig(Distribution.getDefaultDistributionConfig(redundancy, nodeCount)); state = new ClusterState("distributor:" + nodeCount); return this; } public DistributionTestFactory setClusterState(ClusterState state) { this.state = state; return this; } public DistributionTestFactory setDistribution(StorDistributionConfig.Builder d) { this.distributionConfig = d; return this; } public Distribution getDistribution() { return new Distribution(new StorDistributionConfig(distributionConfig)); } public DistributionTestFactory setNodeType(NodeType n) { this.nodeType = n; return this; } public DistributionTestFactory setUpStates(String up) { this.upStates = up; return this; } public int getVerifiedTests() { return testsVerified; } void verifySame(Test javaTest, Test other) { assertEquals("Reference test " + testsRecorded + " differ.", other, javaTest); ++testsVerified; } Test recordResult(BucketId bucket) { Test t = new Test(bucket); Distribution d = new Distribution(new StorDistributionConfig(distributionConfig)); try{ if (nodeType.equals(NodeType.DISTRIBUTOR)) { int node = d.getIdealDistributorNode(state, bucket, upStates); t.nodes.add(node); } else { t.nodes.addAll(d.getIdealStorageNodes(state, bucket, upStates)); } } catch (Distribution.TooFewBucketBitsInUseException e) { t.failure = Failure.TOO_FEW_BITS; } catch (Distribution.NoDistributorsAvailableException e) { t.failure = Failure.NO_DISTRIBUTORS_AVAILABLE; } if (results.size() > testsRecorded) { verifySame(t, results.get(testsRecorded)); } else { results.add(t); } ++testsRecorded; return t; } public String serialize() { ObjectNode test = new ObjectNode(mapper.getNodeFactory()) .put("cluster-state", state.toString()) .put("distribution", new StorDistributionConfig(distributionConfig).toString()) .put("node-type", nodeType.toString()) .put("redundancy", redundancy) .put("node-count", nodeCount) .put("up-states", upStates); ArrayNode results = test.putArray("result"); for (Test t : this.results) { results.addObject() .putPOJO("nodes", t.nodes) .put("bucket", Long.toHexString(t.bucket.getId())) .put("failure", t.failure.toString()); } return test.toPrettyString(); } public void parse(String serialized) throws Exception { JsonNode json = mapper.readTree(serialized); upStates = json.get("up-states").textValue(); nodeCount = json.get("redundancy").intValue(); redundancy = json.get("redundancy").intValue(); state = new ClusterState(json.get("cluster-state").textValue()); distributionConfig = deserializeConfig(json.get("distribution").textValue()); nodeType = NodeType.get(json.get("node-type").textValue()); for (JsonNode result : json.get("result")) { Test t = new Test(new BucketId(Long.parseLong(result.get("bucket").textValue(), 16))); for (JsonNode node : result.get("nodes")) t.nodes.add(node.intValue()); t.failure = Failure.valueOf(result.get("failure").textValue()); this.results.add(t); } } } ```
```java /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * specific language governing permissions and limitations */ package org.ballerinalang.test.bala.globalvar; import io.ballerina.runtime.api.values.BArray; import io.ballerina.runtime.api.values.BMap; import io.ballerina.runtime.api.values.BString; import org.ballerinalang.test.BCompileUtil; import org.ballerinalang.test.BRunUtil; import org.ballerinalang.test.CompileResult; import org.ballerinalang.test.utils.ByteArrayUtils; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; /** * Global variable functions in BALA test. * * @since 0.975.0 */ public class GlobalVarFunctionInBalaTest { CompileResult compileResult; @BeforeClass public void setup() { BCompileUtil.compileAndCacheBala("test-src/bala/test_projects/test_project"); compileResult = BCompileUtil.compile("test-src/bala/test_bala/globalvar/test_global_var_function.bal"); } @Test(description = "Test Defining global variables") public void testDefiningGlobalVar() { Object[] args = new Object[0]; Object result = BRunUtil.invoke(compileResult, "getGlobalVars", args); BArray returns = (BArray) result; Assert.assertEquals(returns.size(), 4); Assert.assertTrue(returns.get(0) instanceof Long); Assert.assertTrue(returns.get(1) instanceof BString); Assert.assertTrue(returns.get(2) instanceof Double); Assert.assertTrue(returns.get(3) instanceof Long); Assert.assertEquals(returns.get(0), 800L); Assert.assertEquals(returns.get(1).toString(), "value"); Assert.assertEquals(returns.get(2), 99.34323); Assert.assertEquals(returns.get(3), 88343L); } @Test(description = "Test access global variable within function") public void testAccessGlobalVarWithinFunctions() { Object returns = BRunUtil.invoke(compileResult, "accessGlobalVar"); Assert.assertTrue(returns instanceof Long); Assert.assertEquals(returns, 89143L); } @Test(description = "Test change global var within functions") public void testChangeGlobalVarWithinFunction() { Object[] args = {(88)}; Object returns = BRunUtil.invoke(compileResult, "changeGlobalVar", args); Assert.assertTrue(returns instanceof Double); Assert.assertEquals(returns, 165.0); CompileResult resultGlobalVar = BCompileUtil .compile("test-src/statements/variabledef/global-var-function.bal"); Object returnsChanged = BRunUtil.invoke(resultGlobalVar, "getGlobalFloatVar"); Assert.assertTrue(returnsChanged instanceof Double); Assert.assertEquals(returnsChanged, 80.0); } @Test(description = "Test assigning global variable to another global variable") public void testAssignGlobalVarToAnotherGlobalVar() { Object returns = BRunUtil.invoke(compileResult, "getGlobalVarFloat1"); Assert.assertTrue(returns instanceof Double); Assert.assertEquals(returns, 99.34323); } @Test(description = "Test assigning global var within a function") public void testInitializingGlobalVarWithinFunction() { Object result = BRunUtil.invoke(compileResult, "initializeGlobalVarSeparately"); BArray returns = (BArray) result; Assert.assertEquals(returns.size(), 2); Assert.assertTrue(returns.get(0) instanceof BMap); Assert.assertTrue(returns.get(1) instanceof Double); Assert.assertEquals(returns.get(0).toString(), "{\"name\":\"James\",\"age\":30}"); Assert.assertEquals(returns.get(1), 3432.3423); } @Test(description = "Test global variable byte") public void testGlobalVarByte() { Object returns = BRunUtil.invoke(compileResult, "getGlobalVarByte"); Assert.assertTrue(returns instanceof Integer); Assert.assertEquals(returns, 234); } @Test(description = "Test global variable byte array1") public void testGlobalVarByteArray1() { byte[] bytes1 = new byte[]{2, 3, 4, 67, 89}; Object returns = BRunUtil.invoke(compileResult, "getGlobalVarByteArray1"); Assert.assertTrue(returns instanceof BArray); BArray blob1 = (BArray) returns; ByteArrayUtils.assertJBytesWithBBytes(bytes1, blob1.getBytes()); } @Test(description = "Test global variable byte array2") public void testGlobalVarByteArray2() { String b1 = "afcd34abcdef+dfginermkmf123w/bc234cd/1a4bdfaaFGTdaKMN8923as="; byte[] bytes1 = ByteArrayUtils.decodeBase64(b1); Object returns = BRunUtil.invoke(compileResult, "getGlobalVarByteArray2"); Assert.assertTrue(returns instanceof BArray); BArray blob1 = (BArray) returns; ByteArrayUtils.assertJBytesWithBBytes(bytes1, blob1.getBytes()); } @Test(description = "Test global variable byte array3") public void testGlobalVarByteArray3() { String b1 = "afcd34abcdef123abc234bcd1a4bdfaaabadabcd892312df"; byte[] bytes1 = ByteArrayUtils.hexStringToByteArray(b1); Object returns = BRunUtil.invoke(compileResult, "getGlobalVarByteArray3"); Assert.assertTrue(returns instanceof BArray); BArray blob1 = (BArray) returns; ByteArrayUtils.assertJBytesWithBBytes(bytes1, blob1.getBytes()); } @Test(description = "Test access global arrays within functions") public void testGlobalArraysWithinFunction() { Object result = BRunUtil.invoke(compileResult, "getGlobalArrays"); BArray returns = (BArray) result; Assert.assertEquals(returns.size(), 7); Assert.assertEquals(returns.get(0), 2L); Assert.assertEquals(returns.get(1), 3L); Assert.assertEquals(returns.get(2), 4L); Assert.assertEquals(returns.get(3), 2L); Assert.assertEquals(returns.get(4), 3L); Assert.assertEquals(returns.get(5), 3L); Assert.assertEquals(returns.get(6), 2L); } @AfterClass public void tearDown() { compileResult = null; } } ```
The 1917–18 season was Manchester United's third season in the non-competitive War League. With the ongoing First World War, once again Manchester United played non-competitive war league football. In the principal tournament they contested the Lancashire Section, in a 30-game season. In the subsidiary tournament they contested Group B of the Lancashire Section, in a group of four teams. However, none of these were considered to be competitive football, and thus their records are not recognised by the Football League. On 9 October 1917 while Fighting in France during the First World War, former United player Arthur Beadsworth was killed while serving as a Sergeant in the Seventh Battalion of the Royal Leicestershire Regiment of the British Army. Lancashire Section Principal Tournament Lancashire Section Subsidiary Tournament Group B References Manchester United F.C. seasons Manchester United
```kotlin package mega.privacy.android.analytics import mega.privacy.android.domain.usecase.analytics.GetViewIdUseCase import mega.privacy.mobile.analytics.event.api.ViewIdProvider import javax.inject.Inject internal class ViewIdProviderImpl @Inject constructor( private val getViewIdUseCase: GetViewIdUseCase, ) : ViewIdProvider { override suspend fun getViewIdentifier(): String { return getViewIdUseCase() } } ```
```kotlin package com.cyl.musiclake.ui.music.artist.presenter import com.cyl.musiclake.api.music.MusicApiServiceImpl import com.cyl.musiclake.api.music.baidu.BaiduApiServiceImpl import com.cyl.musiclake.api.music.netease.NeteaseApiServiceImpl import com.cyl.musiclake.api.net.ApiManager import com.cyl.musiclake.api.net.RequestCallBack import com.cyl.musiclake.api.playlist.PlaylistApiServiceImpl import com.cyl.musiclake.bean.Album import com.cyl.musiclake.bean.Artist import com.cyl.musiclake.bean.Music import com.cyl.musiclake.bean.Playlist import com.cyl.musiclake.data.PlaylistLoader import com.cyl.musiclake.data.SongLoader import com.cyl.musiclake.common.Constants import com.cyl.musiclake.event.MyPlaylistEvent import com.cyl.musiclake.ui.base.BasePresenter import com.cyl.musiclake.ui.music.artist.contract.ArtistDetailContract import com.cyl.musiclake.utils.LogUtil import com.cyl.musiclake.utils.ToastUtils import org.greenrobot.eventbus.EventBus import org.jetbrains.anko.doAsync import org.jetbrains.anko.uiThread import javax.inject.Inject /** * Created by yonglong on 2018/1/7. */ class ArtistDetailPresenter @Inject constructor() : BasePresenter<ArtistDetailContract.View>(), ArtistDetailContract.Presenter { /** * */ override fun loadArtistSongs(artist: Artist) { if (artist.type == null || artist.type == Constants.LOCAL) { doAsync { val data = SongLoader.getSongsForArtist(artist.name) uiThread { mView.showPlaylistSongs(data) } } return } else if (artist.type == Constants.BAIDU) { val observable = BaiduApiServiceImpl.getArtistSongList(artist.artistId.toString(), 0) ApiManager.request(observable, object : RequestCallBack<Artist> { override fun success(result: Artist) { mView?.showPlaylistSongs(result.songs) mView?.showArtistInfo(result) } override fun error(msg: String) { LogUtil.e(TAG, msg) mView?.showError(msg, true) ToastUtils.show(msg) } }) return } val observable = MusicApiServiceImpl.getArtistSongs(artist.type!!, artist.artistId.toString(), 50, 0) ApiManager.request(observable, object : RequestCallBack<Artist> { override fun success(result: Artist) { val musicLists = result.songs // val iterator = musicLists.iterator() // while (iterator.hasNext()) { // val temp = iterator.next() // if (temp.isCp) { // //list.remove(temp);// java.util.ConcurrentModificationException // iterator.remove()// // } // } mView?.showPlaylistSongs(musicLists) mView?.showArtistInfo(result) } override fun error(msg: String) { LogUtil.e(TAG, msg) mView?.showError(msg, true) ToastUtils.show(msg) } }) } /** * * * * TODO */ override fun loadArtistAlbum(artist: Artist) { if (artist.type == null || artist.type == Constants.LOCAL) { doAsync { val albumData = SongLoader.getAllAlbums(artist.name) uiThread { mView.showAllAlbum(albumData) } } return } else if (artist.type == Constants.BAIDU) { val observable = BaiduApiServiceImpl.getArtistAlbumList(artist.artistId.toString(), 0) ApiManager.request(observable, object : RequestCallBack<MutableList<Album>> { override fun success(result: MutableList<Album>) { mView?.showAllAlbum(result) } override fun error(msg: String) { LogUtil.e(TAG, msg) mView?.showError(msg, true) ToastUtils.show(msg) } }) return } } /** * */ override fun loadAlbumSongs(album: Album) { if (album.type == null || album.type == Constants.LOCAL) { doAsync { val data = SongLoader.getSongsForAlbum(album.name) uiThread { mView.showPlaylistSongs(data) } } return } else if (album.albumId == null) { mView?.showPlaylistSongs(null) return } else if (album.type == Constants.BAIDU) { val observable = BaiduApiServiceImpl.getAlbumSongList(album.albumId.toString()) ApiManager.request(observable, object : RequestCallBack<Album> { override fun success(result: Album) { mView?.showPlaylistSongs(result.songs) } override fun error(msg: String) { LogUtil.e(TAG, msg) mView?.showError(msg, true) ToastUtils.show(msg) } }) return } val observable = MusicApiServiceImpl.getAlbumSongs(album.type.toString(), album.albumId.toString()) ApiManager.request(observable, object : RequestCallBack<Album> { override fun success(result: Album) { result.name?.let { mView?.showTitle(it) } result.cover?.let { mView?.showCover(it) } result.info?.let { mView?.showDescInfo(it) } mView?.showPlaylistSongs(result.songs) } override fun error(msg: String) { LogUtil.e(TAG, msg) mView?.showError(msg, true) ToastUtils.show(msg) } }) } /** * */ override fun loadPlaylistSongs(playlist: Playlist) { when (playlist.type) { Constants.PLAYLIST_LOCAL_ID, Constants.PLAYLIST_HISTORY_ID, Constants.PLAYLIST_LOVE_ID, Constants.PLAYLIST_QUEUE_ID -> doAsync { val data = playlist.pid?.let { PlaylistLoader.getMusicForPlaylist(it, playlist.order) } uiThread { if (data != null && data.isNotEmpty()) { mView?.showPlaylistSongs(data) } else { mView?.showEmptyState() } } } Constants.PLAYLIST_BD_ID -> { ApiManager.request(BaiduApiServiceImpl.getRadioChannelInfo(playlist), object : RequestCallBack<Playlist> { override fun error(msg: String?) { mView?.showError(msg, true) } override fun success(result: Playlist?) { result?.let { if (it.musicList.isNotEmpty()) { mView?.showPlaylistSongs(it.musicList) } else { mView?.showEmptyState() } } } }) } Constants.PLAYLIST_WY_ID -> { ApiManager.request(playlist.pid?.let { NeteaseApiServiceImpl.getPlaylistDetail(it) }, object : RequestCallBack<Playlist> { override fun error(msg: String?) { mView?.showError(msg, true) } override fun success(result: Playlist?) { result?.let { if (it.musicList.isNotEmpty()) { mView?.showPlaylistSongs(it.musicList) } else { mView?.showEmptyState() } } } }) } Constants.PLAYLIST_WY_RECOMMEND_ID -> { loadRecommendSongs() } else -> ApiManager.request(playlist.pid?.let { PlaylistApiServiceImpl.getMusicList(it) }, object : RequestCallBack<MutableList<Music>> { override fun success(result: MutableList<Music>) { mView?.showPlaylistSongs(result) } override fun error(msg: String) { LogUtil.e(TAG, msg) mView?.showError(msg, true) ToastUtils.show(msg) } }) } } /** * */ private fun loadRecommendSongs() { val observable = NeteaseApiServiceImpl.recommendSongs() ApiManager.request(observable, object : RequestCallBack<MutableList<Music>> { override fun success(result: MutableList<Music>) { mView?.showPlaylistSongs(result) } override fun error(msg: String) { mView?.showErrorTips(msg, hasTry = true) } }) } /** * */ override fun deletePlaylist(playlist: Playlist) { } /** * */ override fun renamePlaylist(playlist: Playlist, title: String) { if (playlist.type == Constants.PLAYLIST_CUSTOM_ID) { ApiManager.request(playlist.pid?.let { PlaylistApiServiceImpl.renamePlaylist(it, title) }, object : RequestCallBack<String> { override fun success(result: String) { mView.success(1) playlist.name = title EventBus.getDefault().post(MyPlaylistEvent(Constants.PLAYLIST_RENAME, playlist)) ToastUtils.show(result) } override fun error(msg: String) { ToastUtils.show(msg) } }) } else { doAsync { val success = PlaylistLoader.renamePlaylist(playlist, title) uiThread { if (success) { mView.success(1) playlist.name = title EventBus.getDefault().post(MyPlaylistEvent(Constants.PLAYLIST_RENAME, playlist)) ToastUtils.show("") } } } } } companion object { private val TAG = "PlaylistDetailPresenter" } } ```
is a Japanese cooking manga series written by Masayuki Kusumi and illustrated by Etsuko Mizusawa. It received a nomination at the 4th Manga Taishō. It was adapted into a television series in 2012. Characters Hana – played by Kana Kurashina Osoi – played by Shigeaki Kato References External links Official website 2009 manga Akita Shoten manga TBS Television (Japan) original programming Mainichi Broadcasting System original programming 2012 Japanese television series debuts Japanese television dramas based on manga Cooking in anime and manga 2012 Japanese television series endings
```ruby class Canfigger < Formula desc "Simple configuration file parser library" homepage "path_to_url" url "path_to_url" sha256 your_sha256_hash license "GPL-3.0-or-later" head "path_to_url", branch: "trunk" bottle do sha256 cellar: :any, arm64_sonoma: your_sha256_hash sha256 cellar: :any, arm64_ventura: your_sha256_hash sha256 cellar: :any, arm64_monterey: your_sha256_hash sha256 cellar: :any, sonoma: your_sha256_hash sha256 cellar: :any, ventura: your_sha256_hash sha256 cellar: :any, monterey: your_sha256_hash sha256 cellar: :any_skip_relocation, x86_64_linux: your_sha256_hash end depends_on "meson" => :build depends_on "ninja" => :build def install system "meson", "setup", "build", "-Dbuild_tests=false", "-Dbuild_examples=false", *std_meson_args system "meson", "compile", "-C", "build", "--verbose" system "meson", "install", "-C", "build" end test do (testpath/"test.conf").write <<~EOS Numbers = list, one , two, three, four, five, six, seven EOS (testpath/"test.c").write <<~EOS #include <canfigger.h> #include <stdio.h> int main() { char *file = "test.conf"; struct Canfigger *config = canfigger_parse_file(file, ','); if (!config) return -1; while (config != NULL) { printf("Key: %s, Value: %s\\n", config->key, config->value != NULL ? config->value : "NULL"); char *attr = NULL; canfigger_free_current_attr_str_advance(config->attributes, &attr); while (attr) { printf("Attribute: %s\\n", attr); canfigger_free_current_attr_str_advance(config->attributes, &attr); } canfigger_free_current_key_node_advance(&config); putchar('\\n'); } return 0; } EOS system ENV.cc, "test.c", "-L#{lib}", "-lcanfigger", "-o", "test" assert_match <<~EOS, shell_output("./test") Key: Numbers, Value: list Attribute: one Attribute: two Attribute: three Attribute: four Attribute: five Attribute: six Attribute: seven EOS end end ```
```yaml lonlat: - -80.6775013747971 - 27.13487858194975 parsers: exchange: EIA.fetch_exchange rotation: -62 ```
Edna May Davey (24 July 1909 – 2000), later Eaton, and then Hamilton, was an Australian freestyle swimmer. She competed in two events at the 1928 Summer Olympics. In 1930 she married cricketer Ronald Eaton, but was divorced in 1934. She married Harry Hamilton in 1936. Their son, Graham Hamilton competed in the men's 4 × 200 metre freestyle relay at the 1956 Summer Olympics. References External links 1909 births 2000 deaths Australian female freestyle swimmers Olympic swimmers for Australia Swimmers at the 1928 Summer Olympics Swimmers from Greater London 20th-century Australian women
```turing When (include_subdirs qualified) is enabled, we should forbid the same module to be defined by both a normal compilation unit and a directory of modules $ cat >dune-project <<EOF > (lang dune 3.7) > EOF $ cat >dune <<EOF > (include_subdirs qualified) > (executable > (name foo)) > EOF $ cat >foo.ml <<EOF > module X = Mod > EOF $ touch mod.ml $ mkdir mod $ touch mod/baz.ml $ dune build foo.exe File "dune", line 1, characters 0-0: Error: The following module and module group cannot co-exist in the same executable or library because they correspond to the same module path - module mod.ml - module group mod/ [1] Another type of overlap: $ rm mod/baz.ml $ touch mod/mod.ml $ dune build foo.exe File "dune", line 1, characters 0-0: Error: The following module and module group cannot co-exist in the same executable or library because they correspond to the same module path - module mod.ml - module group mod/ [1] ```
The Citizen's Liberty League was a political organization established in Missouri to advance the interests of African Americans in the Republican Party. It addressed the policies of segregation, exclusion, and discrimination in the state. It was established in 1919 in Pythian Hall. The league was founded by George L. Vaughn, Joseph E. Mitchell, Charles Turpin, and Homer G. Phillips to promote and endorse African American political candidates and worked to secure a share of appointed public offices for African Americans. The group helped elect Walthall Moore to the Missouri General Assembly. The group adopted a resolution at the Union Memorial Methodist Episcopal Church in St. Louis. It was presented into the record of the Missouri House of Representatives. By the early 1930s, Vaughn had switched to the Democratic Party and advocated for others to do as well. Phillips was murdered in 1931. References 1919 establishments in Missouri
FC Eurocollege () is a Bulgarian association football club based in Plovdiv, currently playing in the South-East Third League, the third level of Bulgarian football. Current squad References External links Official website Eurocollege
Naomh Barróg is a Dublin based Gaelic Athletic Association club. History Gaelic games were introduced to the parish of Kilbarrack-Foxfield through the Scoil Lorcáin school, which had success in Cumann na mBunscol competitions in 1972, 1973, and 1974. Following the interest created by these achievements it was decided to form a local GAA club. At a meeting attended by 8 people in Scoil Lorcain on 5 September 1974, Naomh Barróg GAA club was formed. The club title being adopted after a 6th-century founder of a church in Kilbarrack, the remains of which still survive in Kilbarrack graveyard. In the club's first year, four teams were entered in North Dublin GAA competitions. The club fields football teams at all levels from U9 to Senior, hurling from U9 to Junior, and Ladies football from U10 to Junior. The club has won two national Feile na nGael titles and has won a title at every football level from U10 to Intermediate. The club ground, Pairc Barróg, was acquired in 1982, developed, and officially opened in September 1984. During its history, Naomh Barróg has expanded to include membership from the neighboring areas of Bayside, Baldoyle, Sutton Park, Donaghmede and Grange-Woodbine. With full and social membership now totaling over 1000, Naomh Barróg's new clubhouse was opened on 14 July 2001. Naomh Barróg currently have Senior Hurling status and play in Dublin Senior Hurling League Division 1. Naomh Barróg footballers currently have Intermediate status and compete in AFL Division 2. Achievements Dublin Intermediate football champions 2022 Dublin AHL Division 2 Winners 2019 Dublin Junior Football Championship Winners 1981 Dublin AFL Division 3 Winner 2019 Dublin Junior B Hurling Championship 2004 Leinster Special Junior Hurling Championship Winners (1) 2008 Dublin Minor B Hurling Championship Winners 2006 Dublin Minor C Hurling Championship Winners 2005 External links Naomh Barróg Official GAA Website Gaelic games clubs in Dublin (city)
The South River is a tributary of the Black River, approximately long, in southeastern North Carolina in the United States. It rises 2 miles northeast of Falcon, at the border of Sampson and Cumberland counties at the confluence of Mingo Swamp and the smaller Black River. The smaller Black River flows 30 miles from northeastern Harnett County, in Angier and approximately 25 mi (40 km) south of Raleigh. The smaller Black River flows south-southeast past Benson, then south-southwest, passing west of Dunn. East of Fayetteville, the South River turns south-southeast and joins the larger Black River near Ivanhoe approximately 30 mi (48 km) northwest of Wilmington. The South River forms much of the western border of Sampson County, as well as the eastern borders of Bladen County and Cumberland County. Fishing The South River is home to a wide variety of fish species, including largemouth bass, chain pickerel, various species of sunfish, longnose gar, and catfish. To navigate through the river, a kayak or a small johnboat is recommended. See also List of North Carolina rivers References Rivers of North Carolina Rivers of Harnett County, North Carolina Rivers of Johnston County, North Carolina Rivers of Cumberland County, North Carolina
These are the films shown at the 7th New York Underground Film Festival, held from March 8–14, 2000. See also New York Underground Film Festival site 2000 Festival Archive New York Underground Film Festival Underground Film Festival 2000 film festivals New York Underground Film 2000 in American cinema
Constantino Prinetti (1830–1855) was an Italian landscape painter. He was born at Canobbio. After studying at the Milan Academy under Giuseppe Canella. He travelled in Germany, the Netherlands, Paris, Normandy, England, and Scotland. He died at Milan. Among his works are: The Brienzer See (1853 and 1855) The Battlefield of Näfels (1854), engraved by Salathé. Dundas Castle The Thames and Houses of Parliament Street in Edinburgh Street in Edinburgh Valsasina November Sun on Lago Maggiore Monte di Colico Grotto of Catullus on Lago di Garda View of Edinburgh (1855) References 19th-century Italian painters Italian male painters Landscape artists Painters from Milan Brera Academy alumni 1830 births 1855 deaths 19th-century Italian male artists
Shake It Up is the fourth studio album by American new wave band the Cars, released on November 6, 1981, by Elektra Records. It was the last Cars record to be produced by Roy Thomas Baker. A much more pop-oriented album than its predecessor, its title track became the band's first Billboard top-10 single. Spin magazine included it on their "50 Best Albums of 1981" list. In 2021, Rhino Entertainment re-released the album on neon green vinyl. Critical reception The Globe and Mail wrote that "Ric Ocasek and the boys have produced an understated and decidedly underwhelming package that makes no attempt to deviate from their patented, semi-robotic pop." The Boston Globe deemed the album "a conservative, cautious work that breaks no new ground." Track listing Personnel Ric Ocasek – rhythm guitar, lead vocals (1, 2, 3, 4, 6, 9) Elliot Easton – lead guitar, backing vocals Benjamin Orr – bass guitar, lead vocals (5, 7, 8) David Robinson – drums, percussion Greg Hawkes – keyboards, backing vocals Production The Cars – arrangements Roy Thomas Baker – producer Ian Taylor – recording Thom Moore – assistant engineer Walter Turbitt – assistant engineer George Marino – mastering at Sterling Sound (New York, NY). David Robinson – cover design Clint Clemens – photography Charts Weekly charts Year-end charts Certifications References Bibliography The Cars albums 1981 albums Albums produced by Roy Thomas Baker Elektra Records albums
```smalltalk // This file is part of Core WF which is licensed under the MIT license. // See LICENSE file in the project root for full license information. using System.Activities.Statements; namespace Test.Common.TestObjects.Activities { public class TestRethrow : TestActivity { public TestRethrow() { this.ProductActivity = new Rethrow(); } private Rethrow ProductRethrow { get { return (Rethrow)this.ProductActivity; } } } } ```
is a Japanese footballer currently playing as a midfielder for Azul Claro Numazu. Career statistics Club . Notes References 1998 births Living people Juntendo University alumni Japanese men's footballers Men's association football midfielders J3 League players Kashiwa Reysol players Azul Claro Numazu players
Stuart Klipper (born 1941 in Bronx, New York City) is an American photographer. Biography He lived in Stockholm, Sweden, but then moved to his current residence in Minneapolis, Minnesota in 1970. He lived in Brooklyn Heights as well as the near to it Cobble Hill neighborhood (also in Brooklyn, New York) soon after graduating from the University of Michigan in 1962, and before he moved to Minneapolis in 1970. Klipper has made six journeys to Antarctica to take photographs. He has also worked in Greenland, Iceland, Svalbard, Alaska, and the area of Lapland irradiated by the Chernobyl disaster. Klipper became one of approximately 400 people to have stood at both the South Pole and the North Pole on July 15, 2009, when he visited the North Pole. Other major forays have taken Klipper across the deserts of Israel and Sinai as well as the tropical rain forests of Costa Rica. Klipper's work has also taken him to Northern Australia, Patagonia, Tierra del Fuego, Sri Lanka, and Pakistan. He has logged thousands of miles traveling at sea while photographing on all of the Earth's oceans and seas. For over 30 years, Klipper traveled through the 50 United States, capturing photographs that crystallize the defining characteristics of American regions. He also photographed major physics and astronomy research installations throughout the United States and the Anasazi ruins of the Southwest. Klipper has also photographed the cemeteries of World War I and memorials of the Western Front. Klipper's photographs have been exhibited in and collected by major museums from both the United States and overseas. These include New York City's Museum of Modern Art, the San Francisco Museum of Modern Art, The Art Institute of Chicago, The Minneapolis Institute of Arts, the Walker Art Center, The Jewish Museum, The Israel Museum, The Victoria and Albert Museum, the Bonn Kunsthalle, and the Moderna Museet in Stockholm, Sweden. The Guggenheim Foundation, The Bush Foundation, the McKnight Foundation, and the Minnesota State Arts Board have all awarded Klipper multiple grants. Notable exhibitions Klipper has exhibited across the United States, as well as the Israel Museum, Jerusalem, Israel; Moderna Museet, Stockholm, Sweden; Fotogalleriet, Oslo, Norway; United States embassy, Santiago, Chile; Victoria and Albert Museum, London, UK; Kunsthalle of the German Republic, Bonn, Germany and the Canterbury Museum, Christchurch, New Zealand Grants, honors, and fellowships John Simon Guggenheim Memorial Foundation, 1979, 1989 Bush Foundation (St. Paul), 1981, 1992 National Endowment for the Arts, 1976, 1979 National Endowment for the Humanities, 1981 McKnight Foundation, St. Paul/Mpls. – three grants The Minnesota State Arts Board – three grants The Jerome Foundation, 2003 The Bogliasco Foundation (N. Y. C. & Genoa, Italy), 2003 The National Science Foundation's Antarctic Artists and Writers Program, 1989, 1992, 1993, 1999, 2000 Nominee, McKnight Distinguished Minnesota Artist Award, 2005, 2006, 2007 Finalist, Bush Enduring Visions Award, 2008 Nominee, MacArthur Fellowship, 2008 Klipper was recipient of the United States Navy Antarctic Service Medal, 1989 Notable commissions The State of Texas, Cray Research Corp., the State of Minnesota, First Banks Systems (Mpls.), the Valspar Corp. (Mpls.), the University of Minnesota. Solo exhibitions Disparate Geographies, Schmidt Dean Gallery in Philadelphia, 1998. Sixteen polar photographs, Arktis -Antarktis, the Kunsthalle des Deutschesrepublic, Bonn, Germany. 1998 Cardinal Points, at the University of Iowa Museum of Art. (Photographs from polar regions: Antarctica and Greenland, the tropical rain forests, the desert regions of Israel and the Sinai, the agricultural Great Plains)-- an exhibition catalogue was published. 1998 At Sea Near the Poles, at the Spencer Gallery, Wickford, R.I. 1999 Antarctica 99/00, Yancey Richardson Gallery, NYC, 2000 Selected Antarctic Work, Berler Gallery, Washington D.C., 2001 (Also shown in Denver and Christchurch, N.Z. Selected American photographs, The Center for American Places, Harrisonburg, Va., 2001 Photographs from the Arctic and Antarctica, Smith-Dean Gallery, Phila., PA, 2001 Wyoming, Univ. of Wyoming Museum Art, Minneapolis Institute of Art, 2001/02 In the Australian Outback, Gallery 360, Minneapolis, 2002 The United States, Candace Perich Gallery, Katonah, NY, 2002 Rock art, bush fire, termite mounds and other aspects of the outback of the Top End of Australia, Gallery 360, Mpls.,2002 Portraits about Pakistan, 1987, Icebox Gallery, Mpls., 2002 Antarctic 1: Views Along Antarctica's First Highway, Center for Land Use Interpretation, Los Angeles, 2002 The Louisiana Purchase, Groveland Gallery, Minneapolis & Olson-Larsen Gallery, Des Moines, 2003 Selected photographs, Medtronics Corp. corporate headquarters, Minneapolis, 2006 Antarctica, Electrolift Artworks, Minneapolis, Minn. 2006 (+ other venues) 20 Years of photographing Louisiana, The Ogden Museum, New Orleans, 2008 Antarctic Photographs, City Museum of Charleston, S.C., 2009 Local Places – Remote Terrains, Olson Larsen Gallery, Des Moines, Iowa, 2009 The Dead Sea Region, Israel, The Basilica of St. Mary, Minneapolis, 2010 Group exhibitions Photography of New York City, Minneapolis Institute of Art. 1998 Sea Change, The Center for Creative Photography, Univ. of Arizona, Tucson. (An eponymous book was published in conjunction with the exhibition and is in national distribution), 1998/99 American farms and farming, Candace Perish Gallery, Katonah, NY. (Traveled to Washington D. C.), 1998/99 Views from the Edge of the World, Marlborough Gallery, NYC. 1999 Claiming Title: Australian Aboriginal Artists and the Land, St, Olaf & Carleton Colleges, Northfield, Minn., 1999 The Infinite and the Intimate; Waterscapes of Stuart Klipper and Frank Gohlke, Dorsky Gallery, N.Y.C. 1999 An Eclectic Focus: Photographs from the Vernon Collection ( + catalogue), Santa Barbara Museum of Art, 1999 Aqua, Gallerie Thierry Marlat, Paris, France 1999 Restructuring the Prairie, Grinnell College, 1999 The Mural as Muse, Deutsches Bank Gallery, NYC, 2000 earth sky, Jackson Fine Art, Atlanta, GA, 2000 Western Panoramas, Huntington Museum, Sta. Barbara, CA, 2001 I Love New York (W. T. C benefit), NYC, 2001 Melodrama, inaugural show, ARTIUM, Vitoria, Spain, 2002 Contemporary Desert Photography, Palm Springs Art Museum, 2005 Antarctic Visions & Voices, Carleton College, Northfield, Minn., 2005 Downriver: New Orleans before the flood, Minnesota Center for Photography, 2006 Midwestern View: Contemporary Photography in Minnesota, Pingyao International Photography Festival, Pingyao, China, 2007 Visions of Music, Acadiana Center for the Arts, Lafayette, La., 2007 Four Antarctic Photographers, Museum of Art, Univ. of Wyo., 2007 Photographs from the Ends of the Earth, Milwaukee Art Museum, 2007 Antarctica on Thin Ice, The United Nations, NYC, 2007 Remembering Dakota, The North Dakota Museum of Art, 2008 Animals –Them and Us, The North Dakota Museum of Art, 2009 NSF Antarctic Artists, Maryland Science Center, Baltimore, Md., 2009 New Orleans photographs, Mill City Museum, Minneapolis, 2009 The Minnesota Eye, College of Visual Arts, St. Paul, 2009 External links Official Website Sources Van Riper, Frank. Southern Exposure: Antarctica". Camera Works. Photo Essay at washingtonpost.com. Living people 1941 births Artists from Minneapolis Artists from Stockholm Photographers from the Bronx Photographers from New York (state) University of Michigan alumni People from Brooklyn Heights People from Cobble Hill, Brooklyn
```c * * Permission to use, copy, modify, and distribute this * software and its documentation for any purpose and without * fee is hereby granted, provided that the above copyright * notice appear in all copies and that both that copyright * notice and this permission notice appear in supporting * documentation, and that the name of M.I.T. not be used in * advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * M.I.T. makes no representations about the suitability of * this software for any purpose. It is provided "as is" * without express or implied warranty. */ #include "ares_setup.h" #ifdef HAVE_GETSERVBYPORT_R # if !defined(GETSERVBYPORT_R_ARGS) || \ (GETSERVBYPORT_R_ARGS < 4) || (GETSERVBYPORT_R_ARGS > 6) # error "you MUST specifiy a valid number of arguments for getservbyport_r" # endif #endif #ifdef HAVE_NETINET_IN_H # include <netinet/in.h> #endif #ifdef HAVE_NETDB_H # include <netdb.h> #endif #ifdef HAVE_ARPA_INET_H # include <arpa/inet.h> #endif #ifdef HAVE_ARPA_NAMESER_H # include <arpa/nameser.h> #else # include "nameser.h" #endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H # include <arpa/nameser_compat.h> #endif #ifdef HAVE_NET_IF_H #include <net/if.h> #endif #include "ares.h" #include "ares_ipv6.h" #include "ares_nowarn.h" #include "ares_private.h" struct nameinfo_query { ares_nameinfo_callback callback; void *arg; union { struct sockaddr_in addr4; struct sockaddr_in6 addr6; } addr; int family; int flags; int timeouts; }; #ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID #define IPBUFSIZ \ (sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") + IF_NAMESIZE) #else #define IPBUFSIZ \ (sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")) #endif static void nameinfo_callback(void *arg, int status, int timeouts, struct hostent *host); static char *lookup_service(unsigned short port, int flags, char *buf, size_t buflen); #ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID static void append_scopeid(struct sockaddr_in6 *addr6, unsigned int scopeid, char *buf, size_t buflen); #endif STATIC_TESTABLE char *ares_striendstr(const char *s1, const char *s2); void ares_getnameinfo(ares_channel channel, const struct sockaddr *sa, ares_socklen_t salen, int flags, ares_nameinfo_callback callback, void *arg) { struct sockaddr_in *addr = NULL; struct sockaddr_in6 *addr6 = NULL; struct nameinfo_query *niquery; unsigned int port = 0; /* Validate socket address family and length */ if ((sa->sa_family == AF_INET) && (salen == sizeof(struct sockaddr_in))) { addr = (struct sockaddr_in *)sa; port = addr->sin_port; } else if ((sa->sa_family == AF_INET6) && (salen == sizeof(struct sockaddr_in6))) { addr6 = (struct sockaddr_in6 *)sa; port = addr6->sin6_port; } else { callback(arg, ARES_ENOTIMP, 0, NULL, NULL); return; } /* If neither, assume they want a host */ if (!(flags & ARES_NI_LOOKUPSERVICE) && !(flags & ARES_NI_LOOKUPHOST)) flags |= ARES_NI_LOOKUPHOST; /* All they want is a service, no need for DNS */ if ((flags & ARES_NI_LOOKUPSERVICE) && !(flags & ARES_NI_LOOKUPHOST)) { char buf[33], *service; service = lookup_service((unsigned short)(port & 0xffff), flags, buf, sizeof(buf)); callback(arg, ARES_SUCCESS, 0, NULL, service); return; } /* They want a host lookup */ if ((flags & ARES_NI_LOOKUPHOST)) { /* A numeric host can be handled without DNS */ if ((flags & ARES_NI_NUMERICHOST)) { char ipbuf[IPBUFSIZ]; char srvbuf[33]; char *service = NULL; ipbuf[0] = 0; /* Specifying not to lookup a host, but then saying a host * is required has to be illegal. */ if (flags & ARES_NI_NAMEREQD) { callback(arg, ARES_EBADFLAGS, 0, NULL, NULL); return; } if (salen == sizeof(struct sockaddr_in6)) { ares_inet_ntop(AF_INET6, &addr6->sin6_addr, ipbuf, IPBUFSIZ); /* If the system supports scope IDs, use it */ #ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID append_scopeid(addr6, flags, ipbuf, sizeof(ipbuf)); #endif } else { ares_inet_ntop(AF_INET, &addr->sin_addr, ipbuf, IPBUFSIZ); } /* They also want a service */ if (flags & ARES_NI_LOOKUPSERVICE) service = lookup_service((unsigned short)(port & 0xffff), flags, srvbuf, sizeof(srvbuf)); callback(arg, ARES_SUCCESS, 0, ipbuf, service); return; } /* This is where a DNS lookup becomes necessary */ else { niquery = ares_malloc(sizeof(struct nameinfo_query)); if (!niquery) { callback(arg, ARES_ENOMEM, 0, NULL, NULL); return; } niquery->callback = callback; niquery->arg = arg; niquery->flags = flags; niquery->timeouts = 0; if (sa->sa_family == AF_INET) { niquery->family = AF_INET; memcpy(&niquery->addr.addr4, addr, sizeof(niquery->addr.addr4)); ares_gethostbyaddr(channel, &addr->sin_addr, sizeof(struct in_addr), AF_INET, nameinfo_callback, niquery); } else { niquery->family = AF_INET6; memcpy(&niquery->addr.addr6, addr6, sizeof(niquery->addr.addr6)); ares_gethostbyaddr(channel, &addr6->sin6_addr, sizeof(struct ares_in6_addr), AF_INET6, nameinfo_callback, niquery); } } } } static void nameinfo_callback(void *arg, int status, int timeouts, struct hostent *host) { struct nameinfo_query *niquery = (struct nameinfo_query *) arg; char srvbuf[33]; char *service = NULL; niquery->timeouts += timeouts; if (status == ARES_SUCCESS) { /* They want a service too */ if (niquery->flags & ARES_NI_LOOKUPSERVICE) { if (niquery->family == AF_INET) service = lookup_service(niquery->addr.addr4.sin_port, niquery->flags, srvbuf, sizeof(srvbuf)); else service = lookup_service(niquery->addr.addr6.sin6_port, niquery->flags, srvbuf, sizeof(srvbuf)); } /* NOFQDN means we have to strip off the domain name portion. We do this by determining our own domain name, then searching the string for this domain name and removing it. */ #ifdef HAVE_GETHOSTNAME if (niquery->flags & ARES_NI_NOFQDN) { char buf[255]; char *domain; gethostname(buf, 255); if ((domain = strchr(buf, '.')) != NULL) { char *end = ares_striendstr(host->h_name, domain); if (end) *end = 0; } } #endif niquery->callback(niquery->arg, ARES_SUCCESS, niquery->timeouts, (char *)(host->h_name), service); ares_free(niquery); return; } /* We couldn't find the host, but it's OK, we can use the IP */ else if (status == ARES_ENOTFOUND && !(niquery->flags & ARES_NI_NAMEREQD)) { char ipbuf[IPBUFSIZ]; if (niquery->family == AF_INET) ares_inet_ntop(AF_INET, &niquery->addr.addr4.sin_addr, ipbuf, IPBUFSIZ); else { ares_inet_ntop(AF_INET6, &niquery->addr.addr6.sin6_addr, ipbuf, IPBUFSIZ); #ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID append_scopeid(&niquery->addr.addr6, niquery->flags, ipbuf, sizeof(ipbuf)); #endif } /* They want a service too */ if (niquery->flags & ARES_NI_LOOKUPSERVICE) { if (niquery->family == AF_INET) service = lookup_service(niquery->addr.addr4.sin_port, niquery->flags, srvbuf, sizeof(srvbuf)); else service = lookup_service(niquery->addr.addr6.sin6_port, niquery->flags, srvbuf, sizeof(srvbuf)); } niquery->callback(niquery->arg, ARES_SUCCESS, niquery->timeouts, ipbuf, service); ares_free(niquery); return; } niquery->callback(niquery->arg, status, niquery->timeouts, NULL, NULL); ares_free(niquery); } static char *lookup_service(unsigned short port, int flags, char *buf, size_t buflen) { const char *proto; struct servent *sep; #ifdef HAVE_GETSERVBYPORT_R struct servent se; #endif char tmpbuf[4096]; char *name; size_t name_len; if (port) { if (flags & ARES_NI_NUMERICSERV) sep = NULL; else { if (flags & ARES_NI_UDP) proto = "udp"; else if (flags & ARES_NI_SCTP) proto = "sctp"; else if (flags & ARES_NI_DCCP) proto = "dccp"; else proto = "tcp"; #ifdef HAVE_GETSERVBYPORT_R memset(&se, 0, sizeof(se)); sep = &se; memset(tmpbuf, 0, sizeof(tmpbuf)); #if GETSERVBYPORT_R_ARGS == 6 if (getservbyport_r(port, proto, &se, (void *)tmpbuf, sizeof(tmpbuf), &sep) != 0) sep = NULL; /* LCOV_EXCL_LINE: buffer large so this never fails */ #elif GETSERVBYPORT_R_ARGS == 5 sep = getservbyport_r(port, proto, &se, (void *)tmpbuf, sizeof(tmpbuf)); #elif GETSERVBYPORT_R_ARGS == 4 if (getservbyport_r(port, proto, &se, (void *)tmpbuf) != 0) sep = NULL; #else /* Lets just hope the OS uses TLS! */ sep = getservbyport(port, proto); #endif #else /* Lets just hope the OS uses TLS! */ #if (defined(NETWARE) && !defined(__NOVELL_LIBC__)) sep = getservbyport(port, (char*)proto); #else sep = getservbyport(port, proto); #endif #endif } if (sep && sep->s_name) { /* get service name */ name = sep->s_name; } else { /* get port as a string */ sprintf(tmpbuf, "%u", (unsigned int)ntohs(port)); name = tmpbuf; } name_len = strlen(name); if (name_len < buflen) /* return it if buffer big enough */ memcpy(buf, name, name_len + 1); else /* avoid reusing previous one */ buf[0] = '\0'; /* LCOV_EXCL_LINE: no real service names are too big */ return buf; } buf[0] = '\0'; return NULL; } #ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID static void append_scopeid(struct sockaddr_in6 *addr6, unsigned int flags, char *buf, size_t buflen) { #ifdef HAVE_IF_INDEXTONAME int is_ll, is_mcll; #endif char tmpbuf[IF_NAMESIZE + 2]; size_t bufl; int is_scope_long = sizeof(addr6->sin6_scope_id) > sizeof(unsigned int); tmpbuf[0] = '%'; #ifdef HAVE_IF_INDEXTONAME is_ll = IN6_IS_ADDR_LINKLOCAL(&addr6->sin6_addr); is_mcll = IN6_IS_ADDR_MC_LINKLOCAL(&addr6->sin6_addr); if ((flags & ARES_NI_NUMERICSCOPE) || (!is_ll && !is_mcll)) { if (is_scope_long) { sprintf(&tmpbuf[1], "%lu", (unsigned long)addr6->sin6_scope_id); } else { sprintf(&tmpbuf[1], "%u", (unsigned int)addr6->sin6_scope_id); } } else { if (if_indextoname(addr6->sin6_scope_id, &tmpbuf[1]) == NULL) { if (is_scope_long) { sprintf(&tmpbuf[1], "%lu", (unsigned long)addr6->sin6_scope_id); } else { sprintf(&tmpbuf[1], "%u", (unsigned int)addr6->sin6_scope_id); } } } #else if (is_scope_long) { sprintf(&tmpbuf[1], "%lu", (unsigned long)addr6->sin6_scope_id); } else { sprintf(&tmpbuf[1], "%u", (unsigned int)addr6->sin6_scope_id); } (void) flags; #endif tmpbuf[IF_NAMESIZE + 1] = '\0'; bufl = strlen(buf); if(bufl + strlen(tmpbuf) < buflen) /* only append the scopeid string if it fits in the target buffer */ strcpy(&buf[bufl], tmpbuf); } #endif /* Determines if s1 ends with the string in s2 (case-insensitive) */ STATIC_TESTABLE char *ares_striendstr(const char *s1, const char *s2) { const char *c1, *c2, *c1_begin; int lo1, lo2; size_t s1_len = strlen(s1), s2_len = strlen(s2); /* If the substr is longer than the full str, it can't match */ if (s2_len > s1_len) return NULL; /* Jump to the end of s1 minus the length of s2 */ c1_begin = s1+s1_len-s2_len; c1 = (const char *)c1_begin; c2 = s2; while (c2 < s2+s2_len) { lo1 = TOLOWER(*c1); lo2 = TOLOWER(*c2); if (lo1 != lo2) return NULL; else { c1++; c2++; } } return (char *)c1_begin; } int ares__is_onion_domain(const char *name) { if (ares_striendstr(name, ".onion")) return 1; if (ares_striendstr(name, ".onion.")) return 1; return 0; } ```
```python # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. """Runs the training of the Wide & Deep model based on hyperparameter values received as input parameters. """ import argparse import json import os import tensorflow as tf import trainer.input as input_module import trainer.model as model def _get_session_config_from_env_var(): """Returns a tf.ConfigProto instance that has appropriate device_filters set.""" tf_config = json.loads(os.environ.get('TF_CONFIG', '{}')) # Master should only communicate with itself and ps if (tf_config and 'task' in tf_config and 'type' in tf_config[ 'task'] and 'index' in tf_config['task']): if tf_config['task']['type'] == 'master': return tf.ConfigProto(device_filters=['/job:ps', '/job:master']) # Worker should only communicate with itself and ps elif tf_config['task']['type'] == 'worker': return tf.ConfigProto(device_filters=[ '/job:ps', '/job:worker/task:%d' % tf_config['task']['index'] ]) return None def train_and_evaluate(args): """Run the training and evaluate using the high level API.""" def train_input(): """Input function returning batches from the training data set from training. """ return input_module.input_fn( args.train_files, num_epochs=args.num_epochs, batch_size=args.train_batch_size, num_parallel_calls=args.num_parallel_calls, prefetch_buffer_size=args.prefetch_buffer_size) def eval_input(): """Input function returning the entire validation data set for evaluation. Shuffling is not required. """ return input_module.input_fn( args.eval_files, batch_size=args.eval_batch_size, shuffle=False, num_parallel_calls=args.num_parallel_calls, prefetch_buffer_size=args.prefetch_buffer_size) train_spec = tf.estimator.TrainSpec( train_input, max_steps=args.train_steps) exporter = tf.estimator.FinalExporter( 'census', input_module.SERVING_FUNCTIONS[args.export_format]) eval_spec = tf.estimator.EvalSpec( eval_input, steps=args.eval_steps, exporters=[exporter], name='census-eval') run_config = tf.estimator.RunConfig( session_config=_get_session_config_from_env_var()) run_config = run_config.replace(model_dir=args.job_dir) print('Model dir %s' % run_config.model_dir) estimator = model.build_estimator( embedding_size=args.embedding_size, # Construct layers sizes with exponential decay hidden_units=[ max(2, int(args.first_layer_size * args.scale_factor ** i)) for i in range(args.num_layers) ], config=run_config) tf.estimator.train_and_evaluate(estimator, train_spec, eval_spec) if __name__ == '__main__': PARSER = argparse.ArgumentParser() # Input Arguments PARSER.add_argument( '--train-files', help='GCS file or local paths to training data', nargs='+', default='gs://cloud-samples-data/ml-engine/census/data/adult.data.csv') PARSER.add_argument( '--eval-files', help='GCS file or local paths to evaluation data', nargs='+', default='gs://cloud-samples-data/ml-engine/census/data/adult.test.csv') PARSER.add_argument( '--job-dir', help='GCS location to write checkpoints and export models', default='/tmp/census-estimator') PARSER.add_argument( '--num-parallel-calls', help='Number of threads used to read in parallel the training and ' 'evaluation', type=int) PARSER.add_argument( '--prefetch_buffer_size', help='Naximum number of input elements that will be buffered when ' 'prefetching', type=int) PARSER.add_argument( '--num-epochs', help="""\ Maximum number of training data epochs on which to train. If both --max-steps and --num-epochs are specified, the training job will run for --max-steps or --num-epochs, whichever occurs first. If unspecified will run for --max-steps.\ """, type=int) PARSER.add_argument( '--train-batch-size', help='Batch size for training steps', type=int, default=40) PARSER.add_argument( '--eval-batch-size', help='Batch size for evaluation steps', type=int, default=40) PARSER.add_argument( '--embedding-size', help='Number of embedding dimensions for categorical columns', default=8, type=int) PARSER.add_argument( '--first-layer-size', help='Number of nodes in the first layer of the DNN', default=100, type=int) PARSER.add_argument( '--num-layers', help='Number of layers in the DNN', default=4, type=int) PARSER.add_argument( '--scale-factor', help='How quickly should the size of the layers in the DNN decay', default=0.7, type=float) PARSER.add_argument( '--train-steps', help="""\ Steps to run the training job for. If --num-epochs is not specified, this must be. Otherwise the training job will run indefinitely.""", default=100, type=int) PARSER.add_argument( '--eval-steps', help='Number of steps to run evalution for at each checkpoint', default=100, type=int) PARSER.add_argument( '--export-format', help='The input format of the exported SavedModel binary', choices=['JSON', 'CSV', 'EXAMPLE'], default='JSON') PARSER.add_argument( '--verbosity', choices=['DEBUG', 'ERROR', 'FATAL', 'INFO', 'WARN'], default='INFO') ARGUMENTS, _ = PARSER.parse_known_args() # Set python level verbosity tf.logging.set_verbosity(ARGUMENTS.verbosity) # Suppress C++ level warnings. os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # Run the training job train_and_evaluate(ARGUMENTS) ```
BD−17 63 is a low-mass K type star in the southern constellation Cetus. It is a 9th magnitude star at a distance of 113 light years from Earth. The star BD-17 63 is named Felixvarela. The name was selected in the NameExoWorlds campaign by Cuba, during the 100th anniversary of the IAU. Felix Varela (1788–1853) was the first to teach science in Cuba. Planetary system In October 2008 an extrasolar planet, BD−17 63 b, was reported to be orbiting this star. This object was detected using the radial velocity method by search programs conducted using the HARPS spectrograph. An astrometric measurement of the planet's inclination and true mass was published in 2022 as part of Gaia DR3. See also List of extrasolar planets References External links K-type main-sequence stars 002247 Cetus Planetary systems with one confirmed planet BD-17 0063
The standardized approach for counterparty credit risk (SA-CCR) is the capital requirement framework under Basel III addressing counterparty risk for derivative trades. It was published by the Basel Committee in March 2014. The framework replaced both non-internal model approaches: the Current Exposure Method (CEM) and the Standardised Method (SM). It is intended to be a "risk-sensitive methodology", i.e. conscious of asset class and hedging, that differentiates between margined and non-margined trades and recognizes netting benefits; considerations insufficiently addressed under the preceding frameworks. SA-CCR calculates the exposure at default of derivatives and "long-settlement transactions" exposed to counterparty credit risk. It builds EAD as (i) a "Replacement Cost" (RC), were the counterparty to default today; combined with (ii) the "Potential Future Exposure" (PFE) to the counterparty. For the former: current exposure, i.e. mark-to-market of the trades, is aggregated by counterparty, and then netted-off with haircutted- collateral. For the latter: per asset class, trade "add-ons", as reduced by offsetting based on correlation assumptions, are aggregated to "hedging sets"; these are then aggregated to "netting sets", and offset by the counterparty's collateral (i.e. initial margin), which is subject to a "multiplier" that limits its benefit and applies a 5% floor to the exposure. The SA-CCR EAD is an input to the bank's regulatory capital calculation where it is combined with the counterparty's PD and LGD to derive RWA; Some banks thus incorporate SA-CCR into their KVA calculations. Because of its two-step aggregation, capital allocation between trading desks (or even asset classes) is challenging; thus making it difficult to fairly calculate each desk's risk-adjusted return on capital. Various methods are then proposed here. SA-CCR is also input to other regulations such as the leverage ratio and the net stable funding ratio. References Credit risk Capital requirement Derivatives (finance)
Volkan Yılmaz (born 1 September 1987) is a Turkish footballer who plays as a forward for Kartal. He made his Süper Lig debut on 14 April 2013. References External links 1987 births Living people People from Bakırköy Footballers from Istanbul Turkish men's footballers Turkey men's youth international footballers Elazığspor footballers Süper Lig players Men's association football forwards
```objective-c #pragma once #include <Parsers/ASTQueryWithTableAndOutput.h> #include <Parsers/ASTQueryWithOnCluster.h> namespace DB { /** UNDROP query */ class ASTUndropQuery : public ASTQueryWithTableAndOutput, public ASTQueryWithOnCluster { public: /** Get the text that identifies this element. */ String getID(char) const override; ASTPtr clone() const override; ASTPtr getRewrittenASTWithoutOnCluster(const WithoutOnClusterASTRewriteParams & params) const override { return removeOnCluster<ASTUndropQuery>(clone(), params.default_database); } QueryKind getQueryKind() const override { return QueryKind::Undrop; } protected: void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override; }; } ```
151001–151100 |-bgcolor=#f2f2f2 | colspan=4 align=center | |} 151101–151200 |-bgcolor=#f2f2f2 | colspan=4 align=center | |} 151201–151300 |-id=242 | 151242 Hajós || || Alfréd Hajós (1878–1955), Hungarian swimmer and architect || |} 151301–151400 |-id=349 | 151349 Stanleycooper || || Stanley B. Cooper (born 1944), of Johns Hopkins University Applied Physics Laboratory, served as the lead engineer for the spacecraft time-keeping system for the New Horizons mission to Pluto. || |-id=351 | 151351 Dalleore || || Cristina M. Dalle Ore (born 1958) is a senior scientist at the SETI Institute, who served as a composition science team member for the New Horizons mission to Pluto. || |-id=362 | 151362 Chenkegong || || Chen Kegong (1922–2002), grandfather of Chinese astronomer Ye Quan-Zhi, who discovered this minor planet || |} 151401–151500 |-id=430 | 151430 Nemunas || || Nemunas River, the largest river in Lithuania || |} 151501–151600 |-id=590 | 151590 Fan || || Xiaohui Fan (born 1971), Chinese-American astronomer with the Sloan Digital Sky Survey who studies of the most distant quasars || |} 151601–151700 |-id=657 | 151657 Finkbeiner || || Douglas Finkbeiner (born 1971), American astrophysicist with the Sloan Digital Sky Survey || |-id=659 | 151659 Egerszegi || || Krisztina Egerszegi (born 1974), Hungarian swimmer || |-id=697 | 151697 Paolobattaini || || Paolo Battaini (1955–2013), Italian amateur astronomer at the Schiaparelli Observatory in Varese and popularizer on the legacy of Giovanni Schiaparelli and of the exploration of Mars. || |} 151701–151800 |-bgcolor=#f2f2f2 | colspan=4 align=center | |} 151801–151900 |-id=834 | 151834 Mongkut || || King Mongkut (or Rama IV, 1804–1868) was the monarch of Siam from 1851 to 1868. He embraced Western innovations and initiated the modernization of Siam, both in technology and culture, earning him the nickname "The Father of Science and Technology". || |-id=835 | 151835 Christinarichey || || Christina Rae Richey (born 1982) is a discipline scientist for the Planetary Science Division at NASA Headquarters. She has championed the cause of minorities in science and has investigated properties of ices, silicate and carbonaceous materials || |} 151901–152000 |-id=997 | 151997 Bauhinia || || Bauhinia blakeana (the Hong Kong orchid tree), the Hong Kong City Flower || |} References 151001-152000
```php <?php $version = "9.14.0"; require_once('init.php'); if (session_id() == '') { session_start(); } if ($_SESSION['fm_key']) { mb_internal_encoding('UTF-8'); mb_http_output('UTF-8'); mb_http_input('I'); mb_language('uni'); mb_regex_encoding('UTF-8'); ob_start('mb_output_handler'); date_default_timezone_set('Asia/Makassar'); //correct transliteration setlocale(LC_CTYPE, 'en_US'); /* |your_sha256_hash---------- | Optional security |your_sha256_hash---------- | | if set to true only those will access RF whose url contains the access key(akey) like: | <input type="button" href="../filemanager/dialog.php?field_id=imgField&lang=en_EN&akey=myPrivateKey" value="Files"> | in tinymce a new parameter added: filemanager_access_key:"myPrivateKey" | example tinymce config: | | tiny init ... | external_filemanager_path:"../filemanager/", | filemanager_title:"Filemanager" , | filemanager_access_key:"myPrivateKey" , | ... | */ define('USE_ACCESS_KEYS', true); // TRUE or FALSE /* |your_sha256_hash---------- | DON'T COPY THIS VARIABLES IN FOLDERS config.php FILES |your_sha256_hash---------- */ define('DEBUG_ERROR_MESSAGE', TRUE); // TRUE or FALSE /* |your_sha256_hash---------- | Path configuration |your_sha256_hash---------- | In this configuration the folder tree is | root | |- source <- upload folder | |- thumbs <- thumbnail folder [must have write permission (755)] | |- filemanager | |- js | | |- tinymce | | | |- plugins | | | | |- responsivefilemanager | | | | | |- plugin.min.js */ $folder_app = strtolower(substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/assets'))); $config = [ /* |your_sha256_hash---------- | DON'T TOUCH (base url (only domain) of site). |your_sha256_hash---------- | | without final / (DON'T TOUCH) | */ 'base_url' => ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']), ['off', 'no'])) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $folder_app . '/assets', /* |your_sha256_hash---------- | path from base_url to base of upload folder |your_sha256_hash---------- | | with start and final / | */ 'upload_dir' => '/../desa/upload/media/', /* |your_sha256_hash---------- | relative path from filemanager folder to upload folder |your_sha256_hash---------- | | with final / | */ 'current_path' => '../../desa/upload/media/', /* |your_sha256_hash---------- | relative path from filemanager folder to thumbs folder |your_sha256_hash---------- | | with final / | DO NOT put inside upload folder | */ 'thumbs_base_path' => '../../desa/upload/thumbs/', /* |your_sha256_hash---------- | path from base_url to base of thumbs folder |your_sha256_hash---------- | | with final / | DO NOT put inside upload folder | */ 'thumbs_upload_dir' => '/desa/upload/thumbs/', /* |your_sha256_hash---------- | mime file control to define files extensions |your_sha256_hash---------- | | If you want to be forced to assign the extension starting from the mime type | */ 'mime_extension_rename' => true, /* |your_sha256_hash---------- | FTP configuration BETA VERSION |your_sha256_hash---------- | | If you want enable ftp use write these parametres otherwise leave empty | Remember to set base_url properly to point in the ftp server domain and | upload dir will be ftp_base_folder + upload_dir so without final / | */ //put the FTP host 'ftp_host' => false, 'ftp_user' => "user", 'ftp_pass' => "pass", 'ftp_base_folder' => "base_folder", 'ftp_base_url' => "path_to_url to ftp root", // Directory where place files before to send to FTP with final / 'ftp_temp_folder' => "../temp/", /* |your_sha256_hash----------- | path from ftp_base_folder to base of thumbs folder with start and final / |your_sha256_hash----------- */ 'ftp_thumbs_dir' => '/thumbs/', 'ftp_ssl' => false, 'ftp_port' => 21, /* EXAMPLE 'ftp_host' => "host.com", 'ftp_user' => "test@host.com", 'ftp_pass' => "pass.1", 'ftp_base_folder' => "", 'ftp_base_url' => "path_to_url", */ /* |your_sha256_hash---------- | Multiple files selection |your_sha256_hash---------- | The user can delete multiple files, select all files , deselect all files */ 'multiple_selection' => true, /* | | The user can have a select button that pass a json to external input or pass the first file selected to editor | If you use responsivefilemanager tinymce extension can copy into editor multiple object like images, videos, audios, links in the same time | */ 'multiple_selection_action_button' => true, /* |your_sha256_hash---------- | Access keys |your_sha256_hash---------- | | add access keys eg: array('myPrivateKey', 'someoneElseKey'); | keys should only containt (a-z A-Z 0-9 \ . _ -) characters | if you are integrating lets say to a cms for admins, i recommend making keys randomized something like this: | $username = 'Admin'; | $salt = 'dsflFWR9u2xQa' (a hard coded string) | $akey = md5($username.$salt); | DO NOT use 'key' as access key! | Keys are CASE SENSITIVE! | */ 'access_keys' => [$_SESSION['fm_key']], //your_sha256_hash---------------------------------------- // YOU CAN COPY AND CHANGE THESE VARIABLES INTO FOLDERS config.php FILES TO CUSTOMIZE EACH FOLDER OPTIONS //your_sha256_hash---------------------------------------- /* |your_sha256_hash---------- | Maximum size of all files in source folder |your_sha256_hash---------- | | in Megabytes | */ 'MaxSizeTotal' => false, /* |your_sha256_hash---------- | Maximum upload size |your_sha256_hash---------- | | in Megabytes | */ 'MaxSizeUpload' => 8, /* |your_sha256_hash---------- | File and Folder permission |your_sha256_hash---------- | */ 'filePermission' => 0755, 'folderPermission' => 0777, /* |your_sha256_hash---------- | default language file name |your_sha256_hash---------- */ 'default_language' => "en_EN", /* |your_sha256_hash---------- | Icon theme |your_sha256_hash---------- | | Default available: ico and ico_dark | Can be set to custom icon inside filemanager/img | */ 'icon_theme' => "ico", //Show or not total size in filemanager (is possible to greatly increase the calculations) 'show_total_size' => false, //Show or not show folder size in list view feature in filemanager (is possible, if there is a large folder, to greatly increase the calculations) 'show_folder_size' => false, //Show or not show sorting feature in filemanager 'show_sorting_bar' => true, //Show or not show filters button in filemanager 'show_filter_buttons' => true, //Show or not language selection feature in filemanager 'show_language_selection' => true, //active or deactive the transliteration (mean convert all strange characters in A..Za..z0..9 characters) 'transliteration' => false, //convert all spaces on files name and folders name with $replace_with variable 'convert_spaces' => true, //convert all spaces on files name and folders name this value 'replace_with' => "_", //convert to lowercase the files and folders name 'lower_case' => false, //Add ?484899493349 (time value) to returned images to prevent cache 'add_time_to_img' => false, //******************************************* //Images limit and resizing configuration //******************************************* // set maximum pixel width and/or maximum pixel height for all images // If you set a maximum width or height, oversized images are converted to those limits. Images smaller than the limit(s) are unaffected // if you don't need a limit set both to 0 'image_max_width' => 0, 'image_max_height' => 0, 'image_max_mode' => 'auto', /* # $option: 0 / exact = defined size; # 1 / portrait = keep aspect set height; # 2 / landscape = keep aspect set width; # 3 / auto = auto; # 4 / crop= resize and crop; */ //Automatic resizing // // If you set $image_resizing to TRUE the script converts all uploaded images exactly to image_resizing_width x image_resizing_height dimension // If you set width or height to 0 the script automatically calculates the other dimension // Is possible that if you upload very big images the script not work to overcome this increase the php configuration of memory and time limit 'image_resizing' => false, 'image_resizing_width' => 0, 'image_resizing_height' => 0, 'image_resizing_mode' => 'auto', // same as $image_max_mode 'image_resizing_override' => false, // If set to TRUE then you can specify bigger images than $image_max_width & height otherwise if image_resizing is // bigger than $image_max_width or height then it will be converted to those values //****************** // // WATERMARK IMAGE // //Watermark path or false 'image_watermark' => false, //"../watermark.png", # Could be a pre-determined position such as: # tl = top left, # t = top (middle), # tr = top right, # l = left, # m = middle, # r = right, # bl = bottom left, # b = bottom (middle), # br = bottom right # Or, it could be a co-ordinate position such as: 50x100 'image_watermark_position' => 'br', # padding: If using a pre-determined position you can # adjust the padding from the edges by passing an amount # in pixels. If using co-ordinates, this value is ignored. 'image_watermark_padding' => 10, //****************** // Default layout setting // // 0 => boxes // 1 => detailed list (1 column) // 2 => columns list (multiple columns depending on the width of the page) // YOU CAN ALSO PASS THIS PARAMETERS USING SESSION VAR => $_SESSION['RF']["VIEW"]= // //****************** 'default_view' => 0, //set if the filename is truncated when overflow first row 'ellipsis_title_after_first_row' => true, //************************* //Permissions configuration //****************** 'delete_files' => $_SESSION['hapus_gambar_rfm'] ?? false, 'create_folders' => $_SESSION['ubah_tambah_gambar_rfm'] ?? false, 'delete_folders' => $_SESSION['hapus_gambar_rfm'] ?? false, 'upload_files' => $_SESSION['ubah_tambah_gambar_rfm'] ?? false, 'rename_files' => $_SESSION['ubah_tambah_gambar_rfm'] ?? false, 'rename_folders' => $_SESSION['ubah_tambah_gambar_rfm'] ?? false, 'duplicate_files' => $_SESSION['ubah_tambah_gambar_rfm'] ?? false, 'extract_files' => $_SESSION['ubah_tambah_gambar_rfm'] ?? false, 'copy_cut_files' => $_SESSION['hapus_gambar_rfm'] ?? false, // for copy/cut files 'copy_cut_dirs' => $_SESSION['hapus_gambar_rfm'] ?? false, // for copy/cut directories 'chmod_files' => false, // change file permissions 'chmod_dirs' => false, // change folder permissions 'preview_text_files' => false, // eg.: txt, log etc. 'edit_text_files' => false, // eg.: txt, log etc. 'create_text_files' => false, // only create files with exts. defined in $config['editable_text_file_exts'] 'download_files' => true, // allow download files or just preview // you can preview these type of files if $preview_text_files is true 'previewable_text_file_exts' => ["bsh", "c", "css", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html", "java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh", "xhtml", "xml", "xsl", 'txt', 'log', ''], // you can edit these type of files if $edit_text_files is true (only text based files) // you can create these type of files if $config['create_text_files'] is true (only text based files) // if you want you can add html,css etc. // but for security reasons it's NOT RECOMMENDED! 'editable_text_file_exts' => ['txt', 'log', 'xml', 'html', 'css', 'htm', 'js', ''], 'jplayer_exts' => ["mp4", "flv", "webmv", "webma", "webm", "m4a", "m4v", "ogv", "oga", "mp3", "midi", "mid", "ogg", "wav"], 'cad_exts' => ['dwg', 'dxf', 'hpgl', 'plt', 'spl', 'step', 'stp', 'iges', 'igs', 'sat', 'cgm', 'svg'], // Preview with Google Documents 'googledoc_enabled' => true, 'googledoc_file_exts' => ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf', 'odt', 'odp', 'ods'], // defines size limit for paste in MB / operation // set 'FALSE' for no limit 'copy_cut_max_size' => 100, // defines file count limit for paste / operation // set 'FALSE' for no limit 'copy_cut_max_count' => 200, //IF any of these limits reached, operation won't start and generate warning //********************** //Allowed extensions (lowercase insert) //********************** 'ext_img' => ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'svg', 'ico'], //Images 'ext_file' => [], // 'ext_file' => array( 'doc', 'docx', 'rtf', 'pdf', 'xls', 'xlsx', 'txt', 'csv', 'html', 'xhtml', 'psd', 'sql', 'log', 'fla', 'xml', 'ade', 'adp', 'mdb', 'accdb', 'ppt', 'pptx', 'odt', 'ots', 'ott', 'odb', 'odg', 'otp', 'otg', 'odf', 'ods', 'odp', 'css', 'ai', 'kmz','dwg', 'dxf', 'hpgl', 'plt', 'spl', 'step', 'stp', 'iges', 'igs', 'sat', 'cgm', 'tiff',''), //Files 'ext_video' => ['mov', 'mpeg', 'm4v', 'mp4', 'avi', 'mpg', 'wma', "flv", "webm"], //Video 'ext_music' => ['mp3', 'mpga', 'm4a', 'ac3', 'aiff', 'mid', 'ogg', 'wav'], //Audio 'ext_misc' => ['zip', 'rar', 'gz', 'tar', 'iso', 'dmg'], //Archives //********************* // If you insert an extensions blacklist array the filemanager don't check any extensions but simply block the extensions in the list // otherwise check Allowed extensions configuration //********************* 'ext_blacklist' => false, //['exe','bat','jpg'], //Empty filename permits like .htaccess, .env, ... 'empty_filename' => false, /* |your_sha256_hash---------- | accept files without extension |your_sha256_hash---------- | | If you want to accept files without extension, remember to add '' extension on allowed extension | */ 'files_without_extension' => false, /****************** * TUI Image Editor config *******************/ // Add or modify the options below as needed - they will be json encoded when added to the configuration so arrays can be utilized as needed 'tui_active' => true, 'tui_position' => 'bottom', // 'common.bi.image' => "../assets/images/logo.png", // 'common.bisize.width' => '70px', // 'common.bisize.height' => '25px', 'common.backgroundImage' => 'none', 'common.backgroundColor' => '#ececec', 'common.border' => '1px solid #E6E7E8', // header 'header.backgroundImage' => 'none', 'header.backgroundColor' => '#ececec', 'header.border' => '0px', // main icons 'menu.normalIcon.path' => 'svg/icon-d.svg', 'menu.normalIcon.name' => 'icon-d', 'menu.activeIcon.path' => 'svg/icon-b.svg', 'menu.activeIcon.name' => 'icon-b', 'menu.disabledIcon.path' => 'svg/icon-a.svg', 'menu.disabledIcon.name' => 'icon-a', 'menu.hoverIcon.path' => 'svg/icon-c.svg', 'menu.hoverIcon.name' => 'icon-c', 'menu.iconSize.width' => '24px', 'menu.iconSize.height' => '24px', // submenu primary color 'submenu.backgroundColor' => '#ececec', 'submenu.partition.color' => '#000000', // submenu icons 'submenu.normalIcon.path' => 'svg/icon-d.svg', 'submenu.normalIcon.name' => 'icon-d', 'submenu.activeIcon.path' => 'svg/icon-b.svg', 'submenu.activeIcon.name' => 'icon-b', 'submenu.iconSize.width' => '32px', 'submenu.iconSize.height' => '32px', // submenu labels 'submenu.normalLabel.color' => '#000', 'submenu.normalLabel.fontWeight' => 'normal', 'submenu.activeLabel.color' => '#000', 'submenu.activeLabel.fontWeight' => 'normal', // checkbox style 'checkbox.border' => '1px solid #E6E7E8', 'checkbox.backgroundColor' => '#000', // rango style 'range.pointer.color' => '#333', 'range.bar.color' => '#ccc', 'range.subbar.color' => '#606060', 'range.disabledPointer.color' => '#d3d3d3', 'range.disabledBar.color' => 'rgba(85,85,85,0.06)', 'range.disabledSubbar.color' => 'rgba(51,51,51,0.2)', 'range.value.color' => '#000', 'range.value.fontWeight' => 'normal', 'range.value.fontSize' => '11px', 'range.value.border' => '0', 'range.value.backgroundColor' => '#f5f5f5', 'range.title.color' => '#000', 'range.title.fontWeight' => 'lighter', // colorpicker style 'colorpicker.button.border' => '0px', 'colorpicker.title.color' => '#000', //The filter and sorter are managed through both javascript and php scripts because if you have a lot of //file in a folder the javascript script can't sort all or filter all, so the filemanager switch to php script. //The plugin automatic swich javascript to php when the current folder exceeds the below limit of files number 'file_number_limit_js' => 500, //********************** // Hidden files and folders //********************** // set the names of any folders you want hidden (eg "hidden_folder1", "hidden_folder2" ) Remember all folders with these names will be hidden (you can set any exceptions in config.php files on folders) 'hidden_folders' => [], // set the names of any files you want hidden. Remember these names will be hidden in all folders (eg "this_document.pdf", "that_image.jpg" ) 'hidden_files' => ['config.php'], /******************* * URL upload *******************/ 'url_upload' => false, //************************************ //Thumbnail for external use creation //************************************ // New image resized creation with fixed path from filemanager folder after uploading (thumbnails in fixed mode) // If you want create images resized out of upload folder for use with external script you can choose this method, // You can create also more than one image at a time just simply add a value in the array // Remember than the image creation respect the folder hierarchy so if you are inside source/test/test1/ the new image will create at // path_from_filemanager/test/test1/ // PS if there isn't write permission in your destination folder you must set it // 'fixed_image_creation' => false, //activate or not the creation of one or more image resized with fixed path from filemanager folder 'fixed_path_from_filemanager' => ['../test/', '../test1/'], //fixed path of the image folder from the current position on upload folder 'fixed_image_creation_name_to_prepend' => ['', 'test_'], //name to prepend on filename 'fixed_image_creation_to_append' => ['_test', ''], //name to appendon filename 'fixed_image_creation_width' => [300, 400], //width of image 'fixed_image_creation_height' => [200, 300], //height of image /* # $option: 0 / exact = defined size; # 1 / portrait = keep aspect set height; # 2 / landscape = keep aspect set width; # 3 / auto = auto; # 4 / crop= resize and crop; */ 'fixed_image_creation_option' => ['crop', 'auto'], //set the type of the crop // New image resized creation with relative path inside to upload folder after uploading (thumbnails in relative mode) // With Responsive filemanager you can create automatically resized image inside the upload folder, also more than one at a time // just simply add a value in the array // The image creation path is always relative so if i'm inside source/test/test1 and I upload an image, the path start from here // 'relative_image_creation' => false, //activate or not the creation of one or more image resized with relative path from upload folder 'relative_path_from_current_pos' => ['./', './'], //relative path of the image folder from the current position on upload folder 'relative_image_creation_name_to_prepend' => ['', ''], //name to prepend on filename 'relative_image_creation_name_to_append' => ['_thumb', '_thumb1'], //name to append on filename 'relative_image_creation_width' => [300, 400], //width of image 'relative_image_creation_height' => [200, 300], //height of image /* * $option: 0 / exact = defined size; * 1 / portrait = keep aspect set height; * 2 / landscape = keep aspect set width; * 3 / auto = auto; * 4 / crop= resize and crop; */ 'relative_image_creation_option' => ['crop', 'crop'], //set the type of the crop // Remember text filter after close filemanager for future session 'remember_text_filter' => false, ]; return array_merge( $config, ['ext' => array_merge( $config['ext_img'], $config['ext_file'], $config['ext_misc'], $config['ext_video'], $config['ext_music'] ), 'tui_defaults_config' => [ //'common.bi.image' => $config['common.bi.image'], //'common.bisize.width' => $config['common.bisize.width'], //'common.bisize.height' => $config['common.bisize.height'], 'common.backgroundImage' => $config['common.backgroundImage'], 'common.backgroundColor' => $config['common.backgroundColor'], 'common.border' => $config['common.border'], 'header.backgroundImage' => $config['header.backgroundImage'], 'header.backgroundColor' => $config['header.backgroundColor'], 'header.border' => $config['header.border'], 'menu.normalIcon.path' => $config['menu.normalIcon.path'], 'menu.normalIcon.name' => $config['menu.normalIcon.name'], 'menu.activeIcon.path' => $config['menu.activeIcon.path'], 'menu.activeIcon.name' => $config['menu.activeIcon.name'], 'menu.disabledIcon.path' => $config['menu.disabledIcon.path'], 'menu.disabledIcon.name' => $config['menu.disabledIcon.name'], 'menu.hoverIcon.path' => $config['menu.hoverIcon.path'], 'menu.hoverIcon.name' => $config['menu.hoverIcon.name'], 'menu.iconSize.width' => $config['menu.iconSize.width'], 'menu.iconSize.height' => $config['menu.iconSize.height'], 'submenu.backgroundColor' => $config['submenu.backgroundColor'], 'submenu.partition.color' => $config['submenu.partition.color'], 'submenu.normalIcon.path' => $config['submenu.normalIcon.path'], 'submenu.normalIcon.name' => $config['submenu.normalIcon.name'], 'submenu.activeIcon.path' => $config['submenu.activeIcon.path'], 'submenu.activeIcon.name' => $config['submenu.activeIcon.name'], 'submenu.iconSize.width' => $config['submenu.iconSize.width'], 'submenu.iconSize.height' => $config['submenu.iconSize.height'], 'submenu.normalLabel.color' => $config['submenu.normalLabel.color'], 'submenu.normalLabel.fontWeight' => $config['submenu.normalLabel.fontWeight'], 'submenu.activeLabel.color' => $config['submenu.activeLabel.color'], //'submenu.activeLabel.fontWeight' => $config['submenu.activeLabel.fontWeightcommon.bi.image'], 'checkbox.border' => $config['checkbox.border'], 'checkbox.backgroundColor' => $config['checkbox.backgroundColor'], 'range.pointer.color' => $config['range.pointer.color'], 'range.bar.color' => $config['range.bar.color'], 'range.subbar.color' => $config['range.subbar.color'], 'range.disabledPointer.color' => $config['range.disabledPointer.color'], 'range.disabledBar.color' => $config['range.disabledBar.color'], 'range.disabledSubbar.color' => $config['range.disabledSubbar.color'], 'range.value.color' => $config['range.value.color'], 'range.value.fontWeight' => $config['range.value.fontWeight'], 'range.value.fontSize' => $config['range.value.fontSize'], 'range.value.border' => $config['range.value.border'], 'range.value.backgroundColor' => $config['range.value.backgroundColor'], 'range.title.color' => $config['range.title.color'], 'range.title.fontWeight' => $config['range.title.fontWeight'], 'colorpicker.button.border' => $config['colorpicker.button.border'], 'colorpicker.title.color' => $config['colorpicker.title.color'], ]] ); } echo "Access denied"; exit; ```
```kotlin package net.corda.serialization.internal import net.corda.core.node.ServiceHub import net.corda.core.serialization.* import net.corda.core.serialization.internal.CheckpointSerializationContext import net.corda.core.serialization.internal.CheckpointSerializer val serializationContextKey = SerializeAsTokenContext::class.java fun SerializationContext.withTokenContext(serializationContext: SerializeAsTokenContext): SerializationContext = this.withProperty(serializationContextKey, serializationContext) fun CheckpointSerializationContext.withTokenContext(serializationContext: SerializeAsTokenContext): CheckpointSerializationContext = this.withProperty(serializationContextKey, serializationContext) /** * A context for mapping SerializationTokens to/from SerializeAsTokens. * * A context is initialised with an object containing all the instances of [SerializeAsToken] to eagerly register all the tokens. * In our case this can be the [ServiceHub]. * * Then it is a case of using the companion object methods on [SerializeAsTokenSerializer] to set and clear context as necessary * when serializing to enable/disable tokenization. */ class SerializeAsTokenContextImpl(override val serviceHub: ServiceHub, init: SerializeAsTokenContext.() -> Unit) : SerializeAsTokenContext { constructor(toBeTokenized: Any, serializationFactory: SerializationFactory, context: SerializationContext, serviceHub: ServiceHub) : this(serviceHub, { serializationFactory.serialize(toBeTokenized, context.withTokenContext(this)) }) private val classNameToSingleton = mutableMapOf<String, SerializeAsToken>() private var readOnly = false init { /** * Go ahead and eagerly serialize the object to register all of the tokens in the context. * * This results in the toToken() method getting called for any [SingletonSerializeAsToken] instances which * are encountered in the object graph as they are serialized and will therefore register the token to * object mapping for those instances. We then immediately set the readOnly flag to stop further adhoc or * accidental registrations from occuring as these could not be deserialized in a deserialization-first * scenario if they are not part of this iniital context construction serialization. */ init(this) readOnly = true } override fun putSingleton(toBeTokenized: SerializeAsToken) { val className = toBeTokenized.javaClass.name if (className !in classNameToSingleton) { // Only allowable if we are in SerializeAsTokenContext init (readOnly == false) if (readOnly) { throw UnsupportedOperationException("Attempt to write token for lazy registered $className. All tokens should be registered during context construction.") } classNameToSingleton[className] = toBeTokenized } } override fun getSingleton(className: String) = classNameToSingleton[className] ?: throw IllegalStateException("Unable to find tokenized instance of $className in context $this") } /** * A context for mapping SerializationTokens to/from SerializeAsTokens. * * A context is initialised with an object containing all the instances of [SerializeAsToken] to eagerly register all the tokens. * In our case this can be the [ServiceHub]. * * Then it is a case of using the companion object methods on [SerializeAsTokenSerializer] to set and clear context as necessary * when serializing to enable/disable tokenization. */ class CheckpointSerializeAsTokenContextImpl(override val serviceHub: ServiceHub, init: SerializeAsTokenContext.() -> Unit) : SerializeAsTokenContext { constructor(toBeTokenized: Any, serializer: CheckpointSerializer, context: CheckpointSerializationContext, serviceHub: ServiceHub) : this(serviceHub, { serializer.serialize(toBeTokenized, context.withTokenContext(this)) }) private val classNameToSingleton = mutableMapOf<String, SerializeAsToken>() private var readOnly = false init { /** * Go ahead and eagerly serialize the object to register all of the tokens in the context. * * This results in the toToken() method getting called for any [SingletonSerializeAsToken] instances which * are encountered in the object graph as they are serialized and will therefore register the token to * object mapping for those instances. We then immediately set the readOnly flag to stop further adhoc or * accidental registrations from occuring as these could not be deserialized in a deserialization-first * scenario if they are not part of this iniital context construction serialization. */ init(this) readOnly = true } override fun putSingleton(toBeTokenized: SerializeAsToken) { val className = toBeTokenized.javaClass.name if (className !in classNameToSingleton) { // Only allowable if we are in SerializeAsTokenContext init (readOnly == false) if (readOnly) { throw UnsupportedOperationException("Attempt to write token for lazy registered $className. All tokens should be registered during context construction.") } classNameToSingleton[className] = toBeTokenized } } override fun getSingleton(className: String) = classNameToSingleton[className] ?: throw IllegalStateException("Unable to find tokenized instance of $className in context $this") } ```
Mikołaj II Radziwiłł (Belarusian: Мікалай Радзівіл, ) (1470–1521), nicknamed Amor Poloniae, was a magnate and statesman of the Grand Duchy of Lithuania. He obtained the title of prince from Emperor Maximilian I. He was a son of Mikalojus Radvilaitis and among the first Radziwiłłs to carry this family name. He had brothers Jerzy Radziwiłł, Jan Radziwiłł and Wojciech Radziwiłł and sister Anna Radziwiłł. Mikołaj was a progenitor of Goniądz–Miadzyel Radziwiłł family line. He inherited the lands of Musninkai and Kėdainiai. Most of his acquired fortune had been confiscated from Michael Glinski—notably Rajgród, Goniądz and Knyszyn. He took part in the second Muscovite–Lithuanian War of 1500–03 and other raids under leadership of Konstanty Ostrogski. Mikołaj was the Podczaszy from 1505 until 1510, Voivode of Vilnius from 1507 and replaced his father as the Grand Chancellor of Lithuania from 1510. On 25 February 1518 received, as the first member of the family, the princely title from the emperor Maximilian I, as Reichsfürst ("Imperial Prince") of Goniądz and Myadzyel. Due to his pro-Polish views and arid support for the Polish–Lithuanian Union he was nicknamed Amor Poloniae by his contemporaries. He rivaled Albertas Goštautas for influence in the government of the Grand Duchy of Lithuania and was the initial editor of the First Statute of Lithuania. Marriage and issue Mikołaj married Elźbieta Anna Sakowicz h. Pomian (daughter of the boyar Bohdan Sakowicz, who was adopted by the Pomian clan) their children were: Mikołaj Radziwiłł, Bishop of Samogitia Jan Radziwiłł; married Anna Kostewicz h. Leliwa Zofia Radziwiłł; married Jan Zabrzeziński h. Leliwa Stanisław Radziwiłł; married Magdalena Boner h. Boner in 1527 in Kraków Helena Radziwiłł; married Prince Jerzy Olelkowicz Słucki Elżbieta Radziwiłł; married Prince Iwan Dubrownicki Holszański References 1470 births 1521 deaths Mikolaj Radziwill Grand Chancellors of the Grand Duchy of Lithuania Grand Marshals of the Grand Duchy of Lithuania Voivode of Vilnius
Kamilia Shehata Zakher (; born 22 July 1985) is a schoolteacher in Deir Mawas, Egypt, and wife of Tadros Samaan, the Coptic Priest of Saint Mark's Church in Mowas Cathedral in Minya. Her disappearance in July 2010 sparked protests and rumours of kidnapping and forced conversion to Islam. Her subsequent return to the Church inflamed sectarian tensions between Egypt's Muslim majority and Coptic Christian minority. Background Shehata disappeared from her home in Deir Mawas on 18 July 2010 following a family dispute, according to a police report. According to some reports the dispute was over her desire to convert to Islam. Rumours of her forced conversion to Islam began circulating among Egypt's Copts after Shehata's husband and family initially claimed she had been kidnapped, a claim discounted by police. Ensuing Coptic protests in Cairo and in her home province of Minya demanded her return. Controversy Shehata was discovered on July 23 at the home of a friend in Cairo. She denied being kidnapped and Church officials confirmed she had left her home of her own free will. Differing accounts claim that after she was located, police either returned Shehata to her family or turned her over to the custody of the Church. Shehata herself has made no public statement with the exception of a video whose authenticity is disputed. Her whereabouts are unknown and the Church claims she is under its protection, saying she was "transferred from her family's home in Ain Shams in Cairo to a church guest house to keep her away from the tension." Shehata's return was met with rival protests by Egyptian Muslims who believed Shehata had converted to Islam but had been forcibly returned to the Church. Images of a niqāb-clad Shehata have been widely displayed in protests and on internet sites devoted to her supposed abduction and detention, although the authenticity of the images has been questioned. The Egyptian daily Al-masry Al-youm described them as "photo-shopped". In August 2010, Egyptian lawyers Nezar Ghorab, Gamal Tag and Tarek Abubakr filed a lawsuit against the Grand Sheikh of Al-Azhar Mosque and the Egyptian Minister of Interior, asserting that they had colluded to prevent Shehata from converting to Islam, a claim denied by the Secretary General of Al-Azhar’s Fatwa Committee, who said that "Kamilia never came to Al-Azhar and we know nothing about her." The lawyers filed a related suit against Egyptian President Hosni Mubarak. Another lawyer, Mamdouh Ismail, submitted a request with the attorney-general that Christian places of worship be searched to ascertain her whereabouts, and filed an administrative suit against Coptic Pope Shenouda III that alleged Shehata was being held against her will and demanded her release. Also Husam Abu al-Bukhari called for a protest near Al-Nour Mosque in Abbassia to support Kamilia Shehata. Representatives of Egyptian Initiative for Personal Rights, an independent Egyptian human rights organization, also criticized the security forces for handing over an adult to the Church against her will, an act the organization says violates the Egyptian constitution. EIPR director Hossam Bahgat characterized the actions of the authorities and the Church as a misguided attempt to avoid sectarian strife, telling Daily News Egypt that "Church leaders and police might think that they've suppressed the beginnings of a sectarian problem through 'delivering' a grown up citizen to her family like a piece of furniture, but the truth is that the whole society, including all its sects, loses when it gets involved in this flagrant violation of one of its citizens." In May 2011, Shehata appeared on a Coptic satellite television network, Al-Hayat, and stated that she was living with her husband and son and had not converted to Islam or been held against her will by the Church. She claimed that photos on the Internet appearing to show her in hijab had been fabricated. The Islamic State of Iraq and the Levant used the incident to justify the 2015 kidnapping and beheading of 21 Coptic Christian fishermen in Libya in revenge. References 1985 births Living people Egyptian women educators 21st-century Egyptian educators Place of birth missing (living people)
```less @import '../../styles/common'; @import '../../internals/Ripple/styles/mixins'; @import 'mixin.less'; // // Buttons // -------------------------------------------------- // Default Button .rs-btn { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0; // For input.btn font-weight: @btn-font-weight; text-align: center; vertical-align: middle; cursor: pointer; white-space: nowrap; transition: @btn-transition; // Reset border style in all browser border: var(--rs-btn-default-border, none); user-select: none; text-decoration: none; color: var(--rs-btn-default-text); background-color: var(--rs-btn-default-bg); border-radius: @btn-border-radius; .high-contrast-mode({ transition: none; }); .rs-btn-md(); .with-focus-ring(); .button-activated({ color: var(--rs-btn-default-hover-text); background-color: var(--rs-btn-default-hover-bg); text-decoration: none; }); .button-pressed({ color: var(--rs-btn-default-active-text); background-color: var(--rs-btn-default-active-bg); }); .button-disabled({ cursor: @cursor-disabled; color: var(--rs-btn-default-disabled-text); background-color: var(--rs-btn-default-disabled-bg); }); .with-ripple(); } .rs-btn-start-icon { line-height: 0; // Eliminate whitespace margin-right: @btn-icon-gap; } .rs-btn-end-icon { line-height: 0; // Eliminate whitespace margin-left: @btn-icon-gap; } // Appearance variants // -------------------------------------------------- // Primary Button .rs-btn-primary { color: var(--rs-btn-primary-text); background-color: var(--rs-btn-primary-bg); border: none; .button-activated({ color: var(--rs-btn-primary-text); background-color: var(--rs-btn-primary-hover-bg); }); .button-pressed({ color: var(--rs-btn-primary-text); background-color: var(--rs-btn-primary-active-bg); }); .button-disabled({ color: var(--rs-btn-primary-text); background-color: var(--rs-btn-primary-bg); opacity: 0.3; }); } // Subtle Button .rs-btn-subtle { color: var(--rs-btn-subtle-text); background-color: transparent; border: none; .button-activated({ color: var(--rs-btn-subtle-hover-text); background-color: var(--rs-btn-subtle-hover-bg); }); .button-pressed({ color: var(--rs-btn-subtle-active-text); background-color: var(--rs-btn-subtle-active-bg); }); .button-disabled({ color: var(--rs-btn-subtle-disabled-text); background: none; }); } // Link buttons .rs-btn-link { color: var(--rs-btn-link-text); background-color: transparent; border: none; .button-activated({ color: var(--rs-btn-link-hover-text); background-color: transparent; text-decoration: @link-hover-decoration; }); .button-pressed({ color: var(--rs-btn-link-active-text); background-color: transparent; }); .button-disabled({ color: var(--rs-btn-link-hover-text); background-color: transparent; text-decoration: none; opacity: 0.3; }); } // Ghost Button .rs-btn-ghost { color: var(--rs-btn-ghost-text); background-color: transparent; border: @btn-ghost-border-width solid var(--rs-btn-ghost-border); .button-activated({ color: var(--rs-btn-ghost-hover-text); background-color: transparent; border-color: var(--rs-btn-ghost-hover-border); box-shadow: 0 0 0 1px var(--rs-btn-ghost-hover-border); }); .button-pressed({ color: var(--rs-btn-ghost-active-text); background-color: transparent; border-color: var(--rs-btn-ghost-active-border); }); .button-disabled({ color: var(--rs-btn-ghost-text); background-color: transparent; opacity: 0.3; border-color: var(--rs-btn-ghost-border); box-shadow:none; }); } // Spectrum buttons each(@spectrum, .(@color) { @C200: var(~'--rs-@{color}-200'); @C300: var(~'--rs-@{color}-300'); @C400: var(~'--rs-@{color}-400'); @C500: var(~'--rs-@{color}-500'); @C600: var(~'--rs-@{color}-600'); @C700: var(~'--rs-@{color}-700'); @C800: var(~'--rs-@{color}-800'); @C900: var(~'--rs-@{color}-900'); .rs-btn-@{color} { --rs-btn-primary-bg: @C500; --rs-btn-primary-hover-bg: @C700; --rs-btn-primary-active-bg: @C800; --rs-btn-subtle-hover-bg: @C500; --rs-btn-subtle-hover-text: @B200; --rs-btn-subtle-active-bg: @C600; --rs-btn-subtle-active-text: @B800; --rs-btn-ghost-border: @C700; --rs-btn-ghost-text: @C700; --rs-btn-ghost-hover-border: @C900; --rs-btn-ghost-hover-text: @C800; --rs-btn-ghost-active-border: @C900; --rs-btn-ghost-active-text: @C900; --rs-btn-link-text: @C700; --rs-btn-link-hover-text: @C800; --rs-btn-link-active-text: @C900; --rs-iconbtn-primary-addon: @C600; --rs-iconbtn-primary-activated-addon: @C800; --rs-iconbtn-primary-pressed-addon: @C900; .dark-mode({ --rs-btn-primary-bg: @C700; --rs-btn-primary-hover-bg: @C500; --rs-btn-primary-active-bg: @C400; --rs-btn-subtle-hover-bg: @C600; --rs-btn-subtle-hover-text: #fff; --rs-btn-subtle-active-bg: @C400; --rs-btn-subtle-active-text: #fff; --rs-btn-ghost-border: @C500; --rs-btn-ghost-text: @C500; --rs-btn-ghost-hover-border: @C400; --rs-btn-ghost-hover-text: @C400; --rs-btn-ghost-active-border: @C200; --rs-btn-ghost-active-text: @C200; --rs-btn-link-text: @C500; --rs-btn-link-hover-text: @C400; --rs-btn-link-active-text: @C200; --rs-iconbtn-primary-addon: @C600; --rs-iconbtn-primary-activated-addon: @C400; --rs-iconbtn-primary-pressed-addon: @C300; }); .high-contrast-mode({ --rs-btn-primary-bg: @C700; --rs-btn-primary-hover-bg: @C600; --rs-btn-primary-active-bg: @C400; --rs-btn-subtle-hover-bg: @C600; --rs-btn-subtle-hover-text: var(--rs-gray-900); --rs-btn-subtle-active-bg: @C400; --rs-btn-subtle-active-text: var(--rs-gray-900); --rs-btn-ghost-border: @C500; --rs-btn-ghost-text: @C500; --rs-btn-ghost-hover-border: @C400; --rs-btn-ghost-hover-text: @C400; --rs-btn-ghost-active-border: @C200; --rs-btn-ghost-active-text: @C200; --rs-btn-link-text: @C500; --rs-btn-link-hover-text: @C400; --rs-btn-link-active-text: @C200; }); } }); // Button Sizes // -------------------------------------------------- .rs-btn-lg { .button-size-lg(); } .rs-btn-md { .button-size-md(); } .rs-btn-sm { .button-size-sm(); } .rs-btn-xs { .button-size-xs(); } // Block button // -------------------------------------------------- .rs-btn-block { width: 100%; // Vertically space out multiple block buttons & + & { margin-top: 5px; } } // Button Loading state .rs-btn-loading { color: transparent !important; position: relative; cursor: default; pointer-events: none; // Spinner > .rs-btn-spin { &::before, &::after { content: ''; position: absolute; width: @btn-loading-spin-default-diameter; height: @btn-loading-spin-default-diameter; margin: auto; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; z-index: 1; .rs-btn-xs& { width: @btn-loading-spin-xs-diameter; height: @btn-loading-spin-xs-diameter; } } &::before { border: @btn-loading-spin-ring-wide solid var(--rs-loader-ring); .rs-btn-primary& { border-color: rgba(248, 247, 250, 0.3); .high-contrast-mode({ border-color: var(--rs-loader-ring-inverse); }); } } &::after { border-width: @btn-loading-spin-ring-wide; border-color: var(--rs-loader-rotor) transparent transparent; border-style: solid; animation: buttonSpin 0.6s infinite linear; .rs-btn-primary& { border-top-color: #fff; .high-contrast-mode({ border-top-color: var(--rs-loader-rotor-inverse); }); } } } @keyframes buttonSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } } } .btn-error() { .rs-btn-subtle(); --rs-btn-subtle-text: var(--rs-red-500); --rs-btn-subtle-hover-bg: var(--rs-red-500); --rs-btn-subtle-hover-text: #fff; --rs-btn-subtle-active-bg: var(--rs-red-600); --rs-btn-subtle-active-text: #fff; .dark-mode({ --rs-btn-subtle-hover-bg: var(--rs-red-600); --rs-btn-subtle-active-bg: var(--rs-red-400); }); } ```
```html <!-- path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <div class="tb-widget-button-custom-style"> <div class="tb-widget-button-preview-panel tb-primary-fill"> <tb-widget-button [appearance]="previewAppearance" [borderRadius]="borderRadius" [autoScale]="autoScale" disableEvents [hovered]="state === widgetButtonState.hovered" [pressed]="state === widgetButtonState.pressed" [activated]="state === widgetButtonState.activated" [disabled]="state === widgetButtonState.disabled"> </tb-widget-button> <button *ngIf="modelValue" mat-icon-button [matTooltip]="'widgets.button.clear-style' | translate" matTooltipPosition="above" class="tb-mat-32" (click)="clearStyle()"> <tb-icon>mdi:broom</tb-icon> </button> </div> <button mat-icon-button class="tb-mat-32" #matIconButton (click)="openButtonCustomStylePopup($event, matIconButton)"> <mat-icon>edit</mat-icon> </button> </div> ```
The Gault Formation is a geological formation of stiff blue clay deposited in a calm, fairly deep-water marine environment during the Lower Cretaceous Period (Upper and Middle Albian). It is well exposed in the coastal cliffs at Copt Point in Folkestone, Kent, England, where it overlays the Lower Greensand formation, and underlies the Upper Greensand Formation. These represent different facies, with the sandier parts probably being deposited close to the shore and the clay in quieter water further from the source of sediment; both are believed to be shallow-water deposits. The etymology of the name is uncertain and probably of local origin. Distribution It is found in exposure on the south side of the North Downs and the north side of the South Downs. It is also to be found beneath the scarp of the Berkshire Downs, in the Vale of White Horse, in Oxfordshire, England, and on the Isle of Wight where it is known as Blue Slipper. Gault underlies the chalk beneath the London Basin, generally overlying eroded rocks of Jurassic and Devonian age; lower gault is present only below the outer parts of the basin and is absent under central London. The Gault Formation represents a marine transgression following erosion of the Lower Greensand. It is subdivided into two sections, the Upper Gault and the Lower Gault. The Upper Gault onlaps onto the Lower Gault. The Gault Formation thins across the London Platform and then terminates against the Red Chalk just to the south of The Wash. The Gault exposure at Copt Point, which is the type locality for the formation, is 40 m in thickness. Uses The clay has been used in several locations for making bricks, notably near Dunton Green and Wye in Kent. Gault often contains numerous phosphatic nodules, some thought to be coprolites, and may also contain sand as well as small grains of the mineral glauconite. Crystals of the mineral selenite are fairly common in places, as are nodules of pyrite. Fossils Gault yields abundant marine fossils, including ammonites (such as Hoplites, Hamites, Euhoplites, Anahoplites, and Dimorphoplites), belemnites (such as Neohibolites), bivalves (such as Birostrina and Pectinucula), gastropods (such as Anchura), solitary corals, fish remains (including shark teeth), scattered crinoid remains, and crustaceans (such as the crab Notopocorystes). Occasional fragments of fossil wood may also be found. See also Argiles du Gault References External links Fossils of the Gault Clay Folkestone fossils and geology by Discovering Fossils Sedimentary rocks Cretaceous paleontological sites of Europe Geology of England Geology of Kent Geology of Oxfordshire Albian Stage Lower Cretaceous Series of Europe
```xml <vector android:height="160dp" android:viewportHeight="960" android:viewportWidth="1440" android:width="240dp" xmlns:aapt="path_to_url" xmlns:android="path_to_url"> <path android:fillColor="#ed1c24" android:pathData="M0,0h1440v960H0z"/> <path android:fillColor="#034ea2" android:pathData="M0,0h1440v720H0z"/> <path android:fillColor="#fd0" android:pathData="M0,0h1440v480H0z"/> <path android:fillColor="#ebc900" android:pathData="m742.99,676.49c0.48,-0.35 0.14,-2.25 8.51,0.17 1.87,8.56 4.07,22.08 4.07,22.08 -0.03,-4.36 -8.94,-13.33 -11.53,-17.39 -1.3,-2.05 -1.65,-3.82 -1.04,-4.85zM692.19,676.49c-0.48,-0.35 0.11,-2.63 -8.25,-0.21 -1.87,8.56 -4.32,22.45 -4.32,22.45 0.03,-4.36 8.94,-13.33 11.53,-17.39 1.3,-2.05 1.65,-3.82 1.04,-4.85z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#023f88" android:pathData="m730.57,702.59 l-0.58,-2.35c1.09,-2.49 2.97,-2.11 6.83,-1.16 0.21,5.18 0.46,10.93 0.78,14.85 -0.4,-1.7 -1.66,-3.83 -4.25,-6.37 0,0 -1.95,-1.67 -2.77,-4.97zM704.61,702.59 L705.19,700.24c-1.09,-2.49 -2.97,-2.11 -6.83,-1.16 -0.21,5.18 -0.46,10.93 -0.78,14.85 0.4,-1.7 1.66,-3.83 4.25,-6.37 0,0 1.95,-1.67 2.77,-4.97z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ffdd00" android:pathData="m755.18,632.03c0,0 22.89,31.01 23.45,37.49 0.55,6.48 0.55,11.83 -14.63,9.58 -5.41,-0.04 -17.87,-4.86 -21.51,-2.01 -0.54,-2.37 -1.83,-8.03 -3.39,-14.64 -3.1,-13.05 -7.2,-29.72 -8.43,-31.47 5.66,-2.78 17.44,0.18 24.5,1.05zM656.54,669.52c-0.55,6.48 -0.55,11.83 14.63,9.58 5.41,-0.04 17.87,-4.86 21.51,-2.01 0.54,-2.37 1.83,-8.03 3.39,-14.64 3.1,-13.05 7.2,-29.72 8.43,-31.47 -23.14,-2.13 -44.13,20.67 -47.95,38.54z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ed1c24" android:pathData="m724.58,640.01c0.18,3.54 2.52,29.72 4.1,45.81l1.22,12.37c-0.32,4.94 3.51,9.37 3.51,9.37 2.56,2.55 3.82,4.65 4.22,6.35l0.13,1.45c-0.01,0.2 -0.05,0.4 -0.08,0.59 -0.65,2.97 -4.63,4.08 -7.3,3.75 -4.41,-0.57 -12.69,-5.97 -12.69,-5.97l0.03,-74.51zM710.73,640.26c-0.18,3.54 -2.65,29.47 -4.23,45.56l-1.22,12.37c0.32,4.94 -3.51,9.37 -3.51,9.37 -2.56,2.55 -3.82,4.65 -4.22,6.35l-0.13,1.45c0.01,0.2 0.05,0.4 0.08,0.59 0.65,2.97 4.63,4.08 7.3,3.75 4.41,-0.57 12.69,-5.97 12.69,-5.97l0.19,-74.51z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#034ea2" android:pathData="m733.29,639.37c0,0 2.74,10.01 5.83,23.08 1.56,6.59 3.46,14.46 4,16.83 0.65,1.46 12.23,15.04 12.45,19.44 0.09,1.79 -1.33,2.88 -5.33,2.64 -6.11,-0.37 -10.37,-1.52 -13.4,-2.28 -3.81,-0.96 -5.66,-1.34 -6.74,1.16l-0.21,-2.05c-0.23,-2.46 -0.69,-6.95 -1.2,-12.37 -1.58,-16.09 -3.92,-42.28 -4.1,-45.81zM701.33,639.43c0,0 -2.17,9.95 -5.26,23.02 -1.56,6.59 -3.46,14.46 -4,16.83 -0.65,1.46 -12.23,15.04 -12.45,19.44 -0.09,1.79 1.33,2.88 5.33,2.64 6.11,-0.37 10.37,-1.52 13.4,-2.28 3.81,-0.96 5.66,-1.34 6.74,1.16l0.21,-2.05c0.23,-2.46 0.69,-6.95 1.2,-12.37 1.58,-16.09 4.05,-42.02 4.23,-45.56z" android:strokeColor="#000" android:strokeLineCap="round" android:strokeWidth="1"/> <path android:fillColor="#b1babf" android:pathData="m805.47,637.84 l-3.68,4.43 42.96,41.75 2,0.11c0,0 2.22,4.26 2.31,7.03 1.75,0.19 8.72,2.85 12.99,5.76 -3.66,-3.02 -6.75,-12.88 -6.75,-12.88 -3.42,-0.23 -6.54,-1.9 -6.54,-1.9l-0.06,-2.41zM634.53,637.84 L591.3,679.72c-0.11,0.81 -0.13,1.61 -0.06,2.41 0,0 -3.13,1.66 -6.54,1.9 0,0 -3.1,9.86 -6.75,12.88 4.26,-2.92 11.23,-5.57 12.99,-5.76 0.09,-2.76 0.58,-6.01 2.31,-7.03 0.65,-0.17 1.33,-0.11 2,-0.11l42.96,-41.75zM863.89,615.69 L860.22,620.12 883.47,642.4c0.68,-0.05 1.33,0.01 1.99,0.09 1.73,1.02 2.22,4.28 2.32,7.03 1.75,0.19 8.72,2.85 12.99,5.76 -3.66,-3.02 -6.75,-12.88 -6.75,-12.88 -3.42,-0.23 -6.55,-1.9 -6.55,-1.9 0.1,-0.74 0,-1.56 -0.06,-2.39zM575.14,615.69 L551.62,638.12c-0.11,0.81 -0.13,1.59 -0.06,2.39 0,0 -3.13,1.66 -6.54,1.9 0,0 -3.1,9.86 -6.75,12.88 4.26,-2.92 11.23,-5.57 12.99,-5.76 0.09,-2.75 0.58,-6.01 2.31,-7.03 0.66,-0.15 1.33,-0.09 2,-0.09l23.25,-22.29z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#b1babf" android:pathData="m562.4,315.43c3.39,5.5 6.42,14.5 6.6,16.75 3.28,0.18 7.13,0.88 8.32,3.12l0.2,0.54c-3.95,3.06 -9.4,3.78 -14.59,1.64l0.29,0.2c0.44,0.29 0.88,0.59 1.34,0.84 5.81,3.35 12.08,3.43 16.35,0.75l10.54,10.64 0.53,-3.49 -9.07,-8.77c0.87,-0.89 1.6,-1.94 2.14,-3.16 1.83,-4.16 1.09,-9.23 -1.56,-13.64a2.29,2.34 0,0 0,-0.49 -0.54c0.55,3.35 0.23,6.8 -1.15,9.91a14.56,14.87 0,0 1,-1.68 2.86c-0.19,-0.14 -0.43,-0.3 -0.43,-0.32 0,0 -1.92,-4.04 -2.13,-8.43 0,0 -11.67,-4.16 -15.2,-8.9z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:pathData="m646.47,401.21 l-58.32,-59.58" android:strokeColor="#000" android:strokeWidth="1.99999988"/> <path android:fillColor="#ffdd00" android:pathData="m820.79,372.54 l-8.39,8.43c15.28,-15.64 33.16,-33.96 42.24,-43.36 1.67,-1.73 2.06,37.36 1.88,80.95l-35.3,35.65c-0.28,-27.43 -0.44,-81.68 -0.44,-81.68zM618.24,372.54 L626.63,380.98c-15.28,-15.64 -33.16,-33.96 -42.24,-43.36 -1.67,-1.73 -2.06,37.36 -1.88,80.95l35.3,35.65c0.28,-27.43 0.44,-81.68 0.44,-81.68z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ed1c24" android:pathData="m589.11,343.87 l-2.98,-3.1c-0.23,0.7 -0.57,1.9 -1.15,3.99 0.5,13.39 -2.22,26.55 -2.91,39.82l-0.02,0.19c-0.03,3.57 1.28,7.96 1.28,7.96 0,0 2.1,1.1 2.45,0.14 1.82,-16.64 1.27,-34.8 3.32,-49z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#034ea2" android:pathData="m583.51,337.5c-2.75,13.82 -5.17,31.22 -5.69,45.54 -0.05,1.52 0.33,1.36 0.68,2.26 0,0 2.27,1.45 3.55,-0.53l0.02,-0.19c3.55,-12.17 0.3,-28.46 2.91,-39.81 0.57,-2.11 0.92,-3.31 1.15,-4.01 0.23,-0.78 0.31,-0.93 0.31,-0.93z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ed1c24" android:pathData="m594.18,335.66c-0.64,0 -1.28,0.1 -1.77,0.27 -2.97,0.78 -5.96,1.42 -8.99,1.92 0,0 0.01,-0 0.01,0l0.2,0.39c0.88,1.64 4.52,7.79 8.7,5.54 1.73,-1.09 2.78,-2.74 4.06,-4.32 1.69,-2.85 -0.28,-3.79 -2.21,-3.79z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#034ea2" android:pathData="m589.35,328.96c-5.08,0.87 -5.72,7.17 -5.8,8.83l-0.01,0.4c4.68,-4.07 7.27,-4.92 8.7,-4.45 -1.46,0.29 -8.2,4.11 -8.2,4.11 3.55,0.27 2.49,0.68 6.11,0.77 4.32,-0.28 4.58,-1.22 5.46,-5.59 -0.82,-3 -3.42,-4.38 -6.26,-4.07z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="M577.63,383.79a2.4,2.45 0,1 0,4.79 0a2.4,2.45 0,1 0,-4.79 0z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="m583.01,398c-3.39,-0.13 -5.27,-0.33 -7.49,-0.47 0.29,-4.78 0.69,-11.42 4.42,-11.18 3.7,0.23 3.35,6.86 3.06,11.65z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="M581.84,390.7a2.4,2.45 0,1 0,4.79 0a2.4,2.45 0,1 0,-4.79 0z" android:strokeColor="#000" android:strokeWidth="0.53300369"/> <path android:fillColor="#e8b909" android:pathData="m588.07,404.7c-3.4,0.08 -5.3,0 -7.5,0 0,-4.8 0,-11.44 3.75,-11.44 3.71,0 3.75,6.65 3.75,11.44z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#b1babf" android:pathData="m876.63,315.43c-3.53,4.74 -15.2,8.9 -15.2,8.9 -0.21,4.39 -2.13,8.43 -2.13,8.43 -0,0.01 -0.27,0.16 -0.46,0.28 -0.65,-0.87 -1.2,-1.82 -1.65,-2.82 -1.38,-3.1 -1.7,-6.56 -1.15,-9.91 -0.19,0.15 -0.36,0.33 -0.49,0.54 -2.65,4.42 -3.39,9.49 -1.56,13.64 0.54,1.22 1.27,2.26 2.14,3.16l-5.14,4.93 2.5,1.08 4.62,-4.41c4.27,2.7 10.55,2.63 16.38,-0.73 0.46,-0.26 0.91,-0.55 1.34,-0.84l0.29,-0.2c-5.2,2.14 -10.65,1.42 -14.6,-1.65l0.2,-0.53c1.19,-2.24 5.04,-2.94 8.32,-3.12 0.18,-2.25 3.21,-11.24 6.6,-16.75z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#034ea2" android:pathData="m821.24,454.22 l-12.7,12.82 -5.96,-14.67 -1.13,-9.01c0.89,-25.79 0.44,-51.13 0.44,-51.13l-3.74,3.33 14.26,-14.58 8.4,-8.43c0,0 0.16,54.25 0.44,81.68zM617.79,454.22 L630.5,467.05 636.46,452.37 637.59,443.36c-0.89,-25.79 -0.44,-51.13 -0.44,-51.13l3.74,3.33 -14.26,-14.58 -8.4,-8.43c0,0 -0.16,54.25 -0.44,81.68z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ed1c24" android:pathData="m801.44,443.36 l-12.61,-38.3 13.05,-12.84c0,0 0.46,25.34 -0.44,51.13zM637.59,443.36 L650.2,405.07 637.16,392.23c0,0 -0.46,25.34 0.44,51.13z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:pathData="m792.57,401.21 l56.4,-57.66" android:strokeColor="#000" android:strokeWidth="1.99999988"/> <path android:fillColor="#009c4f" android:pathData="m843.31,432.66c-0.87,-13.39 -6.92,-66.44 -18.73,-83.53 0,0 11.46,16.56 12.72,89.95z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#009c4f" android:pathData="m841.55,424.75c-6.44,-41.87 -28.75,-78.49 -28.75,-78.49 8.43,17.72 23.21,63.06 27.1,90.71l2.67,-2.61z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#009c4f" android:pathData="m806.37,348.39c18.88,34.95 26.69,85.8 27.88,94.22l6.64,-6.51c-6.13,-39.4 -34.52,-87.71 -34.52,-87.71" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#009c4f" android:pathData="m795.29,344.93c3.22,5.55 17.65,34.64 23.51,51.46 4.76,13.62 9.57,38.4 11.7,50.04l8.17,-8.02c-7.52,-36.21 -38.8,-86.3 -43.38,-93.48" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#009c4f" android:pathData="m783.56,341.43c0,0 24.09,37.9 31.49,63.76 2.34,8.19 9.34,32.82 11.99,44.42l9.42,-7.67c-7.46,-22.29 -30.84,-78.7 -52.9,-100.51" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#009c4f" android:pathData="m783.83,363.26c12.53,17.16 33.93,57.73 39.73,90.11l10.83,-10.65c-9.34,-25.94 -39.44,-65.39 -50.57,-79.46" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#009c4f" android:pathData="m792.04,387.37c14.95,20.04 26.39,53.56 27.23,69.12l9.26,-7.66c-9.43,-25.79 -36.49,-61.46 -36.49,-61.46" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ed1c24" android:pathData="m849.92,343.87 l2.98,-3.1c0.23,0.7 0.57,1.9 1.15,3.99 -2.26,17.96 6.14,31.45 1.65,47.97 0,0 -2.1,1.1 -2.45,0.14 -2.94,-16.72 -1.46,-35.56 -3.32,-49z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#034ea2" android:pathData="m855.52,337.5c2.75,13.82 4.67,31.34 5.18,45.66 0.05,1.52 -0.33,1.36 -0.68,2.26 -3.89,0.02 -7.2,-36.84 -5.98,-40.65 -0.57,-2.11 -0.92,-3.31 -1.15,-4.01 -0.23,-0.78 -0.31,-0.93 -0.31,-0.93z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ed1c24" android:pathData="m844.85,335.66c-0.99,-0.03 -2.14,0.25 -2.68,1.18 -0.43,1.21 0.25,2.49 1.07,3.34 1.19,1.46 2.32,3.15 4.11,3.89 1.56,0.55 3.26,-0.13 4.46,-1.18 1.56,-1.3 2.69,-3.04 3.68,-4.81 -0.3,-0.69 -1.21,-0.31 -1.75,-0.63 -2.8,-0.59 -5.59,-1.23 -8.4,-1.77 -0.16,-0.01 -0.32,-0.02 -0.49,-0.02z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#034ea2" android:pathData="m848.85,328.88c-1.51,-0.06 -4.62,0.3 -5.43,4.16 1.82,3.19 0.71,5.66 5.46,5.59 3.62,-0.09 2.56,-0.5 6.11,-0.77 0,0 -6.74,-3.82 -8.2,-4.11 1.43,-0.47 4.02,0.38 8.7,4.45l-0.01,-0.4c-0.08,-1.66 -0.72,-7.96 -5.8,-8.83 0,0 -0.32,-0.07 -0.83,-0.09z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="m856.27,397.06c3.39,-0.13 5.27,-0.33 7.49,-0.47 -0.29,-4.78 -0.69,-11.42 -4.42,-11.18 -3.7,0.23 -3.35,6.86 -3.06,11.65z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="M861.4,383.79a2.45,2.4 90,1 1,-4.79 0a2.45,2.4 90,1 1,4.79 0z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="m850.96,403.69c3.4,0.08 5.3,0 7.5,0 0,-4.8 0,-11.44 -3.75,-11.44 -3.71,0 -3.75,6.65 -3.75,11.44z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:pathData="m810.32,466.35 l68.72,-70.43" android:strokeColor="#000" android:strokeWidth="1.99999988"/> <path android:fillColor="#e8b909" android:pathData="M857.19,390.7a2.45,2.4 90,1 1,-4.79 0a2.45,2.4 90,1 1,4.79 0z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#39b54a" android:pathData="m600.9,429.02c1.17,-1.44 1.48,-3.99 2.49,-5.69 1.27,-2.11 3.42,-4.22 5.7,-5.04a28.15,28.76 0,0 1,8.47 -1.69c2.79,-0.12 6.02,1.12 8.39,0.89 -4.88,1.83 -10.88,2.05 -15.37,4.91 -2.93,1.85 -5.88,4.97 -8.21,7.55 -1.95,2.15 -2.44,4.57 -3.52,7.14" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#39b54a" android:pathData="m634.7,379.66c2.01,-2.79 4.38,-4.79 7.07,-6.95 1.79,-1.45 3.18,-3.41 5.34,-4.31 5.74,-2.4 12.09,2.23 17.99,2.12 -2.56,1.14 -4.8,2.78 -7.57,3.49 -2.75,0.71 -5.47,1.14 -8.33,1.16 -5.06,0.05 -11.75,0.12 -14.65,5.24" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#39b54a" android:pathData="m622.61,375.14c0,0 3.7,-8.6 4.49,-9.35 0.78,-0.75 10.87,-2.61 15.66,-18.02 0,0 0.92,-5.53 2.24,-6.31 0,0 -12.24,8.76 -14.54,12.09 -2.29,3.33 -4.29,9.66 -4.63,11.28 -0.34,1.6 -1.67,5.75 -1.67,5.75" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#39b54a" android:pathData="m602.86,380.8c0,0 0.57,-5.34 0.33,-5.93 -0.25,-0.59 -6.08,-4.22 -3.85,-13.29 0,0 1.31,-3.05 0.73,-3.79 0,0 4.84,7.68 5.16,9.99 0.32,2.31 -0.57,6.03 -0.89,6.93 -0.33,0.91 -0.91,3.36 -0.91,3.36" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#39b54a" android:pathData="m602.28,404.48c0,0 0.57,-10.99 1.03,-12.15 0.47,-1.16 8.87,-7.58 8.25,-26.47 0,0 -0.94,-6.42 -0.01,-7.85 0,0 -8.14,14.86 -9.13,19.49 -0.99,4.63 -0.75,12.4 -0.55,14.31 0.19,1.91 0.33,7 0.33,7" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#39b54a" android:pathData="m622.12,377.43c4.28,-2.14 5.4,-7.12 9.4,-9.53 2.6,-1.56 5.67,-2 8.6,-2.58 2.06,-0.4 4.85,-0.77 6.08,-2.78 -1.83,2.28 -3.98,4.05 -6.04,6.07 -2.18,2.11 -4.01,3.89 -7.02,4.79 -2.29,0.68 -4.67,0.43 -6.91,1.23 -1.87,0.66 -2.97,2.21 -4.54,3.4z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#39b54a" android:pathData="m597.94,444.22c0.76,-1.69 0.97,-3.53 2.22,-4.9 1.39,-1.52 3.78,-3.13 5.62,-4.01 5.11,-2.46 12,-1.5 16.3,-5.56 -1.83,5.28 -8.33,9.9 -13.15,12.22 -2.01,0.97 -4.14,1.89 -6.34,2.25 -1.72,0.29 -3.9,-0.09 -5.54,0.45" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#39b54a" android:pathData="m619.34,391.74c0,0 -0.46,-9.49 -0.08,-10.54 0.37,-1.03 8.46,-7.47 6.01,-23.6 0,0 -1.59,-5.41 -0.77,-6.75 0,0 -7.02,13.66 -7.59,17.73 -0.58,4.08 0.41,10.72 0.8,12.33 0.39,1.62 1.02,5.97 1.02,5.97" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#39b54a" android:pathData="m615.54,391.93c1.87,-4.39 4.89,-7.94 9.25,-9.91 3.34,-1.5 6.91,-2.01 10.5,-2.2 2.18,-0.12 4.21,-0.14 6.33,-0.86 1.54,-0.52 4.21,-1.23 5.19,-2.58 -6.11,3.5 -9.64,10.4 -16.28,13.19 -5.23,2.19 -12.15,1.1 -16.75,4.74" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#39b54a" android:pathData="m602.19,410.16c0,0 0.86,-11.38 5.88,-14.38 0,0 4.89,-2.51 6.97,-4.5 0,0 2.95,-4.13 1.1,-1.5 -1.83,2.62 -3.06,17.25 -3.18,18.13 -0.11,0.87 -1.96,6.5 -5.39,10.75 -3.43,4.25 -5.02,6.87 -5.75,8.39 -0.73,1.5 -1.35,5.5 -1.35,5.5" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#39b54a" android:pathData="m598.65,439.8c0,0 0.86,-12.51 0.49,-13.88 -0.37,-1.38 -9.06,-9.88 -5.75,-31.15 0,0 1.95,-7.12 1.1,-8.87 0,0 7.22,18 7.72,23.38 0.48,5.39 -0.86,14.14 -1.35,16.27 -0.48,2.12 -1.34,7.87 -1.34,7.87" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ed1c24" android:pathData="m608.49,364.81a2.65,2.65 0,0 1,-2.65 2.65,2.65 2.65,0 0,1 -2.65,-2.65 2.65,2.65 0,0 1,2.65 -2.65,2.65 2.65,0 0,1 2.65,2.65zM604.44,403.48a2.65,2.65 0,0 1,-2.65 2.65,2.65 2.65,0 0,1 -2.65,-2.65 2.65,2.65 0,0 1,2.65 -2.65,2.65 2.65,0 0,1 2.65,2.65zM606.31,395.71a2.65,2.65 0,0 1,-2.65 2.65,2.65 2.65,0 0,1 -2.65,-2.65 2.65,2.65 0,0 1,2.65 -2.65,2.65 2.65,0 0,1 2.65,2.65zM627.56,377.14a2.65,2.65 0,0 1,-2.65 2.65,2.65 2.65,0 0,1 -2.65,-2.65 2.65,2.65 0,0 1,2.65 -2.65,2.65 2.65,0 0,1 2.65,2.65zM623.68,382.19a2.65,2.65 0,0 1,-2.65 2.65,2.65 2.65,0 0,1 -2.65,-2.65 2.65,2.65 0,0 1,2.65 -2.65,2.65 2.65,0 0,1 2.65,2.65z" android:strokeColor="#000" android:strokeLineCap="butt" android:strokeLineJoin="miter" android:strokeWidth="1"/> <path android:pathData="m559.32,395.57 l-0.19,-0.39zM569.56,399.89 L568.01,401.1c0.5,-0.27 1.03,-0.66 1.55,-1.21z" android:strokeColor="#000" android:strokeWidth="0.53300369"/> <path android:pathData="m880.68,395.57 l0.19,-0.39zM870.44,399.89 L871.99,401.1c-0.5,-0.27 -1.03,-0.66 -1.55,-1.21z" android:strokeColor="#000" android:strokeWidth="0.53300369"/> <path android:pathData="m631.37,476.35c0,62.57 39.41,113.29 88.03,113.29 48.62,0 88.04,-50.72 88.04,-113.29 0,-62.57 -39.42,-113.3 -88.04,-113.3 -48.62,0 -88.03,50.72 -88.03,113.3"> <aapt:attr name="android:fillColor"> <gradient android:endX="722.58405" android:endY="407.23337" android:startX="718.61755" android:startY="483.0315" android:type="linear"> <item android:color="#FFFFFFFF" android:offset="0"/> <item android:color="#FF1EA8D1" android:offset="1"/> </gradient> </aapt:attr> </path> <path android:fillColor="#395054" android:pathData="m751.62,466.06c7.38,-3.84 23.58,-14.01 31.25,-15.8 2.83,-0.68 15.89,24.64 18.76,25.52v0c0,0 -10.43,1.27 -15.49,-0.7 -5.07,-1.96 -30.07,-7.76 -30.07,-7.76" android:strokeColor="#000" android:strokeWidth="1"/> <path android:pathData="m652.34,538.67c-0.93,0.13 0.43,1.14 0.43,1.14 0,0 3.06,9.76 10.76,19.52 7.7,9.77 25.48,28.61 43.8,30.5 18.3,1.9 31.31,1.23 41.27,-4.46 23.63,-10.63 34.34,-29.57 43.92,-45.45 -25.41,-35.35 -68.85,-56.97 -108.27,-76.52l-0.06,-0.4"> <aapt:attr name="android:fillColor"> <gradient android:endX="721.3574" android:endY="550.0224" android:startX="720.9562" android:startY="464.44504" android:type="linear"> <item android:color="#FFFFFFFF" android:offset="0"/> <item android:color="#FFC1D3E8" android:offset="0.13"/> <item android:color="#FF88B0D5" android:offset="0.3"/> <item android:color="#FF5998C6" android:offset="0.46"/> <item android:color="#FF2C87BC" android:offset="0.62"/> <item android:color="#FF007DB5" android:offset="0.76"/> <item android:color="#FF0077B0" android:offset="0.9"/> <item android:color="#FF0075AF" android:offset="1"/> </gradient> </aapt:attr> </path> <path android:fillColor="#6dbe45" android:pathData="M642.21,481.26 L635.57,484.14c1.5,14.09 9.43,42.26 16.77,54.53 6.15,-0.64 12.12,-2.17 17.78,-4.52 2.93,-0.23 6.53,-2.35 6.54,-4.3 2.94,0.5 12.49,2.31 7.96,-3.3 -5.68,-2.19 -11.49,-4.64 -17.53,-5.35 -2.66,0.23 -7.06,-0.02 -2.16,-1.65 6.99,-2.63 31.33,-1.08 22.38,-6.05 -3.69,-3.25 -13.72,-2.97 -15.23,-3.58 5.97,-1.05 12.13,0.24 17.79,-2.45 3.32,-0.89 6.42,-1.37 1.8,-3.47 -4.42,-3.9 -12.01,-5.32 -14.18,-10.97 1.6,-2.05 5.19,-1.36 1.73,-4.09 -7.17,-2.46 -10.72,-3.92 -16.34,-4.97 -6.87,-0.98 -13.79,-1.53 -20.63,-2.71zM694.37,487.05c-4.12,-0.62 -15.86,-1.47 -10.23,5.4 6.38,3.11 11.82,8.34 18.92,9.68 7.62,1.14 15.07,3.3 22.88,2.62 2.51,0.09 11.34,-0.42 4.6,0.54 -5.34,3.41 -12.69,0.31 -16.96,4.3 3.58,4.34 12.39,4.29 18.32,5.3 9.49,1.6 19.24,0.77 28.72,2.43 3.33,2.03 -5.84,-0.59 -7.77,0.73 -6.22,0.24 -10.04,7.69 -1.97,8.67 6.44,1.8 12.99,2.73 19.4,4.6 4.96,2.51 12.77,2.94 18.11,3.75 10.5,-7.91 18.57,-60.74 13.22,-59.29z" android:strokeColor="#0f0f0f" android:strokeWidth="1"/> <path android:fillColor="#557176" android:pathData="m635.57,484.14c6.08,-5.1 13.85,0.27 20.74,-0.22 6.88,0.44 14.18,0.54 20.31,4.12 -4.82,-3.24 2.69,-4.79 4.31,-5.12 2.29,-0.46 -0.98,-7.88 1.42,-9.08 9.09,1.98 5.16,13.11 1.37,13.75 3.57,0.26 8.69,1.76 15.31,0.47 7.66,-0.38 14.81,-3.66 22.37,-4 6.96,1.19 13.92,0.23 20.92,0.52 6.87,0.38 13.84,0.35 20.65,0.75 7.3,2.36 21.31,-6.9 28.72,-5.48 0,0 16.75,-5.16 9.95,-4.06 -8.84,-1.07 -24,-8.63 -30.94,-11.19 -11.24,-2.32 -22.07,-6.75 -33.59,-7.54 -8.58,-0.04 -17.16,0.84 -25.76,0.38 -7.18,-0.63 -14.75,0.61 -21.64,-1.5 -6.47,-2.82 -13.64,-4.16 -20.59,-2.54 -10.24,0.86 -21.14,-2.48 -30.81,2.16 -4.15,3.44 -1.02,9.46 -2.2,14.14 -0.18,4.82 -0.36,9.63 -0.53,14.45z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#fff" android:pathData="m635.71,456.17c5.93,-0.74 22.61,1.83 28.41,-0.07 4.08,0.02 10.45,-3.83 11.14,1.89 4.28,1.78 8.29,6.23 13.15,5.22 4.68,-2.35 9.57,-3.75 14.76,-2 6.83,1.52 13.83,4.73 20.89,2.35 5.86,-0.66 5.92,3.59 11.11,-0.49 5.54,0.89 10.54,4.11 16.46,2.97 5.62,0.88 13.44,0.37 19.07,-1.48 -4.21,-1.53 -13,-4.61 -17.21,-6.17 -5.94,0.23 -7.15,-1.05 -12.16,-2.43 -5.09,1.43 -6.65,-3.89 -10.28,-5.99 -5.67,-3.81 -5.18,-8.85 -10.49,-13.17 -4.61,-3.89 -11.11,0.1 -15.59,-4.29 -5.49,-2.21 -11.35,-3.29 -16.85,-5.72 -7.37,-0.05 -12.56,6.33 -18.83,9.31 -8.04,4.6 -24.17,11.91 -33.07,15.01" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#949699" android:pathData="m789.84,420.48c0.89,1.64 4.64,14.11 4.64,14.11 -12.43,-13.97 -41.52,-23.77 -75.43,-23.77 -33.44,0 -62.41,9.56 -75.12,23.22 -0.21,0.22 1.94,-6.25 4.47,-12.44 2.48,-6.04 5.35,-11.81 5.54,-11.92 14.96,-9.32 38.56,-15.33 65.11,-15.33 26.74,0 50.5,6.09 65.43,15.53 0,0 4.61,7.46 5.35,10.6z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ffdd00" android:pathData="m735.05,419.18 l-8.54,-5.42 1.56,9.99 -5.82,-8.28 -2.38,9.83 -2.21,-9.87 -5.96,8.17 1.74,-9.97 -8.64,5.27 5.42,-8.54 -10,1.56 8.28,-5.82 -9.83,-2.38 9.87,-2.21 -8.17,-5.96 9.97,1.74 -5.27,-8.64 8.54,5.42 -1.56,-9.99 5.82,8.28 2.38,-9.83 2.21,9.87 5.96,-8.17 -1.74,9.97 8.64,-5.27 -5.42,8.54 9.99,-1.56 -8.28,5.82 9.83,2.38 -9.87,2.21 8.17,5.97 -9.97,-1.74z" android:strokeColor="#000" android:strokeLineCap="butt" android:strokeLineJoin="miter" android:strokeWidth="1"/> <path android:fillColor="#000" android:pathData="m722.54,408.16c0,0.21 -1.16,0.88 -2.64,0.88 -1.48,0 -2.73,-0.66 -2.73,-0.88 -0,-0.21 1.2,-0.39 2.68,-0.39 1.48,0 2.68,0.17 2.68,0.39zM725.92,400.28c0,0.57 -0.48,1.03 -1.08,1.03 -0.6,0 -1.08,-0.47 -1.08,-1.03 0,-0.57 0.48,-1.03 1.08,-1.03 0.6,0 1.08,0.47 1.08,1.03m-9.94,-0.14c0,0.57 -0.48,1.04 -1.08,1.04 -0.6,0 -1.08,-0.47 -1.08,-1.04 0,-0.57 0.48,-1.03 1.08,-1.03 0.6,0 1.08,0.47 1.08,1.03" /> <path android:pathData="m718.71,411.02 l2.04,-0.05m1.9,-10.73c1.17,-1.78 3.11,-1.7 4.45,0m-9.1,4.34c0.7,0.06 1.19,0.39 1.91,0.42 0.75,0.04 1.18,-0.3 1.81,-0.49m-9.01,-4.4c1.17,-1.78 3.11,-1.7 4.45,0" android:strokeColor="#000" android:strokeWidth="0.93854994"/> <path android:pathData="m750.92,404.12c0.12,-1.39 -0.69,-2.87 -2.02,-3.36 -1.49,-0.06 -0.78,2.04 0.16,2.43 2.3,1.54 5.3,1.57 7.53,3.25 1.19,0.87 3.22,0.7 3.86,-0.75 0.28,-1.29 -1.51,-1.45 -2.37,-1.1 -0.76,0.35 -2.24,0.65 -2.28,1.53 0.09,1.5 -1.19,2.96 -0.48,4.45 0.49,1.57 2.04,0.6 1.67,-0.7 0.04,-1.38 -1.37,-1.92 -2.46,-2.27 -1.51,-0.48 -3.04,-0.92 -4.51,-1.52 -1.19,-0.56 -2.98,0.12 -2.74,1.63 1.05,1.41 3.25,-0.41 3.4,-1.8 0.15,-0.58 0.21,-1.19 0.23,-1.79z" android:strokeColor="#000" android:strokeWidth="1.5"/> <path android:fillColor="#000" android:pathData="m771.66,411.95c1.28,0.55 1.96,-1.01 2.71,-1.34 1.63,0.11 2.5,1.82 2.49,3.3 0.22,0.75 -0.42,2.44 -0.06,2.63 1.73,-1.74 1.4,-4.79 -0.12,-6.57 -1.07,-1.27 -2.66,-2.22 -4.33,-2.32 -1.13,0.02 -2.34,0.87 -2.23,2.1 0.01,0.9 0.51,2.09 1.53,2.2zM772.02,409.19c1.45,-0.14 0.52,2.27 -0.41,1.08 -0.27,-0.38 -0.05,-0.99 0.41,-1.08zM773.7,413.05c-1.15,-0.8 -2.11,0.59 -2.91,0.77 -1.58,-0.44 -2.1,-2.27 -1.82,-3.73 -0.07,-0.78 0.87,-2.31 0.56,-2.57 -1.98,1.33 -2.26,4.27 -1.23,6.29 0.79,1.54 2.21,2.86 3.9,3.31 1.11,0.21 2.47,-0.38 2.6,-1.62 0.16,-0.89 -0.12,-2.14 -1.09,-2.45m-0.88,2.63c-1.47,-0.12 -0.08,-2.33 0.61,-0.97 0.19,0.42 -0.13,0.98 -0.61,0.97zM672.31,408.85c-0.58,-0.69 -0.56,-2.52 -1.66,-2.26 -1.81,0.36 -3.52,1.46 -4.38,3.12 -1.45,-1.61 -3.97,-1.97 -5.91,-1.11 -0.04,1.15 -0.08,2.3 -0.12,3.45 0.95,-1.34 2.82,-2.56 4.45,-1.64 1.53,0.95 -0.18,3.01 0.73,4.37 0.65,1.73 3.6,1.33 3.44,-0.64 -0.08,-1.31 -0.56,-2.77 -1.77,-3.42 0.41,-0.85 1.41,-1.49 2.31,-1.83 0.93,-0.32 1.97,-0.34 2.91,-0.05zM667.34,413.03c0.67,0.88 -0.72,2.1 -0.97,0.65 -0.6,-0.94 0.25,-3.05 0.97,-0.65zM692.34,400.13c-0.36,-0.5 -2.31,-0.65 -1.18,0.19 0.35,1.75 -2.27,0.71 -3.23,1.21 -1.21,0.22 -2.93,1.81 -3.93,0.76 -0.02,-1.66 -2.02,0.63 -0.71,1.27 0.8,0.95 2.4,-0.03 2.5,1.46 0.73,1.46 1.5,2.99 2.84,3.99 1.76,0.59 2.09,-1.96 2.28,-3.18 0.32,-1.02 0.04,-2.47 0.2,-3.24 1.01,-0.2 2.82,-1.6 1.25,-2.46zM689.05,407.23c-1.43,-0.38 -1.91,-2.09 -2.33,-3.31 0.3,-0.97 2.53,-1.86 3.03,-0.83 0.01,1.25 0.27,2.6 -0.27,3.77l-0.18,0.21 -0.25,0.15" /> <path android:fillColor="#161e20" android:pathData="m707.96,523.05v1.82c-1.2,-0.6 -2.47,-1.26 -3.38,-1.64 -3.48,0.45 -6.69,1.38 -8.84,4.17 3.62,0.83 7.24,0.67 10.86,1.5 -1.56,0.95 -2.61,2.64 -2.61,4.57 0,1.53 0.66,2.91 1.71,3.89l-4.39,14.94h-0.36v-16.6h-4.95v16.6h-3.13v2.57l-16.09,-4.31 -0.49,1.84 10.96,2.94c2.62,3.4 4.24,4.72 7.87,6.79 22.44,1 29.45,-0.01 49.53,-0.31 0,-0.29 -0.47,-2.56 -0.47,-2.56 -0.94,-0.01 0.03,-0.57 0.39,-0.87 1.04,-1.1 1.24,-1.95 1.66,-3.23l0.03,-0.12 -1.09,0.02v-2.75h-3.68l-6.62,-23.86c-1.13,0.28 -2.35,0.21 -3.48,-0.01l-4.94,16.54c-1.29,-0.48 -2.69,-0.76 -4.15,-0.76 -2.46,0 -4.74,0.76 -6.63,2.05l-2.58,-8.74c1.16,-0.99 1.91,-2.43 1.91,-4.05 0,-1.9 -1.01,-3.56 -2.52,-4.52 1.88,-0.42 4.96,-0.76 10.14,-0.42 -0.92,-2.01 -4.95,-3.96 -6.12,-4.11 -2.1,-0.19 -3.69,0.74 -5.53,1.21v-2.58zM731.89,530.33v18.78c-1.16,-1.59 -2.7,-2.88 -4.5,-3.74zM734.4,530.46 L740.46,552.31L734.4,552.31ZM706.82,540.81c0.12,0.72 0.51,1.35 1.06,1.78 -0.42,0.43 -0.68,1.02 -0.68,1.67 0,0.68 0.29,1.3 0.76,1.74v6.32h-4.48zM712.13,541.03 L713.94,547.71c-1.27,1.28 -2.25,2.85 -2.84,4.6h-0.11v-6.29c0.48,-0.43 0.78,-1.06 0.78,-1.76 0,-0.64 -0.25,-1.23 -0.67,-1.66 0.5,-0.38 0.87,-0.94 1.02,-1.57z" /> <path android:fillColor="#ffdd00" android:pathData="m813.71,609.15c28.38,-18.26 33.02,-74.02 32.59,-81.62 -0.42,-7.6 -0.7,-96.64 -0.7,-96.64l-8.4,8.43c15.28,-15.64 33.16,-33.96 42.24,-43.36 2.91,-3.01 0.83,116.66 0.83,169.8 0,24.92 -15.21,112.82 -104.43,68.58 -14.29,1.76 -44.28,-34.56 -44.27,-34.56 51.46,35.43 82.15,9.37 82.15,9.37zM626.29,609.15c-28.38,-18.26 -33.02,-74.02 -32.59,-81.62 0.42,-7.6 0.7,-96.64 0.7,-96.64l8.4,8.43c-15.28,-15.64 -33.16,-33.96 -42.24,-43.36 -2.91,-3.01 -0.83,116.66 -0.83,169.8 0,24.92 15.21,112.82 104.43,68.58 14.29,1.76 44.28,-34.55 44.27,-34.56 -51.46,35.43 -82.15,9.37 -82.15,9.37z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#034ea2" android:pathData="m846.29,527.54c0.44,7.61 -4.21,63.36 -32.59,81.62 0,0 -30.69,26.06 -82.15,-9.37 15.56,6.56 28.26,7.94 36.58,5.42 24.88,-7.51 51.19,-36.87 55.38,-66.57 4.21,-29.71 3.15,-88.07 3.15,-88.07l18.93,-19.68c0,0 0.26,89.03 0.7,96.64zM593.71,527.54c-0.44,7.61 4.21,63.36 32.59,81.62 0,0 30.69,26.06 82.15,-9.37 -15.56,6.56 -28.26,7.94 -36.58,5.42 -24.88,-7.51 -51.19,-36.87 -55.38,-66.57 -4.21,-29.71 -3.15,-88.07 -3.15,-88.07l-18.93,-19.68c0,0 -0.26,89.03 -0.7,96.64z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ed1c24" android:pathData="m809.86,489.07c0.25,-2.69 0.44,-12.27 0.46,-22.72l16.36,-16.61c-0.22,30.01 0.67,59.8 -3.15,88.89 -4.21,29.71 -29.79,59.07 -54.67,66.58 -8.32,2.52 -21.74,1.14 -37.3,-5.42 39.75,-24.66 73.55,-67.32 78.31,-110.72zM630.14,489.07c-0.25,-2.69 -0.44,-12.27 -0.46,-22.72l-16.36,-16.61c0,0 -0.67,59.8 3.15,88.89 4.21,29.71 29.79,59.07 54.67,66.58 8.32,2.52 21.74,1.14 37.3,-5.42 -39.75,-24.66 -73.55,-67.32 -78.31,-110.72z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#034ea2" android:pathData="m559.22,398.42c-0.72,11.37 -4.44,48.01 -1.61,58.54l2.92,0.6c0.87,-19.98 1.32,-35.88 1.56,-56.4 0.83,-1.83 -1.45,-2.02 -2.87,-2.74z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#b1babf" android:pathData="m919.8,357.14c-5.73,7 -23.88,12.51 -23.88,12.51a36.57,37.36 0,0 1,-3.58 12.18c-0.52,-0.43 -0.94,-0.72 -1.17,-0.75l-0.85,0.37c-1.75,-1.53 -6.92,-5.82 -8.67,-4.67 -2.03,1.37 2.51,6.83 4.52,9.05l-0.23,0.59c0.01,0.25 0.42,0.85 1,1.59l0.02,0.02c-0.99,-0.37 -1.89,-0.34 -2.43,0.21 -0.45,0.44 -0.56,1.17 -0.37,1.99 -1.22,0.22 -2.46,0.88 -3.51,1.93 -2.24,2.26 -2.68,5.49 -1.01,7.23 1.69,1.73 4.84,1.3 7.07,-0.96a6.76,6.91 0,0 0,1.93 -3.58c0.8,0.2 1.49,0.11 1.95,-0.35 0.53,-0.53 0.57,-1.45 0.22,-2.46l0.15,0.16 0.7,0.42c0.23,-0.01 0.69,-0.25 1.23,-0.63 1.16,1.25 3.01,3.7 2.8,6.42 -0.32,3.89 -3.53,5.76 -3.53,5.76l-0.14,0.14c1.48,0.67 3.11,1.02 4.83,1.02 6.83,0 12.38,-5.81 12.38,-13a12.97,13.25 0,0 0,-0.6 -3.98h-0.06c0,0 -3.14,3.82 -6.58,3.19a11.41,11.65 0,0 1,-5.71 -3.28c0.23,-0.49 0.37,-0.98 0.32,-1.43 -0.01,-0.19 -0.24,-0.57 -0.57,-1.02 2.32,-2.79 7.8,-3.51 12.47,-3.53 0.46,-3.41 5.73,-16.95 11.28,-25.13zM520.2,357.14c5.55,8.19 10.82,21.72 11.28,25.13 4.68,0.01 10.16,0.74 12.47,3.53 -0.33,0.44 -0.56,0.83 -0.57,1.02 -0.05,0.45 0.09,0.94 0.32,1.43a11.41,11.65 0,0 1,-5.71 3.28c-3.44,0.63 -6.58,-3.19 -6.58,-3.19h-0.06a12.97,13.25 0,0 0,-0.6 3.98c0,7.19 5.55,13 12.38,13 1.72,0 3.35,-0.35 4.83,-1.02l-0.14,-0.14c0,0 -3.21,-1.87 -3.53,-5.76 -0.22,-2.72 1.64,-5.16 2.8,-6.42 0.54,0.39 1,0.62 1.23,0.63l0.7,-0.42 0.15,-0.16c-0.35,1.01 -0.31,1.92 0.22,2.46 0.46,0.46 1.15,0.55 1.95,0.35a6.76,6.91 0,0 0,1.93 3.58c2.24,2.26 5.39,2.69 7.07,0.96 1.67,-1.73 1.23,-4.97 -1.01,-7.23 -1.04,-1.05 -2.29,-1.71 -3.51,-1.93 0.19,-0.82 0.08,-1.55 -0.37,-1.99 -0.53,-0.54 -1.44,-0.57 -2.43,-0.2l0.02,-0.02c0.57,-0.74 0.99,-1.35 1,-1.59l-0.23,-0.59c2.01,-2.23 6.55,-7.68 4.52,-9.05 -1.74,-1.15 -6.91,3.14 -8.67,4.67l-0.85,-0.37c-0.23,0.02 -0.65,0.31 -1.17,0.75a36.57,37.36 0,0 1,-3.58 -12.18c0,0 -18.15,-5.5 -23.88,-12.51z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ed1c24" android:pathData="m878.53,461.66c-3.27,-20.72 -0.95,-41.21 -3.6,-60.65l3.27,-2.44c1.38,19.24 5.38,45.13 2.8,62.92" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#034ea2" android:pathData="m881.05,395.83c1.83,16.63 6.91,42.43 5.24,57.63 -0.16,1.26 -1.18,2.12 -1.79,3.17 -8.28,-17.33 -1.45,-41.43 -6.64,-59.17 1.06,-0.54 2.12,-1.09 3.19,-1.63z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ed1c24" android:pathData="m870.13,392.99c-0.95,0.01 -2.08,0.2 -2.63,1.07 -0.45,3.03 2.51,5.5 4.59,7.08 1.23,0.67 2.76,0.52 3.93,-0.18 1.87,-1.1 3.18,-2.9 4.29,-4.72 0.2,-0.34 0.41,-0.73 0.58,-1.07h-0.04l-8.95,-1.91c-0.57,-0.19 -1.17,-0.27 -1.77,-0.27z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#034ea2" android:pathData="m875.23,384.29c-1.47,-0.07 -3.26,0.44 -4.52,2.74 -0.46,4.85 1.19,6.23 3.61,6.98 3.51,0.98 2.6,0.28 6.07,1.08 0,0 -5.41,-5.72 -6.69,-6.37 1.5,-0.04 3.74,1.53 7.07,6.84l0.12,-0.38c0.39,-1.62 1.57,-7.84 -3.03,-10.18 0,0 -1.16,-0.64 -2.63,-0.71z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="m881.43,468.93c-0.28,-4.79 -0.64,-11.43 3.06,-11.66 3.74,-0.23 4.14,6.4 4.42,11.23 -2.2,0.16 -4.08,0.36 -7.48,0.49" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="M887.02,455.53a2.45,2.4 90,1 1,-4.79 0a2.45,2.4 90,1 1,4.79 0z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="m876.51,471c3.4,0.08 5.3,0 7.5,0 0,-4.8 0,-11.45 -3.75,-11.45 -3.7,0 -3.75,6.65 -3.75,11.45z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="M882.72,458.84a2.45,2.4 90,1 1,-4.79 0a2.45,2.4 90,1 1,4.79 0z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:pathData="m628.74,465.59 l-67.78,-69.67" android:strokeColor="#000" android:strokeWidth="1.99999988"/> <path android:fillColor="#ed1c24" android:pathData="m563.44,455.23c2.76,-20.27 1.34,-36.2 1.64,-54.23l-3.27,-2.44c-0.43,20.28 -0.71,37.69 -1.55,56.4" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="m560.86,468.4c0.28,-4.79 0.64,-11.43 -3.06,-11.66 -3.74,-0.23 -4.14,6.4 -4.42,11.23 2.2,0.16 4.08,0.36 7.48,0.49" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="M555.3,455.35a2.4,2.45 0,1 0,4.79 0a2.4,2.45 0,1 0,-4.79 0z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="m565.73,468.59c-3.4,0.08 -5.3,0 -7.5,0 0,-4.8 0,-11.45 3.75,-11.45 3.7,0 3.75,6.65 3.75,11.45z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#e8b909" android:pathData="M559.51,456.42a2.4,2.45 0,1 0,4.79 0a2.4,2.45 0,1 0,-4.79 0z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ed1c24" android:pathData="m568.1,393.26c-2.95,0.78 -5.94,1.41 -8.95,1.91 -0.01,-0 -0.03,0 -0.04,0l0.01,0.01h-0.01c0,0 0,-0 0.01,0l0.19,0.38c0.88,1.64 4.52,7.79 8.7,5.54 1.7,-1.1 2.81,-2.76 4.07,-4.31 1.44,-3.55 -1.55,-4.06 -3.98,-3.53z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#034ea2" android:pathData="m564.77,384.29c-1.47,0.07 -2.63,0.71 -2.63,0.71 -4.6,2.34 -3.42,8.56 -3.03,10.18l0.12,0.38c3.33,-5.31 5.57,-6.88 7.07,-6.84 -1.28,0.65 -6.69,6.37 -6.69,6.37 3.47,-0.8 2.57,-0.09 6.07,-1.08 4.4,-1.13 1.99,-0.62 3.47,-1.29 0.54,-2.45 0.14,-5.69 0.14,-5.69 -1.26,-2.3 -3.05,-2.81 -4.52,-2.74z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#452c25" android:pathData="m696.54,317.39c-4.42,5.92 -9.06,11.84 -12.09,18.62 -0.98,3.42 -3.74,6.01 -5.3,9.2 -1.75,2.58 -2.04,5.74 -4.21,8.05 -1.71,2.38 -0.45,4.41 -2.33,6.82 -0.69,3.69 -3,6.85 -4.17,10.44 -1.38,1.93 -1.09,6.82 1.7,3.2 1.6,-1.2 2.06,-4.59 3.71,-3.07 2.94,-1.54 4.16,-4.68 7.39,-5.21 2.19,-1.26 5.37,-5.02 6.35,-5.3 -1.52,3.07 1.75,1.25 2.81,-0.09 -0.74,1.74 -0.74,7.86 1.61,4.03 3.04,-3.65 5.89,-7.46 8.44,-11.48 -0.87,3.32 -2.36,6.82 -1.57,10.28 1.77,0.47 3.57,-3.94 5.23,-5.35 1.29,-1.37 3.43,-5.81 2.62,-1.69 0.22,4.56 2.36,-1.1 3.47,-2.49 4.86,-7.5 9.89,-15.28 17.22,-20.6 2.01,-1.5 7.81,0.46 5.61,-3.87 -2.98,-5 -8.9,-7.01 -14.17,-8.68 -7.22,-1.98 -14.83,-3.29 -22.33,-2.82z" android:strokeColor="#000" android:strokeWidth="2"/> <path android:fillColor="#c69024" android:pathData="m719.63,355.78c-26.74,0 -50.78,14.14 -67.79,36.21 -17.01,22.08 -27.3,52.19 -27.3,85.3 -0,33.12 10.29,63.22 27.3,85.3 17.01,22.08 41.05,36.21 67.79,36.21 26.74,0 50.78,-14.14 67.79,-36.21 17.01,-22.08 27.3,-52.18 27.3,-85.3 0,-33.12 -10.29,-63.22 -27.3,-85.3 -17.01,-22.08 -41.05,-36.21 -67.79,-36.21zM719.63,368.68c22.21,0 42.5,11.62 57.57,31.19 15.07,19.57 24.62,47 24.62,77.43 0,30.43 -9.55,57.86 -24.62,77.43 -15.07,19.57 -35.35,31.19 -57.57,31.19 -22.21,0 -42.5,-11.62 -57.57,-31.19 -15.07,-19.57 -24.62,-47 -24.62,-77.43 0,-30.43 9.55,-57.86 24.62,-77.43 15.07,-19.57 35.35,-31.19 57.57,-31.19z" android:strokeColor="#0a0802" android:strokeLineCap="round" android:strokeLineJoin="round" android:strokeWidth="1"/> <path android:fillColor="#c69024" android:pathData="m756.7,363.96 l0.28,0.2 -5.6,13.33 -0.18,-0.11c-4.4,-2.78 -17.48,-8.28 -33.48,-8.06 -12.72,0.18 -26.92,6.03 -30.24,7.91 1.05,-2.65 -5.64,-13.29 -5.64,-13.29l1.5,-0.88c0,0 18.39,-10.73 34.51,-10.94 22,-0.29 38.87,11.83 38.87,11.83" android:strokeColor="#080101" android:strokeWidth="1"/> <path android:fillColor="#b1babf" android:pathData="m636.39,586.94c-9.26,0.25 -15.77,10.43 -14.9,10.06 1.31,-0.55 7.02,1.66 11.42,9.22 1.21,2.08 1.87,4.61 2.2,7.18h-3.91v4.66c-2.56,-0.28 -5.51,-2.64 -7.81,-4.98 -1.9,1.48 -10.63,5.29 -17.75,6.93 -0.57,0.13 -1.15,0.18 -1.7,0.28 0.53,-0.04 1.12,0.05 1.72,0.1 7.01,0.59 17.86,6.51 17.86,6.51 2.31,-1.84 4.91,-3.31 7.68,-4.33v4.47l3.72,0.12c0.2,4.19 1.38,7.43 2.8,7.43 1.42,0 2.6,-3.2 2.8,-7.37l3.73,-0.18v-2.92h169.76c0,0 1.11,-0.66 1.11,-4.06h0.01c0,-3.41 -1.11,-3.71 -1.11,-3.71L644.25,616.35v-2.95h-3.9c1.91,-15.66 11.47,-16.77 11.47,-16.77 -5.1,-6.97 -10.1,-9.49 -14.52,-9.69 -0.3,-0.01 -0.61,-0.02 -0.9,-0.01z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#b87510" android:pathData="m655.42,620.46c0,1.17 0.02,2.32 0.07,3.48h126.56a90.35,90.35 0,0 0,-0.02 -7.55L655.5,616.39c-0.06,1.35 -0.1,2.7 -0.1,4.07z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#b76e11" android:pathData="m655.51,616.38h126.52c-0.08,-1.91 -0.22,-3.8 -0.42,-5.68L655.93,610.7c-0.2,1.87 -0.34,3.77 -0.42,5.68z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ac620e" android:pathData="m655.94,610.69h125.68c-0.2,-1.88 -0.45,-3.74 -0.76,-5.58L656.7,605.11c-0.31,1.84 -0.57,3.7 -0.77,5.58z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#a2550b" android:pathData="m776.82,599.51h-116.1c-2.33,0 -3.7,3.7 -4.02,5.58h124.15c-0.32,-1.88 -1.81,-5.58 -4.02,-5.58z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#b76e11" android:pathData="m655.91,630.01h125.72c0.2,-2 0.35,-4.02 0.42,-6.07L655.5,623.94c0.08,2.05 0.22,4.07 0.42,6.07z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#ac620e" android:pathData="m656.56,634.94h124.43c0.26,-1.62 0.47,-3.27 0.65,-4.93L655.92,630.01c0.17,1.66 0.38,3.3 0.64,4.93z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#a2550b" android:pathData="M660.71,640.2L776.8,640.2c2.28,0 3.9,-3.48 4.18,-5.25L656.55,634.95c0.28,1.78 1.72,5.25 4.15,5.25z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#c69024" android:pathData="m671.4,640.34c-1.14,-3.61 -1.95,-12.01 -2.09,-20.9 -0.13,-8.9 2.56,-20.28 2.56,-20.28h-6.27c0,0 -2.7,11.39 -2.56,20.28 0.14,8.89 0.95,17.29 2.1,20.9zM766.43,640.4c1.15,-3.61 1.95,-12.01 2.09,-20.9 0.13,-8.9 -2.56,-20.28 -2.56,-20.28h6.27c0,0 2.7,11.39 2.56,20.28 -0.14,8.89 -0.95,17.29 -2.1,20.9zM708.86,640.34c-0.94,-5.4 -1.05,-12.53 -1.05,-20.9 0,-8.37 0.89,-17.9 1.52,-20.28h-6.27c-1.1,3.55 -1.51,13.04 -1.51,20.28 0,7.24 0.2,15.68 1.04,20.9zM728.44,640.34c0.94,-5.4 1.05,-12.53 1.05,-20.9 0,-8.37 -0.89,-17.9 -1.52,-20.28h6.27c1.1,3.55 1.51,13.04 1.51,20.28 0,7.24 -0.2,15.68 -1.04,20.9z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#c69024" android:pathData="m686.12,620.17c3.7,6.65 11.28,20.39 11.28,20.39l5.3,-0.16c0,0 -3.09,-6.54 -11.43,-20.63 -8.35,-14.1 -13.94,-20.82 -13.94,-20.82l-5.3,0.15c0,0 10.39,14.42 14.09,21.07zM751.71,620.17c-3.7,6.65 -11.28,20.39 -11.28,20.39l-5.3,-0.16c0,0 3.09,-6.54 11.43,-20.63 8.34,-14.1 13.94,-20.82 13.94,-20.82l5.3,0.15c0,0 -10.39,14.42 -14.09,21.07z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#c69024" android:pathData="m688.61,620.17c-3.7,6.65 -11.28,20.39 -11.28,20.39l-5.3,-0.16c0,0 3.09,-6.54 11.43,-20.63 8.35,-14.1 13.94,-20.82 13.94,-20.82l5.3,0.15c0,0 -10.39,14.42 -14.09,21.07zM749.23,620.17a8113.7,8113.7 0,0 1,11.28 20.39l5.3,-0.16c0,0 -3.09,-6.54 -11.43,-20.63 -8.35,-14.1 -13.95,-20.82 -13.95,-20.82l-5.3,0.15c0,0 10.4,14.42 14.1,21.07z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:pathData="m700.09,595.15a68.39,69.87 0,0 0,38.98 -0.15" android:strokeColor="#000" android:strokeWidth="1.50631464"/> <path android:fillColor="#c69024" android:pathData="m733.91,584.17c-5.21,1.27 -10.56,1.88 -15.93,1.84 -4.65,-0.14 -9.27,-0.85 -13.75,-2.12l-3.48,11.49c-0.08,8.5 35.79,8.48 36.96,0.54z" android:strokeColor="#080101" android:strokeWidth="1"/> <path android:fillColor="#c69024" android:pathData="m741.49,595.34c-3.45,-2.97 -4.45,-7.66 -4.04,-11.79l-4.37,-0.19c-0.84,4.34 1.16,12.6 5.08,14.18zM696.58,595.46c3.13,-3.09 4.71,-8.22 4.29,-12.29l4.39,-0.18c0.66,4.29 -1.64,12.26 -5.01,14.56z" android:strokeColor="#080101" android:strokeWidth="1"/> <path android:fillColor="#c69024" android:pathData="m760.88,366.99 l-0.08,0.04c-4.14,3.1 -6.3,7.15 -6.15,11.96 0,0 -5.01,-1.29 -5.01,-1.53 0.1,-4.45 3.92,-12.47 7.79,-13.82 0.04,0 3.45,3.36 3.45,3.36zM677.18,366.76 L677.26,366.8c4.14,3.1 5.84,8.19 5.69,13.01 0,0 5.23,-1.87 5.23,-2.11 -0.09,-4.44 -3.27,-13.1 -7.12,-14.43 -0.73,0.5 -3.18,2.97 -3.88,3.5z" android:strokeColor="#080101" android:strokeWidth="1"/> <path android:fillColor="#452c25" android:pathData="m766.55,242.7c-14.87,0.46 -12.62,15.84 -12.62,15.84 -7.47,7.25 -17.69,8.16 -27.01,12.17 -1.69,5.67 -31.86,2.5 -35.86,0.45 -3.23,6.29 -21.04,-12.85 -19.98,-17.07 -39.77,-21.83 -106.96,10.37 -135.46,29.13 0.3,-0.1 3.3,-1.3 5.01,-1.97 0.58,-0.07 3.64,-0.44 7.86,-1.22 -0.03,0.71 0.81,1.57 5.02,1.68 1.83,0.05 4.15,-0.05 7.01,-0.45 -1.12,0.87 -1.95,1.67 -2.2,2.3 -0.56,1.39 8.6,0.45 20.86,-2.62 -3.95,2.37 -5.61,4.77 3.38,4.96 0,0 5.75,-1.21 13.83,-3.57 -2.31,2.07 -4.74,4.53 -3.61,4.86 1.38,0.42 5.6,3.15 19.55,-2.76 -2.44,2.25 -4.96,4.78 -4.37,5.28 0.6,0.49 6.72,-0.21 14.59,-2.9l-4.3,5.98c0,0 1.43,6.61 18.1,-4.05 -2.41,3.17 -5.11,7.06 -4.61,8.05 0.6,1.18 6.5,1.28 13.38,-2.18 -2.35,3.37 -4.83,7.43 -3.73,8.29 1.33,1.05 6.71,1.28 12.51,-2.27 -1.72,2.86 -4.02,7.05 -3.22,7.8 0.86,0.8 4.87,2.8 10.22,-0.29 -0.99,2.89 -1.95,6.58 -0.59,7.15 1.71,0.72 5.4,0.04 9.21,-4.06 -0.18,3.65 -0.11,7.41 0.96,7.68 7.69,-4.5 8.03,-5.74 7.44,-4.9 -0.59,0.84 -2.12,3.76 1.85,7.59 1.3,0.88 4.39,1.27 8.18,-5.19 -0.12,3.66 -0.18,7.89 0.22,8.43 0.66,0.9 6.38,0.95 7.39,-6.88 0.46,3.99 1.38,9.56 2.95,9.94l39.74,-10.75c0.31,8.92 6.49,9.19 7.2,8.28 0.42,-0.52 0.51,-4.76 0.52,-8.42 3.56,6.61 6.67,6.36 7.99,5.53 0.99,-0.62 0.95,-5.5 0.84,-8.49 2.71,4.22 6.83,6.44 8.53,6.2 1.41,-0.19 1.26,-4.82 1,-7.92 3.74,4.48 7.52,5.38 9.29,4.72 1.38,-0.51 0.56,-4.2 -0.33,-7.13 5.23,3.28 9.3,1.43 10.19,0.67 0.83,-0.72 -1.38,-5.07 -3,-8 5.68,3.82 11.1,3.84 12.46,2.84 1.16,-0.84 -1.39,-5.15 -3.71,-8.59 6.86,3.89 12.91,4.06 13.56,2.89 0.54,-0.96 -2.04,-4.98 -4.34,-8.25 16.31,11.36 17.96,4.8 17.96,4.8l-3.85,-5.5c7.74,2.53 13.71,3.17 14.29,2.69 0.43,-0.36 -0.79,-1.78 -2.41,-3.37 12.71,4.31 16.44,1.59 17.75,1.13 1.17,-0.41 -1.74,-2.9 -4.27,-4.83 7.26,2.53 12.31,3.89 12.31,3.89 9.69,0.37 7.17,-2.47 2.76,-5.19 10.65,3.42 18.35,4.73 17.92,3.41 -0.55,-1.71 -4.89,-4.93 -8.64,-7.47 7.96,3.6 13.42,5.27 16.95,6.06 7.38,1.64 4.02,-1.15 4.02,-1.15l-9.55,-5.42c4.37,1.68 7.68,2.63 10.08,3.17 7.38,1.64 4.02,-1.15 4.02,-1.15l-13.27,-7.53c0,-0.1 -0.04,-0.2 -0.04,-0.2 6,4.38 22.45,7.44 22.45,7.44h0.01c0,0 -1.64,-1.1 -3.75,-2.48 1.6,0.84 4.1,2.13 4.1,2.13 0,0 3.83,1.73 0.11,-0.69 -5.41,-3.53 -12.71,-8.09 -16.01,-9.29 -5.59,-2.03 -32.9,-14.39 -37.09,-16.42 -4.2,-2.03 -22.12,-7.1 -27.02,-7.86 -4.89,-0.76 -29.1,-3.04 -47.5,-4.82 -1.15,-0.11 -2.22,-0.15 -3.21,-0.12z" android:strokeColor="#000" android:strokeWidth="2"/> <path android:pathData="m696.68,357.58 l8.91,-19.8m-17.98,22.35 l12.93,-26.14m-23.36,32.76 l17.3,-34.78m-16.62,-17.78 l6.34,-19.64m-123.67,-13.29 l43.76,-23.41m269.38,22.66 l-25.09,-16.23m13.68,16.74 l-19.39,-13.89m10.11,17.95 l-20.83,-17.24m5.76,18.53 l-20.05,-19.24m6.56,22.94 l-20.85,-21.87m8.97,22.56 l-21.47,-21.84m7.36,22.54 l-18.78,-22.54m9.56,27.9L772.86,275m7.61,27.58 l-12.61,-22.23m5.41,29.56 l-12.91,-27.41m3.96,29.82 l-8.24,-24.47m-1.29,26.18 l-5.49,-25.47m-61.35,27.83 l0.23,-19.29m-18.66,14.11 l9.13,-19.28m-17.75,16.2 l10.95,-20.97m-17.95,13.45 l9.53,-15.38m-18.3,9.36 l12.24,-16.43m-21,10.56 l17.02,-22.46m-30.82,20.53 l20.55,-20.2m-30.78,17.82 l17.5,-15.85m-33.44,13.75 l22.33,-14.76m-39.54,13.37 l31.69,-18.49" android:strokeColor="#000" android:strokeLineCap="butt" android:strokeLineJoin="miter" android:strokeWidth="2"/> <path android:fillColor="#d9c0b9" android:pathData="m741.9,357.31c0,0 2.49,3.1 2.18,4.1 0,0 2.56,-2.58 -0.74,-6.24zM721.32,351.43h1.5l0.56,1.4 -0.21,1.28 -1.3,0.6c0,0 -2.11,-0.55 -1.6,1.98 0,0 -0.99,-4.64 1.05,-5.26zM731.86,361.82 L733.4,360.12 735.06,360.99c0,0 -0.69,4.5 -0.95,4.83 -0.26,0.33 -0.3,0.38 -0.3,0.51 0,0.13 -0.27,-0.85 -0.77,-1.42 -0.5,-0.56 -1.01,-3.04 -1.18,-3.09zM715.75,356.23 L714.99,353.96 715.87,352.76 717.66,352.75 718.41,353.11c0,0 1.44,3.27 0.18,4.98 0,0 -0.53,-1.84 -1.14,-2.1 0,0 -1.33,-0.2 -1.7,0.24zM699.07,360.14c0,0 -2.51,4.2 0.75,6.3 0,0 -0.2,-3.92 2.35,-4.76zM690.43,358.44 L692.7,357.85 692.92,357.95c0,0 -1.49,2.87 -1.09,3.57 0.41,0.7 -2.03,-1.27 -1.4,-3.08z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#bd8759" android:pathData="m730.39,333.74c-0.06,3.86 0.3,7.74 -0.1,11.59 -0.24,2.09 -1.83,4.51 -4.2,4.17 -2.34,-0.23 -5.01,0.21 -5.71,2.83 0.53,-0.55 3.28,-0.6 2.18,1.37 -1.76,2.06 2.72,0.77 3.6,-0.03 1.59,-1.25 4.9,-1.28 4.53,1.5 0.51,2.26 -0.61,4.68 0.41,6.83 1.33,1.83 1.61,-2.68 3.25,-0.77 1.03,0.55 1.17,2.58 1.12,0.49 0.32,-2.79 -0.96,-5.34 -1.34,-8.05 1.99,0.79 4.12,1.37 5.89,2.6 0.76,1.44 2.89,2.62 2.69,0.1 0.55,-1.57 2.79,1.11 1.48,-0.8 -1.13,-2.27 -3.04,-4.18 -5.54,-4.82 -2.21,-0.38 -4.14,-2.02 -4.13,-4.41 -0.28,-4.04 -0.02,-8.1 -0.02,-12.14 -1.37,-0.15 -2.73,-0.29 -4.1,-0.44zM703.37,353.57c-1.9,1.69 -4.52,3.26 -4.78,6.05 -1.19,2.39 3.4,0.44 3.12,2.87 2.14,-0.9 2.53,-3.62 3.62,-5.44 1,-1.67 2.15,-4.47 4.51,-4.04 2.3,0.48 3.34,3.17 5.68,3.43 2.39,0.44 -1.58,-3.13 1.25,-3.21 3.35,0.47 -0.23,-3.06 -1.7,-3.32 -2.31,-0.09 -5.82,-1.32 -3.53,-4.04 1.11,-2.73 2.16,-5.49 3.21,-8.24 -1.47,-2.16 -2.93,-4.31 -4.4,-6.47 -0.56,1.93 -1.3,3.84 -1.75,5.77 0.33,2.11 1.05,4.36 -0.24,6.31 -0.98,2.12 -1.9,4.3 -3.16,6.27 -3.72,1.81 -7.7,3.09 -11.51,4.68 -1.13,1.1 -3.02,2.07 -3.11,3.8 -0.75,2.12 1.2,0.08 2.12,0.49 1.36,-2.06 2.83,1.23 3.98,-0.87 0.69,-1.04 1.57,-1.56 2.82,-1.58 0.38,-0.07 0.76,-0.13 1.15,-0.2" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#452c25" android:pathData="m747.46,301.88c0.24,-2.73 -3.08,-5.71 -1.75,-7.84 -0.77,-2.84 -3.19,-5.36 -4.12,-7.71 1.1,-2.22 -3.56,-4.58 -4.25,-6.57 1.19,-1.74 -2.28,-5.15 -3.96,-6.72 -2.8,-1.94 -5.22,-4.84 -8.86,-5.17 -6.42,-1 -12.99,-1.35 -19.47,-0.85 -4.14,0.63 -8.39,2.83 -10.57,6.47 -0.19,2.38 -0.38,4.76 -0.58,7.15 1.39,-1.3 1.41,-0.57 0.94,0.92 -0.48,2.73 -1.34,5.42 -1.56,8.18 0.72,3.76 2.02,7.45 1.85,11.34 0.33,6.16 1.91,12.63 5.23,17.22 1.31,2.2 0.86,4.53 2.63,5.38 1.46,2.44 2.08,5.35 3.58,7.72 0.46,-2.57 1.11,3.03 1.4,4.02 -0.01,2.14 0.47,1.76 1.3,0.31 0.68,-1.24 1.29,-2.01 1.48,-0.11 0.33,1.09 0.4,2.58 1.91,1.87 0.99,0.01 -0.13,2.04 -0.01,2.88 1.53,-0.82 5.59,-3.98 5.27,-7.13 0.06,-1.43 1.83,-1.92 2.29,-3.23 0.62,-0.96 1.23,-1.92 1.85,-2.88 2.95,2.55 6.65,4.79 7.79,8.76 0.26,2.62 1.94,-1.82 2.3,0.14 0.44,0.58 0.8,2.96 1.29,2.42 0.57,-1.81 0.98,-1.11 1.33,0.36 0.34,1 1.32,3.62 2.88,1.33 2.47,-2.94 3.53,-6.79 3.95,-10.5 1.78,3.53 2.66,-2.66 3.07,-4.31 -0.38,-1.49 0.13,-3.21 1.4,-3.09 0.38,-3.19 -0.19,-6.62 0.22,-9.67 2.24,-0.88 0.04,-5.33 0.32,-7.65 -0.02,-1.22 -1.33,-3 0.84,-3.02z" android:strokeColor="#000" android:strokeWidth="2"/> <path android:fillColor="#dcddde" android:pathData="m697.1,285.19c-0.13,-2.09 -0.35,-4.43 0.96,-6.23 0.7,-2.41 3.22,-4.26 5.76,-3.76 2.1,-0.27 3.31,-2.94 5.67,-2.24 1.9,0.66 3.56,-0.63 5.4,-0.53 2.22,0.26 3.68,2.2 5.66,2.99 1.55,0.31 3.73,-0.22 4.6,1.49 0.45,1.87 -0.17,4.25 1.87,5.4 1.79,1.48 2.29,4.19 1.52,6.32 1.17,1.75 1.25,4.23 -0.35,5.74 -1.22,2.1 -0.33,4.86 -1.85,6.82 -1.37,1.5 -3.69,1.69 -4.87,3.4 -1.16,1.25 -3.4,1.67 -4.51,0.14 -1,-1.08 -1.42,-2.89 -3,-3.27 -1.34,0.05 -2.08,1.39 -3.13,2.05 -1.73,1.45 -4.27,2.43 -6.4,1.25 -2.24,-1.16 -3.86,-3.47 -4.17,-5.98 -0.12,-1.76 -2.05,-2.11 -2.85,-3.42 -1.43,-1.77 -0.07,-3.71 0.64,-5.38 0.59,-1.72 -0.61,-3.16 -0.94,-4.77z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#d9c0b9" android:pathData="m670.35,297.23c0,0 -2.95,-5.08 5.24,-7.57 0,0 2.48,1.35 3.05,2.28 0,0 -1.43,2.39 -6.1,3 0,0 -2.1,0.63 -2.19,2.29z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#d9c0b9" android:pathData="m671.21,296.4c0,0 3.3,0.7 5.52,-0.93 1.83,-1.34 2.48,-0.73 2.96,-0.63 0,0 0.1,-1.65 -1.05,-2.9 0,0 -2.32,1.91 -4.03,2.43 -1.71,0.52 -2.87,0.35 -3.4,2.03z" android:strokeColor="#000" android:strokeWidth="0.55000001"/> <path android:fillColor="#dba05f" android:pathData="m711.3,280.57c-5.64,0.83 -11.22,2.43 -16.95,2.44 -2.51,-0.51 -4.85,-1.88 -7.48,-1.74 -2.28,-0.12 -4.93,0.08 -6.46,2.01 -1.65,1.48 -3.41,2.84 -4.92,4.46 -1.71,1.19 -1.2,4.15 1.06,4.16 1.99,0.56 2.68,2.61 4.15,3.74 3.88,1.68 8.24,0.9 12.16,-0.2 3.53,-1.08 7.27,-0.9 10.89,-0.61 4.22,-0.26 8.33,-1.81 11.86,-4.11 2,-1.63 3.37,-4.57 2.36,-7.1 -0.7,-1.82 -2.62,-2.73 -4.46,-2.88 -0.73,-0.1 -1.46,-0.13 -2.19,-0.16z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#c6262c" android:pathData="m688.04,281.76c-0.09,-1.64 -1.42,-3.06 -3.02,-3.36 -1.59,-0.47 -3.29,-0.75 -4.94,-0.53 -0.9,0.3 -1.78,0.69 -2.74,0.81 -0.82,0.19 -1.77,0.56 -2.02,1.45 -0.34,0.8 -1.36,1.34 -1.17,2.32 0.26,0.54 0.23,1.52 1.02,1.56 -0.77,-0.65 -1.62,0.3 -2.32,0.64 -0.78,0.54 -1.45,1.56 -1.02,2.53 0.24,0.72 0.69,1.66 1.58,1.63 0.96,-0.26 1.86,-0.74 2.72,-1.24 1.03,-0.85 1.92,-1.86 2.96,-2.7 0.73,-0.42 1.58,-0.64 2.35,-0.99 0.94,-0.33 1.9,-0.84 2.92,-0.62 0.74,0.19 1.39,-0.23 2,-0.58 0.55,-0.3 1.1,-0.61 1.66,-0.91z" android:strokeColor="#000" android:strokeWidth="1"/> <path android:fillColor="#000" android:pathData="m685.31,287.01c0,0.56 -1.04,1.88 -1.74,2.2 -0.7,0.34 -1.26,0.15 -1.26,-0.4 0,-0.56 0.47,-2.16 1.17,-2.49 0.7,-0.33 1.84,0.13 1.84,0.69"/> <path android:fillColor="#dcddde" android:pathData="m694.56,275.41c-13.08,-0.16 -22.74,-8.7 -27.89,-19.6 -1.7,-7.16 -12.05,-2.29 -18.28,-5.01 -6.93,0.07 -12.32,-2.38 -20,-0.7 12.32,-5.93 -8.67,-1.18 -13.89,-0.35 -13.8,3.42 -26.61,9.47 -39.63,15.06 -7.8,3.12 -20.93,8.24 -25.75,9.98 24.72,-14.57 51.3,-26.26 79.03,-33.67 11.65,-2.73 22.68,3.78 34.38,1.7 14.21,-5.17 20.69,13.77 17.17,22.5 8.12,1.92 15.32,11.49 23.45,3.27 11.62,-3.95 23.85,5.44 34.61,-1.52 12.53,-0.39 16.41,-9.62 18.92,-19.79 9.43,-8.92 23.51,-1.84 34.97,-2.26 21.02,1.46 42.3,4.72 61.19,14.62 15.11,7.62 32.02,11.94 45.47,22.47 -11.48,-6.46 -24.2,-9.86 -35.91,-15.78 -6.36,-2.06 -23.1,-13.8 -24.75,-7.37 5.8,5.32 -12.91,-4.53 -17.34,-5.45 -11.42,-1.62 -22.89,-3.23 -34.51,-3.83 -5.07,0.21 -6.49,-0.67 -11.91,0.82 -3.9,4.7 -11.28,-2.95 -10.9,7.36 -2.63,10.46 -16.59,11.65 -25.37,14.31 -12.06,2.19 -25.01,-6.72 -36.86,0.05l-1.57,0.91 -1.75,1.41" android:strokeColor="#000" android:strokeWidth="1"/> </vector> ```
François Thibodeau, C.I.M., (July 27, 1939 – June 26, 2023) was a Canadian Roman Catholic prelate and member of the Congregation of Jesus and Mary (C.I.M.), also known as the Eudists. He served as the fifth Bishop of the Roman Catholic Diocese of Edmundston in New Brunswick from his appointment on October 20, 1993, by Pope John Paul II until his retirement in 2009. Thibodeau was born on July 27, 1939, in Saint-Odilon-de-Cranbourne, Quebec. He studied philosophy at the Sacré-Coeur Seminary in Charlesbourg, Quebec City, and Catholic theology at St. Jean-Eudes Scholasticate in Pointe-Gatineau. Thibodeau was ordained a Catholic priest on May 8, 1965, by Bishop Joseph-Aurèle Plourde of Ottawa. He then received a bachelor's degree in social work from Laval University. In 1971, Thibodeau was appointed Director of Social Affairs for the Roman Catholic Archdiocese of Quebec, which he held from 1971 to 1986. He then served as editor-in-chief of Pastorale-Québec, the official publication of the Archdiocese of Quebec, from 1986 until 1990. Thibodeau was appointed the fifth Bishop of the Roman Catholic Diocese of Edmundston on October 20, 1993, and consecrated on January 9, 1994, at the Cathedral of the Immaculate Conception in Saint John, New Brunswick. Bishop Emeritus François Thibodeau died at the Résidence Domaine Mahonia in Quebec City, Quebec, on June 26, 2023, at the age of 83. He was buried in the crypt of the Cathedral of the Immaculate Conception. References 1939 births 2023 deaths Roman Catholic bishops of Edmundston Eudist bishops Eudists Bishops appointed by Pope John Paul II Université Laval alumni People from Chaudière-Appalaches People from Edmundston French Quebecers
```php <?php namespace Psalm\Type\Atomic; use Psalm\Codebase; use Psalm\Internal\Analyzer\StatementsAnalyzer; use Psalm\Internal\Type\TemplateResult; use Psalm\Storage\FunctionLikeParameter; use Psalm\Type\Atomic; use Psalm\Type\Union; /** * Represents a closure where we know the return type and params * * @psalm-immutable */ final class TClosure extends TNamedObject { use CallableTrait; /** @var array<string, bool> */ public $byref_uses = []; /** * @param list<FunctionLikeParameter> $params * @param array<string, bool> $byref_uses * @param array<string, TNamedObject|TTemplateParam|TIterable|TObjectWithProperties|TCallableObject> $extra_types */ public function __construct( string $value = 'callable', ?array $params = null, ?Union $return_type = null, ?bool $is_pure = null, array $byref_uses = [], array $extra_types = [], bool $from_docblock = false ) { $this->params = $params; $this->return_type = $return_type; $this->is_pure = $is_pure; $this->byref_uses = $byref_uses; parent::__construct( $value, false, false, $extra_types, $from_docblock, ); } public function canBeFullyExpressedInPhp(int $analysis_php_version_id): bool { // it can, if it's just 'Closure' return $this->params === null && $this->return_type === null && $this->is_pure === null; } /** * @return static */ public function replaceTemplateTypesWithArgTypes( TemplateResult $template_result, ?Codebase $codebase ): self { $replaced = $this->replaceCallableTemplateTypesWithArgTypes($template_result, $codebase); $intersection = $this->replaceIntersectionTemplateTypesWithArgTypes($template_result, $codebase); if (!$replaced && !$intersection) { return $this; } return new static( $this->value, $replaced[0] ?? $this->params, $replaced[1] ?? $this->return_type, $this->is_pure, $this->byref_uses, $intersection ?? $this->extra_types, ); } /** * @return static */ public function replaceTemplateTypesWithStandins( TemplateResult $template_result, Codebase $codebase, ?StatementsAnalyzer $statements_analyzer = null, ?Atomic $input_type = null, ?int $input_arg_offset = null, ?string $calling_class = null, ?string $calling_function = null, bool $replace = true, bool $add_lower_bound = false, int $depth = 0 ): self { $replaced = $this->replaceCallableTemplateTypesWithStandins( $template_result, $codebase, $statements_analyzer, $input_type, $input_arg_offset, $calling_class, $calling_function, $replace, $add_lower_bound, $depth, ); $intersection = $this->replaceIntersectionTemplateTypesWithStandins( $template_result, $codebase, $statements_analyzer, $input_type, $input_arg_offset, $calling_class, $calling_function, $replace, $add_lower_bound, $depth, ); if (!$replaced && !$intersection) { return $this; } return new static( $this->value, $replaced[0] ?? $this->params, $replaced[1] ?? $this->return_type, $this->is_pure, $this->byref_uses, $intersection ?? $this->extra_types, ); } protected function getChildNodeKeys(): array { return [...parent::getChildNodeKeys(), ...$this->getCallableChildNodeKeys()]; } } ```
"Selig, wem Christus auf dem Weg begegnet" (Blessed who is met by Christ on the way) is a Christian hymn with words in German by Bernardin Schellenberger written to match a 1681 Parisian melody. It appeared in the German hymnal Gotteslob. History Bernardin Schellenberger, a theologian and writer, wrote the text of the hymn "Selig, wem Christus auf dem Weg begegnet" in 1978, inspired by the Second Vatican Council. When he wrote it, he was prior at Mariawald Abbey, a Trappist monastery. He was a Catholic priest who studied monastic theology in France, and theology in Salzburg and Freiburg. He revised the hymn in 2011 and it became part of the German Catholic hymnal Gotteslob as GL 275 in the section for Lent. It was then coupled with a 1681 melody from Paris. An alternate melody is from "Dank sei dir, Vater, für das ewge Leben". The song is also part of the Franciscan hymnal Sonnenmusikant. Text and theme The text begins with praising people blessed who are met by Jesus on their way, similar to the Beatitudes. The hymn has been used for Lent, but covers more generally a believer's history with Jesus. Benedict of Nursia wrote in his monastic rules that believers should strive for a relationship to Jesus throughout life, not only during Lent. In the first stanza, the believer is called to let everything go and carry the Cross ("Alles verlassen und sein Kreuz tragen"), like the disciples called by Jesus. In the second stanza, a believer is promised that Jesus will support during ways in the desert ("Bei ihm ist Christus, stärkt ihn in der Wüste"). The desert is a symbol for a difficult passage but also for a place to meet God. The third stanza reminds of the fact that Jesus reaches people by what his followers say, calling them to serve in this function. The fourth stanza is a paraphrase from the Lord's Prayer. References External links Catholic hymns in German 1978 songs 20th-century hymns in German
Gauntlet is an unreleased Nintendo DS hack and slash dungeon crawl video game developed by Backbone Entertainment, based on the 1985 arcade game by the same title. The game was originally announced in April 2008, and was scheduled to be released later that year. Gameplay Press releases and previews of the game characterized it as "retro", with gameplay based on the first two titles in the Gauntlet series, with some additions such as the character leveling system introduced in Gauntlet Legends. The four original classes from the series, Warrior, Valkyrie, Elf and Wizard, return, along with a number of "fan favourite" enemies. Also included are newly recorded versions of the series' trademark speech samples, whereby a narrator announces events occurring in-game with statements such as "Red Warrior shot the food" and "Wizard is about to die!" The game features play spanning both screens, using an entirely new 3D graphical engine, with local wireless as well as online four-player mode, 40 maps, and voice chat capabilities. Gauntlet'''s multiplayer modes were said to include ranked deathmatch, team deathmatch, and capture the flag styles of play. Its Wi-Fi features were said to use a dedicated server rather than the Nintendo Wi-Fi Connection and its Friend Code system, featuring all of the same multiplayer modes available locally. Players are able to use their single-player characters in multiplayer modes, and retain experience earned in multiplayer games for solo play. Development The possibility of a Nintendo DS Gauntlet title was first revealed by an ESRB listing in February 2008 which was later removed. The intended publisher, Eidos Interactive, officially announced the game on April 7, 2008, with a projected release in "summer 2008". This estimate was refined to a more specific June release date, which was later amended to October. The game was featured in a playable state at the Penny Arcade Expo in August 2008, with both single-player and multiplayer modes available. At this time, the game was still expected to meet its October release date. Additionally, a demo of the game was made available to the public in the United States via the DS Download Station service during the summer of 2008. By late 2008, the still-unreleased game had received several reviews in the gaming press, from magazines such as Nintendo Power, Official Nintendo Magazine, and Retro Gamer. In February 2009, however, rumors began circulating that Gauntlet had been canceled by Eidos, though no official statements were made by the involved parties. In June 2009, Gauntlet was found to have been rated Teen on the ESRB web site under a new publisher, Majesco Entertainment, implying that a release may still be a possibility. In May 2013, Artwork of the game, depicting various classes, surfaced thanks to a former Backbone Entertainment artist. Despite the game itself being unreleased, its engine was reused by Backbone for the Nintendo DS version of the film tie-in game G.I. Joe: The Rise of Cobra, (released August 4, 2009 in the United States) itself a Gauntlet''-style hack and slash. North American and European 100% complete ROMs were dumped and released around Christmas of 2013. References External links Official website Nintendo.com website Cancelled Nintendo DS games Cooperative video games Midway video games Multiplayer and single-player video games Nintendo DS-only games Nintendo DS games Video games about valkyries Video games featuring female protagonists Top-down video games Backbone Entertainment games
```objective-c // // UIScrollView+Pages.h // TLKit // // Created by on 2017/8/27. // #import <UIKit/UIKit.h> @interface UIScrollView (Pages) #pragma mark - # @property (nonatomic, assign, readonly) NSInteger numberOfPageX; @property (nonatomic, assign) NSInteger pageX; - (void)setPageX:(CGFloat)page animated:(BOOL)animated; #pragma mark - # @property (nonatomic, assign, readonly) NSInteger numberOfPageY; @property (nonatomic, assign) NSInteger pageY; - (void)setPageY:(CGFloat)page animated:(BOOL)animated; @end ```
OSCAR 3 (a.k.a. OSCAR III) is the third amateur radio satellite launched by Project OSCAR into Low Earth Orbit. OSCAR 3 was launched March 9, 1965 by a Thor-DM21 Agena D launcher from Vandenberg Air Force Base, Lompoc, California. The satellite, massing , was launched piggyback with seven United States Air Force satellites. Though the satellite's active life was limited to sixteen days due to battery failure, OSCAR 3 relayed 176 messages from 98 stations in North America and Europe during its 274 orbit life-time -- the first amateur satellite to relay signals from Earth. , it is still in orbit. Project OSCAR Project OSCAR Inc. was started in 1960 by members of the TRW Radio Club of Redondo Beach, California as well as persons associated with Foothill College to investigate the possibility of putting an amateur satellite in orbit. Project OSCAR was responsible for the construction of the first Amateur Radio Satellites: OSCAR 1, launched from Vandenberg AFB in California on 12 December 1961, which transmitted a “HI” greeting in Morse Code for three weeks, the similar OSCAR 2, OSCAR 3, and OSCAR 4. Spacecraft OSCAR 3 was a rectangular-prism-shaped satellite, in dimension. Unlike its predecessors, which could only transmit a morse code "HI" signal through their beacons, OSCAR 3 was a true communications satellite. Equipped with a translator, when the satellite received signals broadcast to it at 144.1 MHz, its translator converted them to 30 MHz for amplification, and then reconverted them to 145.9 MHz for further amplification and retransmission. A watt of power was available for transmission; if more than one signal were received simultaneously, they shared the power in proportion to their signal strengths when received. OSCAR 3 also carried a beacon like OSCARs 1 and 2, though of lower power. Four quarter-wave antennas (two for input/output to the translator, one for the beacon, and one for telemetry to the ground) were mounted on the sides of the lightweight magnesium-lithium alloy satellite. The hull was covered with shiny aluminum foil tape to reflect the heat of the Sun, and lack stripes were painted over the shiny aluminum to radiate heat away from OSCAR 3 during the times it orbited in the shadow of the Earth. A large 18-volt battery powered the satellite, though the beacon was designed to continue functioning, supplied by power from solar cells and a rechargeable battery. Mission and results OSCAR 3 flew on the NRL Composite 5 mission, which lofted an unprecedented eight satellites on a single Thor Augmented Delta-Agena D rocket (including POPPY 4, an electronic signals intelligence (ELINT) surveillance package, GGSE-2, GGSE-3, Surcal 2B, SECOR 3, SOLRAD 7B, and Dodedcapole 1) on 9 March 1965 from Vandenberg Air Force Base Space Launch Complex 1, Pad 2. Though the satellite's active life was limited to sixteen days due to battery failure, OSCAR 3 relayed 176 messages from 98 stations in North America and Europe during its 274 orbit life-time. The two beacon transmitters continued operating for several months. OSCAR 3 was thus the first amateur communications satellite to relay voice contacts in the VHF 2 meter band, the first amateur satellite to operate from solar power and relay signals from Earth, and the first satellite to use beacon transmitters separate from the main communications system. , OSCAR 3 is still in orbit, and its position can be tracked online. References Satellites orbiting Earth Amateur radio satellites Spacecraft launched in 1965
Vladimir Yakovlevich Stoyunin (, 28 December 1826 — 16 November 1888) was a Saint-Petersburg-born Russian pedagogue, educational theorist, essayist and publicist. An influential thinker, considered to be heir to Konstantin Ushinsky's legacy, Stoyunin was a pioneering figure in the development of women's education in Russia. His most cherished project was that of a new type of secondary school (in the form of a 7-form Real Gymnasium), free from corporal punishment, social privileges or restrictions, aimed at tutoring the students in the spirit of new, progressive ideas that were coming to Russia from Europe, while warning against mechanically copying Western educational schemes. Contributing regularly to Biblioteka Dlya Chteniya, Istorichesky Vestnik, Syn Otechestva, Vestnik Evropy and Russkiy Mir (which he edited in 1859–1860) Stoyunin authored numerous reviews and literary essays, mostly on the history of Russian literature, in particular on the works and lives of Antiokh Kantemir, Alexander Sumarokov, Alexander Shishkov and Alexander Pushkin. Stoyunin read Russian history, language and literature at (and was also a vice-president of) the private Stoyunina Gymnasium, which his wife Maria Nikolayevna had founded. References Literature Boris Glinsky / Глинский Б. Б. Владимир Яковлевич Стоюнин // Исторический вестник, 1889. — Т. 35. — No. 2. — С. 413–444. Языков Д. Д. Учено-литературные труды В. Я. Стоюнина // Исторический вестник, 1889. — Т. 35. — No. 2. — С. 445–450. Витберг Ф. А. В. Я. Стоюнин, как педагог и человек: речь Ф. А. Витберга. — СПб., 1899. — 20 с. Russian male essayists Russian educational theorists Writers from Saint Petersburg 1826 births 1888 deaths
The 1956 Campeonato Paulista da Primeira Divisão, organized by the Federação Paulista de Futebol, was the 55th season of São Paulo's top professional football league. Santos won the title for the third time. No teams were relegated and the top scorer was São Paulo's Zezinho with 18 goals. Championship The championship was disputed in three phases: Qualifying round: All eighteen teams played each other in a single-round robin system, with the ten best teams advancing to the Blue Series and the eight worst going on to dispute the White Series. Blue Series: The ten teams played each other in a double round-robin system, and the team with the most points won the title. White Series: The eight teams played each other in a double round-robin system, and the team with the fewest points was relegated. Qualifying phase Blue Series Playoffs White Series Final standings Top Scores References Campeonato Paulista seasons Paulista
Hypermnestre (Hypermnestra) is an opera by the French composer Charles-Hubert Gervais, first performed at the Académie Royale de Musique (the Paris Opera) on 3 November 1716. It takes the form of a tragédie en musique in a prologue and five acts. The libretto, by Joseph de Lafont, concerns the Greek myth of Hypermnestra. Discography Hypermnestre, Katherine Watson, Hypermnestre, Mathias Vidal, Lyncée, Thomas Dolié, Danaüs, Philippe-Nicolas Martin, Arcas (ombre de Gélanor, le Nil), Chantal Santon-Jeffery, (NaÏade, bergère, Coryphée), Juliette Mars, (Isis, matelote), Manuel Nuñez Camelino (Grand Prêtre, Coryphée), Purcell Choir, Orfeo Orchestra, conducted by Giörgy Vashegyi. 2 CD Glossa 2019. 5 Diapasons. Sources Jean-Paul C. Montagnier, « Les deux versions du cinquième acte d’Hypermnestre de Charles-Hubert Gervais », Revue de musicologie, 82 (1996), pp. 331-343. Jean-Paul C. Montagnier, Charles-Hubert Gervais (1671-1744), un musicien au service du Régent et de Louis XV. Paris: CNRS Editions, 2001. Libretto at "Livrets baroques" Félix Clément and Pierre Larousse Dictionnaire des Opéras, Paris, 1881, page 349 French-language operas Tragédies en musique Operas by Charles Hubert Gervais Operas 1716 operas
```c++ #ifndef BOOST_MPL_AUX_LAMBDA_SUPPORT_HPP_INCLUDED #define BOOST_MPL_AUX_LAMBDA_SUPPORT_HPP_INCLUDED // // (See accompanying file LICENSE_1_0.txt or copy at // path_to_url // // See path_to_url for documentation. // $Id$ // $Date$ // $Revision$ #include <boost/mpl/aux_/config/lambda.hpp> #if !defined(BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT) # define BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(i, name, params) /**/ # define BOOST_MPL_AUX_LAMBDA_SUPPORT(i,name,params) /**/ #else # include <boost/mpl/int_fwd.hpp> # include <boost/mpl/aux_/yes_no.hpp> # include <boost/mpl/aux_/na_fwd.hpp> # include <boost/mpl/aux_/preprocessor/params.hpp> # include <boost/mpl/aux_/preprocessor/enum.hpp> # include <boost/mpl/aux_/config/msvc.hpp> # include <boost/mpl/aux_/config/workaround.hpp> # include <boost/preprocessor/tuple/to_list.hpp> # include <boost/preprocessor/list/for_each_i.hpp> # include <boost/preprocessor/inc.hpp> # include <boost/preprocessor/cat.hpp> # define BOOST_MPL_AUX_LAMBDA_SUPPORT_ARG_TYPEDEF_FUNC(R,typedef_,i,param) \ typedef_ param BOOST_PP_CAT(arg,BOOST_PP_INC(i)); \ /**/ // agurt, 07/mar/03: restore an old revision for the sake of SGI MIPSpro C++ #if BOOST_WORKAROUND(__EDG_VERSION__, <= 238) # define BOOST_MPL_AUX_LAMBDA_SUPPORT(i, name, params) \ typedef BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::int_<i> arity; \ BOOST_PP_LIST_FOR_EACH_I_R( \ 1 \ , BOOST_MPL_AUX_LAMBDA_SUPPORT_ARG_TYPEDEF_FUNC \ , typedef \ , BOOST_PP_TUPLE_TO_LIST(i,params) \ ) \ struct rebind \ { \ template< BOOST_MPL_PP_PARAMS(i,typename U) > struct apply \ : name< BOOST_MPL_PP_PARAMS(i,U) > \ { \ }; \ }; \ /**/ # define BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(i, name, params) \ BOOST_MPL_AUX_LAMBDA_SUPPORT(i, name, params) \ /**/ #elif BOOST_WORKAROUND(__EDG_VERSION__, <= 244) && !defined(BOOST_INTEL_CXX_VERSION) // agurt, 18/jan/03: old EDG-based compilers actually enforce 11.4 para 9 // (in strict mode), so we have to provide an alternative to the // MSVC-optimized implementation # define BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(i, name, params) \ typedef BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::int_<i> arity; \ BOOST_PP_LIST_FOR_EACH_I_R( \ 1 \ , BOOST_MPL_AUX_LAMBDA_SUPPORT_ARG_TYPEDEF_FUNC \ , typedef \ , BOOST_PP_TUPLE_TO_LIST(i,params) \ ) \ struct rebind; \ /**/ # define BOOST_MPL_AUX_LAMBDA_SUPPORT(i, name, params) \ BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(i, name, params) \ }; \ template< BOOST_MPL_PP_PARAMS(i,typename T) > \ struct name<BOOST_MPL_PP_PARAMS(i,T)>::rebind \ { \ template< BOOST_MPL_PP_PARAMS(i,typename U) > struct apply \ : name< BOOST_MPL_PP_PARAMS(i,U) > \ { \ }; \ /**/ #else // __EDG_VERSION__ namespace boost { namespace mpl { namespace aux { template< typename T > struct has_rebind_tag; }}} # define BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(i, name, params) \ typedef BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::int_<i> arity; \ BOOST_PP_LIST_FOR_EACH_I_R( \ 1 \ , BOOST_MPL_AUX_LAMBDA_SUPPORT_ARG_TYPEDEF_FUNC \ , typedef \ , BOOST_PP_TUPLE_TO_LIST(i,params) \ ) \ friend class BOOST_PP_CAT(name,_rebind); \ typedef BOOST_PP_CAT(name,_rebind) rebind; \ /**/ #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) # define BOOST_MPL_AUX_LAMBDA_SUPPORT_HAS_REBIND(i, name, params) \ template< BOOST_MPL_PP_PARAMS(i,typename T) > \ ::boost::mpl::aux::yes_tag operator|( \ ::boost::mpl::aux::has_rebind_tag<int> \ , name<BOOST_MPL_PP_PARAMS(i,T)>* \ ); \ ::boost::mpl::aux::no_tag operator|( \ ::boost::mpl::aux::has_rebind_tag<int> \ , name< BOOST_MPL_PP_ENUM(i,::boost::mpl::na) >* \ ); \ /**/ #elif !BOOST_WORKAROUND(BOOST_MSVC, < 1300) # define BOOST_MPL_AUX_LAMBDA_SUPPORT_HAS_REBIND(i, name, params) \ template< BOOST_MPL_PP_PARAMS(i,typename T) > \ ::boost::mpl::aux::yes_tag operator|( \ ::boost::mpl::aux::has_rebind_tag<int> \ , ::boost::mpl::aux::has_rebind_tag< name<BOOST_MPL_PP_PARAMS(i,T)> >* \ ); \ /**/ #else # define BOOST_MPL_AUX_LAMBDA_SUPPORT_HAS_REBIND(i, name, params) /**/ #endif # if !defined(__BORLANDC__) # define BOOST_MPL_AUX_LAMBDA_SUPPORT(i, name, params) \ BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(i, name, params) \ }; \ BOOST_MPL_AUX_LAMBDA_SUPPORT_HAS_REBIND(i, name, params) \ class BOOST_PP_CAT(name,_rebind) \ { \ public: \ template< BOOST_MPL_PP_PARAMS(i,typename U) > struct apply \ : name< BOOST_MPL_PP_PARAMS(i,U) > \ { \ }; \ /**/ # else # define BOOST_MPL_AUX_LAMBDA_SUPPORT(i, name, params) \ BOOST_MPL_AUX_LAMBDA_SUPPORT_SPEC(i, name, params) \ }; \ BOOST_MPL_AUX_LAMBDA_SUPPORT_HAS_REBIND(i, name, params) \ class BOOST_PP_CAT(name,_rebind) \ { \ public: \ template< BOOST_MPL_PP_PARAMS(i,typename U) > struct apply \ { \ typedef typename name< BOOST_MPL_PP_PARAMS(i,U) >::type type; \ }; \ /**/ # endif // __BORLANDC__ #endif // __EDG_VERSION__ #endif // BOOST_MPL_CFG_NO_FULL_LAMBDA_SUPPORT #endif // BOOST_MPL_AUX_LAMBDA_SUPPORT_HPP_INCLUDED ```
```swift import Foundation import ExpoModulesCore // swiftlint:disable redundant_optional_initialization - Initialization with nil is necessary internal struct VolumeEvent: Record { @Field var volume: Float? = nil @Field var isMuted: Bool? = nil } // swiftlint:enable redundant_optional_initialization ```
Boris Epshteyn (born August 14, 1982) is an American Republican political strategist, attorney, and investment banker. He was a strategic advisor on the Donald Trump 2020 presidential campaign and has remained a close advisor to Trump in his post-presidency. He was the chief political commentator at Sinclair Broadcast Group until December 2019. He was a senior advisor to Donald Trump's 2016 campaign for President of the United States, and previously worked on the John McCain 2008 presidential campaign. Following Trump's election, he was named director of communications for the Presidential Inaugural Committee, and then assistant communications director for surrogate operations in the White House Office, until he resigned in March 2017. He was a member of a team of Trump lawyers who sought to prevent the certification of Joe Biden's victory in the 2020 presidential election. Early life and education Epshteyn was born in 1982 in Moscow, Soviet Union, the son of Anna Shulkina and Aleksandr Epshteyn. His family are Russian Jews. In 1993, he immigrated as a refugee with his family to the US, and settled in Plainsboro Township, New Jersey, under the Lautenberg amendment of 1990. He graduated from West Windsor-Plainsboro High School in 2000. In 2000, he matriculated at Swarthmore College, which he attended for one year before transferring to Georgetown University. Epshteyn graduated from the Georgetown University School of Foreign Service (BSFS, 2004). During his time as an undergraduate at Georgetown, Epshteyn joined the Eta Sigma chapter of the Alpha Epsilon Pi (AEPi) fraternity. He graduated from the Georgetown University Law Center with a Juris Doctor in 2007. Career Following his graduation from law school, Epshteyn was part of the finance practice of Milbank, Tweed, Hadley & McCloy. He worked on securities transactions, private placements, and bank finance. In 2008, Epshteyn was a communications aide with the McCain-Palin campaign. While at the campaign, he was part of a rapid response task force that concentrated on issues related to vice presidential nominee Sarah Palin. Epshteyn was managing director of business and legal affairs at the boutique investment bank West America Securities Corporation until the firm was expelled by the Financial Industry Regulatory Authority in 2013. He was managing director of business and legal affairs for investment banking firm TGP Securities from 2013 to 2017. In October 2013, Epshteyn moderated a panel at the investment conference "Invest in Moscow!". The panel was composed mainly of Moscow city government officials, including Sergey Cheremin, a city minister who heads Moscow's foreign economic and international relations department. 2016 Trump campaign During the 2016 U.S. presidential campaign, Epshteyn acted as a senior advisor to the Donald Trump campaign, making frequent television appearances as a Trump media surrogate on Trump's behalf. In September 2016, Epshteyn responded to a question from MSNBC's Hallie Jackson by offering a new explanation for why a portrait of Trumppaid for by the Donald J. Trump Foundationwound up on display at Trump National Doral Miami, a Trump-owned for-profit golf resort in Florida. Epshteyn said, "There are IRS rules which specifically state that when a foundation has an item, an individual can store those itemson behalf of the foundationin order to help it with storage costs... And that's absolutely proper." Epshteyn's explanation was, in effect, that Trump hadn't used his foundation to buy some art for his resort, which would be self-dealing. Instead, Trump's resort was helping the foundationwhich has no employees or office space of its ownto store one of its possessions. Epshteyn's explanation failed to account for why the storage services required that portrait be displayed in public, as opposed to being maintained in a storage space. Similarly, Epshteyn failed to explain why the Trump National Doral Miami provided such storage services only for the Trump Foundation and only for a portrait of Trump. In September 2016, the media watchdog organization Media Matters for America criticized CNN, Fox News, and PBS for failing to disclose Epshteyn's "financial ties to the former Soviet Union, which include consulting through Strategy International LLC for 'entities doing business in Eastern Europe' and moderating a Russian-sponsored conference on 'investment opportunities in Moscow.'" In an October 2016 article in The New York Times, three political commentators said in separate interviews that Epshteyn "often acted in a rude, condescending manner toward show staffers, makeup artists and others." Joy Reid, an MSNBC show host, said "Boris is abrasive. That is who he is both on the air and off." Epshteyn co-hosted the Trump Campaign Facebook Live coverage before and after the final presidential debate. He also anchored Trump Tower Live, the Trump Campaign Facebook live nightly program. During the 2020 U.S. presidential campaign, Epshteyn acted as a senior advisor to the Trump campaign. On November 25, 2020, it was reported that he had tested positive for coronavirus. Trump administration Epshteyn became a special assistant in the Trump administration as it took office. He wrote Trump's controversial statement for Holocaust Remembrance Day in January 2017, which omitted any mention of the Jewish people. Following criticism of the omission, press secretary Sean Spicer defended the statement as written by "an individual who is both Jewish and the descendent of Holocaust survivors." At the end of March 2017, Epshteyn resigned. Sinclair Broadcast Group In mid-April 2017, Sinclair announced it had hired Epshteyn as its senior political analyst. Regarding the appointment, Scott Livingston at Sinclair said in part, "We understand the frustration with government and traditional institutions." Epshteyn said in part, "I greatly admire Sinclair's mission to provide thoughtful impactful reporting throughout the country." At the time, Variety also noted Jared Kushner's December 2016 revelation of discussions between the Trump campaign and the company and content provided to the company which, the report said, Sinclair had "vehemently denied". His segment on Sinclair ended in late 2019. Trump advisor Epshteyn was the strategic advisor and co-chair of the Jewish Voices for Trump Advisory Board for Trump's 2020 re-election campaign. He led the campaign's Jewish outreach, appearing in media interviews across national outlets and participating in large-scale events across the country, including in Florida, Pennsylvania, and New York. Trump garnered the highest Jewish support for a Republican presidential candidate since George H. W. Bush in 1988, receiving 30% of the vote nationally and 42% in the key battleground state of Florida, which Trump won. Trump's 2020 results with Jewish voters were higher than his 2016 totals, when he received 24% of the Jewish vote nationally and 30% in Florida. After Trump lost the election, Epshteyn was a member of a team that gathered at a "command center" in the Willard Hotel one block from the White House days before Joe Biden's victory was to be certified by Vice President Mike Pence in the Senate chamber on January 6. The team's objective was to prevent Biden's victory from being certified. On January 2, Trump and two of his attorneys, Rudy Giuliani and John Eastman, held a conference call with some 300 Republican state legislators in battleground states Biden won to provide them with false allegations of widespread voting fraud they might use to convene special sessions of their legislatures to rescind Biden's winning slates of electors and replace them with slates of Trump electors for Pence to certify. On January 5, dozens of Republican legislators from Arizona, Georgia, Michigan, Pennsylvania and Wisconsin wrote Pence asking him to delay the January 6 certification for ten days so they would have time to replace the elector slates. Pence did not act on the request and that day also rejected a proposal made by Eastman that a vice president could simply choose to reject the electoral college results; a vice president's role in certifying the results is constitutionally ministerial. Epshteyn told The Washington Post in October 2021 that he continued to believe Pence "had the constitutional power to send the issue back to the states for 10 days to investigate the widespread fraud and report back well in advance of Inauguration Day, January 20th." Epshteyn worked with Giuliani in December 2020 to persuade Republican officials in seven states to prepare certificates of ascertainment for slates of "alternate electors" loyal to Trump, which would be presented to Pence for certification. Epshteyn and others asserted this was a contingency similar to the 1960 presidential election, in which two slates of electors were prepared pending results of a late recount of ballots in Hawaii. Both parties agreed to that recount, which ultimately resulted in John F. Kennedy winning the state, though the outcome of the election did not hinge on the Hawaii results. By contrast, in the case of the 2020 election, the stated need for slates of alternate electors in multiple states was predicated on persistent unproven claims of nationwide election fraud. Epshteyn asserted the slates of alternate electors were not fraudulent and "it is not against the law, it is according to the law." After Trump left office, Epshteyn established a close relationship with the former president and has advised him to pursue a confrontational rather than a conciliatory approach toward those investigating Trump. He was subpoenaed in January 2022 to testify before the House Select Committee on the January 6 Attack. Epshteyn joined Trump on his trip to Manhattan for his arraignment in April 2023. Epshteyn was identified by the New York Times as the likely identity of "Co-Conspirator 6" in the August 1, 2023, indictment of Trump for conspiracy. Personal life Epshteyn married Lauren Tanick Epshteyn, a sales manager at Google, in 2009. They have one child. Epshteyn is a friend of Eric Trump, who also attended Georgetown. Legal issues In 2014, Epshteyn was charged with misdemeanor assault after an altercation at a bar. The charge was dropped after he agreed to undergo anger management counseling and perform community service. On October 10, 2021, Epshteyn was arrested at a night club. Three of the four charges were dismissed. Epshteyn pleaded guilty to “disorderly conduct-disruptive behavior or fighting” for which he served probation. After probation that conviction was set aside. He was also remanded to alcohol treatment. References External links 1982 births American people of Russian-Jewish descent Donald Trump 2016 presidential campaign Walsh School of Foreign Service alumni Georgetown University Law Center alumni John McCain 2008 presidential campaign Living people New Jersey Republicans New York (state) Republicans People associated with the 2008 United States presidential election People associated with the 2016 United States presidential election People associated with the 2020 United States presidential election People from Plainsboro Township, New Jersey Russian emigrants to the United States Trump administration personnel West Windsor-Plainsboro High School South alumni People associated with Milbank, Tweed, Hadley & McCloy Donald Trump attorneys
```python # Create your views here. import datetime import itertools import json import logging from itertools import groupby import django.utils.timezone import requests from django.contrib.auth.decorators import login_required from django.http import HttpResponse from django.http import JsonResponse from django.shortcuts import render from django.utils import timezone from django.utils.timezone import utc from django.views.decorators.csrf import csrf_exempt from .models import OwnTrackLog logger = logging.getLogger(__name__) @csrf_exempt def manage_owntrack_log(request): try: s = json.loads(request.read().decode('utf-8')) tid = s['tid'] lat = s['lat'] lon = s['lon'] logger.info( 'tid:{tid}.lat:{lat}.lon:{lon}'.format( tid=tid, lat=lat, lon=lon)) if tid and lat and lon: m = OwnTrackLog() m.tid = tid m.lat = lat m.lon = lon m.save() return HttpResponse('ok') else: return HttpResponse('data error') except Exception as e: logger.error(e) return HttpResponse('error') @login_required def show_maps(request): if request.user.is_superuser: defaultdate = str(timezone.now().date()) date = request.GET.get('date', defaultdate) context = { 'date': date } return render(request, 'owntracks/show_maps.html', context) else: from django.http import HttpResponseForbidden return HttpResponseForbidden() @login_required def show_log_dates(request): dates = OwnTrackLog.objects.values_list('creation_time', flat=True) results = list(sorted(set(map(lambda x: x.strftime('%Y-%m-%d'), dates)))) context = { 'results': results } return render(request, 'owntracks/show_log_dates.html', context) def convert_to_amap(locations): convert_result = [] it = iter(locations) item = list(itertools.islice(it, 30)) while item: datas = ';'.join( set(map(lambda x: str(x.lon) + ',' + str(x.lat), item))) key = '8440a376dfc9743d8924bf0ad141f28e' api = 'path_to_url query = { 'key': key, 'locations': datas, 'coordsys': 'gps' } rsp = requests.get(url=api, params=query) result = json.loads(rsp.text) if "locations" in result: convert_result.append(result['locations']) item = list(itertools.islice(it, 30)) return ";".join(convert_result) @login_required def get_datas(request): now = django.utils.timezone.now().replace(tzinfo=utc) querydate = django.utils.timezone.datetime( now.year, now.month, now.day, 0, 0, 0) if request.GET.get('date', None): date = list(map(lambda x: int(x), request.GET.get('date').split('-'))) querydate = django.utils.timezone.datetime( date[0], date[1], date[2], 0, 0, 0) querydate = django.utils.timezone.make_aware(querydate) nextdate = querydate + datetime.timedelta(days=1) models = OwnTrackLog.objects.filter( creation_time__range=(querydate, nextdate)) result = list() if models and len(models): for tid, item in groupby( sorted(models, key=lambda k: k.tid), key=lambda k: k.tid): d = dict() d["name"] = tid paths = list() # # locations = convert_to_amap( # sorted(item, key=lambda x: x.creation_time)) # for i in locations.split(';'): # paths.append(i.split(',')) # GPS for location in sorted(item, key=lambda x: x.creation_time): paths.append([str(location.lon), str(location.lat)]) d["path"] = paths result.append(d) return JsonResponse(result, safe=False) ```
```javascript //! moment.js locale configuration //! locale : Serbian-latin (sr) //! author : Milan Janakovi<milanjanackovic@gmail.com> : path_to_url import moment from '../moment'; var translator = { words: { //Different grammatical cases m: ['jedan minut', 'jedne minute'], mm: ['minut', 'minute', 'minuta'], h: ['jedan sat', 'jednog sata'], hh: ['sat', 'sata', 'sati'], dd: ['dan', 'dana', 'dana'], MM: ['mesec', 'meseca', 'meseci'], yy: ['godina', 'godine', 'godina'] }, correctGrammaticalCase: function (number, wordKey) { return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); }, translate: function (number, withoutSuffix, key) { var wordKey = translator.words[key]; if (key.length === 1) { return withoutSuffix ? wordKey[0] : wordKey[1]; } else { return number + ' ' + translator.correctGrammaticalCase(number, wordKey); } } }; export default moment.defineLocale('sr', { months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'], monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'], weekdays: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'etvrtak', 'petak', 'subota'], weekdaysShort: ['ned.', 'pon.', 'uto.', 'sre.', 'et.', 'pet.', 'sub.'], weekdaysMin: ['ne', 'po', 'ut', 'sr', 'e', 'pe', 'su'], longDateFormat: { LT: 'H:mm', LTS : 'H:mm:ss', L: 'DD. MM. YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY H:mm', LLLL: 'dddd, D. MMMM YYYY H:mm' }, calendar: { sameDay: '[danas u] LT', nextDay: '[sutra u] LT', nextWeek: function () { switch (this.day()) { case 0: return '[u] [nedelju] [u] LT'; case 3: return '[u] [sredu] [u] LT'; case 6: return '[u] [subotu] [u] LT'; case 1: case 2: case 4: case 5: return '[u] dddd [u] LT'; } }, lastDay : '[jue u] LT', lastWeek : function () { var lastWeekDays = [ '[prole] [nedelje] [u] LT', '[prolog] [ponedeljka] [u] LT', '[prolog] [utorka] [u] LT', '[prole] [srede] [u] LT', '[prolog] [etvrtka] [u] LT', '[prolog] [petka] [u] LT', '[prole] [subote] [u] LT' ]; return lastWeekDays[this.day()]; }, sameElse : 'L' }, relativeTime : { future : 'za %s', past : 'pre %s', s : 'nekoliko sekundi', m : translator.translate, mm : translator.translate, h : translator.translate, hh : translator.translate, d : 'dan', dd : translator.translate, M : 'mesec', MM : translator.translate, y : 'godinu', yy : translator.translate }, ordinalParse: /\d{1,2}\./, ordinal : '%d.', week : { dow : 1, // Monday is the first day of the week. doy : 7 // The week that contains Jan 1st is the first week of the year. } }); ```
```smalltalk using System; using System.Collections.Generic; #nullable enable public class GeneratedTypes { public Generator Generator; readonly Dictionary<Type, GeneratedType> knownTypes = new (); public GeneratedTypes (Generator generator) { this.Generator = generator; } public GeneratedType Lookup (Type t) { if (knownTypes.TryGetValue (t, out var n)) return n; n = new (t, this); knownTypes [t] = n; return n; } } ```