codesearch.isocpp.org by Andrew Tomazos.
Enter a valid C/C++ code snippet...
Searching for `static_cast<int>`
...
2489599 source files searched.
123173 matches found.
Here is a random sample of matches...
actcd19/main/a/abiword/abiword_3.0.2-8/src/wp/impexp/xp/ie_exp_HTML_util.cpp:115:
}
unsigned char u = (unsigned char) *ptr;
if (!isalnum (static_cast<int>(u)) && !isValidPunctuation)
{
buf[1] = hex[(u >> 4) & 0x0f];
actcd19/main/libp/libpodofo/libpodofo_0.9.6+dfsg-4/src/base/PdfFiltersPrivate.cpp:94:
m_nColors = static_cast<int>(pDecodeParms->GetKeyAsLong( "Colors", 1L ));
m_nBPC = static_cast<int>(pDecodeParms->GetKeyAsLong( "BitsPerComponent", 8L ));
m_nColumns = static_cast<int>(pDecodeParms->GetKeyAsLong( "Columns", 1L ));
m_nEarlyChange = static_cast<int>(pDecodeParms->GetKeyAsLong( "EarlyChange", 1L ));
actcd19/main/s/supertux/supertux_0.6.0-1/src/supertux/sector.cpp:657:
} else {
// torch
float pseudo_rnd = static_cast<float>(static_cast<int>(pos.x) % 10) / 10;
add<PulsingLight>(center, 1.0f + pseudo_rnd, 0.9f, 1.0f,
Color(1.0f, 1.0f, 0.6f, 1.0f));
actcd19/main/d/darktable/darktable_2.6.0-1/src/external/rawspeed/src/librawspeed/common/RawImageDataU16.cpp:89:
/* Process vertical area */
if (area.isVertical) {
if (static_cast<int>(area.offset) + static_cast<int>(area.size) >
uncropped_dim.x)
ThrowRDE("Offset + size is larger than width of image");
actcd19/main/c/clp/clp_1.16.11+repack1-1/src/ClpModel.cpp:3886:
if (lengthNames()) {
rowNames = new char * [numberRows_+1];
int numberNames = static_cast<int>(rowNames_.size());
numberNames = CoinMin(numberRows_, numberNames);
int iRow;
actcd19/main/k/kde4libs/kde4libs_4.14.38-3/solid/solid/backends/udev/udevprocessor.cpp:60:
QString value = cpuMaxFreqFile.readAll().trimmed();
// cpuinfo_max_freq is in kHz
m_maxSpeed = static_cast<int>(value.toLongLong() / 1000);
}
if (m_maxSpeed <= 0) {
actcd19/main/libm/libmwaw/libmwaw_0.3.14-1/src/lib/BeagleWksDBParser.cxx:583:
f.str("");
f << "Entries(Formula):";
auto id=static_cast<int>(input->readLong(2));
if (id!=n-1) f << "#id=" << id << ",";
dSz=static_cast<int>(input->readULong(2));
actcd19/main/v/vtk7/vtk7_7.1.1+dfsg1-12/Parallel/MPI/Testing/Cxx/ExerciseMultiProcessController.cxx:952:
COUT("Custom Reduce with vtkDataArray");
destProcessId = static_cast<int>(vtkMath::Random(0.0, numProc - 0.01));
buffer->Initialize();
result = 1;
actcd19/main/t/tiled-qt/tiled-qt_1.0.3-1/src/tiled/raiselowerhelper.cpp:88:
MapObjectItem *targetItem = mRelatedObjects.at(it.first() - 1);
const int from = static_cast<int>(movingItem->zValue());
const int to = static_cast<int>(targetItem->zValue());
actcd19/main/q/qt-gstreamer/qt-gstreamer_1.2.0-5/src/QGst/gen.cpp:597:
BOOST_STATIC_ASSERT(static_cast<int>(PadFlagProxyAllocation) == static_cast<int>(GST_PAD_FLAG_PROXY_ALLOCATION));
BOOST_STATIC_ASSERT(static_cast<int>(PadFlagProxyScheduling) == static_cast<int>(GST_PAD_FLAG_PROXY_SCHEDULING));
BOOST_STATIC_ASSERT(static_cast<int>(PadFlagLast) == static_cast<int>(GST_PAD_FLAG_LAST));
}
actcd19/main/i/inkscape/inkscape_0.92.4-2/src/ui/dialog/layers.cpp:587:
Gtk::TreeViewColumn* col = 0;
int x = static_cast<int>(event->x);
int y = static_cast<int>(event->y);
int x2 = 0;
int y2 = 0;
actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/rol/src/sol/function/ROL_SimulatedEqualityConstraint.hpp:179:
for (typename std::vector<SimulatedVector<Real> >::size_type i=0; i<pv.numVectors(); ++i) {
param = sampler_->getMyPoint(static_cast<int>(i));
weight = sampler_->getMyWeight(static_cast<int>(i));
pcon_->setParameter(param);
Vector_SimOpt<Real> xi(Teuchos::rcp_const_cast<Vector<Real> >(pxu.get(i)), Teuchos::rcp_const_cast<Vector<Real> >(xzptr));
actcd19/main/i/icinga2/icinga2_2.7.0-1/lib/base/value-operators.cpp:431:
{
if ((lhs.IsNumber() || lhs.IsEmpty()) && (rhs.IsNumber() || rhs.IsEmpty()) && !(lhs.IsEmpty() && rhs.IsEmpty()))
return static_cast<int>(lhs) ^ static_cast<int>(rhs);
else
BOOST_THROW_EXCEPTION(std::invalid_argument("Operator & cannot be applied to values of type '" + lhs.GetTypeName() + "' and '" + rhs.GetTypeName() + "'"));
actcd19/main/q/qtbase-opensource-src/qtbase-opensource-src_5.10.1+dfsg-5/tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp:2259:
<< 0 // proxyStartRow
<< "a" // what
<< static_cast<int>(Qt::MatchExactly) // matchFlags
<< (IntList() << 1); // expectedProxyItems
QTest::newRow("4")
actcd19/main/libs/libsbml/libsbml_5.17.2+dfsg-3/src/sbml/packages/render/sbml/Transformation.cpp:1144:
Transformation_isPolygon(const Transformation_t * t)
{
return (t != NULL) ? static_cast<int>(t->isPolygon()) : 0;
}
actcd19/main/z/zeroc-ice/zeroc-ice_3.7.2-4/php/src/php7/Connection.cpp:357:
int rcvSize = static_cast<int>(Z_LVAL_P(r));
int sndSize = static_cast<int>(Z_LVAL_P(s));
try
actcd19/main/m/med-fichier/med-fichier_4.0.0+repack-7/python/medenumtest_int_wrap.cc:6422:
SWIG_Python_SetConstant(d, "MED_QUAD9",SWIG_From_int(static_cast< int >(209)));
SWIG_Python_SetConstant(d, "MED_TETRA4",SWIG_From_int(static_cast< int >(304)));
SWIG_Python_SetConstant(d, "MED_PYRA5",SWIG_From_int(static_cast< int >(305)));
SWIG_Python_SetConstant(d, "MED_PENTA6",SWIG_From_int(static_cast< int >(306)));
SWIG_Python_SetConstant(d, "MED_HEXA8",SWIG_From_int(static_cast< int >(308)));
actcd19/main/c/clickhouse/clickhouse_18.16.1+ds-4/libs/libcommon/src/DateLUTImpl.cpp:118:
/// We doesn't support cases when time change results in switching to previous day.
if (static_cast<int>(lut[i - 1].time_at_offset_change) + static_cast<int>(lut[i - 1].amount_of_offset_change) < 0)
lut[i - 1].time_at_offset_change = -lut[i - 1].amount_of_offset_change;
}
actcd19/main/q/qscintilla2/qscintilla2_2.9.3+dfsg-5/Qt4Qt5/ScintillaQt.cpp:670:
void QsciScintillaQt::FineTickerStart(TickReason reason, int ms, int)
{
int &ticker = timers[static_cast<int>(reason)];
if (ticker != 0)
actcd19/main/g/gdal/gdal_2.4.0+dfsg-1/frmts/pcidsk/ogrpcidsklayer.cpp:183:
{
CPLDebug( "PCIDSK", "%d features read on layer '%s'.",
static_cast<int>( m_nFeaturesRead ),
poFeatureDefn->GetName() );
}
actcd19/main/c/ceph/ceph_12.2.11+dfsg1-2/src/boost/boost/regex/v4/regex_traits_defaults.hpp:216:
const character_pointer_range<charT>* p = std::lower_bound(ranges_begin, ranges_end, t);
if((p != ranges_end) && (t == *p))
return static_cast<int>(p - ranges);
return -1;
}
actcd19/main/p/paraview/paraview_5.4.1+dfsg4-3.1/VTK/Parallel/Core/vtkSocketCommunicator.cxx:521:
}
vtkDebugMacro(<< "Remote has 64 bit ids: " << this->RemoteHas64BitIds);
if (!this->SendTagged(&IHave64BitIds, static_cast<int>(sizeof(int)), 1,
vtkSocketController::IDTYPESIZE_TAG, 0))
{
actcd19/main/c/ccfits/ccfits_2.5+dfsg-1/ColumnT.h:743:
{
int nullVal(0);
if (nullValue) nullVal = static_cast<int>(*nullValue);
ColumnVectorData<int>& col
= dynamic_cast<ColumnVectorData<int>&>(*this);
actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/sc/source/core/tool/token.cxx:383:
FormulaToken* ScRawToken::CreateToken() const
{
#define IF_NOT_OPCODE_ERROR(o,c) SAL_WARN_IF((eOp!=o), "sc.core", #c "::ctor: OpCode " << static_cast<int>(eOp) << " lost, converted to " #o "; maybe inherit from FormulaToken instead!")
switch ( GetType() )
{
actcd19/main/o/openclonk/openclonk_8.1-1/src/landscape/fow/C4FoWLightSection.cpp:726:
// This should always follow an elimination, but better check
assert(beamCount > static_cast<int>(result.size()));
C4FoWBeamTriangle newTriangle;
actcd19/main/c/cloudcompare/cloudcompare_2.10.1-1/libs/qCC_io/PlyFilter.cpp:1077:
stdPropsText << QString("None");
{
for (int i = 1; i <= static_cast<int>(stdProperties.size()); ++i)
{
plyProperty& pp = stdProperties[i - 1];
actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/stk/stk_unit_tests/stk_util/util/UnitTestCSet.cpp:125:
sa = cs.insert_no_delete<A>(&u);
ASSERT_TRUE(sa->id() == static_cast<int>(U::ID));
sb = cs.insert_no_delete<B>(&v);
actcd19/main/libi/libitpp/libitpp_4.3.1-6/itpp/base/itfile.cpp:491:
double val_real, val_imag;
s >> size;
v.set_size(static_cast<int>(size), false);
for (int i = 0; i < v.size(); ++i) {
s >> val_real;
actcd19/main/g/guetzli/guetzli_1.0.1-1/guetzli/jpeg_data_reader.cc:1023:
default:
fprintf(stderr, "Unsupported marker: %d pos=%d len=%d\n",
marker, static_cast<int>(pos), static_cast<int>(len));
jpg->error = JPEG_UNSUPPORTED_MARKER;
ok = false;
actcd19/main/libo/libosl/libosl_0.8.0-1.4/core/osl/basic_type.h:131:
{
assert(isValid(ptype));
return static_cast<int>(ptype)>PROOK;
}
actcd19/main/k/krusader/krusader_2.7.1-1/krusader/DiskUsage/radialMap/map.cpp:327:
#endif
sinra = sin(ra); cosra = cos(ra);
pos.rx() = cpos.x() + static_cast<int>(cosra * radius);
pos.ry() = cpos.y() - static_cast<int>(sinra * radius);
pts.setPoint(i, pos);
actcd19/main/c/codeblocks/codeblocks_16.01+dfsg-2.1/src/sdk/wxscintilla/src/scintilla/src/Editor.cxx:6122:
case SCI_GETLINEINDENTATION:
return pdoc->GetLineIndentation(static_cast<int>(wParam));
case SCI_GETLINEINDENTPOSITION:
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/v8/src/heap/remembered-set.h:72:
DCHECK_LT(start_offset, end_offset);
if (end_offset < static_cast<uintptr_t>(Page::kPageSize)) {
slot_set->RemoveRange(static_cast<int>(start_offset),
static_cast<int>(end_offset), mode);
} else {
actcd19/main/libm/libmwaw/libmwaw_0.3.14-1/src/lib/ClarisDrawStyleManager.cxx:1154:
if (val!=0x2001)
f << "fl=" << std::hex << val << std::dec << ",";
auto sSz=static_cast<int>(input->readULong(1));
if (!sSz || sSz+9>header.m_dataSize) {
MWAW_DEBUG_MSG(("ClarisDrawStyleManager::readFontStyles: the string size seems bad\n"));
actcd19/main/q/qtwebkit/qtwebkit_2.3.4.dfsg-10/Tools/DumpRenderTree/gtk/TextInputController.cpp:126:
return JSValueMakeUndefined(context);
int location = static_cast<int>(JSValueToNumber(context, arguments[0], exception));
ASSERT(!exception || !*exception);
actcd19/main/z/zeroc-ice/zeroc-ice_3.6.4-1+buster/cpp/test/Ice/enums/AllTests.cpp:64:
test(static_cast<int>(ienum10) == LongConst1 + 1);
test(static_cast<int>(ienum11) == IntConst2);
test(static_cast<int>(ienum12) == LongConst2);
test(static_cast<int>(red) == 0);
actcd19/main/l/lammps/lammps_0~20151117.gite3c4db7-3/src/USER-H5MD/dump_h5md.cpp:190:
bigint n = group->count(igroup);
natoms = static_cast<int> (n);
if (every_position>=0)
actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/angle/src/tests/test_utils/ConstantFoldingTest.h:116:
ASSERT(mFaultTolerance < static_cast<unsigned int>(std::numeric_limits<int>::max()));
return static_cast<int>(mFaultTolerance) >=
abs(static_cast<int>(node.getUConst() - value)) &&
static_cast<int>(node.getUConst() - value) != std::numeric_limits<int>::min();
}
actcd19/main/m/mariadb-10.3/mariadb-10.3_10.3.13-1/sql/sql_lex.cc:3553:
parsing.
*/
if (static_cast<int>(tables->lock_type) >=
static_cast<int>(TL_WRITE_ALLOW_WRITE))
tables->trg_event_map= new_trg_event_map;
actcd19/main/p/paraview/paraview_5.0.1+dfsg1-5.1/VTK/Rendering/ContextOpenGL2/vtkOpenGLContextDevice2D.cxx:1219:
// ceil because we want to make sure we don't underestimate the number of
// iterations by 1.
return static_cast<int>(
ceil(vtkMath::RadiansFromDegrees(stopAngle - startAngle) / maxStep));
}
actcd19/main/t/thunderbird/thunderbird_60.5.1-1/gfx/angle/checkout/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp:3468:
double readToDrawScale =
static_cast<double>(drawRectIn.height) / static_cast<double>(readRectIn.height);
return static_cast<int>(round(static_cast<double>(readOffset) * readToDrawScale));
};
if (readRect.y < 0)
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/v8/src/deoptimizer.cc:3867:
Handle<Object> marker = isolate_->factory()->arguments_marker();
int length = static_cast<int>(object_positions_.size());
CHECK_EQ(length, previously_materialized_objects->length());
actcd19/main/r/rdkit/rdkit_201809.1+dfsg-6/Code/GraphMol/Aromaticity.cpp:404:
INT_VECT exclude;
for (i = 0; i < srings.size(); i++) {
if (std::find(curRs.begin(), curRs.end(), static_cast<int>(i)) ==
curRs.end()) {
exclude.push_back(i);
actcd19/main/x/xplanet/xplanet_1.3.0-5.1/src/Map.cpp:928:
// idark = number of pixels that are in darkness at the
// current latitude
int idark = static_cast<int> (width_ * (1 - length_of_day));
// ilight = number of pixels from noon to the terminator
actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/deps/v8/src/inspector/v8-debugger-agent-impl.cc:204:
bestMatch += searchRegionOffset;
v8::debug::Location hintPosition =
script.location(static_cast<int>(bestMatch));
if (hintPosition.IsEmpty()) return;
*lineNumber = hintPosition.GetLineNumber();
actcd19/main/p/paraview/paraview_5.4.1+dfsg4-3.1/Utilities/VisItBridge/databases/AvtAlgorithms/vtkAvtFileFormatAlgorithm.cxx:693:
}
numTimeValues = static_cast<int>(timesteps.size());
outInfo->Set(vtkStreamingDemandDrivenPipeline::TIME_STEPS(),
actcd19/main/g/gdal/gdal_2.4.0+dfsg-1/frmts/raw/idadataset.cpp:96:
double temp = 0.0;
mant = modf(mant * 128, &temp);
r[5] = static_cast<unsigned char>( static_cast<int>(temp) & 0xff);
for( int i = 4; i >= 1; i-- )
{
actcd19/main/c/clickhouse/clickhouse_18.16.1+ds-4/libs/libdaemon/src/BaseDaemon.cpp:547:
DB::WriteBufferFromFileDescriptor out(signal_pipe.write_fd, buf_size, buf);
DB::writeBinary(static_cast<int>(SignalListener::StdTerminate), out);
DB::writeBinary(Poco::ThreadNumber::get(), out);
DB::writeBinary(log_message, out);
actcd19/main/d/dune-pdelab/dune-pdelab_2.6~20180302-1/dune/pdelab/common/function.hh:697:
{
// ensure correct size
static_assert((static_cast<int>(T::Traits::GridViewType::dimension)==static_cast<int>(T::Traits::dimRange)),"number of components must equal dimension");
// evaluate velocity
actcd19/main/g/gdal/gdal_2.4.0+dfsg-1/port/cpl_json.cpp:204:
return false;
return LoadMemory( reinterpret_cast<const GByte*>(osStr.data()),
static_cast<int>(osStr.size()) );
}
actcd19/main/a/aiksaurus/aiksaurus_1.2.1+dev-0.12-6.3/gtk/src/Display.cpp:95:
// Clear out meanings.
for(int i = 0;i < static_cast<int>(d_meanings.size());++i)
{
delete d_meanings[i];
actcd19/main/k/krita/krita_3.3.2.1+dfsg-1/libs/odf/KoOdfGraphicStyles.cpp:130:
dashStyle.addAttributePt("draw:distance", dashes[1]*pen.widthF());
if (dashes.size() > 2) {
dashStyle.addAttribute("draw:dots2", static_cast<int>(1));
dashStyle.addAttributePt("draw:dots2-length", dashes[2]*pen.widthF());
}
actcd19/main/q/qtwebkit-opensource-src/qtwebkit-opensource-src_5.212.0~alpha2-20/Source/WTF/wtf/MathExtras.h:190:
if (x >= intMax)
return std::numeric_limits<int>::max();
return static_cast<int>(x);
}
actcd19/main/c/chromium/chromium_72.0.3626.121-1/chrome/browser/ui/webui/ntp/core_app_launcher_handler.cc:44:
extension_misc::AppLaunchBucket bucket =
static_cast<extension_misc::AppLaunchBucket>(static_cast<int>(source));
CHECK(source < extension_misc::APP_LAUNCH_BUCKET_BOUNDARY);
actcd19/main/q/qt4-x11/qt4-x11_4.8.7+dfsg-17/src/3rdparty/webkit/Source/WebCore/rendering/RenderTextControlSingleLine.cpp:575:
factor = 20;
int result = static_cast<int>(ceilf(charWidth * factor));
float maxCharWidth = 0.f;
actcd19/main/q/qtwebkit/qtwebkit_2.3.4.dfsg-10/Source/WebCore/dom/Element.cpp:416:
if (zoomFactor > 1)
value++;
return static_cast<int>(value / zoomFactor);
#endif
}
actcd19/main/w/webkit2gtk/webkit2gtk_2.18.3-1/Source/JavaScriptCore/jit/JITInlines.h:137:
ALWAYS_INLINE void JIT::updateTopCallFrame()
{
ASSERT(static_cast<int>(m_bytecodeOffset) >= 0);
#if USE(JSVALUE32_64)
Instruction* instruction = m_codeBlock->instructions().begin() + m_bytecodeOffset;
actcd19/main/w/wsjtx/wsjtx_2.0.0+repack-2/models/Modes.cpp:40:
char const * Modes::name (Mode m)
{
return mode_names[static_cast<int> (m)];
}
actcd19/main/m/mame/mame_0.182-1/src/mame/audio/tx1.cpp:102:
{
static const int r0[4] = { static_cast<int>(390e3), static_cast<int>(180e3), static_cast<int>(180e3), static_cast<int>(180e3) };
static const int r1[3] = { static_cast<int>(180e3), static_cast<int>(390e3), static_cast<int>(56e3) };
static const int r2[3] = { static_cast<int>(390e3), static_cast<int>(390e3), static_cast<int>(180e3) };
actcd19/contrib/o/openmw/openmw_0.45.0-2/apps/openmw/mwmechanics/pathfinding.hpp:110:
static ESM::Pathgrid::Point MakePathgridPoint(const ESM::Position& p)
{
return ESM::Pathgrid::Point(static_cast<int>(p.pos[0]), static_cast<int>(p.pos[1]), static_cast<int>(p.pos[2]));
}
actcd19/main/q/qt4-x11/qt4-x11_4.8.7+dfsg-17/src/3rdparty/webkit/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:1751:
FloatRect clipRect(dirtyX, dirtyY, dirtyWidth, dirtyHeight);
clipRect.intersect(IntRect(0, 0, data->width(), data->height()));
IntSize destOffset(static_cast<int>(dx), static_cast<int>(dy));
IntRect destRect = enclosingIntRect(clipRect);
destRect.move(destOffset);
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/extensions/browser/updater/extension_installer_unittest.cc:177:
EXPECT_TRUE(executed_);
EXPECT_EQ(static_cast<int>(InstallError::GENERIC_ERROR), result_.error);
}
actcd19/main/i/isc-kea/isc-kea_1.5.0-1/src/lib/dhcpsrv/benchmarks/memfile_lease_mgr_benchmark.cc:110:
// resulting file names are the ones that may exist as a
// result of LFC.
for (int i = static_cast<int>(Memfile_LeaseMgr::FILE_CURRENT);
i <= static_cast<int>(Memfile_LeaseMgr::FILE_FINISH); ++i) {
Memfile_LeaseMgr::LFCFileType type = static_cast<Memfile_LeaseMgr::LFCFileType>(i);
actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/src/tracing/trace_event_common.h:496:
name, id, TRACE_EVENT_FLAG_COPY, \
value1_name, static_cast<int>(value1_val), \
value2_name, static_cast<int>(value2_val))
// TRACE_EVENT_SAMPLE_* events are injected by the sampling profiler.
actcd19/main/v/vtk6/vtk6_6.3.0+dfsg2-2/Rendering/Volume/vtkVolumeTextureMapper3D.cxx:164:
idx = static_cast<int>(*(inPtr++) + offset);
*(outPtr++) = idx;
idx = static_cast<int>(*(inPtr++) + offset);
*(outPtr++) = idx;
idx = static_cast<int>(*(inPtr++) + offset);
actcd19/main/libm/libmwaw/libmwaw_0.3.14-1/src/lib/HanMacWrdJText.cxx:1699:
f.str("");
f << entry.name() << "-" << i << ":";
auto fId = static_cast<int>(input->readLong(2));
f << "fId=" << fId << ",";
val = static_cast<int>(input->readLong(2));
actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/moocho/src/MoochoPack/src/std/MoochoPack_ReducedHessianSecantUpdateLPBFGS_Strategy.cpp:394:
out << "\n---------------------------------------------------------------------\n";
}
if( static_cast<int>(olevel) >= static_cast<int>(PRINT_ITERATION_QUANTITIES) ) {
out << "\nrHL_RR after adding previous BFGS updates:\nrHL_BRR =\n"
<< dynamic_cast<MatrixOp&>(*rHL_RR);
actcd19/main/n/ncbi-blast+/ncbi-blast+_2.8.1-1/c++/src/objtools/data_loaders/genbank/reader_id2_base.cpp:1911:
}}
end_serial_num =
static_cast<int>(m_RequestSerialNumber.Add(info.request_count));
}
info.start_serial_num = end_serial_num - info.request_count;
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp:259:
"Media.Autoplay.CrossOrigin.Allowed.TopLevelFrame",
element_->GetDocument().TopDocument().Url());
autoplay_result_histogram.Count(static_cast<int>(result));
recorded_cross_origin_autoplay_results_.insert(result);
break;
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/webrtc/modules/video_coding/codec_database.cc:119:
if (new_send_codec.maxBitrate == 0) {
// max is one bit per pixel
new_send_codec.maxBitrate = (static_cast<int>(send_codec->height) *
static_cast<int>(send_codec->width) *
static_cast<int>(send_codec->maxFramerate)) /
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/media/formats/common/stream_parser_test_base.cc:123:
void StreamParserTestBase::OnKeyNeeded(EmeInitDataType type,
const std::vector<uint8_t>& init_data) {
DVLOG(1) << __func__ << "(" << static_cast<int>(type) << ", "
<< init_data.size() << ")";
}
actcd19/main/libm/libmwaw/libmwaw_0.3.14-1/src/lib/ActaParser.cxx:944:
input->seek(0, librevenge::RVNG_SEEK_SET);
if (vers==3) {
val=static_cast<int>(input->readULong(2));
if (val!=3) {
if (strict) return false;
actcd19/main/k/khtml/khtml_5.37.0-3/src/css/css_mediaquery.cpp:423:
if (value && bitsPerComponent) {
float number = 0;
return numberValue(value, number) && compareValue(bitsPerComponent, static_cast<int>(number), op);
}
return bitsPerComponent;
actcd19/main/libv/libv8-3.14/libv8-3.14_3.14.5.8-11/src/regexp-macro-assembler-tracer.cc:54:
// that is closely related to the address of an object.
static int LabelToInt(Label* label) {
return static_cast<int>(reinterpret_cast<intptr_t>(label));
}
actcd19/contrib/c/caffe-contrib/caffe-contrib_1.0.0+git20180821.99bd997-2/src/caffe/layers/embed_layer.cpp:96:
int index;
for (int n = 0; n < M_; ++n) {
index = static_cast<int>(bottom_data[n]);
DCHECK_GE(index, 0);
DCHECK_LT(index, K_);
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/ppapi/proxy/interface_list.cc:338:
InterfaceProxy::Factory InterfaceList::GetFactoryForID(ApiID id) const {
int index = static_cast<int>(id);
static_assert(API_ID_NONE == 0, "none must be zero");
if (id <= 0 || id >= API_ID_COUNT)
actcd19/main/e/ecflow/ecflow_4.7.1+dfsg.1-1/Viewer/src/NodeExpression.cpp:413:
if (!funcStack.empty() && !funcStack.back()->delayUnwinding())
{
if(updatedOperands && (static_cast<int>(operandStack.size()) >= funcStack.back()->numOperands()))
{
std::vector<BaseNodeCondition *> operands;
actcd19/main/k/kido/kido_0.1.0+dfsg-6/kido/dynamics/InverseKinematics.cpp:213:
const Eigen::VectorXd& _q)
{
if(_q.size() != static_cast<int>(mIK->getDofs().size()))
{
dterr << "[InverseKinematics::ErrorMethod::evalError] Mismatch between "
actcd19/main/p/pcsx2/pcsx2_1.5.0~gfc1d9aef0+dfsg-1/plugins/GSdx/GSRendererHW.cpp:164:
// be the real buffer size. Not sure if the width one is needed, need to check it on some random data before enabling it.
// int framebuffer_width = static_cast<int>(std::round(scissored_buffer_size.x * scaling_ratio.x));
int framebuffer_height = static_cast<int>(std::round(scissored_buffer_size.y * scaling_ratio.y));
if (m_width >= m_custom_width && m_height >= framebuffer_height)
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/net/url_request/redirect_info_unittest.cc:438:
std::string raw_headers = HttpUtil::AssembleRawHeaders(
response_header_text.c_str(),
static_cast<int>(response_header_text.length()));
auto response_headers =
base::MakeRefCounted<HttpResponseHeaders>(raw_headers);
actcd19/main/m/mame/mame_0.176-3/src/devices/sound/discrete.h:4686:
#define DISCRETE_CUSTOM5(NODE,CLASS,IN0,IN1,IN2,IN3,IN4,INFO) DSC_SND_ENTRY( NODE, CLASS, DST_CUSTOM , 5, DSE( static_cast<int>(IN0),static_cast<int>(IN1),static_cast<int>(IN2),static_cast<int>(IN3),static_cast<int>(IN4) ), DSE( IN0,IN1,IN2,IN3,IN4 ), INFO, "DISCRETE_CUSTOM5" ),
#define DISCRETE_CUSTOM6(NODE,CLASS,IN0,IN1,IN2,IN3,IN4,IN5,INFO) DSC_SND_ENTRY( NODE, CLASS, DST_CUSTOM , 6, DSE( static_cast<int>(IN0),static_cast<int>(IN1),static_cast<int>(IN2),static_cast<int>(IN3),static_cast<int>(IN4),static_cast<int>(IN5) ), DSE( IN0,IN1,IN2,IN3,IN4,IN5 ), INFO, "DISCRETE_CUSTOM6" ),
#define DISCRETE_CUSTOM7(NODE,CLASS,IN0,IN1,IN2,IN3,IN4,IN5,IN6,INFO) DSC_SND_ENTRY( NODE, CLASS, DST_CUSTOM , 7, DSE( static_cast<int>(IN0),static_cast<int>(IN1),static_cast<int>(IN2),static_cast<int>(IN3),static_cast<int>(IN4),static_cast<int>(IN5),static_cast<int>(IN6) ), DSE( IN0,IN1,IN2,IN3,IN4,IN5,IN6 ), INFO, "DISCRETE_CUSTOM7" ),
#define DISCRETE_CUSTOM8(NODE,CLASS,IN0,IN1,IN2,IN3,IN4,IN5,IN6,IN7,INFO) DSC_SND_ENTRY( NODE, CLASS, DST_CUSTOM , 8, DSE( static_cast<int>(IN0),static_cast<int>(IN1),static_cast<int>(IN2),static_cast<int>(IN3),static_cast<int>(IN4),static_cast<int>(IN5),static_cast<int>(IN6),static_cast<int>(IN7) ), DSE( IN0,IN1,IN2,IN3,IN4,IN5,IN6,IN7 ), INFO, "DISCRETE_CUSTOM8" ),
#define DISCRETE_CUSTOM9(NODE,CLASS,IN0,IN1,IN2,IN3,IN4,IN5,IN6,IN7,IN8,INFO) DSC_SND_ENTRY( NODE, CLASS, DST_CUSTOM , 9, DSE( static_cast<int>(IN0),static_cast<int>(IN1),static_cast<int>(IN2),static_cast<int>(IN3),static_cast<int>(IN4),static_cast<int>(IN5),static_cast<int>(IN6),static_cast<int>(IN7),static_cast<int>(IN8) ), DSE( IN0,IN1,IN2,IN3,IN4,IN5,IN6,IN7,IN8 ), INFO, "DISCRETE_CUSTOM9" ),
actcd19/main/o/openjfx/openjfx_11.0.2+1-1/modules/javafx.web/src/main/native/Source/WebCore/platform/graphics/filters/FELighting.cpp:233:
int center = static_cast<int>(pixels->item(offset + cAlphaChannelOffset));
offset -= widthMultipliedByPixelSize;
int topLeft = static_cast<int>(pixels->item(offset - cPixelSize + cAlphaChannelOffset));
int top = static_cast<int>(pixels->item(offset + cAlphaChannelOffset));
return {
actcd19/main/p/pentobi/pentobi_14.0-1/src/libpentobi_gui/BoardPainter.cpp:155:
else if (m_isGembloQ)
{
fontSize = static_cast<int>(1.4f * m_fieldWidth);
coordFontSize = static_cast<int>(0.7f * m_fieldWidth);
}
actcd19/main/c/chromium/chromium_72.0.3626.121-1/components/feature_engagement/internal/chrome_variations_configuration_unittest.cc:685:
histogram_tester.ExpectBucketCount(
kConfigParseEventName,
static_cast<int>(stats::ConfigParsingEvent::FAILURE), 1);
histogram_tester.ExpectTotalCount(kConfigParseEventName, 2);
}
actcd19/main/f/firebird3.0/firebird3.0_3.0.5.33100.ds4-2/src/qli/lex.cpp:644:
}
qli_line* line = (qli_line*) ALLOCPV(type_line, static_cast<int>(strlen(filename)));
line->line_type = line_file;
line->line_source_file = file;
actcd19/main/s/scilab/scilab_6.0.1-7/modules/ast/src/cpp/types/implicitlist.cpp:276:
m_iSize = static_cast<int>(floor( static_cast<double>(_abs64(llEnd - llStart) / _abs64(llStep)) )) + 1;
#else
m_iSize = static_cast<int>(floor( static_cast<double>(llabs(llEnd - llStart) / llabs(llStep)) )) + 1;
#endif
}
actcd19/main/g/gdal/gdal_2.4.0+dfsg-1/ogr/ogrsf_frmts/nas/nashandler.cpp:736:
if( m_pszCurField != nullptr )
{
const int nCurFieldLength = static_cast<int>(strlen(m_pszCurField));
int nSkipped = 0;
actcd19/main/q/qtwebkit/qtwebkit_2.3.4.dfsg-10/Source/JavaScriptCore/assembler/MacroAssemblerARM.h:356:
void load8(BaseIndex address, RegisterID dest)
{
m_assembler.baseIndexTransfer32(ARMAssembler::LoadUint8, dest, address.base, address.index, static_cast<int>(address.scale), address.offset);
}
actcd19/main/s/supertuxkart/supertuxkart_0.9.3-2/lib/bullet/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.cpp:205:
/*if (proxyId1 > proxyId2)
btSwap(proxyId1, proxyId2);*/
int hashValue = static_cast<int>(getHash(static_cast<unsigned int>(proxyId1),static_cast<unsigned int>(proxyId2)) & (m_overlappingPairArray.capacity()-1)); // New hash value with new mask
m_next[i] = m_hashTable[hashValue];
m_hashTable[hashValue] = i;
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType_common.cpp:192:
"static_cast<int>(srcFTBitmap.rows) = %d",
dstMask.fBounds.height(),
static_cast<int>(srcFTBitmap.rows)
);
actcd19/main/v/vtk6/vtk6_6.3.0+dfsg2-2/Charts/Core/vtkChartXY.cxx:532:
// The offsetIndex deals with the fact that half the bars
// must shift to the left of the point and half to the right
int offsetIndex = static_cast<int>(bars.size() - 1);
for (size_t i = 0; i < bars.size(); ++i)
{
actcd19/main/q/qscintilla2/qscintilla2_2.10.4+dfsg-2/src/Editor.cpp:7647:
case SCI_GETLINESELSTARTPOSITION:
case SCI_GETLINESELENDPOSITION: {
SelectionSegment segmentLine(SelectionPosition(pdoc->LineStart(static_cast<int>(wParam))),
SelectionPosition(pdoc->LineEnd(static_cast<int>(wParam))));
for (size_t r=0; r<sel.Count(); r++) {
actcd19/main/g/groonga/groonga_9.0.0-1/test/unit/core/dat/test-dat.cpp:287:
for (std::size_t i = 0; i < keys.size(); ++i) {
const grn_id key_id = static_cast<grn_id>(i + 1);
const int length = static_cast<int>(keys[i].length());
uint32_t key_length;
actcd19/main/c/chromium/chromium_72.0.3626.121-1/components/printing/test/mock_printer.cc:33:
params->content_size.SetSize(static_cast<int>((8.0 * dpi)),
static_cast<int>((10.5 * dpi)));
params->margin_left = static_cast<int>(0.25 * dpi);
params->margin_top = static_cast<int>(0.25 * dpi);
} else if (margins_type == printing::CUSTOM_MARGINS) {
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/core/api/qtwebenginecoreglobal.h:53:
#endif
#define ASSERT_ENUMS_MATCH(A, B) Q_STATIC_ASSERT_X(static_cast<int>(A) == static_cast<int>(B), "The enum values must match");
QT_END_NAMESPACE
actcd19/main/libm/libmwaw/libmwaw_0.3.14-1/src/lib/HanMacWrdKText.cxx:1276:
spacing = double(input->readLong(4))/65536.0;
int spacingsUnit[3]; // 1=mm, ..., 4=pt, b=line
for (auto &unit : spacingsUnit) unit = static_cast<int>(input->readULong(1));
if (spacingsUnit[0]==0xb)
para.m_spacingsInterlineUnit = librevenge::RVNG_PERCENT;
actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/intrepid/example/Shared/example_04.cpp:291:
double beta, Kokkos::View<double**,Kokkos::LayoutRight,Kokkos::Cuda> C){
const int m = static_cast<int> (C.dimension_0()),
n = static_cast<int> (C.dimension_1 ()),
k = (transA == Teuchos::NO_TRANS ? A.dimension_1 () : A.dimension_0 ());
cublasOperation_t transposeA;
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/v8/src/builtins/builtins-array.cc:586:
// a 32-bit signed integer.
DCHECK_GE(static_cast<int32_t>(FixedDoubleArray::kMaxLength), 0);
int fast_length = static_cast<int>(length);
if (array->elements()->IsFixedArray()) {
DCHECK_EQ(FixedArray::cast(array->elements())->length(), 0);
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/webrtc/rtc_base/physicalsocketserver.cc:401:
int PhysicalSocket::Recv(void* buffer, size_t length, int64_t* timestamp) {
int received = ::recv(s_, static_cast<char*>(buffer),
static_cast<int>(length), 0);
if ((received == 0) && (length != 0)) {
// Note: on graceful shutdown, recv can return 0. In this case, we
actcd19/main/m/mysql-5.7/mysql-5.7_5.7.25-1/boost/boost_1_59_0/boost/thread/lock_types.hpp:724:
if(m==0)
{
boost::throw_exception(boost::lock_error(static_cast<int>(system::errc::operation_not_permitted), "boost shared_lock has no mutex"));
}
if(!owns_lock())