name
string
code
string
asm
string
file
string
QtMWidgets::Picker::_q_emitCurrentIndexChanged(QModelIndex const&)
void Picker::_q_emitCurrentIndexChanged( const QModelIndex & index ) { emit currentIndexChanged( index.row() ); const QString text = d->itemText( index ); emit currentIndexChanged( text ); emit currentTextChanged( text ); #ifndef QT_NO_ACCESSIBILITY QAccessibleEvent event( this, QAccessible::NameCh...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x10(%rbp), %rdi callq 0xf42c0 movq -0x68(%rbp), %rdi movl %eax, %esi callq 0xa4780 movq -0x68(%rbp), %rdi addq $0x28, %rdi callq 0xf45f0 movq %rax, %rsi movq -0x10(%rbp), %rdx lea...
/igormironchik[P]qtmwidgets/src/picker.cpp
QtMWidgets::PickerPrivate::minimumSizeHint(QStyleOption const&)
QSize PickerPrivate::minimumSizeHint( const QStyleOption & opt ) { stringHeight = opt.fontMetrics.boundingRect( QLatin1String( "A" ) ).height(); itemSideMargin = opt.fontMetrics.averageCharWidth() * 3; itemTopMargin = stringHeight / 3; const int minStringWidth = opt.fontMetrics.averageCharWidth() * (...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x90(%rbp) movq -0x18(%rbp), %rax addq $0x20, %rax movq %rax, -0x88(%rbp) leaq 0x1f6ac(%rip), %rsi # 0x10fb10 leaq -0x50(%rbp), %rdi callq 0xb96d0 movq -0x50(%rbp), %rsi movq -0x48(%rbp), %rd...
/igormironchik[P]qtmwidgets/src/picker.cpp
QtMWidgets::PickerPrivate::indexForPos(QPoint const&)
QModelIndex PickerPrivate::indexForPos( const QPoint & pos ) { int offset = drawItemOffset; for( int i = 0; i < itemsCount + 1; ++i ) { const QRect r( q->rect().x() + itemSideMargin, offset, q->rect().width() - itemSideMargin, stringHeight ); if( r.contains( pos ) ) { QPersistentModelIndex ...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x80(%rbp) movq %rdi, -0x78(%rbp) movq %rsi, -0x8(%rbp) movq %rdx, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x70(%rbp) movl 0x30(%rax), %eax movl %eax, -0x14(%rbp) movl $0x0, -0x18(%rbp) movq -0x70(%rbp), %rcx movl -0x18(%rbp), %eax movl 0x4c(%rcx), %ecx addl...
/igormironchik[P]qtmwidgets/src/picker.cpp
QtMWidgets::Picker::_q_dataChanged(QModelIndex const&, QModelIndex const&)
void Picker::_q_dataChanged( const QModelIndex & topLeft, const QModelIndex & bottomRight ) { if( d->inserting || topLeft.parent() != d->root ) return; if( d->currentIndex.row() >= topLeft.row() && d->currentIndex.row() <= bottomRight.row() ) { const QString text = itemText( d->currentIndex.row() )...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0xa0(%rbp) addq $0x28, %rdi callq 0xf45f0 movq %rax, %rcx movb $0x1, %al testb $0x1, 0x38(%rcx) movb %al, -0x91(%rbp) jne 0xf1cfc movq -0x10(%rbp), %rsi leaq -0x30(%rbp), %rd...
/igormironchik[P]qtmwidgets/src/picker.cpp
QtMWidgets::Picker::wheelEvent(QWheelEvent*)
void Picker::wheelEvent( QWheelEvent * event ) { QPoint numPixels = event->pixelDelta(); QPoint numDegrees = event->angleDelta(); if( !numPixels.isNull() ) { d->drawItemOffset += numPixels.y(); update(); } else if( !numDegrees.isNull() ) { d->drawItemOffset += numDegrees.y() / 8; update();...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rdi callq 0xba320 movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0xba340 movq %rax, -0x20(%rbp) leaq -0x18(%rbp), %rdi callq 0xba360 testb $0x1, %al jne 0xf3f5c l...
/igormironchik[P]qtmwidgets/src/picker.cpp
QtMWidgets::ScrollArea::setWidget(QWidget*)
void ScrollArea::setWidget( QWidget * widget ) { ScrollAreaPrivate * d = d_func(); if( widget == d->widget || !widget ) return; d->horIndicator->setParent( 0 ); d->vertIndicator->setParent( 0 ); d->horBlur->setParent( 0 ); d->vertBlur->setParent( 0 ); delete d->widget; d->widget = 0; if( widg...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x28(%rbp) callq 0xff8f0 movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi addq $0xa8, %rsi callq 0xff930 testb $0x1, %al jne 0xfe7c0 cmpq $0x0, -0x10(%rbp) jne 0xfe7c5 jmp 0xfe9...
/igormironchik[P]qtmwidgets/src/scrollarea.cpp
QtMWidgets::ScrollArea::ensureVisible(int, int, int, int)
void ScrollArea::ensureVisible( int x, int y, int xmargin, int ymargin ) { ScrollAreaPrivate * d = d_func(); int logicalX = QStyle::visualPos( layoutDirection(), d->viewport->rect(), QPoint( x, y ) ).x(); int posX = 0; int posY = 0; if( logicalX - xmargin < topLeftPointShownArea().x() ) posX = q...
pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movl %r8d, -0x18(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x80(%rbp) callq 0xff8f0 movq -0x80(%rbp), %rdi movq %rax, -0x20(%rbp) callq 0x97950 movl %eax, -0x84(%rbp) movq -0x20(%rbp), %ra...
/igormironchik[P]qtmwidgets/src/scrollarea.cpp
QtMWidgets::Section::Section()
Section::Section() : type( NoSection ) , zeroesAdded( false ) , sectionWidth( 0 ) , currentIndex( -1 ) , offset( 0 ) { }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) movl $0x0, (%rdi) movb $0x0, 0x4(%rdi) movl $0x0, 0x8(%rdi) addq $0x10, %rdi callq 0x1035e0 movq -0x10(%rbp), %rax movl $0xffffffff, 0x28(%rax) # imm = 0xFFFFFFFF movl $0x0, 0x2c(%rax) addq $0x10, %rsp popq %r...
/igormironchik[P]qtmwidgets/src/private/datetimeparser.cpp
QtMWidgets::Section::Section(QtMWidgets::Section::Type)
Section::Section( Type t ) : type( t ) , zeroesAdded( false ) , sectionWidth( 0 ) , currentIndex( -1 ) , offset( 0 ) { }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x18(%rbp) movl -0xc(%rbp), %eax movl %eax, (%rdi) movb $0x0, 0x4(%rdi) movl $0x0, 0x8(%rdi) addq $0x10, %rdi callq 0x1035e0 movq -0x18(%rbp), %rax movl $0xffffffff, 0x28(%rax) # imm = 0xFFFFFFFF mo...
/igormironchik[P]qtmwidgets/src/private/datetimeparser.cpp
QtMWidgets::maxShortDay(QStyleOption const&)
static inline QString maxShortDay( const QStyleOption & opt ) { int index = 1; int width = 0; for( int i = 1; i < 8; ++i ) { const int tmpWidth = opt.fontMetrics.boundingRect( QLocale::system().dayName( i, QLocale::ShortFormat ) + QLatin1Char( ' ' ) ).width(); if( tmpWidth > width ) { in...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x90(%rbp) movq %rdi, %rax movq %rax, -0x88(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl $0x1, -0x14(%rbp) movl $0x0, -0x18(%rbp) movl $0x1, -0x1c(%rbp) cmpl $0x8, -0x1c(%rbp) jge 0x100ebe movq -0x10(%rbp), %rax addq $0x20, %rax movq %rax, -0xa0(%rbp) l...
/igormironchik[P]qtmwidgets/src/private/datetimeparser.cpp
QtMWidgets::DateTimeParser::DateTimeParser(QMetaType::Type)
DateTimeParser::DateTimeParser( QMetaType::Type t ) : type( t ) { parseFormat( QLatin1String( "dddd MMMM yyyy hh mm" ) ); }
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x58(%rbp) leaq 0x40382(%rip), %rax # 0x142c10 addq $0x10, %rax movq %rax, (%rdi) addq $0x8, %rdi movq %rdi, -0x60(%rbp) callq 0x103770 movq -0x58(%rbp), %rdi movl -0xc(%rbp), %eax movl %eax, 0x...
/igormironchik[P]qtmwidgets/src/private/datetimeparser.cpp
QtMWidgets::drawCylinder(QPainter*, QRect const&, QColor const&, bool, bool)
void drawCylinder( QPainter * p, const QRect & r, const QColor & baseColor, bool roundLeftCorner, bool roundRightCorner ) { QLinearGradient firstVertLineGradient( QPointF( 0.0, 0.0 ), QPointF( 0.0, 1.0 ) ); firstVertLineGradient.setCoordinateMode( QGradient::ObjectBoundingMode ); firstVertLineGradient.setC...
pushq %rbp movq %rsp, %rbp subq $0x460, %rsp # imm = 0x460 movb %r8b, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) andb $0x1, %cl movb %cl, -0x19(%rbp) andb $0x1, %al movb %al, -0x1a(%rbp) leaq -0x88(%rbp), %rdi movq %rdi, -0x2e8(%rbp) xorps %xmm1, %xmm1 movsd %xmm1, -0x2f0(%rbp) m...
/igormironchik[P]qtmwidgets/src/private/drawing.cpp
QtMWidgets::drawArrow(QPainter*, QRect const&, QColor const&)
void drawArrow( QPainter * p, const QRect & r, const QColor & color ) { const qreal width = r.width() / 3; const qreal middle = r.height() / 2; QPainterPath path; path.moveTo( r.x(), r.y() ); path.lineTo( r.x() + width, r.y() ); path.lineTo( r.x() + r.width(), r.y() + middle ); path.lineTo( r.x() + w...
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0xb1a10 cltq imulq $0x55555556, %rax, %rax # imm = 0x55555556 movq %rax, %rcx shrq $0x3f, %rcx shrq $0x20, %rax addl %ecx, %eax cvtsi2sd %eax, %xmm0 movsd %xmm0, -0x20(%rbp) movq ...
/igormironchik[P]qtmwidgets/src/private/drawing.cpp
QtMWidgets::SliderPrivate::grooveRect() const
QRect SliderPrivate::grooveRect() const { const QRect cr = q->contentsRect(); int gx = 0, gy = 0, gw = 0, gh = 0; if( q->orientation() == Qt::Vertical ) { gx = cr.topLeft().x() + ( cr.width() - grooveHeight ) / 2; gy = cr.topLeft().y() + 1; gw = grooveHeight; gh = cr.height() - 2; } else ...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x60(%rbp) movq (%rax), %rdi callq 0x979b0 movq %rax, %rcx movq -0x60(%rbp), %rax movq %rcx, -0x28(%rbp) movq %rdx, -0x20(%rbp) movl $0x0, -0x2c(%rbp) movl $0x0, -0x30(%rbp) movl $0x0, -0x34(%rbp) movl $0x0, -0x38(%rbp...
/igormironchik[P]qtmwidgets/src/slider.cpp
QtMWidgets::Slider::mouseMoveEvent(QMouseEvent*)
void Slider::mouseMoveEvent( QMouseEvent * e ) { if( d->pressedControl != QStyle::SC_SliderHandle ) { e->ignore(); return; } e->accept(); const int newPosition = d->pixelPosToRangeValue( d->pick( e->pos() ) - d->clickOffset ); setSliderPosition( newPosition ); }
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x28(%rbp) addq $0x28, %rdi callq 0x1096b0 cmpl $0x2, 0x10(%rax) je 0x1095c2 movq -0x10(%rbp), %rdi callq 0xb44f0 jmp 0x109635 movq -0x10(%rbp), %rdi callq 0xb44d0 movq -0x28(%rbp), %rdi addq $0x28...
/igormironchik[P]qtmwidgets/src/slider.cpp
QtMWidgets::BusyIndicatorPrivate::init()
void BusyIndicatorPrivate::init() { animation = new QVariantAnimation( q ); animation->setStartValue( 0.0 ); animation->setEndValue( 359.0 ); animation->setDuration( 1000 ); animation->setLoopCount( -1 ); QObject::connect( animation, &QVariantAnimation::valueChanged, q, &BusyIndicator::_q_update ); ...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x90(%rbp) movl $0x10, %edi callq 0x980d0 movq %rax, %rdi movq -0x90(%rbp), %rax movq %rdi, %rcx movq %rcx, -0x88(%rbp) movq (%rax), %rsi callq 0x984e0 jmp 0x109862 movq -0x90(%rbp), %rax movq -0x88(%rbp), %rcx movq %rcx...
/igormironchik[P]qtmwidgets/src/busyindicator.cpp
mbedtls_x509_get_ext
int mbedtls_x509_get_ext( unsigned char **p, const unsigned char *end, mbedtls_x509_buf *ext, int tag ) { int ret; size_t len; if( *p == end ) return( 0 ); ext->tag = **p; if( ( ret = mbedtls_asn1_get_tag( p, end, &ext->len, MBEDTLS_ASN1_CONTEXT_SPECIFIC | MB...
movq (%rdi), %rax cmpq %rsi, %rax je 0xda22 pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdx, %r14 movq %rdi, %rbx movzbl (%rax), %eax movl %eax, (%rdx) addq $0x8, %rdx orl $0xa0, %ecx callq 0x10b1a testl %eax, %eax jne 0xda3a movq (%rbx), %rax movq %rax, 0x10(%r14) movq (%rbx), %r15 addq 0x8(%r14), %r15 lea...
/project-everest[P]mbedtls/library/x509.c
mbedtls_x509_dn_gets
int mbedtls_x509_dn_gets( char *buf, size_t size, const mbedtls_x509_name *dn ) { int ret; size_t i, n; unsigned char c, merge = 0; const mbedtls_x509_name *name; const char *short_name = NULL; char s[MBEDTLS_X509_MAX_DN_NAME_SIZE], *p; memset( s, 0, sizeof( s ) ); name = dn; p = b...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x118, %rsp # imm = 0x118 movq %rdx, %rbp movq %rsi, %rbx movq %rdi, %r15 movq $0x0, 0x8(%rsp) leaq 0x10(%rsp), %rdi movl $0x100, %edx # imm = 0x100 xorl %esi, %esi callq 0xc0e0 movq %rbx, %r12 testq %rbp, %rbp je 0xdbc6 movq ...
/project-everest[P]mbedtls/library/x509.c
mbedtls_x509_serial_gets
int mbedtls_x509_serial_gets( char *buf, size_t size, const mbedtls_x509_buf *serial ) { int ret; size_t i, n, nr; char *p; p = buf; n = size; nr = ( serial->len <= 32 ) ? serial->len : 28; for( i = 0; i < nr; i++ ) { if( i == 0 && nr > 1 && serial->p[i] == 0x0 ) ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %r15 movq 0x8(%rdx), %rax cmpq $0x21, %rax movl $0x1c, %ebp cmovbq %rax, %rbp testq %rbp, %rbp movq %rsi, (%rsp) je 0xdc81 leaq -0x1(%rbp), %rbx xorl %r13d, %r13d cmpq $0x1, %rbp sete %al testq %r13, ...
/project-everest[P]mbedtls/library/x509.c
mbedtls_x509_sig_alg_gets
int mbedtls_x509_sig_alg_gets( char *buf, size_t size, const mbedtls_x509_buf *sig_oid, mbedtls_pk_type_t pk_alg, mbedtls_md_type_t md_alg, const void *sig_opts ) { int ret; char *p = buf; size_t n = size; const char *desc = NULL; ret = mbedtls_oid_get_...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r9, %r12 movl %r8d, %r13d movl %ecx, %r15d movq %rsi, %rbx movq %rdi, %r14 leaq 0x10(%rsp), %rsi movq $0x0, (%rsi) movq %rdx, %rdi callq 0x161d0 testl %eax, %eax je 0xdd0f leaq 0x2456e(%rip), %rdx # 0x3226e movq %r14, %rdi movq...
/project-everest[P]mbedtls/library/x509.c
mbedtls_x509_key_size_helper
int mbedtls_x509_key_size_helper( char *buf, size_t buf_size, const char *name ) { char *p = buf; size_t n = buf_size; int ret; ret = mbedtls_snprintf( p, n, "%s key size", name ); MBEDTLS_X509_SAFE_SNPRINTF; return( 0 ); }
pushq %rbp pushq %rbx pushq %rax movq %rdx, %rcx movq %rsi, %rbx leaq 0x2447e(%rip), %rdx # 0x32289 xorl %ebp, %ebp xorl %eax, %eax callq 0xc0d0 movl %eax, %ecx cmpq %rbx, %rcx movl $0xffffd680, %ecx # imm = 0xFFFFD680 cmovael %ecx, %ebp testl %eax, %eax cmovsl %ecx, %ebp movl %ebp, %eax addq $0x8, %rsp popq ...
/project-everest[P]mbedtls/library/x509.c
x509_get_current_time
static int x509_get_current_time( mbedtls_x509_time *now ) { struct tm *lt; mbedtls_time_t tt; int ret = 0; #if defined(MBEDTLS_THREADING_C) if( mbedtls_mutex_lock( &mbedtls_threading_gmtime_mutex ) != 0 ) return( MBEDTLS_ERR_THREADING_MUTEX_ERROR ); #endif tt = mbedtls_time( NULL ); l...
pushq %r14 pushq %rbx pushq %rax movq %rdi, %r14 xorl %ebx, %ebx xorl %edi, %edi callq 0xc160 movq %rsp, %rdi movq %rax, (%rdi) callq 0xc1c0 testq %rax, %rax je 0xdeb0 movl $0x76c, %ecx # imm = 0x76C addl 0x14(%rax), %ecx movl %ecx, (%r14) movl 0x10(%rax), %ecx incl %ecx movl %ecx, 0x4(%r14) movl 0xc(%rax), ...
/project-everest[P]mbedtls/library/x509.c
x509_check_time
static int x509_check_time( const mbedtls_x509_time *before, const mbedtls_x509_time *after ) { if( before->year > after->year ) return( 1 ); if( before->year == after->year && before->mon > after->mon ) return( 1 ); if( before->year == after->year && before->mon == aft...
movl (%rdi), %ecx movl (%rsi), %edx movl $0x1, %eax cmpl %edx, %ecx jg 0xdf7c jne 0xdf7a movl 0x4(%rdi), %r8d cmpl 0x4(%rsi), %r8d jg 0xdf7c cmpl %edx, %ecx jne 0xdf7a movl 0x4(%rdi), %r8d cmpl 0x4(%rsi), %r8d jne 0xdf00 movl 0x8(%rdi), %r8d cmpl 0x8(%rsi), %r8d jg 0xdf7c cmpl %edx, %ecx jne 0xdf7a movl 0x4(%rdi), %r8d...
/project-everest[P]mbedtls/library/x509.c
mbedtls_x509_self_test
int mbedtls_x509_self_test( int verbose ) { #if defined(MBEDTLS_CERTS_C) && defined(MBEDTLS_SHA256_C) int ret; uint32_t flags; mbedtls_x509_crt cacert; mbedtls_x509_crt clicert; if( verbose != 0 ) mbedtls_printf( " X.509 certificate load: " ); mbedtls_x509_crt_init( &clicert ); r...
pushq %rbp pushq %r14 pushq %rbx subq $0x460, %rsp # imm = 0x460 movl %edi, %ebx testl %edi, %edi je 0xdfcc leaq 0x242d0(%rip), %rdi # 0x32295 xorl %eax, %eax callq 0xc0c0 leaq 0x10(%rsp), %r14 movq %r14, %rdi callq 0xe761 leaq 0x3d178(%rip), %rax # 0x4b158 movq (%rax), %rsi leaq 0x293ee(%rip), %rax ...
/project-everest[P]mbedtls/library/x509.c
x509_date_is_valid
static int x509_date_is_valid(const mbedtls_x509_time *t ) { int ret = MBEDTLS_ERR_X509_INVALID_DATE; int month_len; CHECK_RANGE( 0, 9999, t->year ); CHECK_RANGE( 0, 23, t->hour ); CHECK_RANGE( 0, 59, t->min ); CHECK_RANGE( 0, 59, t->sec ); switch( t->mon ) { case 1: ca...
movl (%rdi), %ecx movl $0xffffdc00, %eax # imm = 0xFFFFDC00 cmpl $0x270f, %ecx # imm = 0x270F ja 0xe10d cmpl $0x17, 0xc(%rdi) ja 0xe10d cmpl $0x3b, 0x10(%rdi) ja 0xe10d cmpl $0x3b, 0x14(%rdi) ja 0xe10d movl 0x4(%rdi), %esi cmpl $0xc, %esi ja 0xe10d movl $0x1f, %edx movl $0x15aa, %r8d # imm = 0...
/project-everest[P]mbedtls/library/x509.c
mbedtls_x509_crt_parse_file
int mbedtls_x509_crt_parse_file( mbedtls_x509_crt *chain, const char *path ) { int ret; size_t n; unsigned char *buf; if( ( ret = mbedtls_pk_load_file( path, &buf, &n ) ) != 0 ) return( ret ); ret = mbedtls_x509_crt_parse( chain, buf, n ); mbedtls_zeroize( buf, n ); mbedtls_free( ...
pushq %r14 pushq %rbx subq $0x18, %rsp movq %rsi, %rax movq %rdi, %r14 leaq 0x8(%rsp), %rsi leaq 0x10(%rsp), %rdx movq %rax, %rdi callq 0x17d40 movl %eax, %ebx testl %eax, %eax jne 0xea18 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %r14, %rdi callq 0xe76d movl %eax, %ebx movq 0x10(%rsp), %rax testq %rax, %rax je 0x...
/project-everest[P]mbedtls/library/x509_crt.c
mbedtls_mpi_mod_mpi
int mbedtls_mpi_mod_mpi( mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B ) { int ret; if( mbedtls_mpi_cmp_int( B, 0 ) < 0 ) return( MBEDTLS_ERR_MPI_NEGATIVE_VALUE ); MBEDTLS_MPI_CHK( mbedtls_mpi_div_mpi( NULL, R, A, B ) ); while( mbedtls_mpi_cmp_int( R, 0 ) < 0 ) MBEDTLS_MPI_...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %rbx movq %rsi, %r15 movq %rdi, %r14 leaq 0x8(%rsp), %r12 movq $0x0, (%r12) leaq 0x10(%rsp), %rsi movl $0x1, (%rsi) movq $0x1, 0x8(%rsi) movq %r12, 0x10(%rsi) movq %rdx, %rdi callq 0x1220c testl %eax, %eax js 0x1340e xorl %edi, %edi movq %r14, %rsi...
/project-everest[P]mbedtls/library/bignum.c
mbedtls_mpi_fill_random
int mbedtls_mpi_fill_random( mbedtls_mpi *X, size_t size, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) { int ret; unsigned char buf[MBEDTLS_MPI_MAX_SIZE]; if( size > MBEDTLS_MPI_MAX_SIZE ) return( MBEDTLS_ERR_MPI_BAD_INPUT_DATA ); MBEDT...
movl $0xfffffffc, %eax # imm = 0xFFFFFFFC cmpq $0x400, %rsi # imm = 0x400 ja 0x14165 pushq %r14 pushq %rbx subq $0x408, %rsp # imm = 0x408 movq %rdx, %r8 movq %rsi, %rbx movq %rdi, %r14 movq %rsp, %rsi movq %rcx, %rdi movq %rbx, %rdx callq *%r8 testl %eax, %eax jne 0x14149 movq %rsp, %rsi mo...
/project-everest[P]mbedtls/library/bignum.c
get_one_and_zeros_padding
static int get_one_and_zeros_padding( unsigned char *input, size_t input_len, size_t *data_len ) { size_t i; unsigned char done = 0, prev_done, bad; if( NULL == input || NULL == data_len ) return( MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA ); bad = 0x80; *data_...
testq %rdi, %rdi sete %al testq %rdx, %rdx sete %cl orb %al, %cl movl $0xffff9f00, %eax # imm = 0xFFFF9F00 jne 0x2e3d4 movq $0x0, (%rdx) testq %rsi, %rsi je 0x2e3d5 movq (%rdx), %rax decq %rsi xorl %r9d, %r9d movb $-0x80, %r10b xorl %r8d, %r8d cmpb $0x0, (%rdi,%rsi) movl %r10d, %ecx setne %r8b orl %r9d, %r8d cmpl...
/project-everest[P]mbedtls/library/cipher.c
mbedtls_camellia_setkey_dec
int mbedtls_camellia_setkey_dec( mbedtls_camellia_context *ctx, const unsigned char *key, unsigned int keybits ) { int idx, ret; size_t i; mbedtls_camellia_context cty; uint32_t *RK; uint32_t *SK; mbedtls_camellia_init( &cty ); /* Also checks keybits */ if( ( r...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x118, %rsp # imm = 0x118 movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx leaq 0x4(%rsp), %r15 movl $0x114, %edx # imm = 0x114 movq %r15, %rdi xorl %esi, %esi callq 0xc0e0 movq %r15, %rdi movq %r14, %rsi movl %ebp, %edx callq 0x2ff77 testl %eax, %e...
/project-everest[P]mbedtls/library/camellia.c
mbedtls_ccm_setkey
int mbedtls_ccm_setkey( mbedtls_ccm_context *ctx, mbedtls_cipher_id_t cipher, const unsigned char *key, unsigned int keybits ) { int ret; const mbedtls_cipher_info_t *cipher_info; cipher_info = mbedtls_cipher_info_from_values( cipher, ...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movl %ecx, %ebx movq %rdx, %r14 movq %rdi, %r15 movl %esi, %edi movl %ecx, %esi movl $0x1, %edx callq 0x2dc27 movq %rax, %r12 movl $0xfffffff3, %eax # imm = 0xFFFFFFF3 testq %r12, %r12 je 0x3110d cmpl $0x10, 0x20(%r12) jne 0x3110d movq %r15, %rdi callq 0x2dc7...
/project-everest[P]mbedtls/library/ccm.c
parse_error
static void parse_error(VrplibParser *p, char *fmt, ...) { fprintf(stderr, "%s:%d: error: ", p->filename, p->curline); va_list ap; va_start(ap, fmt); vfprintf(stderr, fmt, ap); va_end(ap); fprintf(stderr, "\n"); }
pushq %r15 pushq %r14 pushq %rbx subq $0xd0, %rsp movq %rsi, %rbx testb %al, %al je 0x24a9 movaps %xmm0, 0x50(%rsp) movaps %xmm1, 0x60(%rsp) movaps %xmm2, 0x70(%rsp) movaps %xmm3, 0x80(%rsp) movaps %xmm4, 0x90(%rsp) movaps %xmm5, 0xa0(%rsp) movaps %xmm6, 0xb0(%rsp) movaps %xmm7, 0xc0(%rsp) leaq 0x20(%rsp), %r14 movq %r...
/dparo[P]master-thesis/src/parser.c
validate_instance
TEST validate_instance(Instance *instance, int32_t expected_num_customers, int32_t expected_num_vehicles) { ASSERT(is_valid_instance(instance)); ASSERT_EQ(instance->num_customers, expected_num_customers); ASSERT_EQ(instance->num_vehicles, expected_num_vehicles); ASSERT(instance->v...
pushq %rax movl 0xa95e(%rip), %eax # 0xe26c leal 0x1(%rax), %ecx movl %ecx, 0xa955(%rip) # 0xe26c movl 0x10(%rdi), %r9d testl %r9d, %r9d jle 0x3a0b movl 0x14(%rdi), %r8d testl %r8d, %r8d jle 0x3a0b movsd 0x18(%rdi), %xmm0 xorpd %xmm1, %xmm1 ucomisd %xmm0, %xmm1 jae 0x3a0b movq 0x30(%rdi), %rcx testq %rcx, %rc...
/dparo[P]master-thesis/tests/test-parser.c
prep_memory
static bool prep_memory(Instance *instance) { instance->positions = calloc(instance->num_customers + 1, sizeof(*instance->positions)); instance->demands = calloc(instance->num_customers + 1, sizeof(*instance->demands)); instance->profits = calloc(instance->num_customers + 1, sizeo...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r14 movslq 0x10(%rdi), %r15 incq %r15 movl $0x10, %esi movq %r15, %rdi callq 0x2200 movq %rax, %r12 movq %rax, 0x28(%r14) movl $0x8, %esi movq %r15, %rdi callq 0x2200 movq %rax, %rbx movq %rax, 0x30(%r14) movl $0x8, %esi movq %r15, %rdi callq 0x2200 mov...
/dparo[P]master-thesis/src/parser.c
parse_vrplib_depot_section
static bool parse_vrplib_depot_section(VrplibParser *p, Instance *instance) { UNUSED_PARAM(instance); bool result = true; for (int32_t i = 0; result && (i <= 1); i++) { char *lexeme = get_token_lexeme(p); if (!lexeme) { result = false; } else { int32_t nodeid ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx movb $0x1, %r12b leaq 0x4(%rsp), %r14 leaq 0x5a65(%rip), %r13 # 0x9eaf movq %rbx, %rdi callq 0x4c1e testq %rax, %rax je 0x4491 movq %rax, %r15 movl $0x0, 0x4(%rsp) movq %rax, %rdi movq %r14, %rsi callq 0x4f38 testb %al, %a...
/dparo[P]master-thesis/src/parser.c
parser_match_string
static bool parser_match_string(VrplibParser *p, char *string) { parser_eat_whitespaces(p); size_t len = MIN(parser_remainder_size(p), strlen(string)); bool result = (0 == strncmp(string, p->at, len)); if (result) { parser_adv(p, len); } parser_eat_whitespaces(p); return result; }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rsi, %r12 movq %rdi, %rbx callq 0x4b08 movq 0x8(%rbx), %r14 movq 0x10(%rbx), %r15 subq %r15, %r14 addq 0x20(%rbx), %r14 movq %r12, %rdi callq 0x2140 cmpq %rax, %r14 cmovaeq %rax, %r14 movq %r12, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x20a0 testl %eax, %e...
/dparo[P]master-thesis/src/parser.c
parser_eat_all_blanks
static void parser_eat_all_blanks(VrplibParser *p) { char *at = NULL; do { at = p->at; parser_eat_whitespaces(p); parser_eat_newline(p); parser_eat_whitespaces(p); } while (p->at != at); }
pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq 0x10(%rdi), %r14 movq %rbx, %rdi callq 0x4b08 movq %rbx, %rdi callq 0x4a96 movq %rbx, %rdi callq 0x4b08 movq 0x10(%rbx), %rax cmpq %r14, %rax movq %rax, %r14 jne 0x47af addq $0x8, %rsp popq %rbx popq %r14 retq
/dparo[P]master-thesis/src/parser.c
parser_eat_newline
static void parser_eat_newline(VrplibParser *p) { parser_eat_whitespaces(p); while (!parser_is_eof(p) && (*p->at == '\r' || *p->at == '\n')) { if (*p->at == '\r') { parser_adv(p, 1); if (!parser_is_eof(p) && (*p->at == '\n')) { parser_adv(p, 1); } ...
pushq %rbx movq %rdi, %rbx callq 0x4b08 movq 0x8(%rbx), %rax xorl %ecx, %ecx subq 0x20(%rbx), %rcx movq 0x10(%rbx), %rdx movq %rax, %rsi subq %rdx, %rsi cmpq %rcx, %rsi je 0x4b06 movzbl (%rdx), %edi cmpl $0xa, %edi je 0x4af1 cmpl $0xd, %edi jne 0x4b06 xorl %edi, %edi cmpq %rcx, %rsi setne %dil addq %rdi, %rdx movq %rdx...
/dparo[P]master-thesis/src/parser.c
str_to_int32
bool str_to_int32(const char *string, int32_t *out) { size_t len = strlen(string); int base = 10; bool is_negated = false; if (len >= 1 && (string[0] == '-' || string[0] == '+')) { is_negated = string[0] == '-'; len -= 1; string += 1; } if (len >= 2 && string[0] == '0'...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, 0x8(%rsp) movq %rdi, %r14 callq 0x2140 movl $0xa, %ebp testq %rax, %rax je 0x4f85 movq %rax, %r15 movzbl (%r14), %eax cmpl $0x2d, %eax je 0x4f6e cmpl $0x2b, %eax jne 0x4f8f xorl %ecx, %ecx cmpb $0x2d, %al setne %cl decq %r15 i...
/dparo[P]master-thesis/src/parsing-utils.c
param_type_as_str
const char *param_type_as_str(ParamType type) { switch (type) { case TYPED_PARAM_DOUBLE: return "DOUBLE"; case TYPED_PARAM_FLOAT: return "FLOAT"; case TYPED_PARAM_BOOL: return "BOOL"; case TYPED_PARAM_INT32: return "INT32"; case TYPED_PARAM_USIZE: return "...
cmpl $0x6, %edi jae 0x57a2 movl %edi, %eax leaq 0x4b5e(%rip), %rcx # 0xa2f8 movslq (%rcx,%rax,4), %rax addq %rcx, %rax retq pushq %rax leaq 0x4b88(%rip), %rdi # 0xa332 leaq 0x4b96(%rip), %rsi # 0xa347 leaq 0x4be9(%rip), %rcx # 0xa3a1 movl $0x9d, %edx callq 0x2180
/dparo[P]master-thesis/src/core.c
os_basename
char *os_basename(const char *path, Path *p) { #if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \ defined(__NetBSD__) || defined(__DragonFly__) p->cstr[0] = 0; strncpy(p->cstr, path, ARRAY_LEN(p->cstr)); char *c = basename(p->cstr); assert(c >= p->cstr && c < p->cstr + ...
pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %rsi movb $0x0, (%rbx) movl $0x1000, %edx # imm = 0x1000 movq %rbx, %rdi callq 0x2090 movq %rbx, %rdi callq 0x2280 cmpq %rbx, %rax jb 0x672a movq %rax, %r14 movq %rbx, %rdi callq 0x2140 addq %rbx, %rax cmpq %rax, %r14 jae 0x672a movq %r14, %rax addq ...
/dparo[P]master-thesis/src/os.c
stbds_hmput_key
void *stbds_hmput_key(void *a, size_t elemsize, void *key, size_t keysize, int mode) { size_t keyoffset=0; void *raw_a; stbds_hash_index *table; if (a == NULL) { a = stbds_arrgrowf(0, elemsize, 0, 1); memset(a, 0, elemsize); stbds_header(a)->length += 1; // adjust a to point AFTER the default e...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movl %r8d, 0xc(%rsp) movq %rcx, 0x38(%rsp) movq %rdx, 0x10(%rsp) movq %rsi, %rbx testq %rdi, %rdi jne 0x7ae2 leaq 0x20(,%rbx,4), %rdi callq 0x22a0 movq %rax, %r13 leaq 0x20(%rax), %rdi xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movq $0x...
/dparo[P]master-thesis/deps/stb/stb_ds.h
String::detach(unsigned long, unsigned long)
void detach(usize copyLength, usize minCapacity) { #ifdef ASSERT ASSERT(copyLength <= minCapacity); #endif if(data->ref == 1 && minCapacity <= data->capacity) { ((char*)data->str)[data->len = copyLength] = '\0'; return; } usize capacity = minCapacity | 0x3; Data* newData = (Data*)...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) movq (%rax), %rax movq 0x18(%rax), %rax cmpq $0x1, %rax jne 0x3a58 movq -0x30(%rbp), %rcx movq -0x18(%rbp), %rax movq (%rcx), %rcx cmpq 0x10(%rcx), %rax ja 0x3a58 ...
/craflin[P]libnstd/src/../include/nstd/String.hpp
Error::Private::Str::operator=(Error::Private::Str const&)
Str& operator=(const Str& other) { delete []_ptr; _len = other._len; _ptr = new char[_len + 1]; memcpy(_ptr, other._ptr, _len + 1); return *this; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movq (%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, %rax je 0x4b6e movq -0x18(%rbp), %rdi callq 0x2350 movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx movq 0x8(%rcx), %rcx movq %rcx, 0x8(%...
/craflin[P]libnstd/src/Error.cpp
File::close()
void File::close() { #ifdef _WIN32 if(fp != INVALID_HANDLE_VALUE) { CloseHandle((HANDLE)fp); fp = INVALID_HANDLE_VALUE; } #else if(fp) { ::close((int)(intptr_t)fp); fp = 0; } #endif }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) cmpq $0x0, (%rax) je 0x5743 movq -0x10(%rbp), %rax movq (%rax), %rax movl %eax, %edi callq 0x2590 movq -0x10(%rbp), %rax movq $0x0, (%rax) addq $0x10, %rsp popq %rbp retq nopl (%rax)
/craflin[P]libnstd/src/File.cpp
File::rename(String const&, String const&, bool)
bool File::rename(const String& from, const String& to, bool failIfExists) { #ifdef _WIN32 return MoveFileEx(from, to, MOVEFILE_COPY_ALLOWED | (failIfExists ? 0 : MOVEFILE_REPLACE_EXISTING)) == TRUE; #else if(failIfExists) { int fd = ::open(to, O_CREAT | O_EXCL | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IRO...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movb %dl, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) andb $0x1, %al movb %al, -0x19(%rbp) testb $0x1, -0x19(%rbp) je 0x5a6d movq -0x18(%rbp), %rdi callq 0x4c50 movq %rax, %rdi movl $0x800c0, %esi # imm = 0x800C0 movl $0x1a4, %edx # imm = 0x1A4 movb ...
/craflin[P]libnstd/src/File.cpp
File::read(void*, unsigned long)
ssize File::read(void* buffer, usize len) { #ifdef _WIN32 #ifdef _AMD64 byte* bufferStart = (byte*)buffer; DWORD i; while(len > (usize)INT_MAX) { if(!ReadFile((HANDLE)fp, buffer, INT_MAX, &i, NULL)) return -1; buffer = (byte*)buffer + i; if(i != INT_MAX) return (byte*)buffer - bufferStar...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movl %eax, %edi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0x23f0 addq $0x20, %rsp popq %rbp retq
/craflin[P]libnstd/src/File.cpp
File::isExecutable(String const&)
bool File::isExecutable(const String& file) { #ifdef _WIN32 String extension = File::getExtension(file).toLowerCase(); return extension == "exe" || extension == "com" || extension == "bat"; #else struct stat buf; if(stat(file, &buf) != 0) return false; return (buf.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) ...
pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi callq 0x4c50 movq %rax, %rdi leaq -0xa0(%rbp), %rsi callq 0x2280 cmpl $0x0, %eax je 0x6d52 movb $0x0, -0x1(%rbp) jmp 0x6d66 movl -0x88(%rbp), %eax andl $0x49, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movb %al, -0x1(%rbp) movb...
/craflin[P]libnstd/src/File.cpp
Process::getEnvironmentVariable(String const&, String const&)
String Process::getEnvironmentVariable(const String& name, const String& defaultValue) { #ifdef _WIN32 String buffer; DWORD bufferSize = 256; for(;;) { buffer.resize(bufferSize); DWORD dw = GetEnvironmentVariable((const char*)name, (char*)buffer, bufferSize); if(dw >= bufferSize) { bufferS...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x30(%rbp) movq %rdi, %rax movq %rax, -0x28(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x4c50 movq %rax, %rdi callq 0x2330 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) jne 0x8d6a movq -0x30(%rbp), %rdi m...
/craflin[P]libnstd/src/Process.cpp
nn_backtrace_print
void nn_backtrace_print (void) { void *frames[50]; int size; size = backtrace (frames, sizeof (frames) / sizeof (frames[0])); if (size > 1) { /* Don't include the frame nn_backtrace_print itself. */ backtrace_symbols_fd (&frames[1], size-1, fileno (stderr)); } }
pushq %rbp movq %rsp, %rbp subq $0x1a0, %rsp # imm = 0x1A0 leaq -0x190(%rbp), %rdi movl $0x32, %esi callq 0x1060 movl %eax, -0x194(%rbp) cmpl $0x1, -0x194(%rbp) jle 0x135f leaq -0x190(%rbp), %rax addq $0x8, %rax movq %rax, -0x1a0(%rbp) movl -0x194(%rbp), %eax subl $0x1, %eax movl %eax, -0x198(%rbp) movq 0x3c...
/nanomsg[P]nanomsg/tests/../src/utils/err.c
test_socket_impl
static int NN_UNUSED test_socket_impl (char *file, int line, int family, int protocol) { int sock; sock = nn_socket (family, protocol); if (sock == -1) { fprintf (stderr, "Failed create socket: %s [%d] (%s:%d)\n", nn_err_strerror (errno), (int) errno, file, line); ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movl -0x10(%rbp), %edi movl -0x14(%rbp), %esi callq 0x10c0 movl %eax, -0x18(%rbp) cmpl $-0x1, -0x18(%rbp) jne 0x19a1 movq 0x3690(%rip), %rax # 0x4ff0 movq (%rax), %rax movq %rax, -0...
/nanomsg[P]nanomsg/tests/testutil.h
test_close_impl
static void NN_UNUSED test_close_impl (char *file, int line, int sock) { int rc; rc = nn_close (sock); if ((rc != 0) && (errno != EBADF && errno != ETERM)) { fprintf (stderr, "Failed to close socket: %s [%d] (%s:%d)\n", nn_err_strerror (errno), (int) errno, file, line); ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl -0x10(%rbp), %edi callq 0x1190 movl %eax, -0x14(%rbp) cmpl $0x0, -0x14(%rbp) je 0x1ac2 callq 0x1150 cmpl $0x9, (%rax) je 0x1ac2 callq 0x1150 cmpl $0x9523dfd, (%rax) # imm = 0x9523DFD je 0x1ac2 movq 0...
/nanomsg[P]nanomsg/tests/testutil.h
test_connect_impl
static int NN_UNUSED test_connect_impl (char *file, int line, int sock, char *address) { int rc; rc = nn_connect (sock, address); if(rc < 0) { fprintf (stderr, "Failed connect to \"%s\": %s [%d] (%s:%d)\n", address, nn_err_strerror (errno), (int) errno, file,...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq %rcx, -0x18(%rbp) movl -0x10(%rbp), %edi movq -0x18(%rbp), %rsi callq 0x1160 movl %eax, -0x1c(%rbp) cmpl $0x0, -0x1c(%rbp) jge 0x1c82 movq 0x33be(%rip), %rax # 0x4ff0 movq (%rax), %rax movq %rax, -0x...
/nanomsg[P]nanomsg/tests/testutil.h
m256v_make
m256v m256v_make(int n_row, int n_col, uint8_t* memory) { m256v ret; ret.n_row = n_row; ret.n_col = n_col; ret.rstride = n_col; ret.e = memory; return ret; }
movq %rdi, %rax movl %esi, (%rdi) movl %edx, 0x4(%rdi) movslq %edx, %rdx movq %rdx, 0x8(%rdi) movq %rcx, 0x10(%rdi) retq
/lorinder[P]TvRQ/algebra/m256v.c
m256v_get_subview
m256v m256v_get_subview(const m256v* M, int row_offs, int col_offs, int n_row, int n_col) { assert(0 <= row_offs); assert(row_offs + n_row <= M->n_row); assert(0 <= col_offs); assert(col_offs + n_col <= M->n_col); m256v R; R.n_row = n_row; R.n_col = n_col; R.rstride = M->rstride; R.e = M->e + ...
movq %rdi, %rax movl %r8d, (%rdi) movl %r9d, 0x4(%rdi) movq 0x8(%rsi), %rdi movq %rdi, 0x8(%rax) movslq %edx, %rdx imulq %rdi, %rdx addq 0x10(%rsi), %rdx movslq %ecx, %rcx addq %rcx, %rdx movq %rdx, 0x10(%rax) retq
/lorinder[P]TvRQ/algebra/m256v.c
m256v_set_el
inline size_t m256v_get_el_offs(const m256v* M, int r, int c) { assert(0 <= r); assert(0 <= c); assert(r < M->n_row); /* The check for the column is loose so as to make it possible * to get a pointer to one beyond the last column */ assert(c <= M->n_col); return r * M->rstride + c; }
movslq %esi, %rax imulq 0x8(%rdi), %rax movslq %edx, %rdx addq 0x10(%rdi), %rax movb %cl, (%rdx,%rax) retq
/lorinder[P]TvRQ/algebra/m256v.h
m256v_swap_rows
void m256v_swap_rows(m256v* M, int r1, int r2) { if (r1 == r2) return; size_t o1 = get_el_offs(M, r1, 0); size_t o2 = get_el_offs(M, r2, 0); for (int i = 0; i < M->n_col; ++i) { const uint8_t sw = M->e[o1]; M->e[o1] = M->e[o2]; M->e[o2] = sw; ++o1; ++o2; } }
cmpl %edx, %esi je 0x155c cmpl $0x0, 0x4(%rdi) jle 0x155c movq 0x8(%rdi), %r8 movslq %edx, %rax imulq %r8, %rax movslq %esi, %rcx imulq %r8, %rcx xorl %edx, %edx movq 0x10(%rdi), %rsi movb (%rsi,%rcx), %r8b movb (%rsi,%rax), %r9b movb %r9b, (%rsi,%rcx) movq 0x10(%rdi), %rsi movb %r8b, (%rsi,%rax) incq %rcx incq %rax in...
/lorinder[P]TvRQ/algebra/m256v.c
m256v_mult_row
void m256v_mult_row(m256v* M, int r, uint8_t alpha) { /* Special case: Zero multiplier */ if (alpha == 0) { m256v_clear_row(M, r); return; } /* General case: Nonzero alpha */ const uint8_t log_alpha = flog(alpha); for (int j = 0; j < M->n_col; ++j) { uint8_t v = get_el(M, r, j); if (v != 0) { set_el...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %ebp movq %rdi, %rbx testl %edx, %edx je 0x15f1 movzbl %dl, %edi callq 0x2755 cmpl $0x0, 0x4(%rbx) jle 0x1618 movslq %ebp, %r14 movzbl %al, %r15d xorl %r12d, %r12d movq 0x8(%rbx), %rax imulq %r14, %rax addq 0x10(%rbx), %rax movb (%r12,%rax), %al testb %a...
/lorinder[P]TvRQ/algebra/m256v.c
m256v_multadd_row_from
void m256v_multadd_row_from(const m256v* M1, int r1, int offs, uint8_t alpha, m256v* Mt, int rt) { assert (M1->n_col == Mt->n_col); if (alpha == 0) return; if (alpha == 1) { uint8_t* s = M1->e + get_el_offs(M1, r1, offs); uint8_t* t = Mt->e + get_el_offs(Mt, rt, offs); uint8_t* end = M1->e + ...
testl %ecx, %ecx je 0x1701 pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %r9d, %ebp movq %r8, %rbx movl %edx, %r12d movl %esi, %r14d movq %rdi, %r15 cmpl $0x1, %ecx jne 0x1695 movslq %r14d, %rax imulq 0x8(%r15), %rax movslq %r12d, %rcx addq 0x10(%r15), %rax leaq (%rax,%rcx), %rsi mov...
/lorinder[P]TvRQ/algebra/m256v.c
m256v_mult_col_from
void m256v_mult_col_from(m256v* M, int c, int offs, uint8_t alpha) { if (alpha != 0) { const int log_alpha = flog(alpha); for (int j = offs; j < M->n_row; ++j) { uint8_t val = get_el(M, j, c); if (val != 0) { val = fexp(flog(val) + log_alpha); set_el(M, j, c, val); } } } else { for (int j = o...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %edx, %ebp movl %esi, %r15d movq %rdi, %rbx testl %ecx, %ecx je 0x1824 movzbl %cl, %edi callq 0x2755 cmpl %ebp, (%rbx) jle 0x1849 movl %eax, %r14d movslq %r15d, %r15 movslq %ebp, %r12 movq 0x8(%rbx), %rax imulq %r12, %rax addq 0x10(%rbx), %rax movb (%r15,%rax)...
/lorinder[P]TvRQ/algebra/m256v.c
m256v_copy_submat
void MV_GEN_N(_copy_submat)(const MV_GEN_TYPE* A, int A_row_offs, int A_col_offs, int n_row, int n_col, MV_GEN_TYPE* At, int At_row_offs, int At_col_offs) { assert(0 <= n_row); assert(0 <= n_col); assert(0 <= A_row_offs); assert(0 <= A_col_offs); assert(A_row_offs + n_row <= A->n_row);...
testl %ecx, %ecx jle 0x19e9 pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movslq 0x40(%rsp), %rax movslq %edx, %rdx movslq 0x38(%rsp), %r10 movslq %esi, %rsi movl %ecx, %ecx movl %r8d, %r11d xorl %ebx, %ebx movq %r11, %r14 movq %rdx, %r15 movq %rax, %r12 testl %r8d, %r8d jle 0x19d1 movq 0x8(%rdi), %...
/lorinder[P]TvRQ/algebra/mv_generic.h
m256v_permute_cols
void MV_GEN_N(_permute_cols)(MV_GEN_TYPE* M, const int* colperm) { char visited[M->n_col]; for (int i = 0; i < M->n_col; ++i) visited[i] = 0; MV_GEN_N(_Def)(colbuf_mat, colbuf, M->n_row, 1); for (int i = 0; i < M->n_col; ++i) { if (visited[i]) continue; if (colperm[i] == i) { /* Simple case of a self-c...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movl 0x4(%rdi), %edx movq %rsp, %r15 leaq 0xf(%rdx), %rax andq $-0x10, %rax subq %rax, %r15 movq %r15, %rsp testl %edx, %edx jle 0x1b5c movq %r15, %rdi xorl %esi, %esi callq 0x1040 movl (%r14), %eax movq %rsp, %rcx le...
/lorinder[P]TvRQ/algebra/mv_generic.h
m256v_mul
void MV_GEN_N(_mul)(const MV_GEN_TYPE* A, const MV_GEN_TYPE* B, MV_GEN_TYPE* AB_out) { assert(A->n_col == B->n_row); assert(A->n_row == AB_out->n_row); assert(B->n_col == AB_out->n_col); for (int i = 0; i < AB_out->n_row; ++i) { for (int j = 0; j < AB_out->n_col; ++j) { MV_GEN_ELTYPE x = 0; for (int e = 0;...
cmpl $0x0, (%rdx) jle 0x1dd7 pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %r15 xorl %r12d, %r12d movq %rdx, (%rsp) cmpl $0x0, 0x4(%rdx) jle 0x1dba xorl %r13d, %r13d cmpl $0x0, 0x4(%r15) jle 0x1d97 xorl %ebx, %ebx xorl %ebp, %ebp movq 0x8(%r15), %rax imulq %r12,...
/lorinder[P]TvRQ/algebra/mv_generic.h
m256v_LU_decomp_inplace
int MV_GEN_N(_LU_decomp_inplace)(MV_GEN_TYPE* A, int* rp, int* cp) { /* Initialize permutations */ int i; for (i = 0; i < A->n_row; ++i) rp[i] = i; for (i = 0; i < A->n_col; ++i) cp[i] = i; /* LU decomposition */ for (i = 0; i < A->n_col && i < A->n_row; ++i) { /* Find a pivot * * We must pic...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %r15 cmpl $0x0, (%rdi) jle 0x1dfe xorl %eax, %eax movl %eax, (%rsi,%rax,4) incq %rax movslq (%r15), %rcx cmpq %rcx, %rax jl 0x1df0 cmpl $0x0, 0x4(%r15) jle 0x1e16 xorl %eax, %eax movl %eax, (%rdx,%rax,4) incq %rax movslq 0x4(%...
/lorinder[P]TvRQ/algebra/mv_generic.h
m256v_LU_mult
void MV_GEN_N(_LU_mult)(const MV_GEN_TYPE* LU, const int* rp, const int* cp, const MV_GEN_TYPE* X, MV_GEN_TYPE* Y_out) { /* Check dimensions */ assert(LU->n_col == X->n_row); assert(LU->n_row == Y_out->n_row); assert(X->n_col == Y_out->n_col); /* Clear out the rows in the target vector */ for...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %r8, %rbx movq %rcx, %r13 movq %rdx, %r9 movq %rdi, %r15 cmpl $0x0, (%r8) jle 0x2018 xorl %eax, %eax cmpl $0x0, 0x4(%rbx) jle 0x200d xorl %ecx, %ecx movq 0x8(%rbx), %rdx imulq %rax, %rdx addq 0x10(%rbx), %rdx movb $0x0, (%rcx,%rdx) ...
/lorinder[P]TvRQ/algebra/mv_generic.h
m256v_LU_invmult
void MV_GEN_N(_LU_invmult)(const MV_GEN_TYPE* LU, int rank, const int* rowperm, const int* colperm, const MV_GEN_TYPE* Y, MV_GEN_TYPE* X_out) { /* Check dimensions */ assert(LU->n_col == X_out->n_row); assert(LU->n_row == Y->n_row); assert(X_out->n_col == Y->n_col); /* If the rank is unspecified (-...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r9, %rbx movq %r8, %r12 movq %rcx, %r14 movq %rdx, (%rsp) movq %rdi, %r15 cmpl $-0x1, %esi jne 0x21a5 movl (%r15), %esi movl 0x4(%r15), %eax cmpl %esi, %eax cmovll %eax, %esi cmpl (%rbx), %esi jge 0x21df movslq %esi, %rax cmpl $0x0...
/lorinder[P]TvRQ/algebra/mv_generic.h
m256v_LU_mult_inplace
void MV_GEN_N(_LU_mult_inplace)(const MV_GEN_TYPE* LU, const int* inv_rowperm, const int* colperm, MV_GEN_TYPE* X_inout) { /* Create the views for inputs & outputs * * The views access the same underlying backend storage, * so some elements alias. The number of rows of the views * differ, howev...
pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rcx, %r14 movq %rsi, %rbx movq %rdi, %r15 movl 0x4(%rdi), %eax movl 0x4(%rcx), %ecx movl %eax, 0x18(%rsp) movl %ecx, 0x1c(%rsp) movq 0x8(%r14), %rax movq %rax, 0x20(%rsp) movq 0x10(%r14), %rsi movq %rsi, 0x28(%rsp) movl (%rdi), %edi movl %edi, (%rsp) movl %ecx, 0x...
/lorinder[P]TvRQ/algebra/mv_generic.h
m256v_U_mult_inplace
void MV_GEN_N(_U_mult_inplace)(const MV_GEN_TYPE* LU, MV_GEN_TYPE* X_inout) { for (int i = 0; i < LU->n_col && i < LU->n_row; ++i) { MV_GEN_N(_mult_row)(X_inout, i, MV_GEN_N(_get_el)(LU, i, i)); for (int j = i + 1; j < LU->n_col; ++j) { MV_GEN_N(_multadd_row)(X_inout, j, MV_GEN_N(_get_el)(LU, i, j), X...
cmpl $0x0, 0x4(%rdi) jle 0x2449 pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movl $0x1, %r13d xorl %ebp, %ebp movslq (%r14), %rax cmpq %rax, %rbp jge 0x243b movq %rbp, %r15 movq 0x8(%r14), %rax imulq %rbp, %rax addq 0x10(%r14), %rax movzbl (%rbp,%rax), %ed...
/lorinder[P]TvRQ/algebra/mv_generic.h
m256v_LU_invmult_inplace
void MV_GEN_N(_LU_invmult_inplace)(const MV_GEN_TYPE* LU, int rank, const int* rowperm, const int* inv_colperm, MV_GEN_TYPE* X_inout) { /* If the rank is unspecified (-1), we assume the max rank */ if (rank == -1) rank = (LU->n_col < LU->n_row ? LU->n_col : LU->n_row); /* Create adequate views */ ...
pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rcx, %rbx movl %esi, %ebp movq %rdi, %r14 cmpl $-0x1, %esi jne 0x2567 movl (%r14), %ebp movl 0x4(%r14), %eax cmpl %ebp, %eax cmovll %eax, %ebp movl 0x4(%r14), %eax movl 0x4(%r8), %ecx movl %eax, 0x18(%rsp) movl %ecx, 0x1c(%rsp) movq 0x8(%r8), %rax movq %rax, 0x20(...
/lorinder[P]TvRQ/algebra/mv_generic.h
m256v_L_invmult_inplace_p
void MV_GEN_N(_L_invmult_inplace_p)(const MV_GEN_TYPE* LU, int rank, MV_GEN_TYPE* X_inout, const int* placements) { /* Apply L^(-1) */ for (int i = 0; i < rank; ++i) { const int pi = (placements ? placements[i] : i); for (int j = 0; j < i; ++j) { const int pj = (placements ? placements[j] : j); ...
testl %esi, %esi jle 0x267f pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx movq %rdx, %r14 movq %rdi, %r15 movl %esi, %eax movq %rax, (%rsp) xorl %r13d, %r13d testq %rbx, %rbx je 0x2626 movl (%rbx,%r13,4), %ebp jmp 0x2629 movl %r13d, %ebp testq %r13, %r13 je 0x2668 xorl %r1...
/lorinder[P]TvRQ/algebra/mv_generic.h
m256v_U_invmult_inplace_p
void MV_GEN_N(_U_invmult_inplace_p)(const MV_GEN_TYPE* LU, int rank, MV_GEN_TYPE* X_inout, const int* placements) { /* Apply U^(-1) */ for (int i = rank - 1; i >= 0; --i) { const int pi = (placements ? placements[i] : i); for (int j = i + 1; j < LU->n_col; ++j) { const int pj = (placements ? placem...
testl %esi, %esi jle 0x274f pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %rbx movq %rdx, %r14 movq %rdi, %r15 movl %esi, %ecx leaq -0x1(%rcx), %r12 leaq -0x1(%rcx), %rax testq %rbx, %rbx movq %rax, 0x8(%rsp) je 0x26b8 movl (%rbx,%rax,4), %ebp jmp 0x26ba movl %eax, %ebp m...
/lorinder[P]TvRQ/algebra/mv_generic.h
parameters_dump
void parameters_dump(const parameters* P, void* usr, parameter_print_func f) { #define pr(var) do { (*f)(usr, #var, P->var); } while(0) pr(K); pr(Kprime); pr(J); pr(L); pr(S); pr(H); pr(B); pr(W); pr(P); pr(P1); pr(U); #undef pr }
pushq %r15 pushq %r14 pushq %rbx movq %rdx, %r15 movq %rsi, %rbx movq %rdi, %r14 movl (%rdi), %edx leaq 0x3502(%rip), %rsi # 0x5ddc movq %rbx, %rdi callq *%r15 movl 0x4(%r14), %edx leaq 0x34f3(%rip), %rsi # 0x5dde movq %rbx, %rdi callq *%r15 movl 0x8(%r14), %edx leaq 0x34e9(%rip), %rsi # 0x5de5 movq %rbx...
/lorinder[P]TvRQ/rfc6330_alg/parameters.c
main
int main( void ) { #ifndef REGTEST char source[100]; #include "scanf_testcases.h" #endif return TEST_RESULTS; }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xf0, %rsp leaq 0x10(%rsp), %rdi movl $0x6f6f66, (%rdi) # imm = 0x6F6F66 leaq 0x30fa(%rip), %rsi # 0x60a5 leaq 0x80(%rsp), %rdx xorl %eax, %eax callq 0x397b cmpl $0x1, %eax jne 0x384f movl $0x6f66, %eax # imm = 0x6F66 xorl 0x80(%rsp), %ea...
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_scan.c
testscanf
static int testscanf( const char * s, const char * format, ... ) { struct _PDCLIB_status_t status; char const * rc; status.n = 0; status.i = 0; status.s = ( char * )s; status.stream = NULL; va_start( status.arg, format ); rc = _PDCLIB_scan( format, &status ); if ( rc != NULL && rc...
pushq %r14 pushq %rbx subq $0x118, %rsp # imm = 0x118 movq %rsi, %rbx movq %rdi, %r14 leaq 0x60(%rsp), %rdi movq %rdx, 0x10(%rdi) movq %rcx, 0x18(%rdi) movq %r8, 0x20(%rdi) movq %r9, 0x28(%rdi) testb %al, %al je 0x39e4 movaps %xmm0, 0x90(%rsp) movaps %xmm1, 0xa0(%rsp) movaps %xmm2, 0xb0(%rsp) movaps %xmm3, 0...
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_scan.c
fputs
int fputs( const char * _PDCLIB_restrict s, struct _PDCLIB_file_t * _PDCLIB_restrict stream ) { _PDCLIB_LOCK( stream->mtx ); if ( _PDCLIB_prepwrite( stream ) == EOF ) { _PDCLIB_UNLOCK( stream->mtx ); return EOF; } while ( *s != '\0' ) { /* Unbuffered and line buffered s...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %r15 leaq 0x48(%rsi), %rbx movq %rbx, %rdi callq 0x551c movq %r14, %rdi callq 0x401c movl $0xffffffff, %ebp # imm = 0xFFFFFFFF cmpl $-0x1, %eax je 0x3bab movb (%r15), %al testb %al, %al je 0x3b95 incq %r15 movq 0x8(%r14), %rcx movq ...
/DevSolar[P]pdclib/functions/stdio/fputs.c
sprintf
int sprintf( char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, ... ) { int rc; va_list ap; va_start( ap, format ); rc = vsnprintf( s, SIZE_MAX, format, ap ); /* TODO: replace with non-checking call */ va_end( ap ); return rc; }
subq $0xd8, %rsp movq %rsi, %r10 leaq 0x20(%rsp), %rsi movq %rdx, 0x10(%rsi) movq %rcx, 0x18(%rsi) movq %r8, 0x20(%rsi) movq %r9, 0x28(%rsi) testb %al, %al je 0x3cb2 movaps %xmm0, 0x50(%rsp) movaps %xmm1, 0x60(%rsp) movaps %xmm2, 0x70(%rsp) movaps %xmm3, 0x80(%rsp) movaps %xmm4, 0x90(%rsp) movaps %xmm5, 0xa0(%rsp) mova...
/DevSolar[P]pdclib/functions/stdio/sprintf.c
vfprintf
int vfprintf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, va_list arg ) { /* TODO: This function should interpret format as multibyte characters. */ struct _PDCLIB_status_t status; status.base = 0; status.flags = 0; status.n = SIZE_MAX; status.i = 0; ...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x60, %rsp movq %rdx, %r13 movq %rsi, %r14 movq %rdi, %rbx movq $0x0, 0x8(%rsp) movq $-0x1, 0x10(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%rsp) movups %xmm0, 0x28(%rsp) movl $0xffffffff, 0x38(%rsp) # imm = 0xFFFFFFFF movq %rdi, 0x40(%rsp) leaq 0x48(%rdi), ...
/DevSolar[P]pdclib/functions/stdio/vfprintf.c
strtol
long int strtol( const char * s, char ** endptr, int base ) { long int rc; char sign = '+'; const char * p = _PDCLIB_strtox_prelim( s, &sign, &base ); if ( base < 2 || base > 36 ) { return 0; } if ( sign == '+' ) { rc = ( long int )_PDCLIB_strtox_main( &p, ( unsigned )b...
pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rsi, %rbx movq %rdi, %r14 leaq 0x1c(%rsp), %r15 movl %edx, (%r15) leaq 0xf(%rsp), %rsi movb $0x2b, (%rsi) movq %r15, %rdx callq 0x5388 movq %rax, 0x10(%rsp) movslq (%r15), %rsi leal -0x25(%rsi), %eax cmpl $-0x23, %eax jae 0x3f5a xorl %ecx, %ecx jmp 0x3ff5 movabsq ...
/DevSolar[P]pdclib/functions/stdlib/strtol.c
PDCLIB_prepwrite
int _PDCLIB_prepwrite( struct _PDCLIB_file_t * stream ) { if ( ( stream->bufidx < stream->bufend ) || ( stream->ungetidx > 0 ) || ( stream->status & ( _PDCLIB_FREAD | _PDCLIB_ERRORFLAG | _PDCLIB_WIDESTREAM | _PDCLIB_EOFFLAG ) ) || !( stream->status & ( _PDCLIB_FWRITE | _PDCLIB_FAPPEND | _PDCLIB_FR...
pushq %rbx movq %rdi, %rbx movq 0x18(%rdi), %rax cmpq 0x20(%rdi), %rax jb 0x4045 cmpq $0x0, 0x38(%rbx) jne 0x4045 movl 0x44(%rbx), %eax testl $0xe08, %eax # imm = 0xE08 sete %cl testb $0x70, %al setne %dl testb %dl, %cl jne 0x405b callq 0x567c movl $0x9, (%rax) orb $0x2, 0x45(%rbx) movl $0xffffffff, %eax ...
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_prepwrite.c
intformat
static void intformat( intmax_t value, struct _PDCLIB_status_t * status ) { /* At worst, we need two prefix characters (hex prefix). */ char preface[3] = "\0"; size_t preidx = 0; if ( status->prec < 0 ) { status->prec = 1; } if ( ( status->flags & E_alt ) && ( status->base == 16 ||...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rsi, %rbx movb $0x0, 0xe(%rsp) movw $0x0, 0xc(%rsp) cmpl $0x0, 0x30(%rsi) jns 0x4f48 movl $0x1, 0x30(%rbx) movl 0x4(%rbx), %eax testb $0x4, %al jne 0x4f6a xorl %ecx, %ecx testq %rdi, %rdi js 0x4f80 btl $0x11, %eax jb 0x4f89 movb $0x2b, %dl te...
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_print_integer.c
PDCLIB_strtox_main
_PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, unsigned int base, uintmax_t error, uintmax_t limval, int limdigit, char * sign ) { _PDCLIB_uintmax_t rc = 0; int digit = -1; const char * x; while ( ( x = (const char *)memchr( _PDCLIB_digits, tolower( (unsigned char)**p ), base ) ) != NULL ) ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r9, %rbp movl %r8d, 0x4(%rsp) movq %rcx, %r13 movq %rdx, %r15 movq %rdi, %rbx movl %esi, %r12d movq (%rdi), %r14 movzbl (%r14), %edi callq 0x3a80 leaq 0x10d3(%rip), %rdi # 0x6360 movl %eax, %esi movq %r12, %rdx callq 0x4004 te...
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_strtox_main.c
PDCLIB_flushbuffer
int _PDCLIB_flushbuffer( struct _PDCLIB_file_t * stream ) { /* No need to handle buffers > INT_MAX, as PDCLib doesn't allow them */ _PDCLIB_size_t written = 0; int rc; unsigned int retries; if ( !( stream->status & _PDCLIB_FBIN ) ) { /* TODO: Text stream conversion here */ } /*...
pushq %rbp pushq %r14 pushq %rbx movq %rdi, %r14 movb $0x1, %al xorl %ebx, %ebx testb $0x1, %al je 0x54d7 movl (%r14), %edi movq 0x8(%r14), %rsi addq %rbx, %rsi movq 0x18(%r14), %rdx subq %rbx, %rdx callq 0x2040 testl %eax, %eax js 0x54e4 andl $0x7fffffff, %eax # imm = 0x7FFFFFFF addq %rax, 0x28(%r14) addq %rax, ...
/DevSolar[P]pdclib/platform/example/functions/_PDCLIB/_PDCLIB_flushbuffer.c
fputc
int fputc( int c, struct _PDCLIB_file_t * stream ) { _PDCLIB_LOCK( stream->mtx ); if ( _PDCLIB_prepwrite( stream ) == EOF ) { _PDCLIB_UNLOCK( stream->mtx ); return EOF; } stream->buffer[stream->bufidx++] = ( char )c; if ( ( stream->bufidx == stream->bufsize ) ...
pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r15 movl %edi, %ebx leaq 0x48(%rsi), %r14 movq %r14, %rdi callq 0x551c movq %r15, %rdi callq 0x401c cmpl $-0x1, %eax je 0x56d6 movq 0x8(%r15), %rax movq 0x18(%r15), %rcx leaq 0x1(%rcx), %rdx movq %rdx, 0x18(%r15) movb %bl, (%rax,%rcx) movq 0x18(%r15), %rax cmpq 0x10(%r15), %...
/DevSolar[P]pdclib/functions/stdio/fputc.c
bool test_type_conversion<std::reference_wrapper<int>&>(chaiscript::Boxed_Value const&, bool)
bool test_type_conversion(const Boxed_Value &bv, bool expectedpass) { bool ret = run_test_type_conversion<To>(bv, expectedpass); if (!ret) { std::cerr << "Error with type conversion test. From: " << (bv.is_const() ? "const " : "") << bv.get_type_info().name() << " To: " << (std::is_const<To>::val...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %ebp movq %rdi, %r14 callq 0x3bca4 movl %eax, %ebx testb %al, %al jne 0x34aa4 movq 0x69638(%rip), %r12 # 0x9dfd8 leaq 0x476c7(%rip), %rsi # 0x7c06e movl $0x27, %edx movq %r12, %rdi callq 0x2e170 movq (%r14), %rax xorl %ecx, %ecx testb $0x1, 0x10(...
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
bool test_type_conversion<std::reference_wrapper<int> const>(chaiscript::Boxed_Value const&, bool)
bool test_type_conversion(const Boxed_Value &bv, bool expectedpass) { bool ret = run_test_type_conversion<To>(bv, expectedpass); if (!ret) { std::cerr << "Error with type conversion test. From: " << (bv.is_const() ? "const " : "") << bv.get_type_info().name() << " To: " << (std::is_const<To>::val...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %ebp movq %rdi, %r14 callq 0x3c470 movl %eax, %ebx testb %al, %al jne 0x34d0b movq 0x693d4(%rip), %r12 # 0x9dfd8 leaq 0x47463(%rip), %rsi # 0x7c06e movl $0x27, %edx movq %r12, %rdi callq 0x2e170 movq (%r14), %rax xorl %ecx, %ecx testb $0x1, 0x10(...
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
bool test_type_conversion<chaiscript::Boxed_Number*>(chaiscript::Boxed_Value const&, bool)
bool test_type_conversion(const Boxed_Value &bv, bool expectedpass) { bool ret = run_test_type_conversion<To>(bv, expectedpass); if (!ret) { std::cerr << "Error with type conversion test. From: " << (bv.is_const() ? "const " : "") << bv.get_type_info().name() << " To: " << (std::is_const<To>::val...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %ebp movq %rdi, %r14 callq 0x3e5ae movl %eax, %ebx testb %al, %al jne 0x356a1 movq 0x68a3b(%rip), %r12 # 0x9dfd8 leaq 0x46aca(%rip), %rsi # 0x7c06e movl $0x27, %edx movq %r12, %rdi callq 0x2e170 movq (%r14), %rax xorl %ecx, %ecx testb $0x1, 0x10(...
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
bool chaiscript::Type_Conversions::convertable_type<int&>() const
bool convertable_type() const noexcept { const auto type = user_type<T>().bare_type_info(); return thread_cache().count(type) != 0; }
pushq %rbx subq $0x10, %rsp movq 0x65ce2(%rip), %rax # 0x9df08 movq %rax, 0x8(%rsp) callq 0x36726 movq %rax, %rbx leaq 0x8(%rsp), %rsi movq %rax, %rdi callq 0x36e60 addq $0x8, %rbx cmpq %rbx, %rax setne %al addq $0x10, %rsp popq %rbx retq movq %rax, %rdi callq 0x3306e
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/type_conversions.hpp
bool run_test_type_conversion<int const&>(chaiscript::Boxed_Value const&, bool)
bool run_test_type_conversion(const Boxed_Value &bv, bool expectedpass) { try { To ret = chaiscript::boxed_cast<To>(bv); use(ret); } catch (const chaiscript::exception::bad_boxed_cast &e) { if (expectedpass) { std::cerr << "Failure in run_test_type_conversion: " << e.what() << '\n'; return f...
pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx xorl %esi, %esi callq 0x383d4 movl %ebx, %eax addq $0x8, %rsp popq %rbx popq %r14 retq movq %rdx, %r14 movq %rax, %rdi cmpl $0x3, %r14d jne 0x3832f callq 0x2e060 testb %bl, %bl je 0x38325 movq %rax, %r14 movq 0x65cf1(%rip), %rdi # 0x9dfd8 leaq 0x43e66(%rip), %rsi ...
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
bool run_test_type_conversion<std::shared_ptr<int> const&>(chaiscript::Boxed_Value const&, bool)
bool run_test_type_conversion(const Boxed_Value &bv, bool expectedpass) { try { To ret = chaiscript::boxed_cast<To>(bv); use(ret); } catch (const chaiscript::exception::bad_boxed_cast &e) { if (expectedpass) { std::cerr << "Failure in run_test_type_conversion: " << e.what() << '\n'; return f...
pushq %r14 pushq %rbx subq $0x18, %rsp movl %esi, %ebx movq %rdi, %rsi leaq 0x8(%rsp), %rdi xorl %edx, %edx callq 0x3add1 movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x3acbb movq 0x632d7(%rip), %rax # 0x9df70 cmpb $0x0, (%rax) je 0x3aca3 incl 0x8(%rdi) jmp 0x3aca7 lock incl 0x8(%rdi) callq 0x376e2 movq 0x10(%rsp), %r...
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
chaiscript::detail::Cast_Helper<chaiscript::Boxed_Number>::cast(chaiscript::Boxed_Value const&, chaiscript::Type_Conversions_State const*)
static Boxed_Number cast(const Boxed_Value &ob, const Type_Conversions_State *) { return Boxed_Number(ob); }
pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movq (%rsi), %rax movq %rax, (%rsp) movq 0x8(%rsi), %rax movq %rax, 0x8(%rsp) testq %rax, %rax je 0x3d872 movq 0x6070c(%rip), %rcx # 0x9df70 cmpb $0x0, (%rcx) je 0x3d86e incl 0x8(%rax) jmp 0x3d872 lock incl 0x8(%rax) movq %rsp, %rsi movq %rbx, %rdi callq 0x3d8b0 movq 0x8(...
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/boxed_number.hpp
bool run_test_type_conversion<chaiscript::Boxed_Value const&>(chaiscript::Boxed_Value const&, bool)
bool run_test_type_conversion(const Boxed_Value &bv, bool expectedpass) { try { To ret = chaiscript::boxed_cast<To>(bv); use(ret); } catch (const chaiscript::exception::bad_boxed_cast &e) { if (expectedpass) { std::cerr << "Failure in run_test_type_conversion: " << e.what() << '\n'; return f...
pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movq 0x8(%rdi), %r14 testq %r14, %r14 je 0x40615 movq 0x5d984(%rip), %rax # 0x9df70 cmpb $0x0, (%rax) je 0x405f7 incl 0x8(%r14) jmp 0x40601 lock incl 0x8(%r14) cmpb $0x0, (%rax) je 0x4061f incl 0x8(%r14) movq %r14, %rdi callq 0x376e2 movq %r14, %rdi callq 0x376e2 mov...
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
bool test_type_conversion<std::shared_ptr<double const>>(chaiscript::Boxed_Value const&, bool)
bool test_type_conversion(const Boxed_Value &bv, bool expectedpass) { bool ret = run_test_type_conversion<To>(bv, expectedpass); if (!ret) { std::cerr << "Error with type conversion test. From: " << (bv.is_const() ? "const " : "") << bv.get_type_info().name() << " To: " << (std::is_const<To>::val...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %ebp movq %rdi, %r14 callq 0x45985 movl %eax, %ebx testb %al, %al jne 0x4207d movq 0x5c05f(%rip), %r12 # 0x9dfd8 leaq 0x3a0ee(%rip), %rsi # 0x7c06e movl $0x27, %edx movq %r12, %rdi callq 0x2e170 movq (%r14), %rax xorl %ecx, %ecx testb $0x1, 0x10(...
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
decltype(auto) chaiscript::boxed_cast<double const*>(chaiscript::Boxed_Value const&, chaiscript::Type_Conversions_State const*)
decltype(auto) boxed_cast(const Boxed_Value &bv, const Type_Conversions_State *t_conversions = nullptr) { if (!t_conversions || bv.get_type_info().bare_equal(user_type<Type>()) || (t_conversions && !(*t_conversions)->convertable_type<Type>())) { try { return detail::Cast_Helper<Type>::cast(bv, t_conve...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x50, %rsp movq %rsi, %r14 movq %rdi, %rbx testq %rsi, %rsi je 0x44ada movq (%rbx), %rdi movq 0x594f3(%rip), %rax # 0x9df38 movq %rsp, %rsi movq %rax, (%rsi) movq 0x5958e(%rip), %rax # 0x9dfe0 movq %rax, 0x8(%rsi) movl $0x5, 0x10(%rsi) callq 0x366b4 t...
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/boxed_cast.hpp
bool run_test_type_conversion<std::shared_ptr<double>&>(chaiscript::Boxed_Value const&, bool)
bool run_test_type_conversion(const Boxed_Value &bv, bool expectedpass) { try { To ret = chaiscript::boxed_cast<To>(bv); use(ret); } catch (const chaiscript::exception::bad_boxed_cast &e) { if (expectedpass) { std::cerr << "Failure in run_test_type_conversion: " << e.what() << '\n'; return f...
pushq %r14 pushq %rbx subq $0x18, %rsp movl %esi, %ebx movq %rdi, %rsi leaq 0x8(%rsp), %rdi xorl %edx, %edx callq 0x45fb7 movq 0x8(%rsp), %rax movq 0x10(%rsp), %rcx movq (%rax), %rdx movq %rdx, 0x20(%rcx) movq %rdx, 0x28(%rcx) movq 0x8(%rax), %rdi testq %rdi, %rdi je 0x45ea1 movq 0x580e2(%rip), %rax # 0x9df70 cmpb ...
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
chaiscript::detail::Any::Data_Impl<std::shared_ptr<long>>::clone() const
std::unique_ptr<Data> clone() const override { return std::make_unique<Data_Impl<T>>(m_data); }
pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movl $0x20, %edi callq 0x2e150 movq 0x10(%r14), %rcx movq 0x18(%r14), %rdx testq %rdx, %rdx je 0x67458 movq 0x36b26(%rip), %rsi # 0x9df70 cmpb $0x0, (%rsi) je 0x67454 incl 0x8(%rdx) jmp 0x67458 lock incl 0x8(%rdx) leaq 0x360c9(%rip), %rsi # 0x9d52...
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/any.hpp
auto chaiscript::Boxed_Value::Object_Data::get<long const>(std::shared_ptr<long const>&&, bool)
static auto get(std::shared_ptr<T> &&obj, bool t_return_value) { auto ptr = obj.get(); return std::make_shared<Data>(detail::Get_Type_Info<T>::get(), chaiscript::detail::Any(std::move(obj)), false, ptr, t_return_value); }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %edx, %ebp movq %rsi, %r15 movq %rdi, %rbx movq (%rsi), %r12 movl $0x20, %edi callq 0x2e150 movq %rax, %r14 movq 0x8(%r15), %rax xorps %xmm0, %xmm0 movups %xmm0, (%r15) leaq 0x35fd6(%rip), %rcx # 0x9d568 movq %rcx, 0x8(%r14) leaq 0x360fb(%rip), %rcx # ...
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/boxed_value.hpp
chaiscript::detail::Any::Any<std::shared_ptr<long const> const&, void>(std::shared_ptr<long const> const&)
explicit Any(ValueType &&t_value) : m_data(std::make_unique<Data_Impl<std::decay_t<ValueType>>>(std::forward<ValueType>(t_value))) { }
pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movl $0x20, %edi callq 0x2e150 movq (%r14), %rcx movq 0x8(%r14), %rdx testq %rdx, %rdx je 0x67b63 movq 0x3641b(%rip), %rsi # 0x9df70 cmpb $0x0, (%rsi) je 0x67b5f incl 0x8(%rdx) jmp 0x67b63 lock incl 0x8(%rdx) leaq 0x359fe(%rip), %rsi # 0x9d568 mov...
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/any.hpp
chaiscript::const_var(bool)
inline Boxed_Value const_var(bool b) { static const auto t = detail::const_var_impl(true); static const auto f = detail::const_var_impl(false); if (b) { return t; } else { return f; } }
pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movl %esi, %ebp movq %rdi, %rbx movb 0x36282(%rip), %al # 0x9e178 testb %al, %al je 0x67f5b movb 0x36290(%rip), %al # 0x9e190 testb %al, %al je 0x67fad testb %bpl, %bpl je 0x67f20 movq 0x36254(%rip), %rax # 0x9e168 movq %rax, (%rbx) movq 0x36252(%rip), %ra...
/ChaiScript[P]ChaiScript/include/chaiscript/utility/../dispatchkit/../dispatchkit/boxed_value.hpp
bool test_type_conversion<bool* const>(chaiscript::Boxed_Value const&, bool)
bool test_type_conversion(const Boxed_Value &bv, bool expectedpass) { bool ret = run_test_type_conversion<To>(bv, expectedpass); if (!ret) { std::cerr << "Error with type conversion test. From: " << (bv.is_const() ? "const " : "") << bv.get_type_info().name() << " To: " << (std::is_const<To>::val...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %ebp movq %rdi, %r14 callq 0x6b916 movl %eax, %ebx testb %al, %al jne 0x68927 movq 0x357d2(%rip), %r12 # 0x9dfd8 leaq 0x13861(%rip), %rsi # 0x7c06e movl $0x27, %edx movq %r12, %rdi callq 0x2e170 movq (%r14), %rax xorl %ecx, %ecx testb $0x1, 0x10(...
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp
bool test_type_conversion<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(chaiscript::Boxed_Value const&, bool)
bool test_type_conversion(const Boxed_Value &bv, bool expectedpass) { bool ret = run_test_type_conversion<To>(bv, expectedpass); if (!ret) { std::cerr << "Error with type conversion test. From: " << (bv.is_const() ? "const " : "") << bv.get_type_info().name() << " To: " << (std::is_const<To>::val...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %ebp movq %rdi, %r14 callq 0x73bc0 movl %eax, %ebx testb %al, %al jne 0x71c8c movq 0x2c450(%rip), %r12 # 0x9dfd8 leaq 0xa4df(%rip), %rsi # 0x7c06e movl $0x27, %edx movq %r12, %rdi callq 0x2e170 movq (%r14), %rax xorl %ecx, %ecx testb $0x1, 0x10(...
/ChaiScript[P]ChaiScript/unittests/boxed_cast_test.cpp