Skip to content

Instantly share code, notes, and snippets.

View stepancheg's full-sized avatar

Stepan Koltsov stepancheg

View GitHub Profile
%define EQUAL_EACH 1000b
%define NEGATIVE_POLARITY 010000b
EXPORT __strcmp_sse42
mov rax, rdi
sub rax, rsi ; rax = rdi - rsi
sub rsi, 16
@B:
add rsi, 16
/* strcmp with SSE4.2
Copyright (C) 2009 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
#include <stdint.h>
#include <stdio.h>
#include <sys/mman.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
int firstVersion(int param) {
printf("!%d\n", param);
return param;
#include <stdlib.h>
#include <time.h>
static int __my_func_impl_1() {
return 44;
}
static int __my_func_impl_2() {
return 55;
}
size_t memspn(const char* s, size_t len, const char* charset) {
for (size_t i = 0; i < len; ++i) {
bool found = false;
for (const char* p = charset; *p != 0; ++p) {
if (s[i] == *p) {
found = true;
break;
}
}
if (!found)
Unexpected
at pos=8. Expected T.
android.text.format.Time.nativeParse(Native Method)
android.text.format.Time.parse(Time.java:415)
com.hypermatix.ical.CalendarWrapper.getTimeMillis(CalendarWrapper.java:169)
com.hypermatix.ical.CalendarWrapper.getTimeMillis(CalendarWrapper.java:151)
com.hypermatix.app.CalendarSync.CSCalendarUtility.createEvent(CSCalendarUtility.java:165)
com.hypermatix.app.CalendarSync.CSSyncThread.checkForServerUpdate(CSSyncThread.java:802)
com.hypermatix.app.CalendarSync.CSSyncThread.ETag(CSSyncThread.java:714)
com.hypermatix.app.CalendarSync.CSMultiStatusParser.endElement(CSMultiStatusParser.java:72)
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.mycompany.ComponentScanConf#0': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mycompany.Bbbbb com.mycompany.ComponentScanConf.bbbbb; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.mycompany.Bbbbb] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
at org.springframework.b
find . -name '*.java' | xargs cat | awk '{ print length($0) }' | sort | uniq -c | sort -n -k 2
44036 0
5023 1
31575 2
20764 3
32061 4
3477 5
commit 41b6b4ef0ec11fdd9adec8fde73f176b938e865d
Author: Stepan Koltsov <[email protected]>
Date: Mon Jan 16 16:55:00 2012 +0400
refactor java descriptor resolver
diff --git a/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaClassMembersScope.java b/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaClassMembersScope.java
index 80c8b72..636682c 100644
--- a/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaClassMembersScope.java
+++ b/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaClassMembersScope.java
/*
* Copyright 2010-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software