commit
stringlengths
40
40
old_file
stringlengths
4
112
new_file
stringlengths
4
112
old_contents
stringlengths
0
2.05k
new_contents
stringlengths
28
3.9k
subject
stringlengths
17
736
message
stringlengths
18
4.78k
lang
stringclasses
1 value
license
stringclasses
13 values
repos
stringlengths
7
111k
425aa9921544bd60bd26f2429a41deb2e156bd34
Cpp/declare.h
Cpp/declare.h
/*! * @brief Template C++-header file * * This is a template C++-header file * @author <+AUTHOR+> * @date <+DATE+> * @file <+FILE+> * @version 0.1 */ #ifndef <+FILE_CAPITAL+>_H #define <+FILE_CAPITAL+>_H /*! * @brief Template class */ class <+FILEBASE+> { private: public: <+FILEBASE+>() { <+CURSOR+> } }; // class <+FILEBASE+> #endif // <+FILE_CAPITAL+>_H
/*! * @brief Template C++-header file * * This is a template C++-header file * @author <+AUTHOR+> * @date <+DATE+> * @file <+FILE+> * @version 0.1 */ #ifndef <+FILE_CAPITAL+>_H #define <+FILE_CAPITAL+>_H #include <iostream> /*! * @brief Template class */ class <+FILE_PASCAL+> { private: public: <+FILEBASE+>() { <+CURSOR+> } template<typename CharT, typename Traits> friend std::basic_ostream<CharT, Traits>& operator<<(std::basic_ostream<CharT, Traits>& os, const CoutTest& this_); template<typename CharT, typename Traits> friend std::basic_istream<CharT, Traits>& operator>>(std::basic_istream<CharT, Traits>& is, CoutTest& this_); }; // class <+FILE_PASCAL+> template<typename CharT, typename Traits> std::basic_ostream<CharT, Traits>& operator<<(std::basic_ostream<CharT, Traits>& os, const CoutTest& this_) { return os; } template<typename CharT, typename Traits> std::basic_istream<CharT, Traits>& operator>>(std::basic_istream<CharT, Traits>& is, CoutTest& this_) { return is; } #endif // <+FILE_CAPITAL+>_H
Enable to treat with std::cout and std::cin
Enable to treat with std::cout and std::cin
C
mit
koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate,koturn/kotemplate
28f263f2eef862952af22e7668e7c1d0e0937c1f
libyaul/common/stack.c
libyaul/common/stack.c
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <[email protected]> */ #include <stdbool.h> #include <stdio.h> #include <stdint.h> #include "stack.h" char * stack_backtrace(void) { extern void *_text_start; extern void *_text_end; static char buf[1024]; uintptr_t fp; uintptr_t pr; int level; /* Obtain address of the caller and its frame pointer before it * is clobbered by any subsequent calls */ STACK_RET_ADDRESS(pr); STACK_FPTR(fp); level = 0; *buf = '\0'; do { (void)sprintf(buf, "%s #%i 0x%08X in ??? ()\n", buf, level, (uintptr_t)pr); pr = STACK_FPTR_RET_ADDRESS_GET(fp); fp = STACK_FPTR_NEXT_GET(fp); level++; } while (((pr >= (uint32_t)&_text_start)) && (pr < ((uint32_t)&_text_end))); return buf; }
/* * Copyright (c) 2012-2016 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <[email protected]> */ #include <stdbool.h> #include <stdio.h> #include <stdint.h> #include "stack.h" char * stack_backtrace(void) { extern void *_text_start; extern void *_text_end; static char buf[256]; uintptr_t fp; uintptr_t pr; int level; /* Obtain address of the caller and its frame pointer before it * is clobbered by any subsequent calls */ STACK_RET_ADDRESS(pr); STACK_FPTR(fp); level = 0; *buf = '\0'; do { (void)snprintf(buf, 256, "%s #%i 0x%08X in ??? ()\n", buf, level, (uintptr_t)pr); pr = STACK_FPTR_RET_ADDRESS_GET(fp); fp = STACK_FPTR_NEXT_GET(fp); level++; } while (((pr >= (uint32_t)&_text_start)) && (pr < ((uint32_t)&_text_end))); return buf; }
Use snprintf() instead of sprintf()
Use snprintf() instead of sprintf()
C
mit
ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul
a46b7fabdb79de949d0d795cf2ec0accc2a34a4b
Ndapi/Ndapi.h
Ndapi/Ndapi.h
#pragma once #include <ORATYPES.H> using namespace System; using namespace System::Runtime::InteropServices; namespace Ndapi { [Serializable] public ref class NdapiException : public Exception { private: long _status; public: property long Status { long get() { return _status; } }; public protected: NdapiException() : Exception() {} NdapiException(String^ message) : Exception(message) {} NdapiException(String^ message, Exception^ inner) : Exception(message, inner) {} NdapiException(String^ message, long status) : Exception(message) { _status = status; } }; template<class T> class NativeString { private: T* value; NativeString(const NativeString&); NativeString& operator = (const NativeString&); public: NativeString(String^ s); ~NativeString() { Marshal::FreeHGlobal(IntPtr(value)); } operator T* () { return value; } }; }
#pragma once #include <ORATYPES.H> using namespace System; using namespace System::Runtime::InteropServices; namespace Ndapi { [Serializable] public ref class NdapiException : public Exception { private: long _status; public: property long Status { long get() { return _status; } }; public protected: NdapiException() : Exception() {} NdapiException(String^ message) : Exception(message) {} NdapiException(String^ message, Exception^ inner) : Exception(message, inner) {} NdapiException(String^ message, long status) : Exception(message) { _status = status; } }; template<class T> class NativeString { private: T* value; public: NativeString(String^ s); NativeString(const NativeString&) = delete; NativeString& operator = (const NativeString&) = delete; ~NativeString() { Marshal::FreeHGlobal(IntPtr(value)); } operator T* () { return value; } }; }
Use =delete to disallow copy
Use =delete to disallow copy
C
mit
felipebz/ndapi
3e2851f3711355d1db7c286b3738513f4adc3dca
OpenROV/Motors.h
OpenROV/Motors.h
#ifndef __MOTORS_H_ #define __MOTORS_H_ #include <Servo.h> #define MIDPOINT 128 class Motors { private: Servo port, vertical, starbord; int port_pin, vertical_pin, starbord_pin; public: Motors(int p_pin, int v_pin, int s_pin); void reset(); void go(int p, int v, int s); void stop(); }; #endif
#ifndef __MOTORS_H_ #define __MOTORS_H_ #include <Servo.h> #define MIDPOINT 90 class Motors { private: Servo port, vertical, starbord; int port_pin, vertical_pin, starbord_pin; public: Motors(int p_pin, int v_pin, int s_pin); void reset(); void go(int p, int v, int s); void stop(); }; #endif
Set MIDPOINT to 90 instead of 128 (servo lib goes from 0 to 180)
Set MIDPOINT to 90 instead of 128 (servo lib goes from 0 to 180)
C
mit
binary42/openrov-software-arduino,OpenROV/openrov-software-arduino,johan--/openrov-software-arduino,dieface/openrov-software-arduino,spiderkeys/openrov-software-arduino,binary42/openrov-software-arduino,LeeCheongAh/openrov-software-arduino,johan--/openrov-software-arduino,OpenROV/openrov-software-arduino,BrianAdams/openrov-software-arduino,LeeCheongAh/openrov-software-arduino,dieface/openrov-software-arduino,spiderkeys/openrov-software-arduino,BrianAdams/openrov-software-arduino,OpenROV/openrov-software-arduino
a18de90de5ef80a1785dea6f2ca1be26e0fddc1d
rootx/src/rootcoreteam.h
rootx/src/rootcoreteam.h
#ifndef ROOT_ROOTCoreTeam #define ROOT_ROOTCoreTeam namespace ROOT { namespace ROOTX { //This string will be updated by external script, reading names from http://root.cern.ch/gitstats/authors.html. //The string has an internal linkage (it has a definition here, not in rootxx.cxx or rootx-cocoa.mm files. //So this header can be included in different places (as soon as you know what you're doing). //Please, do not modify this file. //[STRINGTOREPLACE const char * gROOTCoreTeam = "Andrei Gheata, Axel Naumann, Bertrand Bellenot, Cristina Cristescu," " Danilo Piparo, Fons Rademakers, Gerardo Ganis, Ilka Antcheva," " Lorenzo Moneta, Matevz Tadel, Olivier Couet, Paul Russo, Pere Mato," " Philippe Canal, Rene Brun, Timur Pocheptsov, Valeri Onuchin," " Vassil Vassilev, Wim Lavrijsen, Wouter Verkerke\n\n"; //STRINGTOREPLACE] } } #endif
#ifndef ROOT_ROOTCoreTeam #define ROOT_ROOTCoreTeam namespace ROOT { namespace ROOTX { //This string will be updated by external script, reading names from http://root.cern.ch/gitstats/authors.html. //The names are sorted in alphabetical order. //The string has an internal linkage (it has a definition here, not in rootxx.cxx or rootx-cocoa.mm files. //So this header can be included in different places (as soon as you know what you're doing). //Please, do not modify this file. const char * gROOTCoreTeam = //[STRINGTOREPLACE "Andrei Gheata, Axel Naumann, Bertrand Bellenot, Cristina Cristescu," " Danilo Piparo, Fons Rademakers, Gerardo Ganis, Ilka Antcheva," " Lorenzo Moneta, Matevz Tadel, Olivier Couet, Paul Russo, Pere Mato," " Philippe Canal, Rene Brun, Timur Pocheptsov, Valeri Onuchin," " Vassil Vassilev, Wim Lavrijsen, Wouter Verkerke.\n\n"; //STRINGTOREPLACE] } } #endif
Make it even simpler for a script to replace.
Make it even simpler for a script to replace.
C
lgpl-2.1
CristinaCristescu/root,esakellari/root,0x0all/ROOT,smarinac/root,pspe/root,lgiommi/root,davidlt/root,arch1tect0r/root,pspe/root,vukasinmilosevic/root,satyarth934/root,mhuwiler/rootauto,Y--/root,krafczyk/root,krafczyk/root,Y--/root,sawenzel/root,zzxuanyuan/root,satyarth934/root,zzxuanyuan/root-compressor-dummy,sbinet/cxx-root,davidlt/root,thomaskeck/root,buuck/root,sawenzel/root,omazapa/root-old,omazapa/root,arch1tect0r/root,mkret2/root,beniz/root,agarciamontoro/root,gbitzes/root,sbinet/cxx-root,sawenzel/root,gbitzes/root,perovic/root,zzxuanyuan/root,gbitzes/root,omazapa/root-old,pspe/root,agarciamontoro/root,esakellari/root,beniz/root,gganis/root,georgtroska/root,veprbl/root,Duraznos/root,olifre/root,esakellari/root,pspe/root,sirinath/root,veprbl/root,veprbl/root,evgeny-boger/root,olifre/root,lgiommi/root,BerserkerTroll/root,omazapa/root,Y--/root,evgeny-boger/root,karies/root,sirinath/root,perovic/root,omazapa/root-old,satyarth934/root,mkret2/root,gganis/root,olifre/root,mattkretz/root,simonpf/root,krafczyk/root,dfunke/root,zzxuanyuan/root,zzxuanyuan/root,mattkretz/root,nilqed/root,0x0all/ROOT,nilqed/root,sbinet/cxx-root,davidlt/root,mkret2/root,perovic/root,abhinavmoudgil95/root,omazapa/root,abhinavmoudgil95/root,esakellari/root,omazapa/root,vukasinmilosevic/root,simonpf/root,sawenzel/root,sirinath/root,gbitzes/root,gbitzes/root,nilqed/root,pspe/root,sirinath/root,Duraznos/root,CristinaCristescu/root,davidlt/root,0x0all/ROOT,root-mirror/root,beniz/root,evgeny-boger/root,esakellari/my_root_for_test,georgtroska/root,georgtroska/root,vukasinmilosevic/root,sirinath/root,mattkretz/root,jrtomps/root,thomaskeck/root,mattkretz/root,agarciamontoro/root,arch1tect0r/root,Duraznos/root,krafczyk/root,georgtroska/root,buuck/root,arch1tect0r/root,gbitzes/root,jrtomps/root,agarciamontoro/root,arch1tect0r/root,zzxuanyuan/root-compressor-dummy,jrtomps/root,karies/root,krafczyk/root,CristinaCristescu/root,omazapa/root,BerserkerTroll/root,root-mirror/root,veprbl/root,lgiommi/root,omazapa/root-old,gbitzes/root,mattkretz/root,lgiommi/root,vukasinmilosevic/root,lgiommi/root,evgeny-boger/root,veprbl/root,mkret2/root,beniz/root,krafczyk/root,BerserkerTroll/root,agarciamontoro/root,perovic/root,satyarth934/root,georgtroska/root,mattkretz/root,BerserkerTroll/root,gganis/root,davidlt/root,lgiommi/root,olifre/root,jrtomps/root,root-mirror/root,Duraznos/root,BerserkerTroll/root,buuck/root,arch1tect0r/root,vukasinmilosevic/root,buuck/root,zzxuanyuan/root,simonpf/root,sbinet/cxx-root,BerserkerTroll/root,dfunke/root,satyarth934/root,arch1tect0r/root,beniz/root,perovic/root,omazapa/root-old,simonpf/root,olifre/root,dfunke/root,davidlt/root,bbockelm/root,smarinac/root,perovic/root,0x0all/ROOT,olifre/root,sirinath/root,Duraznos/root,beniz/root,veprbl/root,evgeny-boger/root,zzxuanyuan/root-compressor-dummy,simonpf/root,CristinaCristescu/root,gbitzes/root,gganis/root,arch1tect0r/root,BerserkerTroll/root,pspe/root,nilqed/root,vukasinmilosevic/root,root-mirror/root,buuck/root,root-mirror/root,gganis/root,perovic/root,pspe/root,pspe/root,esakellari/my_root_for_test,abhinavmoudgil95/root,sbinet/cxx-root,nilqed/root,bbockelm/root,abhinavmoudgil95/root,Y--/root,mhuwiler/rootauto,omazapa/root-old,abhinavmoudgil95/root,bbockelm/root,thomaskeck/root,buuck/root,karies/root,dfunke/root,esakellari/my_root_for_test,jrtomps/root,abhinavmoudgil95/root,simonpf/root,omazapa/root-old,esakellari/my_root_for_test,root-mirror/root,davidlt/root,karies/root,perovic/root,Y--/root,esakellari/root,esakellari/root,sawenzel/root,agarciamontoro/root,mhuwiler/rootauto,mhuwiler/rootauto,zzxuanyuan/root-compressor-dummy,mattkretz/root,zzxuanyuan/root,Y--/root,olifre/root,gbitzes/root,lgiommi/root,agarciamontoro/root,vukasinmilosevic/root,simonpf/root,pspe/root,Y--/root,esakellari/my_root_for_test,beniz/root,root-mirror/root,vukasinmilosevic/root,sirinath/root,davidlt/root,jrtomps/root,satyarth934/root,lgiommi/root,sbinet/cxx-root,CristinaCristescu/root,satyarth934/root,0x0all/ROOT,sawenzel/root,mkret2/root,vukasinmilosevic/root,dfunke/root,sbinet/cxx-root,satyarth934/root,smarinac/root,nilqed/root,georgtroska/root,veprbl/root,arch1tect0r/root,bbockelm/root,0x0all/ROOT,karies/root,bbockelm/root,thomaskeck/root,CristinaCristescu/root,smarinac/root,thomaskeck/root,CristinaCristescu/root,mattkretz/root,simonpf/root,abhinavmoudgil95/root,dfunke/root,evgeny-boger/root,mhuwiler/rootauto,esakellari/my_root_for_test,esakellari/root,pspe/root,Duraznos/root,evgeny-boger/root,nilqed/root,zzxuanyuan/root,zzxuanyuan/root,zzxuanyuan/root-compressor-dummy,beniz/root,nilqed/root,lgiommi/root,sirinath/root,nilqed/root,gganis/root,jrtomps/root,veprbl/root,bbockelm/root,esakellari/root,olifre/root,perovic/root,buuck/root,mkret2/root,lgiommi/root,perovic/root,pspe/root,omazapa/root-old,0x0all/ROOT,beniz/root,mkret2/root,root-mirror/root,BerserkerTroll/root,sirinath/root,krafczyk/root,gbitzes/root,smarinac/root,root-mirror/root,omazapa/root,sawenzel/root,thomaskeck/root,esakellari/my_root_for_test,sawenzel/root,smarinac/root,satyarth934/root,zzxuanyuan/root,abhinavmoudgil95/root,bbockelm/root,sirinath/root,mkret2/root,veprbl/root,abhinavmoudgil95/root,thomaskeck/root,davidlt/root,karies/root,evgeny-boger/root,BerserkerTroll/root,omazapa/root-old,beniz/root,BerserkerTroll/root,jrtomps/root,karies/root,Y--/root,dfunke/root,mhuwiler/rootauto,simonpf/root,esakellari/my_root_for_test,zzxuanyuan/root-compressor-dummy,mhuwiler/rootauto,zzxuanyuan/root,gganis/root,gganis/root,Duraznos/root,veprbl/root,sawenzel/root,agarciamontoro/root,omazapa/root-old,BerserkerTroll/root,CristinaCristescu/root,gbitzes/root,krafczyk/root,thomaskeck/root,buuck/root,lgiommi/root,georgtroska/root,gganis/root,mhuwiler/rootauto,mattkretz/root,nilqed/root,mkret2/root,sbinet/cxx-root,beniz/root,perovic/root,davidlt/root,sirinath/root,jrtomps/root,karies/root,jrtomps/root,mkret2/root,Y--/root,smarinac/root,sbinet/cxx-root,evgeny-boger/root,bbockelm/root,zzxuanyuan/root,Duraznos/root,mhuwiler/rootauto,omazapa/root,nilqed/root,bbockelm/root,karies/root,agarciamontoro/root,georgtroska/root,gganis/root,mhuwiler/rootauto,sbinet/cxx-root,karies/root,0x0all/ROOT,arch1tect0r/root,sawenzel/root,smarinac/root,omazapa/root,gganis/root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root-compressor-dummy,abhinavmoudgil95/root,buuck/root,dfunke/root,thomaskeck/root,krafczyk/root,Y--/root,davidlt/root,bbockelm/root,0x0all/ROOT,evgeny-boger/root,jrtomps/root,sawenzel/root,Duraznos/root,dfunke/root,esakellari/my_root_for_test,veprbl/root,mkret2/root,Duraznos/root,satyarth934/root,georgtroska/root,buuck/root,simonpf/root,mattkretz/root,dfunke/root,Y--/root,bbockelm/root,arch1tect0r/root,root-mirror/root,CristinaCristescu/root,omazapa/root-old,sbinet/cxx-root,Duraznos/root,vukasinmilosevic/root,abhinavmoudgil95/root,thomaskeck/root,agarciamontoro/root,olifre/root,esakellari/root,karies/root,dfunke/root,krafczyk/root,mattkretz/root,smarinac/root,georgtroska/root,evgeny-boger/root,simonpf/root,olifre/root,smarinac/root,esakellari/root,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root,olifre/root,vukasinmilosevic/root,esakellari/my_root_for_test,georgtroska/root,omazapa/root,omazapa/root,root-mirror/root,CristinaCristescu/root,satyarth934/root,zzxuanyuan/root-compressor-dummy,krafczyk/root,buuck/root,omazapa/root,zzxuanyuan/root-compressor-dummy,mhuwiler/rootauto,CristinaCristescu/root,esakellari/root
d40350537af78198fe04838d5d91b06fc79a9ff6
tests/regression/02-base/88-strings.c
tests/regression/02-base/88-strings.c
#include <assert.h> #include <stdlib.h> int main(){ char* str = "Hello"; char* str2 = "Hello"; char* str3 = "hi"; char* str4 = "other string"; // Unknown since the there may be multiple copies of the same string __goblint_check(str != str2); // UNKNOWN! __goblint_check(str == str); __goblint_check(str != str3); char *ptr = NULL; int top = rand(); if(top){ ptr = str2; } else { ptr = str3; } __goblint_check(*ptr == *str); //UNKNOWN // This is unknwon due to only keeping one string pointer in abstract address sets __goblint_check(*ptr == *str4); //UNKNOWN return 0; }
Add test for string pointer analysis
Add test for string pointer analysis
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
2259c582f031fefe09792543f89da286245f6a88
data/main.c
data/main.c
#include <stdio.h> int main() { printf("Hello, world!\n"); }
#include <stdio.h> int main() { printf("Hello, world!\n"); return 0; }
Add proper return code to test software.
Add proper return code to test software.
C
bsd-3-clause
jlisee/cbd,jlisee/cbd,jlisee/cbd
d97c2ad2b6e72aaae9da297212e90cb7576fa79e
tensorflow/contrib/cmake/patches/gif/unistd.h
tensorflow/contrib/cmake/patches/gif/unistd.h
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. 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 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/
Add licenses to empty files. Change: 137204888
Add licenses to empty files. Change: 137204888
C
apache-2.0
paolodedios/tensorflow,manjunaths/tensorflow,allenlavoie/tensorflow,strint/tensorflow,MoamerEncsConcordiaCa/tensorflow,gunan/tensorflow,mdrumond/tensorflow,jwlawson/tensorflow,HKUST-SING/tensorflow,pavelchristof/gomoku-ai,unsiloai/syntaxnet-ops-hack,xzturn/tensorflow,petewarden/tensorflow,hfp/tensorflow-xsmm,LUTAN/tensorflow,alisidd/tensorflow,dyoung418/tensorflow,sjperkins/tensorflow,dongjoon-hyun/tensorflow,benoitsteiner/tensorflow-xsmm,jhseu/tensorflow,asimshankar/tensorflow,hfp/tensorflow-xsmm,jhaux/tensorflow,Bismarrck/tensorflow,elingg/tensorflow,scenarios/tensorflow,AnishShah/tensorflow,jendap/tensorflow,aldian/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,MycChiu/tensorflow,nikste/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,johndpope/tensorflow,manipopopo/tensorflow,dongjoon-hyun/tensorflow,scenarios/tensorflow,aselle/tensorflow,tensorflow/tensorflow-pywrap_saved_model,mixturemodel-flow/tensorflow,vrv/tensorflow,sandeepgupta2k4/tensorflow,tensorflow/tensorflow,drpngx/tensorflow,hsaputra/tensorflow,scenarios/tensorflow,ychfan/tensorflow,seanli9jan/tensorflow,cancan101/tensorflow,yanchen036/tensorflow,nikste/tensorflow,girving/tensorflow,Bulochkin/tensorflow_pack,hfp/tensorflow-xsmm,memo/tensorflow,seanli9jan/tensorflow,martinwicke/tensorflow,yongtang/tensorflow,calebfoss/tensorflow,cxxgtxy/tensorflow,cancan101/tensorflow,gunan/tensorflow,HKUST-SING/tensorflow,benoitsteiner/tensorflow,lukeiwanski/tensorflow-opencl,ychfan/tensorflow,sandeepdsouza93/TensorFlow-15712,bowang/tensorflow,ishay2b/tensorflow,alistairlow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,snnn/tensorflow,tensorflow/tensorflow,with-git/tensorflow,sandeepdsouza93/TensorFlow-15712,renyi533/tensorflow,Moriadry/tensorflow,wangyum/tensorflow,elingg/tensorflow,ArtsiomCh/tensorflow,eerwitt/tensorflow,gibiansky/tensorflow,rdipietro/tensorflow,adamtiger/tensorflow,nburn42/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,jendap/tensorflow,mortada/tensorflow,eadgarchen/tensorflow,abhitopia/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,caisq/tensorflow,jhseu/tensorflow,JingJunYin/tensorflow,Mistobaan/tensorflow,Kongsea/tensorflow,whn09/tensorflow,code-sauce/tensorflow,admcrae/tensorflow,tornadozou/tensorflow,HKUST-SING/tensorflow,sjperkins/tensorflow,adit-chandra/tensorflow,kchodorow/tensorflow,ZhangXinNan/tensorflow,Xeralux/tensorflow,MoamerEncsConcordiaCa/tensorflow,mengxn/tensorflow,laosiaudi/tensorflow,lukeiwanski/tensorflow-opencl,handroissuazo/tensorflow,mixturemodel-flow/tensorflow,gunan/tensorflow,gojira/tensorflow,horance-liu/tensorflow,jart/tensorflow,RapidApplicationDevelopment/tensorflow,johndpope/tensorflow,renyi533/tensorflow,nburn42/tensorflow,lukeiwanski/tensorflow-opencl,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,girving/tensorflow,manjunaths/tensorflow,ravindrapanda/tensorflow,ZhangXinNan/tensorflow,ArtsiomCh/tensorflow,yongtang/tensorflow,dendisuhubdy/tensorflow,benoitsteiner/tensorflow,chemelnucfin/tensorflow,jhseu/tensorflow,lukeiwanski/tensorflow,mavenlin/tensorflow,pcm17/tensorflow,AnishShah/tensorflow,Moriadry/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,maciekcc/tensorflow,Bismarrck/tensorflow,sjperkins/tensorflow,jhseu/tensorflow,yaroslavvb/tensorflow,Bismarrck/tensorflow,Xeralux/tensorflow,jhaux/tensorflow,dyoung418/tensorflow,jhseu/tensorflow,gunan/tensorflow,benoitsteiner/tensorflow-opencl,hsaputra/tensorflow,hehongliang/tensorflow,tomasreimers/tensorflow-emscripten,gautam1858/tensorflow,markslwong/tensorflow,codrut3/tensorflow,renyi533/tensorflow,xodus7/tensorflow,ghchinoy/tensorflow,dongjoon-hyun/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,pavelchristof/gomoku-ai,zasdfgbnm/tensorflow,pcm17/tensorflow,yanchen036/tensorflow,vrv/tensorflow,eadgarchen/tensorflow,tomasreimers/tensorflow-emscripten,nightjean/Deep-Learning,ravindrapanda/tensorflow,DCSaunders/tensorflow,ZhangXinNan/tensorflow,Xeralux/tensorflow,gibiansky/tensorflow,apark263/tensorflow,pavelchristof/gomoku-ai,gunan/tensorflow,seaotterman/tensorflow,davidzchen/tensorflow,andrewcmyers/tensorflow,alshedivat/tensorflow,apark263/tensorflow,dongjoon-hyun/tensorflow,DavidNorman/tensorflow,horance-liu/tensorflow,strint/tensorflow,eaplatanios/tensorflow,HKUST-SING/tensorflow,lukeiwanski/tensorflow,cxxgtxy/tensorflow,thesuperzapper/tensorflow,aam-at/tensorflow,annarev/tensorflow,alsrgv/tensorflow,JVillella/tensorflow,manipopopo/tensorflow,arborh/tensorflow,alistairlow/tensorflow,eadgarchen/tensorflow,Carmezim/tensorflow,SnakeJenny/TensorFlow,sjperkins/tensorflow,tensorflow/tensorflow-pywrap_saved_model,rabipanda/tensorflow,ghchinoy/tensorflow,pavelchristof/gomoku-ai,alivecor/tensorflow,elingg/tensorflow,alshedivat/tensorflow,paolodedios/tensorflow,gunan/tensorflow,seaotterman/tensorflow,DavidNorman/tensorflow,DCSaunders/tensorflow,chemelnucfin/tensorflow,vrv/tensorflow,ghchinoy/tensorflow,eaplatanios/tensorflow,sandeepgupta2k4/tensorflow,aldian/tensorflow,AnishShah/tensorflow,Kongsea/tensorflow,vrv/tensorflow,MycChiu/tensorflow,tornadozou/tensorflow,manipopopo/tensorflow,with-git/tensorflow,jostep/tensorflow,tensorflow/tensorflow,calebfoss/tensorflow,nightjean/Deep-Learning,ville-k/tensorflow,av8ramit/tensorflow,strint/tensorflow,ran5515/DeepDecision,allenlavoie/tensorflow,taknevski/tensorflow-xsmm,tomasreimers/tensorflow-emscripten,aselle/tensorflow,xzturn/tensorflow,AnishShah/tensorflow,jwlawson/tensorflow,annarev/tensorflow,freedomtan/tensorflow,ran5515/DeepDecision,ibmsoe/tensorflow,theflofly/tensorflow,karllessard/tensorflow,theflofly/tensorflow,laosiaudi/tensorflow,lakshayg/tensorflow,mengxn/tensorflow,apark263/tensorflow,apark263/tensorflow,jalexvig/tensorflow,lakshayg/tensorflow,ravindrapanda/tensorflow,gibiansky/tensorflow,jalexvig/tensorflow,lukeiwanski/tensorflow,vrv/tensorflow,davidzchen/tensorflow,jhaux/tensorflow,dendisuhubdy/tensorflow,ishay2b/tensorflow,ychfan/tensorflow,kobejean/tensorflow,Intel-Corporation/tensorflow,paolodedios/tensorflow,dancingdan/tensorflow,av8ramit/tensorflow,brchiu/tensorflow,anilmuthineni/tensorflow,arborh/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Xeralux/tensorflow,nightjean/Deep-Learning,lukeiwanski/tensorflow,yufengg/tensorflow,ravindrapanda/tensorflow,aldian/tensorflow,asimshankar/tensorflow,annarev/tensorflow,tornadozou/tensorflow,DavidNorman/tensorflow,abhitopia/tensorflow,zycdragonball/tensorflow,tiagofrepereira2012/tensorflow,davidzchen/tensorflow,benoitsteiner/tensorflow-xsmm,johndpope/tensorflow,handroissuazo/tensorflow,jbedorf/tensorflow,jhaux/tensorflow,ravindrapanda/tensorflow,Intel-tensorflow/tensorflow,caisq/tensorflow,ppwwyyxx/tensorflow,taknevski/tensorflow-xsmm,SnakeJenny/TensorFlow,hfp/tensorflow-xsmm,benoitsteiner/tensorflow,ZhangXinNan/tensorflow,ishay2b/tensorflow,markslwong/tensorflow,AnishShah/tensorflow,dancingdan/tensorflow,zycdragonball/tensorflow,pavelchristof/gomoku-ai,haeusser/tensorflow,Intel-tensorflow/tensorflow,whn09/tensorflow,thesuperzapper/tensorflow,asadziach/tensorflow,ychfan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,gnieboer/tensorflow,MycChiu/tensorflow,freedomtan/tensorflow,markslwong/tensorflow,ppwwyyxx/tensorflow,aldian/tensorflow,Mistobaan/tensorflow,johndpope/tensorflow,nanditav/15712-TensorFlow,brchiu/tensorflow,kobejean/tensorflow,manazhao/tf_recsys,jwlawson/tensorflow,aam-at/tensorflow,yufengg/tensorflow,eerwitt/tensorflow,unsiloai/syntaxnet-ops-hack,eerwitt/tensorflow,sandeepgupta2k4/tensorflow,Bulochkin/tensorflow_pack,asimshankar/tensorflow,girving/tensorflow,gojira/tensorflow,ageron/tensorflow,hsaputra/tensorflow,mavenlin/tensorflow,xodus7/tensorflow,jbedorf/tensorflow,krikru/tensorflow-opencl,ville-k/tensorflow,brchiu/tensorflow,memo/tensorflow,mdrumond/tensorflow,caisq/tensorflow,yanchen036/tensorflow,Intel-Corporation/tensorflow,hehongliang/tensorflow,av8ramit/tensorflow,horance-liu/tensorflow,maciekcc/tensorflow,aldian/tensorflow,rdipietro/tensorflow,gojira/tensorflow,alsrgv/tensorflow,yufengg/tensorflow,dendisuhubdy/tensorflow,cxxgtxy/tensorflow,nanditav/15712-TensorFlow,ravindrapanda/tensorflow,Mistobaan/tensorflow,adamtiger/tensorflow,admcrae/tensorflow,adit-chandra/tensorflow,alivecor/tensorflow,ghchinoy/tensorflow,arborh/tensorflow,dancingdan/tensorflow,kchodorow/tensorflow,jeffzheng1/tensorflow,chris-chris/tensorflow,rabipanda/tensorflow,kevin-coder/tensorflow-fork,guschmue/tensorflow,aam-at/tensorflow,manazhao/tf_recsys,ppwwyyxx/tensorflow,with-git/tensorflow,yaroslavvb/tensorflow,jhseu/tensorflow,benoitsteiner/tensorflow-xsmm,davidzchen/tensorflow,krikru/tensorflow-opencl,abhitopia/tensorflow,benoitsteiner/tensorflow-xsmm,yongtang/tensorflow,nolanliou/tensorflow,alshedivat/tensorflow,horance-liu/tensorflow,karllessard/tensorflow,asadziach/tensorflow,manipopopo/tensorflow,DCSaunders/tensorflow,drpngx/tensorflow,jart/tensorflow,llhe/tensorflow,adit-chandra/tensorflow,ibmsoe/tensorflow,alisidd/tensorflow,tongwang01/tensorflow,AnishShah/tensorflow,jostep/tensorflow,codrut3/tensorflow,lukeiwanski/tensorflow-opencl,renyi533/tensorflow,drpngx/tensorflow,renyi533/tensorflow,admcrae/tensorflow,brchiu/tensorflow,nikste/tensorflow,allenlavoie/tensorflow,ville-k/tensorflow,alisidd/tensorflow,aldian/tensorflow,chemelnucfin/tensorflow,calebfoss/tensorflow,mortada/tensorflow,dongjoon-hyun/tensorflow,anilmuthineni/tensorflow,brchiu/tensorflow,martinwicke/tensorflow,dyoung418/tensorflow,arborh/tensorflow,alshedivat/tensorflow,benoitsteiner/tensorflow-xsmm,haeusser/tensorflow,kevin-coder/tensorflow-fork,RapidApplicationDevelopment/tensorflow,chemelnucfin/tensorflow,ArtsiomCh/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gnieboer/tensorflow,alshedivat/tensorflow,chris-chris/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,brchiu/tensorflow,johndpope/tensorflow,RapidApplicationDevelopment/tensorflow,mortada/tensorflow,Moriadry/tensorflow,thjashin/tensorflow,rabipanda/tensorflow,tiagofrepereira2012/tensorflow,brchiu/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xzturn/tensorflow,LUTAN/tensorflow,mengxn/tensorflow,yanchen036/tensorflow,SnakeJenny/TensorFlow,gunan/tensorflow,tongwang01/tensorflow,rabipanda/tensorflow,yongtang/tensorflow,tntnatbry/tensorflow,gojira/tensorflow,hsaputra/tensorflow,MycChiu/tensorflow,alsrgv/tensorflow,mixturemodel-flow/tensorflow,admcrae/tensorflow,abhitopia/tensorflow,yongtang/tensorflow,MoamerEncsConcordiaCa/tensorflow,alshedivat/tensorflow,manjunaths/tensorflow,yufengg/tensorflow,sandeepgupta2k4/tensorflow,elingg/tensorflow,ageron/tensorflow,jostep/tensorflow,arborh/tensorflow,a-doumoulakis/tensorflow,ibmsoe/tensorflow,alsrgv/tensorflow,alheinecke/tensorflow-xsmm,maciekcc/tensorflow,nolanliou/tensorflow,andrewcmyers/tensorflow,tensorflow/tensorflow,theflofly/tensorflow,Intel-Corporation/tensorflow,tiagofrepereira2012/tensorflow,aselle/tensorflow,meteorcloudy/tensorflow,ppries/tensorflow,dancingdan/tensorflow,mixturemodel-flow/tensorflow,ArtsiomCh/tensorflow,lukeiwanski/tensorflow,tntnatbry/tensorflow,frreiss/tensorflow-fred,karllessard/tensorflow,annarev/tensorflow,chemelnucfin/tensorflow,lukeiwanski/tensorflow,krikru/tensorflow-opencl,alsrgv/tensorflow,manazhao/tf_recsys,adit-chandra/tensorflow,nolanliou/tensorflow,whn09/tensorflow,jostep/tensorflow,calebfoss/tensorflow,Intel-tensorflow/tensorflow,nburn42/tensorflow,tornadozou/tensorflow,Intel-tensorflow/tensorflow,alisidd/tensorflow,drpngx/tensorflow,tomasreimers/tensorflow-emscripten,tntnatbry/tensorflow,Bulochkin/tensorflow_pack,alivecor/tensorflow,AndreasMadsen/tensorflow,Bismarrck/tensorflow,seaotterman/tensorflow,AndreasMadsen/tensorflow,jart/tensorflow,martinwicke/tensorflow,alshedivat/tensorflow,hfp/tensorflow-xsmm,girving/tensorflow,yanchen036/tensorflow,ghchinoy/tensorflow,jwlawson/tensorflow,drpngx/tensorflow,with-git/tensorflow,krikru/tensorflow-opencl,yaroslavvb/tensorflow,ran5515/DeepDecision,sjperkins/tensorflow,horance-liu/tensorflow,anilmuthineni/tensorflow,chenjun0210/tensorflow,Bulochkin/tensorflow_pack,a-doumoulakis/tensorflow,thesuperzapper/tensorflow,lukeiwanski/tensorflow-opencl,Bulochkin/tensorflow_pack,LUTAN/tensorflow,bowang/tensorflow,mortada/tensorflow,arborh/tensorflow,jart/tensorflow,Kongsea/tensorflow,llhe/tensorflow,chemelnucfin/tensorflow,ppries/tensorflow,DCSaunders/tensorflow,laszlocsomor/tensorflow,allenlavoie/tensorflow,alheinecke/tensorflow-xsmm,freedomtan/tensorflow,jhseu/tensorflow,benoitsteiner/tensorflow-xsmm,cancan101/tensorflow,rdipietro/tensorflow,a-doumoulakis/tensorflow,cancan101/tensorflow,nburn42/tensorflow,eadgarchen/tensorflow,eerwitt/tensorflow,Moriadry/tensorflow,pcm17/tensorflow,snnn/tensorflow,cxxgtxy/tensorflow,ppwwyyxx/tensorflow,nanditav/15712-TensorFlow,adit-chandra/tensorflow,jendap/tensorflow,ychfan/tensorflow,jwlawson/tensorflow,adit-chandra/tensorflow,ZhangXinNan/tensorflow,handroissuazo/tensorflow,SnakeJenny/TensorFlow,DavidNorman/tensorflow,gunan/tensorflow,xodus7/tensorflow,benoitsteiner/tensorflow,dyoung418/tensorflow,unsiloai/syntaxnet-ops-hack,jart/tensorflow,dongjoon-hyun/tensorflow,xodus7/tensorflow,kevin-coder/tensorflow-fork,drpngx/tensorflow,wangyum/tensorflow,ishay2b/tensorflow,tillahoffmann/tensorflow,kobejean/tensorflow,paolodedios/tensorflow,lakshayg/tensorflow,JVillella/tensorflow,abhitopia/tensorflow,kevin-coder/tensorflow-fork,mengxn/tensorflow,elingg/tensorflow,chemelnucfin/tensorflow,bowang/tensorflow,ibmsoe/tensorflow,sandeepdsouza93/TensorFlow-15712,yongtang/tensorflow,dendisuhubdy/tensorflow,ppwwyyxx/tensorflow,alshedivat/tensorflow,MoamerEncsConcordiaCa/tensorflow,renyi533/tensorflow,llhe/tensorflow,gautam1858/tensorflow,petewarden/tensorflow,eadgarchen/tensorflow,jbedorf/tensorflow,jwlawson/tensorflow,lakshayg/tensorflow,ville-k/tensorflow,dendisuhubdy/tensorflow,DavidNorman/tensorflow,Xeralux/tensorflow,martinwicke/tensorflow,with-git/tensorflow,caisq/tensorflow,manazhao/tf_recsys,girving/tensorflow,alshedivat/tensorflow,ghchinoy/tensorflow,frreiss/tensorflow-fred,chenjun0210/tensorflow,taknevski/tensorflow-xsmm,kobejean/tensorflow,kevin-coder/tensorflow-fork,jwlawson/tensorflow,alivecor/tensorflow,Mistobaan/tensorflow,Mazecreator/tensorflow,dongjoon-hyun/tensorflow,rdipietro/tensorflow,Xeralux/tensorflow,Intel-tensorflow/tensorflow,mdrumond/tensorflow,ychfan/tensorflow,jhseu/tensorflow,sandeepdsouza93/TensorFlow-15712,ppries/tensorflow,alsrgv/tensorflow,mdrumond/tensorflow,Mazecreator/tensorflow,renyi533/tensorflow,llhe/tensorflow,eerwitt/tensorflow,tntnatbry/tensorflow,ychfan/tensorflow,jbedorf/tensorflow,jhseu/tensorflow,HKUST-SING/tensorflow,DCSaunders/tensorflow,thjashin/tensorflow,jendap/tensorflow,ZhangXinNan/tensorflow,MoamerEncsConcordiaCa/tensorflow,RapidApplicationDevelopment/tensorflow,tntnatbry/tensorflow,gojira/tensorflow,eaplatanios/tensorflow,chemelnucfin/tensorflow,JVillella/tensorflow,wangyum/tensorflow,nikste/tensorflow,scenarios/tensorflow,codrut3/tensorflow,thesuperzapper/tensorflow,allenlavoie/tensorflow,hsaputra/tensorflow,jalexvig/tensorflow,freedomtan/tensorflow,horance-liu/tensorflow,maciekcc/tensorflow,mdrumond/tensorflow,code-sauce/tensorflow,eaplatanios/tensorflow,whn09/tensorflow,xzturn/tensorflow,unsiloai/syntaxnet-ops-hack,eadgarchen/tensorflow,rabipanda/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,strint/tensorflow,gojira/tensorflow,taknevski/tensorflow-xsmm,ArtsiomCh/tensorflow,snnn/tensorflow,tiagofrepereira2012/tensorflow,Bismarrck/tensorflow,jbedorf/tensorflow,benoitsteiner/tensorflow,gnieboer/tensorflow,caisq/tensorflow,girving/tensorflow,davidzchen/tensorflow,yaroslavvb/tensorflow,aam-at/tensorflow,nolanliou/tensorflow,lukeiwanski/tensorflow-opencl,nanditav/15712-TensorFlow,codrut3/tensorflow,seanli9jan/tensorflow,chemelnucfin/tensorflow,zasdfgbnm/tensorflow,karllessard/tensorflow,llhe/tensorflow,Xeralux/tensorflow,seaotterman/tensorflow,aselle/tensorflow,anilmuthineni/tensorflow,yaroslavvb/tensorflow,eaplatanios/tensorflow,JingJunYin/tensorflow,mortada/tensorflow,yongtang/tensorflow,arborh/tensorflow,raymondxyang/tensorflow,guschmue/tensorflow,ppries/tensorflow,codrut3/tensorflow,Intel-tensorflow/tensorflow,jart/tensorflow,HKUST-SING/tensorflow,alheinecke/tensorflow-xsmm,Intel-Corporation/tensorflow,adit-chandra/tensorflow,ghchinoy/tensorflow,frreiss/tensorflow-fred,ArtsiomCh/tensorflow,mavenlin/tensorflow,ZhangXinNan/tensorflow,mengxn/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,laszlocsomor/tensorflow,tensorflow/tensorflow-pywrap_saved_model,with-git/tensorflow,ppries/tensorflow,ravindrapanda/tensorflow,zasdfgbnm/tensorflow,girving/tensorflow,raymondxyang/tensorflow,nburn42/tensorflow,benoitsteiner/tensorflow,yaroslavvb/tensorflow,jbedorf/tensorflow,caisq/tensorflow,abhitopia/tensorflow,cancan101/tensorflow,nanditav/15712-TensorFlow,dendisuhubdy/tensorflow,aam-at/tensorflow,elingg/tensorflow,xzturn/tensorflow,theflofly/tensorflow,thjashin/tensorflow,ageron/tensorflow,jalexvig/tensorflow,AnishShah/tensorflow,martinwicke/tensorflow,taknevski/tensorflow-xsmm,kobejean/tensorflow,SnakeJenny/TensorFlow,markslwong/tensorflow,cxxgtxy/tensorflow,HKUST-SING/tensorflow,Bulochkin/tensorflow_pack,haeusser/tensorflow,renyi533/tensorflow,av8ramit/tensorflow,Mazecreator/tensorflow,alshedivat/tensorflow,lakshayg/tensorflow,jhaux/tensorflow,rabipanda/tensorflow,odejesush/tensorflow,eerwitt/tensorflow,xzturn/tensorflow,Mazecreator/tensorflow,Kongsea/tensorflow,Mazecreator/tensorflow,ghchinoy/tensorflow,jhaux/tensorflow,nikste/tensorflow,xzturn/tensorflow,gojira/tensorflow,karllessard/tensorflow,chris-chris/tensorflow,wangyum/tensorflow,RapidApplicationDevelopment/tensorflow,codrut3/tensorflow,Carmezim/tensorflow,mixturemodel-flow/tensorflow,yanchen036/tensorflow,seanli9jan/tensorflow,raymondxyang/tensorflow,yaroslavvb/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tongwang01/tensorflow,nolanliou/tensorflow,zasdfgbnm/tensorflow,frreiss/tensorflow-fred,kchodorow/tensorflow,tensorflow/tensorflow,aselle/tensorflow,meteorcloudy/tensorflow,benoitsteiner/tensorflow,av8ramit/tensorflow,tntnatbry/tensorflow,jalexvig/tensorflow,maciekcc/tensorflow,freedomtan/tensorflow,dongjoon-hyun/tensorflow,tiagofrepereira2012/tensorflow,apark263/tensorflow,jeffzheng1/tensorflow,krikru/tensorflow-opencl,ibmsoe/tensorflow,davidzchen/tensorflow,seanli9jan/tensorflow,anilmuthineni/tensorflow,dongjoon-hyun/tensorflow,zasdfgbnm/tensorflow,aselle/tensorflow,bowang/tensorflow,laszlocsomor/tensorflow,ville-k/tensorflow,mixturemodel-flow/tensorflow,manipopopo/tensorflow,nightjean/Deep-Learning,alistairlow/tensorflow,laosiaudi/tensorflow,andrewcmyers/tensorflow,gnieboer/tensorflow,abhitopia/tensorflow,xzturn/tensorflow,pcm17/tensorflow,kchodorow/tensorflow,Mazecreator/tensorflow,hsaputra/tensorflow,maciekcc/tensorflow,manipopopo/tensorflow,tomasreimers/tensorflow-emscripten,jart/tensorflow,suiyuan2009/tensorflow,handroissuazo/tensorflow,Kongsea/tensorflow,AndreasMadsen/tensorflow,aselle/tensorflow,martinwicke/tensorflow,jendap/tensorflow,pcm17/tensorflow,MoamerEncsConcordiaCa/tensorflow,gojira/tensorflow,tillahoffmann/tensorflow,dendisuhubdy/tensorflow,apark263/tensorflow,benoitsteiner/tensorflow-xsmm,sjperkins/tensorflow,dyoung418/tensorflow,manjunaths/tensorflow,jhaux/tensorflow,brchiu/tensorflow,wangyum/tensorflow,AndreasMadsen/tensorflow,handroissuazo/tensorflow,pcm17/tensorflow,AnishShah/tensorflow,adit-chandra/tensorflow,eadgarchen/tensorflow,Moriadry/tensorflow,jeffzheng1/tensorflow,ishay2b/tensorflow,rdipietro/tensorflow,guschmue/tensorflow,tornadozou/tensorflow,Bismarrck/tensorflow,manjunaths/tensorflow,alsrgv/tensorflow,frreiss/tensorflow-fred,Intel-Corporation/tensorflow,bowang/tensorflow,petewarden/tensorflow,odejesush/tensorflow,jwlawson/tensorflow,aselle/tensorflow,dancingdan/tensorflow,gautam1858/tensorflow,asimshankar/tensorflow,laszlocsomor/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,benoitsteiner/tensorflow-opencl,odejesush/tensorflow,seanli9jan/tensorflow,xodus7/tensorflow,AndreasMadsen/tensorflow,markslwong/tensorflow,admcrae/tensorflow,apark263/tensorflow,code-sauce/tensorflow,adamtiger/tensorflow,xodus7/tensorflow,strint/tensorflow,jbedorf/tensorflow,jbedorf/tensorflow,theflofly/tensorflow,Mazecreator/tensorflow,karllessard/tensorflow,aldian/tensorflow,meteorcloudy/tensorflow,abhitopia/tensorflow,meteorcloudy/tensorflow,DCSaunders/tensorflow,nolanliou/tensorflow,johndpope/tensorflow,DavidNorman/tensorflow,seanli9jan/tensorflow,sandeepdsouza93/TensorFlow-15712,Mistobaan/tensorflow,sarvex/tensorflow,wangyum/tensorflow,hfp/tensorflow-xsmm,whn09/tensorflow,nanditav/15712-TensorFlow,av8ramit/tensorflow,martinwicke/tensorflow,taknevski/tensorflow-xsmm,nburn42/tensorflow,ppwwyyxx/tensorflow,manjunaths/tensorflow,guschmue/tensorflow,anilmuthineni/tensorflow,asimshankar/tensorflow,jhseu/tensorflow,DavidNorman/tensorflow,haeusser/tensorflow,wangyum/tensorflow,seaotterman/tensorflow,jhaux/tensorflow,Moriadry/tensorflow,odejesush/tensorflow,thesuperzapper/tensorflow,suiyuan2009/tensorflow,tornadozou/tensorflow,ibmsoe/tensorflow,krikru/tensorflow-opencl,Mistobaan/tensorflow,AndreasMadsen/tensorflow,maciekcc/tensorflow,admcrae/tensorflow,mengxn/tensorflow,ghchinoy/tensorflow,lukeiwanski/tensorflow-opencl,handroissuazo/tensorflow,ZhangXinNan/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,Moriadry/tensorflow,jhaux/tensorflow,handroissuazo/tensorflow,krikru/tensorflow-opencl,laszlocsomor/tensorflow,laszlocsomor/tensorflow,av8ramit/tensorflow,aselle/tensorflow,yongtang/tensorflow,aam-at/tensorflow,tntnatbry/tensorflow,gautam1858/tensorflow,davidzchen/tensorflow,thjashin/tensorflow,hfp/tensorflow-xsmm,raymondxyang/tensorflow,taknevski/tensorflow-xsmm,laosiaudi/tensorflow,freedomtan/tensorflow,chemelnucfin/tensorflow,jart/tensorflow,ville-k/tensorflow,dyoung418/tensorflow,jbedorf/tensorflow,andrewcmyers/tensorflow,scenarios/tensorflow,benoitsteiner/tensorflow-opencl,rabipanda/tensorflow,Bismarrck/tensorflow,tensorflow/tensorflow-pywrap_saved_model,av8ramit/tensorflow,laosiaudi/tensorflow,nolanliou/tensorflow,mdrumond/tensorflow,gautam1858/tensorflow,xodus7/tensorflow,ppwwyyxx/tensorflow,Moriadry/tensorflow,renyi533/tensorflow,chenjun0210/tensorflow,vrv/tensorflow,Carmezim/tensorflow,jendap/tensorflow,MycChiu/tensorflow,lakshayg/tensorflow,brchiu/tensorflow,LUTAN/tensorflow,mortada/tensorflow,gautam1858/tensorflow,aam-at/tensorflow,jwlawson/tensorflow,sjperkins/tensorflow,nikste/tensorflow,benoitsteiner/tensorflow-xsmm,gnieboer/tensorflow,strint/tensorflow,Kongsea/tensorflow,manjunaths/tensorflow,apark263/tensorflow,dancingdan/tensorflow,benoitsteiner/tensorflow,Mazecreator/tensorflow,jendap/tensorflow,DCSaunders/tensorflow,eerwitt/tensorflow,Mistobaan/tensorflow,caisq/tensorflow,alisidd/tensorflow,johndpope/tensorflow,AnishShah/tensorflow,nightjean/Deep-Learning,horance-liu/tensorflow,frreiss/tensorflow-fred,brchiu/tensorflow,tongwang01/tensorflow,allenlavoie/tensorflow,cxxgtxy/tensorflow,Carmezim/tensorflow,codrut3/tensorflow,MoamerEncsConcordiaCa/tensorflow,haeusser/tensorflow,DCSaunders/tensorflow,alsrgv/tensorflow,seanli9jan/tensorflow,vrv/tensorflow,Bismarrck/tensorflow,JingJunYin/tensorflow,JVillella/tensorflow,mengxn/tensorflow,LUTAN/tensorflow,gojira/tensorflow,yaroslavvb/tensorflow,kevin-coder/tensorflow-fork,DavidNorman/tensorflow,meteorcloudy/tensorflow,freedomtan/tensorflow,johndpope/tensorflow,alsrgv/tensorflow,codrut3/tensorflow,with-git/tensorflow,alheinecke/tensorflow-xsmm,frreiss/tensorflow-fred,code-sauce/tensorflow,girving/tensorflow,gautam1858/tensorflow,apark263/tensorflow,andrewcmyers/tensorflow,horance-liu/tensorflow,tornadozou/tensorflow,xodus7/tensorflow,ychfan/tensorflow,sandeepgupta2k4/tensorflow,dancingdan/tensorflow,pavelchristof/gomoku-ai,tensorflow/tensorflow-pywrap_saved_model,eaplatanios/tensorflow,zycdragonball/tensorflow,admcrae/tensorflow,sarvex/tensorflow,snnn/tensorflow,gunan/tensorflow,ran5515/DeepDecision,sandeepgupta2k4/tensorflow,drpngx/tensorflow,pavelchristof/gomoku-ai,LUTAN/tensorflow,jalexvig/tensorflow,Carmezim/tensorflow,thjashin/tensorflow,suiyuan2009/tensorflow,zasdfgbnm/tensorflow,alisidd/tensorflow,sandeepgupta2k4/tensorflow,jostep/tensorflow,ville-k/tensorflow,ZhangXinNan/tensorflow,chemelnucfin/tensorflow,sarvex/tensorflow,ppwwyyxx/tensorflow,theflofly/tensorflow,sjperkins/tensorflow,raymondxyang/tensorflow,ppwwyyxx/tensorflow,av8ramit/tensorflow,mavenlin/tensorflow,zasdfgbnm/tensorflow,paolodedios/tensorflow,drpngx/tensorflow,meteorcloudy/tensorflow,zasdfgbnm/tensorflow,annarev/tensorflow,elingg/tensorflow,manipopopo/tensorflow,nburn42/tensorflow,alheinecke/tensorflow-xsmm,zasdfgbnm/tensorflow,asimshankar/tensorflow,laosiaudi/tensorflow,chris-chris/tensorflow,eaplatanios/tensorflow,memo/tensorflow,alivecor/tensorflow,mdrumond/tensorflow,codrut3/tensorflow,jeffzheng1/tensorflow,karllessard/tensorflow,code-sauce/tensorflow,ville-k/tensorflow,krikru/tensorflow-opencl,kobejean/tensorflow,manazhao/tf_recsys,jendap/tensorflow,kevin-coder/tensorflow-fork,aam-at/tensorflow,manipopopo/tensorflow,seanli9jan/tensorflow,sandeepdsouza93/TensorFlow-15712,tensorflow/tensorflow-pywrap_saved_model,zasdfgbnm/tensorflow,freedomtan/tensorflow,alheinecke/tensorflow-xsmm,jalexvig/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,meteorcloudy/tensorflow,andrewcmyers/tensorflow,allenlavoie/tensorflow,alsrgv/tensorflow,mengxn/tensorflow,jeffzheng1/tensorflow,nanditav/15712-TensorFlow,anilmuthineni/tensorflow,gibiansky/tensorflow,tornadozou/tensorflow,tensorflow/tensorflow-pywrap_saved_model,laosiaudi/tensorflow,benoitsteiner/tensorflow-opencl,tillahoffmann/tensorflow,annarev/tensorflow,sarvex/tensorflow,alsrgv/tensorflow,markslwong/tensorflow,jhseu/tensorflow,nightjean/Deep-Learning,annarev/tensorflow,sandeepdsouza93/TensorFlow-15712,petewarden/tensorflow,petewarden/tensorflow,jbedorf/tensorflow,kobejean/tensorflow,thesuperzapper/tensorflow,nikste/tensorflow,calebfoss/tensorflow,lakshayg/tensorflow,odejesush/tensorflow,Carmezim/tensorflow,tensorflow/tensorflow,ageron/tensorflow,brchiu/tensorflow,snnn/tensorflow,dongjoon-hyun/tensorflow,Bulochkin/tensorflow_pack,frreiss/tensorflow-fred,ppries/tensorflow,benoitsteiner/tensorflow-opencl,tillahoffmann/tensorflow,mortada/tensorflow,yaroslavvb/tensorflow,annarev/tensorflow,guschmue/tensorflow,laszlocsomor/tensorflow,DCSaunders/tensorflow,alisidd/tensorflow,sandeepdsouza93/TensorFlow-15712,tensorflow/tensorflow-pywrap_saved_model,chenjun0210/tensorflow,Bulochkin/tensorflow_pack,laszlocsomor/tensorflow,nburn42/tensorflow,petewarden/tensorflow,ghchinoy/tensorflow,JingJunYin/tensorflow,nikste/tensorflow,asadziach/tensorflow,asadziach/tensorflow,jeffzheng1/tensorflow,ran5515/DeepDecision,eadgarchen/tensorflow,tongwang01/tensorflow,haeusser/tensorflow,nanditav/15712-TensorFlow,horance-liu/tensorflow,LUTAN/tensorflow,AndreasMadsen/tensorflow,jeffzheng1/tensorflow,tensorflow/tensorflow,rdipietro/tensorflow,benoitsteiner/tensorflow-opencl,nburn42/tensorflow,SnakeJenny/TensorFlow,Intel-Corporation/tensorflow,paolodedios/tensorflow,Bismarrck/tensorflow,eadgarchen/tensorflow,annarev/tensorflow,theflofly/tensorflow,calebfoss/tensorflow,lukeiwanski/tensorflow,manazhao/tf_recsys,gautam1858/tensorflow,gojira/tensorflow,guschmue/tensorflow,ageron/tensorflow,tillahoffmann/tensorflow,nolanliou/tensorflow,chemelnucfin/tensorflow,hehongliang/tensorflow,alistairlow/tensorflow,jalexvig/tensorflow,mortada/tensorflow,ville-k/tensorflow,arborh/tensorflow,snnn/tensorflow,tillahoffmann/tensorflow,nburn42/tensorflow,kchodorow/tensorflow,gnieboer/tensorflow,rdipietro/tensorflow,xzturn/tensorflow,jeffzheng1/tensorflow,jalexvig/tensorflow,code-sauce/tensorflow,alistairlow/tensorflow,ZhangXinNan/tensorflow,admcrae/tensorflow,jendap/tensorflow,cancan101/tensorflow,pcm17/tensorflow,alistairlow/tensorflow,mavenlin/tensorflow,ibmsoe/tensorflow,alistairlow/tensorflow,dyoung418/tensorflow,adamtiger/tensorflow,calebfoss/tensorflow,hfp/tensorflow-xsmm,ibmsoe/tensorflow,tntnatbry/tensorflow,MoamerEncsConcordiaCa/tensorflow,alivecor/tensorflow,JingJunYin/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,lakshayg/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,pcm17/tensorflow,chenjun0210/tensorflow,MycChiu/tensorflow,allenlavoie/tensorflow,chenjun0210/tensorflow,Mazecreator/tensorflow,alshedivat/tensorflow,jalexvig/tensorflow,a-doumoulakis/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,memo/tensorflow,eadgarchen/tensorflow,markslwong/tensorflow,JingJunYin/tensorflow,whn09/tensorflow,thjashin/tensorflow,suiyuan2009/tensorflow,unsiloai/syntaxnet-ops-hack,chenjun0210/tensorflow,dancingdan/tensorflow,kevin-coder/tensorflow-fork,haeusser/tensorflow,asimshankar/tensorflow,adamtiger/tensorflow,meteorcloudy/tensorflow,alisidd/tensorflow,manipopopo/tensorflow,bowang/tensorflow,nightjean/Deep-Learning,lukeiwanski/tensorflow-opencl,paolodedios/tensorflow,DavidNorman/tensorflow,ageron/tensorflow,thjashin/tensorflow,tongwang01/tensorflow,benoitsteiner/tensorflow-xsmm,mavenlin/tensorflow,jalexvig/tensorflow,hsaputra/tensorflow,asadziach/tensorflow,davidzchen/tensorflow,arborh/tensorflow,calebfoss/tensorflow,xodus7/tensorflow,jart/tensorflow,nolanliou/tensorflow,adamtiger/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,nanditav/15712-TensorFlow,davidzchen/tensorflow,zycdragonball/tensorflow,benoitsteiner/tensorflow-xsmm,ibmsoe/tensorflow,alsrgv/tensorflow,RapidApplicationDevelopment/tensorflow,benoitsteiner/tensorflow-opencl,tensorflow/tensorflow-pywrap_tf_optimizer,sandeepdsouza93/TensorFlow-15712,apark263/tensorflow,petewarden/tensorflow,tiagofrepereira2012/tensorflow,asadziach/tensorflow,mortada/tensorflow,tongwang01/tensorflow,JVillella/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aselle/tensorflow,frreiss/tensorflow-fred,kevin-coder/tensorflow-fork,zycdragonball/tensorflow,aam-at/tensorflow,whn09/tensorflow,DCSaunders/tensorflow,maciekcc/tensorflow,AndreasMadsen/tensorflow,gautam1858/tensorflow,llhe/tensorflow,eaplatanios/tensorflow,tongwang01/tensorflow,MoamerEncsConcordiaCa/tensorflow,asimshankar/tensorflow,cxxgtxy/tensorflow,nburn42/tensorflow,sarvex/tensorflow,nightjean/Deep-Learning,odejesush/tensorflow,gojira/tensorflow,zycdragonball/tensorflow,theflofly/tensorflow,calebfoss/tensorflow,Xeralux/tensorflow,nolanliou/tensorflow,taknevski/tensorflow-xsmm,rdipietro/tensorflow,ran5515/DeepDecision,unsiloai/syntaxnet-ops-hack,petewarden/tensorflow,strint/tensorflow,odejesush/tensorflow,aldian/tensorflow,anilmuthineni/tensorflow,mdrumond/tensorflow,gibiansky/tensorflow,whn09/tensorflow,Carmezim/tensorflow,seaotterman/tensorflow,DavidNorman/tensorflow,chris-chris/tensorflow,LUTAN/tensorflow,kchodorow/tensorflow,DavidNorman/tensorflow,hehongliang/tensorflow,mavenlin/tensorflow,apark263/tensorflow,xodus7/tensorflow,tensorflow/tensorflow,hehongliang/tensorflow,jhaux/tensorflow,frreiss/tensorflow-fred,MycChiu/tensorflow,gibiansky/tensorflow,alistairlow/tensorflow,gibiansky/tensorflow,wangyum/tensorflow,benoitsteiner/tensorflow,AndreasMadsen/tensorflow,adit-chandra/tensorflow,rabipanda/tensorflow,jendap/tensorflow,JingJunYin/tensorflow,code-sauce/tensorflow,alisidd/tensorflow,JVillella/tensorflow,andrewcmyers/tensorflow,arborh/tensorflow,a-doumoulakis/tensorflow,asimshankar/tensorflow,Intel-tensorflow/tensorflow,ageron/tensorflow,caisq/tensorflow,hehongliang/tensorflow,abhitopia/tensorflow,eerwitt/tensorflow,Mistobaan/tensorflow,ychfan/tensorflow,Intel-Corporation/tensorflow,gnieboer/tensorflow,petewarden/tensorflow,lukeiwanski/tensorflow,kobejean/tensorflow,alivecor/tensorflow,handroissuazo/tensorflow,yongtang/tensorflow,asimshankar/tensorflow,ageron/tensorflow,mengxn/tensorflow,kobejean/tensorflow,asadziach/tensorflow,tillahoffmann/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,thjashin/tensorflow,chris-chris/tensorflow,benoitsteiner/tensorflow-opencl,kchodorow/tensorflow,johndpope/tensorflow,tiagofrepereira2012/tensorflow,lukeiwanski/tensorflow,RapidApplicationDevelopment/tensorflow,jostep/tensorflow,karllessard/tensorflow,theflofly/tensorflow,manazhao/tf_recsys,tensorflow/tensorflow-pywrap_tf_optimizer,jart/tensorflow,ZhangXinNan/tensorflow,paolodedios/tensorflow,zycdragonball/tensorflow,rabipanda/tensorflow,Bulochkin/tensorflow_pack,gunan/tensorflow,dancingdan/tensorflow,kevin-coder/tensorflow-fork,markslwong/tensorflow,thesuperzapper/tensorflow,manipopopo/tensorflow,hfp/tensorflow-xsmm,Xeralux/tensorflow,tomasreimers/tensorflow-emscripten,allenlavoie/tensorflow,kchodorow/tensorflow,sarvex/tensorflow,adit-chandra/tensorflow,cxxgtxy/tensorflow,sjperkins/tensorflow,jbedorf/tensorflow,theflofly/tensorflow,seanli9jan/tensorflow,Intel-tensorflow/tensorflow,code-sauce/tensorflow,yanchen036/tensorflow,scenarios/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,yufengg/tensorflow,tomasreimers/tensorflow-emscripten,memo/tensorflow,chris-chris/tensorflow,lukeiwanski/tensorflow-opencl,rdipietro/tensorflow,memo/tensorflow,rabipanda/tensorflow,ishay2b/tensorflow,dyoung418/tensorflow,snnn/tensorflow,elingg/tensorflow,nikste/tensorflow,laosiaudi/tensorflow,ghchinoy/tensorflow,snnn/tensorflow,ran5515/DeepDecision,seaotterman/tensorflow,taknevski/tensorflow-xsmm,anilmuthineni/tensorflow,AnishShah/tensorflow,hfp/tensorflow-xsmm,asimshankar/tensorflow,adit-chandra/tensorflow,SnakeJenny/TensorFlow,allenlavoie/tensorflow,llhe/tensorflow,gnieboer/tensorflow,johndpope/tensorflow,MycChiu/tensorflow,aselle/tensorflow,petewarden/tensorflow,manjunaths/tensorflow,Bismarrck/tensorflow,seaotterman/tensorflow,sarvex/tensorflow,renyi533/tensorflow,memo/tensorflow,kchodorow/tensorflow,ppries/tensorflow,horance-liu/tensorflow,tomasreimers/tensorflow-emscripten,chenjun0210/tensorflow,eaplatanios/tensorflow,gibiansky/tensorflow,freedomtan/tensorflow,raymondxyang/tensorflow,lukeiwanski/tensorflow,Mistobaan/tensorflow,Xeralux/tensorflow,dendisuhubdy/tensorflow,dancingdan/tensorflow,eaplatanios/tensorflow,renyi533/tensorflow,alheinecke/tensorflow-xsmm,raymondxyang/tensorflow,chenjun0210/tensorflow,davidzchen/tensorflow,admcrae/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-experimental_link_static_libraries_once,unsiloai/syntaxnet-ops-hack,Xeralux/tensorflow,HKUST-SING/tensorflow,benoitsteiner/tensorflow-opencl,paolodedios/tensorflow,mavenlin/tensorflow,alheinecke/tensorflow-xsmm,Carmezim/tensorflow,tomasreimers/tensorflow-emscripten,manipopopo/tensorflow,ppries/tensorflow,yanchen036/tensorflow,llhe/tensorflow,dancingdan/tensorflow,handroissuazo/tensorflow,AnishShah/tensorflow,manjunaths/tensorflow,freedomtan/tensorflow,hfp/tensorflow-xsmm,allenlavoie/tensorflow,gnieboer/tensorflow,Mistobaan/tensorflow,RapidApplicationDevelopment/tensorflow,snnn/tensorflow,hsaputra/tensorflow,ravindrapanda/tensorflow,asadziach/tensorflow,paolodedios/tensorflow,eerwitt/tensorflow,ppwwyyxx/tensorflow,kobejean/tensorflow,gautam1858/tensorflow,Bulochkin/tensorflow_pack,chris-chris/tensorflow,sjperkins/tensorflow,av8ramit/tensorflow,yufengg/tensorflow,tiagofrepereira2012/tensorflow,a-doumoulakis/tensorflow,HKUST-SING/tensorflow,ishay2b/tensorflow,davidzchen/tensorflow,ghchinoy/tensorflow,Bulochkin/tensorflow_pack,Intel-Corporation/tensorflow,jeffzheng1/tensorflow,code-sauce/tensorflow,RapidApplicationDevelopment/tensorflow,yongtang/tensorflow,andrewcmyers/tensorflow,ArtsiomCh/tensorflow,snnn/tensorflow,gautam1858/tensorflow,girving/tensorflow,laszlocsomor/tensorflow,wangyum/tensorflow,yongtang/tensorflow,hsaputra/tensorflow,suiyuan2009/tensorflow,pavelchristof/gomoku-ai,ageron/tensorflow,alheinecke/tensorflow-xsmm,tensorflow/tensorflow-pywrap_tf_optimizer,mixturemodel-flow/tensorflow,karllessard/tensorflow,strint/tensorflow,Kongsea/tensorflow,jhseu/tensorflow,suiyuan2009/tensorflow,karllessard/tensorflow,sandeepgupta2k4/tensorflow,kevin-coder/tensorflow-fork,thesuperzapper/tensorflow,jwlawson/tensorflow,chris-chris/tensorflow,cancan101/tensorflow,benoitsteiner/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,seanli9jan/tensorflow,drpngx/tensorflow,karllessard/tensorflow,Mistobaan/tensorflow,dendisuhubdy/tensorflow,Carmezim/tensorflow,cancan101/tensorflow,MycChiu/tensorflow,tensorflow/tensorflow,martinwicke/tensorflow,caisq/tensorflow,LUTAN/tensorflow,drpngx/tensorflow,dongjoon-hyun/tensorflow,alivecor/tensorflow,scenarios/tensorflow,mixturemodel-flow/tensorflow,asadziach/tensorflow,alistairlow/tensorflow,petewarden/tensorflow,mdrumond/tensorflow,pcm17/tensorflow,unsiloai/syntaxnet-ops-hack,gunan/tensorflow,vrv/tensorflow,Bulochkin/tensorflow_pack,alistairlow/tensorflow,a-doumoulakis/tensorflow,odejesush/tensorflow,jostep/tensorflow,JingJunYin/tensorflow,tillahoffmann/tensorflow,llhe/tensorflow,guschmue/tensorflow,JingJunYin/tensorflow,vrv/tensorflow,kobejean/tensorflow,Bismarrck/tensorflow,snnn/tensorflow,xodus7/tensorflow,meteorcloudy/tensorflow,a-doumoulakis/tensorflow,JingJunYin/tensorflow,ageron/tensorflow,caisq/tensorflow,haeusser/tensorflow,theflofly/tensorflow,arborh/tensorflow,eaplatanios/tensorflow,krikru/tensorflow-opencl,yufengg/tensorflow,thjashin/tensorflow,seaotterman/tensorflow,laszlocsomor/tensorflow,strint/tensorflow,Kongsea/tensorflow,scenarios/tensorflow,ArtsiomCh/tensorflow,ageron/tensorflow,thesuperzapper/tensorflow,tensorflow/tensorflow,zasdfgbnm/tensorflow,laosiaudi/tensorflow,av8ramit/tensorflow,guschmue/tensorflow,llhe/tensorflow,cancan101/tensorflow,elingg/tensorflow,guschmue/tensorflow,jbedorf/tensorflow,haeusser/tensorflow,tntnatbry/tensorflow,theflofly/tensorflow,codrut3/tensorflow,ageron/tensorflow,bowang/tensorflow,xzturn/tensorflow,raymondxyang/tensorflow,martinwicke/tensorflow,bowang/tensorflow,girving/tensorflow,guschmue/tensorflow,girving/tensorflow,memo/tensorflow,sandeepgupta2k4/tensorflow,meteorcloudy/tensorflow,ppries/tensorflow,JVillella/tensorflow,markslwong/tensorflow,whn09/tensorflow,adit-chandra/tensorflow,gibiansky/tensorflow,ppwwyyxx/tensorflow,suiyuan2009/tensorflow,frreiss/tensorflow-fred,adamtiger/tensorflow,benoitsteiner/tensorflow-xsmm,jwlawson/tensorflow,with-git/tensorflow,freedomtan/tensorflow,jendap/tensorflow,ville-k/tensorflow,odejesush/tensorflow,hsaputra/tensorflow,jostep/tensorflow,rabipanda/tensorflow,ravindrapanda/tensorflow,aam-at/tensorflow,hehongliang/tensorflow,dendisuhubdy/tensorflow,aam-at/tensorflow,SnakeJenny/TensorFlow,xzturn/tensorflow,memo/tensorflow,scenarios/tensorflow
b8cfdf3f2e53241c12ef7adb49006e526ada3f37
MCSMKeychainItem.h
MCSMKeychainItem.h
// // MCSMKeychainItem.h // MCSMFoundation // // Created by Spencer MacDonald on 12/10/2011. // Copyright 2012 Square Bracket Software. All rights reserved. // #import <Foundation/Foundation.h> #if TARGET_OS_MAC && !TARGET_IPHONE_SIMULATOR #import <Carbon/Carbon.h> #endif #import <Security/Security.h> @interface MCSMKeychainItem : NSObject #if TARGET_OS_MAC && !TARGET_IPHONE_SIMULATOR + (void)lockKeychain; + (void)unlockKeychain; #endif @property (readonly, copy) NSString *username; @property (readonly, copy) NSString *password; - (BOOL)removeFromKeychain; @end @interface MCSMGenericKeychainItem : MCSMKeychainItem @property (readonly, copy) NSString *service; + (MCSMGenericKeychainItem *)genericKeychainItemForService:(NSString *)service username:(NSString *)username; + (MCSMGenericKeychainItem *)genericKeychainItemWithService:(NSString *)service username:(NSString *)username password:(NSString *)password; @end
// // MCSMKeychainItem.h // MCSMFoundation // // Created by Spencer MacDonald on 12/10/2011. // Copyright 2012 Square Bracket Software. All rights reserved. // #import <Foundation/Foundation.h> #import <Security/Security.h> @interface MCSMKeychainItem : NSObject #if TARGET_OS_MAC && !TARGET_IPHONE_SIMULATOR + (void)lockKeychain; + (void)unlockKeychain; #endif @property (readonly, copy) NSString *username; @property (readonly, copy) NSString *password; - (BOOL)removeFromKeychain; @end @interface MCSMGenericKeychainItem : MCSMKeychainItem @property (readonly, copy) NSString *service; + (MCSMGenericKeychainItem *)genericKeychainItemForService:(NSString *)service username:(NSString *)username; + (MCSMGenericKeychainItem *)genericKeychainItemWithService:(NSString *)service username:(NSString *)username password:(NSString *)password; @end
Remove the need for the Carbon Framework on OS X
Remove the need for the Carbon Framework on OS X The Carbon Framework was left in the header from previous versions.
C
bsd-3-clause
ObjColumnist/MCSMKeychainItem
f9f554b9710c0f5dfd758071d4a6272c2274add4
urbackupserver/server_ping.h
urbackupserver/server_ping.h
#include "../Interface/Thread.h" #include "../Interface/Mutex.h" class ClientMain; struct SProcess; class ServerPingThread : public IThread { public: ServerPingThread(ClientMain *client_main, const std::string& clientname, size_t status_id, bool with_eta, std::string server_token); void operator()(void); void setStop(bool b); bool isTimeout(void); private: void setPaused(SProcess* proc, bool b); ClientMain *client_main; volatile bool stop; volatile bool is_timeout; bool with_eta; const std::string& clientname; size_t status_id; std::string server_token; };
#include "../Interface/Thread.h" #include "../Interface/Mutex.h" class ClientMain; struct SProcess; class ServerPingThread : public IThread { public: ServerPingThread(ClientMain *client_main, const std::string& clientname, size_t status_id, bool with_eta, std::string server_token); void operator()(void); void setStop(bool b); bool isTimeout(void); private: void setPaused(SProcess* proc, bool b); ClientMain *client_main; volatile bool stop; volatile bool is_timeout; bool with_eta; std::string clientname; size_t status_id; std::string server_token; };
Copy clientname instead of reference
Copy clientname instead of reference
C
agpl-3.0
uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend,uroni/urbackup_backend
1213144d03d3bc69979ea50b32979ddd2b7f8dd2
scanner.def.h
scanner.def.h
#ifndef CALC_SCANNER_DEF_H_ #define CALC_SCANNER_DEF_H_ typedef union { int int_value; } YYSTYPE; typedef struct { int function; int result; YYSTYPE lhs; YYSTYPE rhs; } BinaryFunction; class ParserState { public: int result; int eval; ParserState() : result(0) { } }; #endif // CALC_SCANNER_DEF_H_
#ifndef CALC_SCANNER_DEF_H_ #define CALC_SCANNER_DEF_H_ typedef union { int int_value; } YYSTYPE; class ParserState { public: int result; int eval; ParserState() : result(0) { } }; #endif // CALC_SCANNER_DEF_H_
Remove silly struct that's silly
Remove silly struct that's silly
C
mit
nic0lette/lemony,nic0lette/lemony,nic0lette/lemony
a8a06367f849d7742c7dace0fa2d4a395b513a43
include/llvm/Transforms/Utils/FunctionUtils.h
include/llvm/Transforms/Utils/FunctionUtils.h
//===-- Transform/Utils/FunctionUtils.h - Function Utils --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This family of functions perform manipulations on functions. // //===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_FUNCTION_H #define LLVM_TRANSFORMS_UTILS_FUNCTION_H namespace llvm { class Function; class Loop; /// ExtractLoop - rip out a natural loop into a new function /// Function* ExtractLoop(Loop *L); } #endif
//===-- Transform/Utils/FunctionUtils.h - Function Utils --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This family of functions perform manipulations on functions. // //===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_FUNCTION_H #define LLVM_TRANSFORMS_UTILS_FUNCTION_H namespace llvm { class Function; class Loop; /// ExtractLoop - rip out a natural loop into a new function /// Function* ExtractLoop(Loop *L); /// ExtractBasicBlock - rip out a basic block into a new function /// Function* ExtractBasicBlock(BasicBlock *BB); } #endif
Add ability to extract a single basic block into a new function.
Add ability to extract a single basic block into a new function. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@12052 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm
dac4534697ccd7250a4af3f573fafd040a3ca263
src/iotsaFS.h
src/iotsaFS.h
#ifndef _IOTSAFS_H_ #define _IOTSAFS_H_ // // SPIFFS/LittleFS choice is complex, also for include file differences on ESP32/ESP8266. // So put if all in a separate include file. // #include <FS.h> #ifdef IOTSA_WITH_LEGACY_SPIFFS #ifdef ESP32 #include <SPIFFS.h> #endif #define IOTSA_FS SPIFFS #define IOTSA_FS_NAME "SPIFFS" #else #include <LittleFS.h> #define IOTSA_FS LittleFS #define IOTSA_FS_NAME "LittleFS" #endif #endif
#ifndef _IOTSAFS_H_ #define _IOTSAFS_H_ // // SPIFFS/LittleFS choice is complex, also for include file differences on ESP32/ESP8266. // So put if all in a separate include file. // #include <FS.h> #ifdef IOTSA_WITH_LEGACY_SPIFFS #ifdef ESP32 #include <SPIFFS.h> #endif #define IOTSA_FS SPIFFS #define IOTSA_FS_NAME "SPIFFS" #else #ifdef ESP32 #include <LITTLEFS.h> #define IOTSA_FS LITTLEFS #else #include <LittleFS.h> #define IOTSA_FS LittleFS #endif #define IOTSA_FS_NAME "LittleFS" #endif #endif
Undo change for LittleFS include name: Arduino uses the capitalized one.
Undo change for LittleFS include name: Arduino uses the capitalized one.
C
mit
cwi-dis/iotsa,cwi-dis/iotsa,cwi-dis/iotsa,cwi-dis/iotsa
ef201bebe5afc91a2b99b45dacc8c6dd88ca9e58
arch/sparc/include/asm/rwsem-const.h
arch/sparc/include/asm/rwsem-const.h
/* rwsem-const.h: RW semaphore counter constants. */ #ifndef _SPARC64_RWSEM_CONST_H #define _SPARC64_RWSEM_CONST_H #define RWSEM_UNLOCKED_VALUE 0x00000000 #define RWSEM_ACTIVE_BIAS 0x00000001 #define RWSEM_ACTIVE_MASK 0x0000ffff #define RWSEM_WAITING_BIAS 0xffff0000 #define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) #endif /* _SPARC64_RWSEM_CONST_H */
/* rwsem-const.h: RW semaphore counter constants. */ #ifndef _SPARC64_RWSEM_CONST_H #define _SPARC64_RWSEM_CONST_H #define RWSEM_UNLOCKED_VALUE 0x00000000 #define RWSEM_ACTIVE_BIAS 0x00000001 #define RWSEM_ACTIVE_MASK 0x0000ffff #define RWSEM_WAITING_BIAS (-0x00010000) #define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) #endif /* _SPARC64_RWSEM_CONST_H */
Fix rwsem constant bug leading to hangs.
sparc64: Fix rwsem constant bug leading to hangs. As noticed by Linus, it is critical that some of the rwsem constants be signed. Yet, hex constants are unsigned unless explicitly casted or negated. The most critical one is RWSEM_WAITING_BIAS. This bug was exacerbated by commit 424acaaeb3a3932d64a9b4bd59df6cf72c22d8f3 ("rwsem: wake queued readers when writer blocks on active read lock") Signed-off-by: David S. Miller <[email protected]>
C
mit
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
8dab6ca9c638709e7b60b942107ab88b3ef7d06d
utils/TableGen/CodeGenRegisters.h
utils/TableGen/CodeGenRegisters.h
//===- CodeGenRegisters.h - Register and RegisterClass Info -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file defines structures to encapsulate information gleaned from the // target register and register class definitions. // //===----------------------------------------------------------------------===// #ifndef CODEGEN_REGISTERS_H #define CODEGEN_REGISTERS_H #include <string> namespace llvm { class Record; /// CodeGenRegister - Represents a register definition. struct CodeGenRegister { Record *TheDef; const std::string &getName() const; CodeGenRegister(Record *R) : TheDef(R) {} }; struct CodeGenRegisterClass { }; } #endif
Add initial support for register and register class representation. Obviously this is not done.
Add initial support for register and register class representation. Obviously this is not done. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@15804 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm
e067c269e4c9ac2bbc2d8b7691305aa6f78ba5b1
webkit/glue/plugins/ppb_private.h
webkit/glue/plugins/ppb_private.h
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #include "ppapi/c/pp_var.h" #define PPB_PRIVATE_INTERFACE "PPB_Private;1" typedef enum _ppb_ResourceString { PPB_RESOURCE_STRING_PDF_GET_PASSWORD = 0, } PP_ResourceString; typedef struct _ppb_Private { // Returns a localized string. PP_Var (*GetLocalizedString)(PP_ResourceString string_id); } PPB_Private; #endif // WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #include "third_party/ppapi/c/pp_var.h" #define PPB_PRIVATE_INTERFACE "PPB_Private;1" typedef enum _ppb_ResourceString { PPB_RESOURCE_STRING_PDF_GET_PASSWORD = 0, } PP_ResourceString; typedef struct _ppb_Private { // Returns a localized string. PP_Var (*GetLocalizedString)(PP_ResourceString string_id); } PPB_Private; #endif // WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_
Add third_party/ prefix to ppapi include for checkdeps.
Add third_party/ prefix to ppapi include for checkdeps. The only users of this ppb should be inside chrome so this should work fine. [email protected] Review URL: http://codereview.chromium.org/3019006 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@52766 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
PeterWangIntel/chromium-crosswalk,dednal/chromium.src,hgl888/chromium-crosswalk,keishi/chromium,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,dednal/chromium.src,jaruba/chromium.src,patrickm/chromium.src,zcbenz/cefode-chromium,ChromiumWebApps/chromium,pozdnyakov/chromium-crosswalk,robclark/chromium,littlstar/chromium.src,fujunwei/chromium-crosswalk,zcbenz/cefode-chromium,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,Jonekee/chromium.src,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,Chilledheart/chromium,axinging/chromium-crosswalk,mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,keishi/chromium,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,robclark/chromium,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,markYoungH/chromium.src,hgl888/chromium-crosswalk,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,Chilledheart/chromium,dushu1203/chromium.src,markYoungH/chromium.src,ChromiumWebApps/chromium,pozdnyakov/chromium-crosswalk,krieger-od/nwjs_chromium.src,anirudhSK/chromium,dushu1203/chromium.src,hujiajie/pa-chromium,hujiajie/pa-chromium,anirudhSK/chromium,Jonekee/chromium.src,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,ltilve/chromium,dednal/chromium.src,M4sse/chromium.src,robclark/chromium,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,patrickm/chromium.src,Jonekee/chromium.src,fujunwei/chromium-crosswalk,rogerwang/chromium,Pluto-tv/chromium-crosswalk,chuan9/chromium-crosswalk,keishi/chromium,hgl888/chromium-crosswalk-efl,rogerwang/chromium,M4sse/chromium.src,Fireblend/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,robclark/chromium,patrickm/chromium.src,Jonekee/chromium.src,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,robclark/chromium,ltilve/chromium,ondra-novak/chromium.src,ltilve/chromium,ondra-novak/chromium.src,dednal/chromium.src,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,markYoungH/chromium.src,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,littlstar/chromium.src,axinging/chromium-crosswalk,hujiajie/pa-chromium,Chilledheart/chromium,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,robclark/chromium,TheTypoMaster/chromium-crosswalk,rogerwang/chromium,littlstar/chromium.src,hujiajie/pa-chromium,jaruba/chromium.src,ltilve/chromium,M4sse/chromium.src,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,keishi/chromium,rogerwang/chromium,Jonekee/chromium.src,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,patrickm/chromium.src,mogoweb/chromium-crosswalk,keishi/chromium,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,ltilve/chromium,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,Jonekee/chromium.src,M4sse/chromium.src,mogoweb/chromium-crosswalk,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,dednal/chromium.src,mogoweb/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,Pluto-tv/chromium-crosswalk,keishi/chromium,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,timopulkkinen/BubbleFish,robclark/chromium,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,ltilve/chromium,anirudhSK/chromium,dednal/chromium.src,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,axinging/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,Just-D/chromium-1,Chilledheart/chromium,ChromiumWebApps/chromium,dednal/chromium.src,ondra-novak/chromium.src,dednal/chromium.src,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,jaruba/chromium.src,chuan9/chromium-crosswalk,dushu1203/chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,anirudhSK/chromium,rogerwang/chromium,ondra-novak/chromium.src,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,ondra-novak/chromium.src,junmin-zhu/chromium-rivertrail,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Just-D/chromium-1,jaruba/chromium.src,markYoungH/chromium.src,nacl-webkit/chrome_deps,rogerwang/chromium,pozdnyakov/chromium-crosswalk,bright-sparks/chromium-spacewalk,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,M4sse/chromium.src,ltilve/chromium,krieger-od/nwjs_chromium.src,rogerwang/chromium,littlstar/chromium.src,anirudhSK/chromium,robclark/chromium,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,littlstar/chromium.src,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,littlstar/chromium.src,anirudhSK/chromium,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,fujunwei/chromium-crosswalk,chuan9/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,ChromiumWebApps/chromium,ltilve/chromium,markYoungH/chromium.src,jaruba/chromium.src,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,keishi/chromium,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,anirudhSK/chromium,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,zcbenz/cefode-chromium,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,Fireblend/chromium-crosswalk,Chilledheart/chromium,Chilledheart/chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,anirudhSK/chromium,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,jaruba/chromium.src,zcbenz/cefode-chromium,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,markYoungH/chromium.src,ondra-novak/chromium.src,ltilve/chromium,patrickm/chromium.src,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,nacl-webkit/chrome_deps,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk,jaruba/chromium.src,Just-D/chromium-1,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,chuan9/chromium-crosswalk,Pluto-tv/chromium-crosswalk,nacl-webkit/chrome_deps,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,keishi/chromium,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,markYoungH/chromium.src,keishi/chromium,jaruba/chromium.src,M4sse/chromium.src,chuan9/chromium-crosswalk,Chilledheart/chromium,ondra-novak/chromium.src,markYoungH/chromium.src,Jonekee/chromium.src,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,littlstar/chromium.src,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,bright-sparks/chromium-spacewalk,dednal/chromium.src,krieger-od/nwjs_chromium.src,Just-D/chromium-1,markYoungH/chromium.src,dushu1203/chromium.src,dushu1203/chromium.src,M4sse/chromium.src,hgl888/chromium-crosswalk,keishi/chromium,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,M4sse/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk,Jonekee/chromium.src,patrickm/chromium.src,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,bright-sparks/chromium-spacewalk,nacl-webkit/chrome_deps,hujiajie/pa-chromium,mohamed--abdel-maksoud/chromium.src,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,M4sse/chromium.src,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,dednal/chromium.src,robclark/chromium,zcbenz/cefode-chromium,dushu1203/chromium.src,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,rogerwang/chromium,Just-D/chromium-1,axinging/chromium-crosswalk,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,Chilledheart/chromium,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,PeterWangIntel/chromium-crosswalk,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,nacl-webkit/chrome_deps,PeterWangIntel/chromium-crosswalk,keishi/chromium,bright-sparks/chromium-spacewalk,robclark/chromium,rogerwang/chromium,dednal/chromium.src,Just-D/chromium-1,zcbenz/cefode-chromium
8af989c23f030663c8b5a297e988970b4910b461
sandbox/linux/services/android_arm_ucontext.h
sandbox/linux/services/android_arm_ucontext.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_ #define SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_ typedef long int greg_t; typedef unsigned long sigset_t; typedef struct ucontext { unsigned long uc_flags; struct ucontext *uc_link; stack_t uc_stack; struct sigcontext uc_mcontext; sigset_t uc_sigmask; /* Allow for uc_sigmask growth. Glibc uses a 1024-bit sigset_t. */ int __not_used[32 - (sizeof (sigset_t) / sizeof (int))]; /* Last for extensibility. Eight byte aligned because some coprocessors require eight byte alignment. */ unsigned long uc_regspace[128] __attribute__((__aligned__(8))); } ucontext_t; #endif // SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_ #define SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_ #include <asm/sigcontext.h> typedef long int greg_t; typedef unsigned long sigset_t; typedef struct ucontext { unsigned long uc_flags; struct ucontext *uc_link; stack_t uc_stack; struct sigcontext uc_mcontext; sigset_t uc_sigmask; /* Allow for uc_sigmask growth. Glibc uses a 1024-bit sigset_t. */ int __not_used[32 - (sizeof (sigset_t) / sizeof (int))]; /* Last for extensibility. Eight byte aligned because some coprocessors require eight byte alignment. */ unsigned long uc_regspace[128] __attribute__((__aligned__(8))); } ucontext_t; #endif // SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_
Fix for downstream android webview
Fix for downstream android webview Previously erros is struct sigcontext is not defined. Including the header file now. TBR=jln,markus Android only include change. Android trybots pass compile. NOTRY=true BUG= Review URL: https://chromiumcodereview.appspot.com/11636039 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@174104 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,M4sse/chromium.src,fujunwei/chromium-crosswalk,jaruba/chromium.src,ondra-novak/chromium.src,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,markYoungH/chromium.src,dushu1203/chromium.src,jaruba/chromium.src,M4sse/chromium.src,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,ltilve/chromium,zcbenz/cefode-chromium,Just-D/chromium-1,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,timopulkkinen/BubbleFish,ondra-novak/chromium.src,dushu1203/chromium.src,ChromiumWebApps/chromium,dednal/chromium.src,dushu1203/chromium.src,zcbenz/cefode-chromium,anirudhSK/chromium,chuan9/chromium-crosswalk,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,ondra-novak/chromium.src,markYoungH/chromium.src,Jonekee/chromium.src,ondra-novak/chromium.src,timopulkkinen/BubbleFish,ltilve/chromium,Pluto-tv/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,jaruba/chromium.src,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,patrickm/chromium.src,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,littlstar/chromium.src,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,crosswalk-project/chromium-crosswalk-efl,Just-D/chromium-1,crosswalk-project/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,dushu1203/chromium.src,ondra-novak/chromium.src,littlstar/chromium.src,hgl888/chromium-crosswalk,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,anirudhSK/chromium,anirudhSK/chromium,ondra-novak/chromium.src,patrickm/chromium.src,dednal/chromium.src,Jonekee/chromium.src,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,Fireblend/chromium-crosswalk,Pluto-tv/chromium-crosswalk,mogoweb/chromium-crosswalk,anirudhSK/chromium,M4sse/chromium.src,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,krieger-od/nwjs_chromium.src,dednal/chromium.src,Fireblend/chromium-crosswalk,Just-D/chromium-1,Just-D/chromium-1,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,dednal/chromium.src,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,dushu1203/chromium.src,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,dushu1203/chromium.src,timopulkkinen/BubbleFish,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,hgl888/chromium-crosswalk,Just-D/chromium-1,timopulkkinen/BubbleFish,Chilledheart/chromium,dednal/chromium.src,zcbenz/cefode-chromium,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,littlstar/chromium.src,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,dednal/chromium.src,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,patrickm/chromium.src,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,M4sse/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk,patrickm/chromium.src,dushu1203/chromium.src,Fireblend/chromium-crosswalk,jaruba/chromium.src,Chilledheart/chromium,patrickm/chromium.src,markYoungH/chromium.src,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,ltilve/chromium,ChromiumWebApps/chromium,Jonekee/chromium.src,Jonekee/chromium.src,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,markYoungH/chromium.src,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,ltilve/chromium,dushu1203/chromium.src,Chilledheart/chromium,axinging/chromium-crosswalk,M4sse/chromium.src,Fireblend/chromium-crosswalk,pozdnyakov/chromium-crosswalk,axinging/chromium-crosswalk,axinging/chromium-crosswalk,dednal/chromium.src,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,bright-sparks/chromium-spacewalk,timopulkkinen/BubbleFish,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,krieger-od/nwjs_chromium.src,ltilve/chromium,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,M4sse/chromium.src,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,anirudhSK/chromium,dushu1203/chromium.src,ChromiumWebApps/chromium,patrickm/chromium.src,chuan9/chromium-crosswalk,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,nacl-webkit/chrome_deps,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,patrickm/chromium.src,zcbenz/cefode-chromium,hujiajie/pa-chromium,chuan9/chromium-crosswalk,ondra-novak/chromium.src,ChromiumWebApps/chromium,dednal/chromium.src,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,ltilve/chromium,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,jaruba/chromium.src,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,PeterWangIntel/chromium-crosswalk,littlstar/chromium.src,ltilve/chromium,markYoungH/chromium.src,ondra-novak/chromium.src,hujiajie/pa-chromium,M4sse/chromium.src,ChromiumWebApps/chromium,jaruba/chromium.src,timopulkkinen/BubbleFish,PeterWangIntel/chromium-crosswalk,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,jaruba/chromium.src,zcbenz/cefode-chromium,Pluto-tv/chromium-crosswalk,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,bright-sparks/chromium-spacewalk,pozdnyakov/chromium-crosswalk,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,markYoungH/chromium.src,nacl-webkit/chrome_deps,anirudhSK/chromium,hgl888/chromium-crosswalk,Jonekee/chromium.src,timopulkkinen/BubbleFish,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,zcbenz/cefode-chromium,zcbenz/cefode-chromium,littlstar/chromium.src,anirudhSK/chromium,Chilledheart/chromium,nacl-webkit/chrome_deps,anirudhSK/chromium,hujiajie/pa-chromium,hujiajie/pa-chromium,Chilledheart/chromium,Fireblend/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,patrickm/chromium.src,zcbenz/cefode-chromium,ltilve/chromium,jaruba/chromium.src,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,dednal/chromium.src,zcbenz/cefode-chromium,Just-D/chromium-1,markYoungH/chromium.src,mogoweb/chromium-crosswalk,M4sse/chromium.src,axinging/chromium-crosswalk,markYoungH/chromium.src,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,Chilledheart/chromium,littlstar/chromium.src,jaruba/chromium.src,hujiajie/pa-chromium,ChromiumWebApps/chromium,Just-D/chromium-1,Chilledheart/chromium,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk
877c050599f7ec592335b9b61c49a17c81ad628d
include/dt-bindings/clock/renesas_rcar_cpg.h
include/dt-bindings/clock/renesas_rcar_cpg.h
/* * Copyright (c) 2021 IoT.bzh * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_RENESAS_RCAR_CPG_MSSR_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_RENESAS_RCAR_CPG_MSSR_H_ #define CPG_CORE 0 /* Core Clock */ #define CPG_MOD 1 /* Module Clock */ #define CPG_CORE_CLK_CANFD 0 /* CANFD clock */ #define CPG_CORE_CLK_S3D4 1 /* S3D4 Clock */ #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_RENESAS_RCAR_CPG_MSSR_H_ */
Add Renesas clock control driver
include: Add Renesas clock control driver DTS bindings file for Renesas RCar CPG clock control. Signed-off-by: Julien Massot <[email protected]>
C
apache-2.0
zephyrproject-rtos/zephyr,galak/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,galak/zephyr,galak/zephyr,nashif/zephyr,finikorg/zephyr,finikorg/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,nashif/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,nashif/zephyr
9d10ecc7460e73847079bd92234656cdff6fd6fe
src/devices.h
src/devices.h
/* Narcissus * © 2015 David Given * This file is redistributable under the terms of the two-clause BSD license; * see COPYING in the distribution root for the full text. */ #ifndef DEVICES_H #define DEVICES_H #include <X11/Xlib.h> struct button { int keycode; uint32_t button; }; struct chord { uint32_t buttons; int keysym; }; struct device { const char* name; struct button* buttons; struct chord* chords; }; extern const struct device razer_nostromo; extern const struct device* find_connected_device(Display* display, int* deviceid); extern const struct device* find_device_by_name(const char* name); extern void load_device(const struct device* device); uint32_t keycode_to_button(int keysym); int decode_chord(uint32_t buttons); #define MODIFIER_MASK ((1<<24) - 1) #define CTRL (1<<24) #define ALT (1<<25) #define META (1<<26) #endif
/* Narcissus * © 2015 David Given * This file is redistributable under the terms of the two-clause BSD license; * see COPYING in the distribution root for the full text. */ #ifndef DEVICES_H #define DEVICES_H #include <X11/Xlib.h> struct button { int keycode; uint32_t button; }; struct chord { uint32_t buttons; int keysym; }; struct device { const char* name; struct button* buttons; struct chord* chords; }; extern const struct device razer_nostromo; extern const struct device* find_connected_device(Display* display, int* deviceid); extern const struct device* find_device_by_name(const char* name); extern void load_device(const struct device* device); uint32_t keycode_to_button(int keysym); int decode_chord(uint32_t buttons); #define MODIFIER_MASK ((1<<24) - 1) #define CTRL (1<<24) #define ALT (1<<25) /* Note: META doesn't work with libfakekey 0.1-8.1 */ #define META (1<<26) #endif
Document that meta doesn't work.
Document that meta doesn't work.
C
bsd-2-clause
davidgiven/narcissus
22172bb584a97412e01d77f6cb3eb183aab06d56
boards/arm/cc3200_launchxl/board.h
boards/arm/cc3200_launchxl/board.h
/* * Copyright (c) 2016, Texas Instruments Incorporated * * 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 * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __INC_BOARD_H #define __INC_BOARD_H #endif /* __INC_BOARD_H */
/* * Copyright (c) 2016, Texas Instruments Incorporated * * 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 * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __INC_BOARD_H #define __INC_BOARD_H /* Push button switch 2 */ #define SW2_GPIO_PIN 6 /* GPIO22/Pin15 */ #define SW2_GPIO_NAME "GPIO_A2" /* Push button switch 3 */ #define SW3_GPIO_PIN 5 /* GPIO13/Pin4 */ #define SW3_GPIO_NAME "GPIO_A1" /* Push button switch 0: Map to SW2 so zephyr button example works */ #define SW0_GPIO_PIN SW2_GPIO_PIN #define SW0_GPIO_NAME SW2_GPIO_NAME /* Onboard GREEN LED */ #define LED0_GPIO_PIN 3 /*GPIO11/Pin2 */ #define LED0_GPIO_PORT "GPIO_A1" #endif /* __INC_BOARD_H */
Add generic definitions for LEDs and switches
cc3200: Add generic definitions for LEDs and switches Adds generic definitions for GPIO pins for onboard LEDs and switches to enable the basic blinky, button, and disco Zephyr examples for the TI CC3200 LaunchXL. Change-Id: Iac0ed2ad01285f9e84eea1fa7013771ddd8d3a78 Signed-off-by: Gil Pitney <[email protected]>
C
apache-2.0
zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,fractalclone/zephyr-riscv,Vudentz/zephyr,explora26/zephyr,punitvara/zephyr,bboozzoo/zephyr,aceofall/zephyr-iotos,Vudentz/zephyr,runchip/zephyr-cc3200,Vudentz/zephyr,GiulianoFranchetto/zephyr,mbolivar/zephyr,explora26/zephyr,sharronliu/zephyr,sharronliu/zephyr,rsalveti/zephyr,mbolivar/zephyr,fbsder/zephyr,sharronliu/zephyr,bboozzoo/zephyr,pklazy/zephyr,ldts/zephyr,runchip/zephyr-cc3200,tidyjiang8/zephyr-doc,pklazy/zephyr,kraj/zephyr,punitvara/zephyr,erwango/zephyr,kraj/zephyr,tidyjiang8/zephyr-doc,fractalclone/zephyr-riscv,bigdinotech/zephyr,holtmann/zephyr,ldts/zephyr,fbsder/zephyr,ldts/zephyr,runchip/zephyr-cc3220,erwango/zephyr,aceofall/zephyr-iotos,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,pklazy/zephyr,sharronliu/zephyr,mbolivar/zephyr,rsalveti/zephyr,punitvara/zephyr,zephyriot/zephyr,finikorg/zephyr,bigdinotech/zephyr,zephyriot/zephyr,explora26/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,Vudentz/zephyr,rsalveti/zephyr,rsalveti/zephyr,holtmann/zephyr,bboozzoo/zephyr,finikorg/zephyr,runchip/zephyr-cc3220,punitvara/zephyr,finikorg/zephyr,runchip/zephyr-cc3220,bboozzoo/zephyr,galak/zephyr,ldts/zephyr,rsalveti/zephyr,pklazy/zephyr,aceofall/zephyr-iotos,holtmann/zephyr,nashif/zephyr,explora26/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,erwango/zephyr,finikorg/zephyr,kraj/zephyr,finikorg/zephyr,galak/zephyr,runchip/zephyr-cc3200,tidyjiang8/zephyr-doc,runchip/zephyr-cc3220,pklazy/zephyr,kraj/zephyr,GiulianoFranchetto/zephyr,bigdinotech/zephyr,fbsder/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,zephyriot/zephyr,bigdinotech/zephyr,galak/zephyr,aceofall/zephyr-iotos,fractalclone/zephyr-riscv,zephyrproject-rtos/zephyr,erwango/zephyr,runchip/zephyr-cc3200,galak/zephyr,runchip/zephyr-cc3200,nashif/zephyr,runchip/zephyr-cc3220,mbolivar/zephyr,holtmann/zephyr,fbsder/zephyr,Vudentz/zephyr,Vudentz/zephyr,nashif/zephyr,mbolivar/zephyr,tidyjiang8/zephyr-doc,fractalclone/zephyr-riscv,fractalclone/zephyr-riscv,punitvara/zephyr,fbsder/zephyr,zephyriot/zephyr,kraj/zephyr,bboozzoo/zephyr,zephyriot/zephyr,ldts/zephyr,aceofall/zephyr-iotos,sharronliu/zephyr,holtmann/zephyr,erwango/zephyr,bigdinotech/zephyr,explora26/zephyr,tidyjiang8/zephyr-doc
b666daaf75dc6cd5dced975d5a023bbc5b13114f
examples/GetDataChunkServer/Socket.h
examples/GetDataChunkServer/Socket.h
// -*- mode: c++ -*- #ifndef _GET_DATA_CHUNK_SERVER_SOCKET_H_ #define _GET_DATA_CHUNK_SERVER_SOCKET_H_ #include <boost/shared_ptr.hpp> #include <boost/asio.hpp> class Socket { typedef boost::shared_ptr<boost::asio::ip::tcp::socket> SocketImplPtr; public: Socket(SocketImplPtr socket); virtual ~Socket(); private: SocketImplPtr m_socket; }; #endif
Add a thread-safe socket class.
Add a thread-safe socket class.
C
mit
airekans/Tpool,airekans/Tpool,airekans/Tpool
7d51c07f00043f980050a06bd4e4a7b6983a78f6
JPEGReadWriter2Plugin/JPEGReadWriter2Plugin.h
JPEGReadWriter2Plugin/JPEGReadWriter2Plugin.h
#include <stdio.h> /* Interface to JPEG code */ #include "jpeglib.h" #include <setjmp.h> struct error_mgr2 { struct jpeg_error_mgr pub; /* "public" fields */ jmp_buf setjmp_buffer; /* for return to caller */ }; typedef struct error_mgr2* error_ptr2; void error_exit (j_common_ptr cinfo); GLOBAL(void) jpeg_mem_src (j_decompress_ptr cinfo, char * pSourceData, unsigned sourceDataSize); GLOBAL(int) jpeg_mem_src_newLocationOfData (j_decompress_ptr cinfo, char * pSourceData, unsigned sourceDataSize); GLOBAL(void) jpeg_mem_dest (j_compress_ptr cinfo, char * pDestination, unsigned *pDestinationSize); void primJPEGWriteImageonByteArrayformqualityprogressiveJPEGerrorMgrWriteScanlines( unsigned int, unsigned int, int, unsigned int*, char*, char*, int, int, unsigned int, unsigned int, char*, unsigned int*); void primJPEGReadImagefromByteArrayonFormdoDitheringerrorMgrReadScanlines( char*, char*, char*, unsigned int, int, unsigned int*, unsigned int, unsigned int, int); void primJPEGReadHeaderfromByteArraysizeerrorMgrReadHeader( char*, char*, unsigned int); char*);
#include <stdio.h> /* Interface to JPEG code */ #include "jpeglib.h" #include <setjmp.h> struct error_mgr2 { struct jpeg_error_mgr pub; /* "public" fields */ jmp_buf setjmp_buffer; /* for return to caller */ }; typedef struct error_mgr2* error_ptr2; void error_exit (j_common_ptr cinfo); GLOBAL(void) jpeg_mem_src (j_decompress_ptr cinfo, char * pSourceData, unsigned sourceDataSize); GLOBAL(int) jpeg_mem_src_newLocationOfData (j_decompress_ptr cinfo, char * pSourceData, unsigned sourceDataSize); GLOBAL(void) jpeg_mem_dest (j_compress_ptr cinfo, char * pDestination, unsigned *pDestinationSize); void primJPEGWriteImageonByteArrayformqualityprogressiveJPEGerrorMgrWriteScanlines( unsigned int, unsigned int, int, unsigned int*, char*, char*, int, int, unsigned int, unsigned int, char*, unsigned int*); void primJPEGReadImagefromByteArrayonFormdoDitheringerrorMgrReadScanlines( char*, char*, char*, unsigned int, int, unsigned int*, unsigned int, unsigned int, int); void primJPEGReadHeaderfromByteArraysizeerrorMgrReadHeader( char*, char*, unsigned int, char*);
Fix typo in method signature
Fix typo in method signature git-svn-id: http://squeakvm.org/svn/squeak/trunk@3745 fa1542d4-bde8-0310-ad64-8ed1123d492a Former-commit-id: 76afe8ba507e75296f2fbba2c2c20aaa29c41819
C
mit
bencoman/pharo-vm,bencoman/pharo-vm,OpenSmalltalk/vm,peteruhnak/pharo-vm,bencoman/pharo-vm,timfel/squeakvm,peteruhnak/pharo-vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,timfel/squeakvm,OpenSmalltalk/vm,peteruhnak/pharo-vm,timfel/squeakvm,peteruhnak/pharo-vm,OpenSmalltalk/vm,timfel/squeakvm,bencoman/pharo-vm,timfel/squeakvm,bencoman/pharo-vm,timfel/squeakvm,bencoman/pharo-vm,OpenSmalltalk/vm,peteruhnak/pharo-vm,timfel/squeakvm,peteruhnak/pharo-vm,bencoman/pharo-vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,bencoman/pharo-vm,timfel/squeakvm,bencoman/pharo-vm,OpenSmalltalk/vm,OpenSmalltalk/vm
2181f5b6f64769cc57b8a9872d5f89f0493eb5d0
cc1/tests/test028.c
cc1/tests/test028.c
/* name: TEST028 description: Test of reinterpretation in define output: F5 G6 F5 foo { \ r "6869 'P } */ #define M(x) x #define A(a,b) a(b) char * foo(void) { return A(M,"hi"); }
Add test for nested expansion in macros
Add test for nested expansion in macros
C
isc
k0gaMSX/scc,k0gaMSX/scc,8l/scc,8l/scc,k0gaMSX/kcc,k0gaMSX/kcc,8l/scc,k0gaMSX/scc
d9d5db9efedbf1ca9ddd11e0f2eff2a4b04afe90
stutterfuzz.c
stutterfuzz.c
#include <stdio.h> #include <stdint.h> #include "rand.h" static uint64_t sqrt64(uint64_t n) { uint64_t g = UINT64_C(1) << 31; for (uint64_t c = g; c; g |= c) { if (g * g > n) { g ^= c; } c >>= 1; } return g; } static uint64_t get_split(uint64_t len) { uint64_t rnd; rand_fill(&rnd, sizeof(rnd)); rnd %= (len * len); return sqrt64(rnd) + 1; } int main(int __attribute__ ((unused)) argc, char __attribute__ ((unused)) *argv[]) { rand_init(); for (uint64_t len = 1397; len;) { uint64_t consume = get_split(len); fprintf(stderr, "consume %ju bytes\n", (uintmax_t) consume); len -= consume; } rand_cleanup(); }
#include <stdio.h> #include <stdint.h> #include "rand.h" static uint64_t get_split(uint64_t total_len, uint64_t remaining_len) { uint64_t rnd; rand_fill(&rnd, sizeof(rnd)); rnd %= total_len; return rnd > remaining_len ? remaining_len : rnd; } int main(int __attribute__ ((unused)) argc, char __attribute__ ((unused)) *argv[]) { rand_init(); uint64_t total_len = 1397; for (uint64_t remaining = total_len, consume = 0; remaining; remaining -= consume) { consume = get_split(total_len, remaining); fprintf(stderr, "consume %ju bytes\n", (uintmax_t) consume); } rand_cleanup(); }
Fix random algo to evenly distribute.
Fix random algo to evenly distribute.
C
apache-2.0
flamingcowtv/stutterfuzz
bf7236ddf91b0242a3960fb3f66391e1a51b4a74
cc1/tests/test019.c
cc1/tests/test019.c
/* name: TEST019 description: Basic test of constant folding in integer arithmetic operations output: test019.c:13: warning: division by 0 test019.c:14: warning: division by 0 F1 G1 F1 main { - A2 I i A2 #I3 :I A2 #I1 :I A2 #I12 :I A2 #I2 :I A2 #I0 :I A2 A2 #I0 %I :I A2 A2 #I0 %I :I A2 #I8 :I A2 #I2 :I A2 #I4 :I A2 #IC :I A2 #I8 :I A2 #IFFFFFFFD :I A2 #IFFFFFFF3 :I A2 #I1 :I A2 #I0 :I A2 #I0 :I A2 #I1 :I A2 #I0 :I } */ #line 1 int main(void) { int i; i = 1 + 2; i = 2 - 1; i = 3 * 6; i = 10 / 5; i = 10 % 5; i = i % 0; i = i % 0; i = 1 << 3; i = 8 >> 2; i = 12 & 4; i = 8 | 4; i = 12 ^ 4; i = -(3); i = ~12; i = 1 < 3; i = 2 > 3; i = 2 >= 3; i = 2 <= 3; i = 1 == 0; }
Add basic test for integer constant folding
Add basic test for integer constant folding
C
isc
k0gaMSX/scc,k0gaMSX/kcc,8l/scc,k0gaMSX/scc,8l/scc,k0gaMSX/scc,8l/scc,k0gaMSX/kcc
8a1556967443af2e55ef33b3cdab613acbc0ef91
cc1/tests/test044.c
cc1/tests/test044.c
/* name: TEST044 description: Test of corner cases in #if output: test044.c:14: warning: division by 0 test044.c:18: warning: division by 0 test044.c:22: warning: division by 0 test044.c:28: error: parameter of #if is not an integer constant expression test044.c:29: error: #error 3 != (1,2,3) */ /* These should be accepted */ #if 0 != (0 && (0/0)) #error 0 != (0 && (0/0)) #endif #if 1 != (-1 || (0/0)) #error 1 != (-1 || (0/0)) #endif #if 3 != (-1 ? 3 : (0/0)) #error 3 != (-1 ? 3 : (0/0)) #endif /* This is invalid code (it is a constraint violation) */ #if 3 != (1,2,3) #error 3 != (1,2,3) #endif
Add test for preprocessor corner cases
Add test for preprocessor corner cases
C
mit
k0gaMSX/kcc,k0gaMSX/scc,k0gaMSX/kcc,k0gaMSX/scc,k0gaMSX/scc
f007fbd9af3299d047f0b1dce1ffb2b625775133
src/include/impl/kernel/slab_static.h
src/include/impl/kernel/slab_static.h
/** * @file * @brief Internal implementation of static slab allocator * * @date 07.03.2011 * @author Kirill Tyushev */ #ifndef SLAB_STATIC_H_ # error "Do not include this file directly, use <kernel/mm/slab_static.h> instead!" #endif /* SLAB_STATIC_H_ */ #include <util/binalign.h> /** cache descriptor */ struct static_cache { /** pointer to pool */ char* cache_begin; /** object size */ size_t size; /** the number of objects stored on each slab */ unsigned int num; /** the list of free objects in pool */ struct list_head obj_ptr; /** for initialization */ int hasinit; }; /** create cache */ #define __STATIC_CACHE_CREATE(name, type, count) \ static char __name_pool[count * binalign_bound(sizeof(type), sizeof(struct list_head))]; \ static static_cache_t name = { \ .num = count, \ .size = binalign_bound(sizeof(type), sizeof(struct list_head)), \ .cache_begin = __name_pool, \ .obj_ptr = {NULL, NULL}, \ .hasinit = 0 }
/** * @file * @brief Internal implementation of static slab allocator * * @date 07.03.2011 * @author Kirill Tyushev */ #ifndef SLAB_STATIC_H_ # error "Do not include this file directly, use <kernel/mm/slab_static.h> instead!" #endif /* SLAB_STATIC_H_ */ #include <util/binalign.h> /** cache descriptor */ struct static_cache { /** pointer to pool */ char* cache_begin; /** object size */ size_t size; /** the number of objects stored on each slab */ unsigned int num; /** the list of free objects in pool */ struct list_head obj_ptr; /** for initialization */ int hasinit; }; /** create cache */ #define __STATIC_CACHE_CREATE(name, type, count) \ static char name ## _pool[count * binalign_bound(sizeof(type), sizeof(struct list_head))]; \ static static_cache_t name = { \ .num = count, \ .size = binalign_bound(sizeof(type), sizeof(struct list_head)), \ .cache_begin = name ## _pool, \ .obj_ptr = {NULL, NULL}, \ .hasinit = 0 }
Fix macro replacement: removal of conflict with __name_pool
Fix macro replacement: removal of conflict with __name_pool (using pasting)
C
bsd-2-clause
Kefir0192/embox,vrxfile/embox-trik,embox/embox,abusalimov/embox,gzoom13/embox,Kakadu/embox,Kefir0192/embox,abusalimov/embox,Kefir0192/embox,Kefir0192/embox,embox/embox,Kefir0192/embox,vrxfile/embox-trik,mike2390/embox,mike2390/embox,abusalimov/embox,mike2390/embox,vrxfile/embox-trik,Kakadu/embox,mike2390/embox,vrxfile/embox-trik,Kakadu/embox,Kakadu/embox,gzoom13/embox,abusalimov/embox,gzoom13/embox,Kefir0192/embox,Kakadu/embox,abusalimov/embox,Kefir0192/embox,abusalimov/embox,mike2390/embox,vrxfile/embox-trik,embox/embox,gzoom13/embox,embox/embox,gzoom13/embox,embox/embox,gzoom13/embox,mike2390/embox,mike2390/embox,vrxfile/embox-trik,vrxfile/embox-trik,Kakadu/embox,gzoom13/embox,embox/embox,Kakadu/embox
9b662d66ce40ee91314cf392a73cf6991a654172
src/lib/ecore/Ecore_Str.h
src/lib/ecore/Ecore_Str.h
#ifndef _ECORE_STR_H # define _ECORE_STR_H #ifdef EAPI #undef EAPI #endif #ifdef WIN32 # ifdef BUILDING_DLL # define EAPI __declspec(dllexport) # else # define EAPI __declspec(dllimport) # endif #else # ifdef __GNUC__ # if __GNUC__ >= 4 # define EAPI __attribute__ ((visibility("default"))) # else # define EAPI # endif # else # define EAPI # endif #endif /** * @file Ecore_Data.h * @brief Contains threading, list, hash, debugging and tree functions. */ # ifdef __cplusplus extern "C" { # endif # ifdef __sgi # define __FUNCTION__ "unknown" # ifndef __cplusplus # define inline # endif # endif /* strlcpy implementation for libc's lacking it */ EAPI size_t ecore_strlcpy(char *dst, const char *src, size_t siz); #ifdef __cplusplus } #endif #endif /* _ECORE_STR_H */
#ifndef _ECORE_STR_H # define _ECORE_STR_H #ifdef EAPI #undef EAPI #endif #ifdef WIN32 # ifdef BUILDING_DLL # define EAPI __declspec(dllexport) # else # define EAPI __declspec(dllimport) # endif #else # ifdef __GNUC__ # if __GNUC__ >= 4 # define EAPI __attribute__ ((visibility("default"))) # else # define EAPI # endif # else # define EAPI # endif #endif /** * @file Ecore_Str.h * @brief Contains useful C string functions. */ # ifdef __cplusplus extern "C" { # endif # ifdef __sgi # define __FUNCTION__ "unknown" # ifndef __cplusplus # define inline # endif # endif /* strlcpy implementation for libc's lacking it */ EAPI size_t ecore_strlcpy(char *dst, const char *src, size_t siz); #ifdef __cplusplus } #endif #endif /* _ECORE_STR_H */
Fix doxygen comments for new header.
Fix doxygen comments for new header. SVN revision: 27891
C
bsd-2-clause
gfriloux/ecore,gfriloux/ecore,gfriloux/ecore
e584184199f1d8b572455c9d30e0c57223d7b4df
src/chip8.c
src/chip8.c
#include <stdlib.h> #include <string.h> #include "chip8.h" chip8_t * chip8_new(void) { int i; chip8_t * self = (chip8_t *) malloc(sizeof(chip8_t)); // The first 512 bytes are used by the interpreter. self->program_counter = 0x200; self->index_register = 0; self->stack_pointer = 0; self->opcode = 0; memcpy(self->memory, chip8_hex_font, 50); return self; } void chip8_free(chip8_t * self) { free(self); }
#include <stdlib.h> #include <string.h> #include "chip8.h" chip8_t * chip8_new(void) { chip8_t * self = (chip8_t *) malloc(sizeof(chip8_t)); // The first 512 bytes are used by the interpreter. self->program_counter = 0x200; self->index_register = 0; self->stack_pointer = 0; self->opcode = 0; memcpy(self->memory, chip8_hex_font, 50); return self; } void chip8_free(chip8_t * self) { free(self); }
Remove unused variable (int i)
Remove unused variable (int i)
C
mit
gsamokovarov/chip8.c,gsamokovarov/chip8.c
9a12c4bd62e7b23a69f8adc616f42a8f3c4c1685
src/gauge.c
src/gauge.c
#include <math.h> #include "gauge.h" /** * Initializes the gauge struct * @arg gauge The gauge struct to initialize * @return 0 on success. */ int init_gauge(gauge_t *gauge) { gauge->count = 0; gauge->sum = 0; gauge->value = 0; return 0; } /** * Adds a new sample to the struct * @arg gauge The gauge to add to * @arg sample The new sample value * @arg delta Is this a delta update? * @return 0 on success. */ int gauge_add_sample(gauge_t *gauge, double sample, bool delta) { if (delta) { gauge->value += sample; } else { gauge->value = sample; } gauge->sum += sample; gauge->count++; return 0; } /** * Returns the number of samples in the gauge * @arg gauge The gauge to query * @return The number of samples */ uint64_t gauge_count(gauge_t *gauge) { return gauge->count; } /** * Returns the mean gauge value * @arg gauge The gauge to query * @return The mean value of the gauge */ double gauge_mean(gauge_t *gauge) { return (gauge->count) ? gauge->sum / gauge->count : 0; } /** * Returns the sum of the gauge * @arg gauge The gauge to query * @return The sum of values */ double gauge_sum(gauge_t *gauge) { return gauge->sum; } /** * Returns the gauge value (for backwards compat) * @arg gauge the gauge to query * @return The gauge value */ double gauge_value(gauge_t *gauge) { return gauge->value; }
#include <math.h> #include "gauge.h" int init_gauge(gauge_t *gauge) { gauge->count = 0; gauge->sum = 0; gauge->value = 0; return 0; } int gauge_add_sample(gauge_t *gauge, double sample, bool delta) { if (delta) { gauge->value += sample; } else { gauge->value = sample; } gauge->sum += sample; gauge->count++; return 0; } uint64_t gauge_count(gauge_t *gauge) { return gauge->count; } double gauge_mean(gauge_t *gauge) { return (gauge->count) ? gauge->sum / gauge->count : 0; } double gauge_sum(gauge_t *gauge) { return gauge->sum; } double gauge_value(gauge_t *gauge) { return gauge->value; }
Remove duplicate comment from the c file
Remove duplicate comment from the c file
C
bsd-3-clause
drawks/statsite,theatrus/statsite,theatrus/statsite,drawks/statsite,drawks/statsite,drawks/statsite,theatrus/statsite,drawks/statsite,theatrus/statsite,theatrus/statsite,drawks/statsite
0a0b275bc691c879b95028023406e98063a1ce2b
sipXportLib/src/test/sipxunittests.h
sipXportLib/src/test/sipxunittests.h
// // // Copyright (C) 2010 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2010 SIPez LLC All rights reserved. // Licensed to SIPfoundry under a Contributor Agreement. // // $$ // Author: Daniel Petrie // dpetrie AT SIPez DOT com ////////////////////////////////////////////////////////////////////////////// #ifndef _sipxunittests_h_ #define _sipxunittests_h_ #if !defined(NO_CPPUNIT) && defined(ANDROID) #define NO_CPPUNIT 1 #endif #if defined(NO_CPPUNIT) #define SIPX_UNIT_BASE_CLASS SipxPortUnitTestClass #include <os/OsIntTypes.h> #include <sipxportunit/SipxPortUnitTest.h> #include <utl/UtlString.h> typedef UtlString string; #else #define SIPX_UNIT_BASE_CLASS CppUnit::TestCase #include <cppunit/extensions/HelperMacros.h> #include <cppunit/TestCase.h> using namespace std; #endif #endif
// // // Copyright (C) 2010-2016 SIPez LLC. All rights reserved. // // $$ // Author: Daniel Petrie // dpetrie AT SIPez DOT com ////////////////////////////////////////////////////////////////////////////// #ifndef _sipxunittests_h_ #define _sipxunittests_h_ //#if !defined(NO_CPPUNIT) && defined(ANDROID) #define NO_CPPUNIT 1 //#endif #if defined(NO_CPPUNIT) #define SIPX_UNIT_BASE_CLASS SipxPortUnitTestClass #include <os/OsIntTypes.h> #include <sipxportunit/SipxPortUnitTest.h> #include <utl/UtlString.h> typedef UtlString string; #else #define SIPX_UNIT_BASE_CLASS CppUnit::TestCase #include <cppunit/extensions/HelperMacros.h> #include <cppunit/TestCase.h> using namespace std; #endif #endif
Make portable unit tests default on all platforms. (vs CPPUNIT)
Make portable unit tests default on all platforms. (vs CPPUNIT) git-svn-id: 8a77b5e12cf30fc5f8c95b12d648985d6db39537@12346 a612230a-c5fa-0310-af8b-88eea846685b
C
lgpl-2.1
sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror
92dd7b914b878f2172b4d436e9643c4a0d24683b
sbr/getarguments.c
sbr/getarguments.c
/* * getarguments.c -- Get the argument vector ready to go. * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <h/mh.h> #include <h/utils.h> char ** getarguments (char *invo_name, int argc, char **argv, int check_context) { char *cp = NULL, **ap = NULL, **bp = NULL, **arguments = NULL; int n = 0; /* * Check if profile/context specifies any arguments */ if (check_context && (cp = context_find (invo_name))) { cp = getcpy (cp); /* make copy */ ap = brkstring (cp, " ", "\n"); /* split string */ /* Count number of arguments split */ bp = ap; while (*bp++) n++; } arguments = (char **) mh_xmalloc ((argc + n) * sizeof(*arguments)); bp = arguments; /* Copy any arguments from profile/context */ if (ap != NULL && n > 0) { while (*ap) *bp++ = *ap++; } /* Copy arguments from command line */ argv++; while (*argv) *bp++ = *argv++; /* Now NULL terminate the array */ *bp = NULL; return arguments; }
/* * getarguments.c -- Get the argument vector ready to go. * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <h/mh.h> #include <h/utils.h> char ** getarguments (char *invo_name, int argc, char **argv, int check_context) { char *cp = NULL, **ap = NULL, **bp = NULL, **arguments = NULL; int n = 0; /* * Check if profile/context specifies any arguments */ if (check_context && (cp = context_find (invo_name))) { cp = mh_xstrdup(cp); /* make copy */ ap = brkstring (cp, " ", "\n"); /* split string */ /* Count number of arguments split */ bp = ap; while (*bp++) n++; } arguments = (char **) mh_xmalloc ((argc + n) * sizeof(*arguments)); bp = arguments; /* Copy any arguments from profile/context */ if (ap != NULL && n > 0) { while (*ap) *bp++ = *ap++; } /* Copy arguments from command line */ argv++; while (*argv) *bp++ = *argv++; /* Now NULL terminate the array */ *bp = NULL; return arguments; }
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
C
bsd-3-clause
mcr/nmh,mcr/nmh
14af75f24c313c736e12624c2e02e57339e25b9a
tema2/ex2.c
tema2/ex2.c
/* Student: Szogyenyi Zoltan Anul: I Materie: Stagiu de Practica Limbaj de programare: C Data: Martie 21 2015 - Sambata 2. Se citesc de la tastatură elementele unei matrici de caractere (nr. linii=nr. coloane), A(NxN), N<=10. a) Să se afişeze matricea A; b) Să se formeze şi să se afişeze cuvântul format din caracterele pe pe diagonala principală a matricii A; c) Să se calculeze şi să se afişeze numărul de litere mari, litere mici şi cifre din matrice; d) Să se afişeze cuvântul format din caracterele de pe diagonala secundară; e) Să se afişeze procentul literelor mari, al literelor mici şi al cifrelor de pe cele 2 diagonale; f) Să se afişeze caracterele comune aflate pe liniile p şi q (p, q < N, p şi q citite de la tastatură); g) Să se afişeze in ordine alfabetică, crescătoare, literele mari aflate pe coloanele impare */ #include <stdio.h> void printMatrix(int matrix[10][10], int); int main() { int a[10][10]; int n; // Se citesc de la tastatură elementele unei matrici de caractere (nr. linii=nr.coloane), A(NxN), N<=10. printf("The size of the matrix: "); scanf("%d", &n); for (int i = 0; i < n; ++i) { for (int j = 0; j < n; ++j) { printf("a[%d][%d]= ", i, j); scanf("%d", &a[i][j]); } } // a) Să se afişeze matricea A; printMatrix(a, n); return 0; } void printMatrix(int matrix[10][10], int n) { for (int i = 0; i < n; ++i) { for (int j = 0; j < n; ++j) { printf("%d ", matrix[i][j]); } printf("\n"); } }
Add the reading and printing of the matrix.
Add the reading and printing of the matrix.
C
apache-2.0
zoltanszogyenyi/stagiu-de-practica,zoltanszogyenyi/stagiu-de-practica
231ff54e4cc4a6f1ef78fb4e1f94957bbb961aae
drivers/scsi/qla2xxx/qla_version.h
drivers/scsi/qla2xxx/qla_version.h
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.04.00.08-k" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 4 #define QLA_DRIVER_PATCH_VER 0 #define QLA_DRIVER_BETA_VER 0
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2013 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.04.00.13-k" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 4 #define QLA_DRIVER_PATCH_VER 0 #define QLA_DRIVER_BETA_VER 0
Update the driver version to 8.04.00.13-k.
[SCSI] qla2xxx: Update the driver version to 8.04.00.13-k. Signed-off-by: Giridhar Malavali <[email protected]> Signed-off-by: Saurav Kashyap <[email protected]> Signed-off-by: James Bottomley <[email protected]>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas
0ce2d5345a145015bc35f8251cf9d82a8f193a86
drivers/scsi/qla4xxx/ql4_version.h
drivers/scsi/qla4xxx/ql4_version.h
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k6"
/* * QLogic iSCSI HBA Driver * Copyright (c) 2003-2012 QLogic Corporation * * See LICENSE.qla4xxx for copyright and licensing details. */ #define QLA4XXX_DRIVER_VERSION "5.03.00-k7"
Update driver version to 5.03.00-k7
[SCSI] qla4xxx: Update driver version to 5.03.00-k7 Signed-off-by: Vikas Chaudhary <[email protected]> Signed-off-by: James Bottomley <[email protected]>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas
7ac5e552ca1d344baa09174c8b9ff1e776399f39
Branch-SDK/Branch-SDK/BNCDeviceInfo.h
Branch-SDK/Branch-SDK/BNCDeviceInfo.h
// // BNCDeviceInfo.h // Branch-TestBed // // Created by Sojan P.R. on 3/22/16. // Copyright © 2016 Branch Metrics. All rights reserved. // #import <Foundation/Foundation.h> #ifndef BNCDeviceInfo_h #define BNCDeviceInfo_h #endif /* BNCDeviceInfo_h */ @interface BNCDeviceInfo : NSObject //---------Properties-------------// @property (nonatomic, strong) NSString *hardwareId; @property (nonatomic, strong) NSString *hardwareIdType; @property (nonatomic) BOOL isRealHardwareId; @property (nonatomic, strong) NSString *vendorId; @property (nonatomic, strong) NSString *brandName; @property (nonatomic, strong) NSString *modelName; @property (nonatomic, strong) NSString *osName; @property (nonatomic, strong) NSString *osVersion; @property (nonatomic) NSNumber *screenWidth; @property (nonatomic) NSNumber *screenHeight; @property (nonatomic) BOOL isAdTrackingEnabled; //----------Methods----------------// + (BNCDeviceInfo *)getInstance; @end
// // BNCDeviceInfo.h // Branch-TestBed // // Created by Sojan P.R. on 3/22/16. // Copyright © 2016 Branch Metrics. All rights reserved. // #import <Foundation/Foundation.h> #ifndef BNCDeviceInfo_h #define BNCDeviceInfo_h #endif /* BNCDeviceInfo_h */ @interface BNCDeviceInfo : NSObject //---------Properties-------------// @property (nonatomic, strong) NSString *hardwareId; @property (nonatomic, strong) NSString *hardwareIdType; @property (nonatomic) BOOL isRealHardwareId; @property (nonatomic, strong) NSString *vendorId; @property (nonatomic, strong) NSString *brandName; @property (nonatomic, strong) NSString *modelName; @property (nonatomic, strong) NSString *osName; @property (nonatomic, strong) NSString *osVersion; @property (nonatomic, strong) NSNumber *screenWidth; @property (nonatomic, strong) NSNumber *screenHeight; @property (nonatomic) BOOL isAdTrackingEnabled; //----------Methods----------------// + (BNCDeviceInfo *)getInstance; @end
Change property attribute to strong
Change property attribute to strong
C
mit
BranchMetrics/ios-branch-deep-linking,BranchMetrics/ios-branch-deep-linking,BranchMetrics/iOS-Deferred-Deep-Linking-SDK,BranchMetrics/iOS-Deferred-Deep-Linking-SDK,BranchMetrics/ios-branch-deep-linking,BranchMetrics/ios-branch-deep-linking
97b487e3f7d68a4ee579bdba1001984055463061
src/containers/hash_map.h
src/containers/hash_map.h
#ifndef JTL_HASH_MAP_H__ #define JTL_HASH_MAP_H__ #include <memory> namespace jtl { template <typename Key, typename Value> class HashMap { struct MapNode { MapNode(Key k, Value v) : key(k), value(v) {} ~MapNode() { delete key; delete value; } Key key; Value value; }; // struct MapNode class HashMapBase_ { private: // bins is an array of pointers to arrays of key-value nodes MapNode** bins_; }; // class HashMapBase_ public: private: Key* bins_; }; // class HashMap } // namespace jtl #endif
#ifndef JTL_FLAT_HASH_MAP_H__ #define JTL_FLAT_HASH_MAP_H__ #include <memory> #include <cctype> namespace jtl { template <typename Key> struct Hash { using argument_type = Key; using result_type = std::size_t; result_type operator()(const Key& k); }; // struct Hash template <typename Key, typename Value> class FlatHashMap { public: FlatHashMap() : bins_(), hash_() {} struct MapNode { MapNode(Key k, Value v) : key(k), value(v) {} Key key; Value value; }; // struct MapNode private: std::vector<std::vector<MapNode>> bins_; Hash<Key> hash_; }; // class HashMap } // namespace jtl #endif // JTL_FLAT_HASH_MAP__
Switch hash map class to a flat hash map
Switch hash map class to a flat hash map
C
mit
j-haj/algorithms-datastructures
7d403dcfb33763e9eb29fd1f4a67e293b1d98f94
3RVX/HotkeyInfo.h
3RVX/HotkeyInfo.h
#pragma once #include <vector> class HotkeyInfo { public: enum HotkeyActions { IncreaseVolume, DecreaseVolume, SetVolume, Mute, VolumeSlider, RunApp, Settings, Exit, }; static std::vector<std::wstring> ActionNames; public: int keyCombination = 0; int action = -1; };
#pragma once #include <vector> class HotkeyInfo { public: enum HotkeyActions { IncreaseVolume, DecreaseVolume, SetVolume, Mute, VolumeSlider, RunApp, Settings, Exit, }; static std::vector<std::wstring> ActionNames; public: int keyCombination = 0; int action = -1; std::vector<std::wstring> args; };
Add instance var for hotkey arguments
Add instance var for hotkey arguments
C
bsd-2-clause
Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX
9fa470e4021c096a808bfa9bb9406e9897f55b70
CRToast/CRToast.h
CRToast/CRToast.h
// // CRToast // Copyright (c) 2014-2015 Collin Ruffenach. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for CRToast. FOUNDATION_EXPORT double CRToastVersionNumber; //! Project version string for CRToast. FOUNDATION_EXPORT const unsigned char CRToastVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <CRToast/PublicHeader.h> #import <CRToast/CRToastConfig.h> #import <CRToast/CRToastManager.h>
// // CRToast // Copyright (c) 2014-2015 Collin Ruffenach. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for CRToast. FOUNDATION_EXPORT double CRToastVersionNumber; //! Project version string for CRToast. FOUNDATION_EXPORT const unsigned char CRToastVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <CRToast/PublicHeader.h> #import "CRToast/CRToastConfig.h" #import "CRToast/CRToastManager.h"
Fix build error with import
Fix build error with import
C
mit
Trueey/CRToast
abeb3e3e92bd30ccd7f0d6683a97fbb9f828f75b
src/genericpage.h
src/genericpage.h
/* * dialer - MeeGo Voice Call Manager * Copyright (c) 2009, 2010, Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 * */ #ifndef GENERICPAGE_H #define GENERICPAGE_H #include <MApplicationPage> class MainWindow; class MLayout; class MGridLayoutPolicy; class GenericPage : public MApplicationPage { Q_OBJECT public: enum PageType { PAGE_NONE = -1, PAGE_DIALER = 0, PAGE_RECENT = 1, PAGE_PEOPLE = 2, PAGE_FAVORITE = 3, PAGE_DEBUG = 4, }; GenericPage(); virtual ~GenericPage(); virtual void createContent(); virtual MGridLayoutPolicy * policy(M::Orientation); MainWindow *mainWindow(); protected: virtual void showEvent(QShowEvent *event); virtual void activateWidgets(); virtual void deactivateAndResetWidgets(); MLayout * layout; MGridLayoutPolicy * landscape; MGridLayoutPolicy * portrait; PageType m_pageType; }; #endif // GENERICPAGE_H
/* * dialer - MeeGo Voice Call Manager * Copyright (c) 2009, 2010, Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 * */ #ifndef GENERICPAGE_H #define GENERICPAGE_H #include <MApplicationPage> class MainWindow; class MLayout; class MGridLayoutPolicy; class GenericPage : public MApplicationPage { Q_OBJECT public: enum PageType { PAGE_NONE = -1, PAGE_DIALER = 0, PAGE_RECENT = 1, PAGE_PEOPLE = 2, PAGE_FAVORITE = 3, PAGE_DEBUG = 4, }; GenericPage(); virtual ~GenericPage(); virtual void createContent(); virtual MGridLayoutPolicy * policy(M::Orientation); virtual void activateWidgets(); virtual void deactivateAndResetWidgets(); MainWindow *mainWindow(); protected: virtual void showEvent(QShowEvent *event); MLayout * layout; MGridLayoutPolicy * landscape; MGridLayoutPolicy * portrait; PageType m_pageType; }; #endif // GENERICPAGE_H
Make the genericPage methods activate and deactivate widgets public instead of protected.
Make the genericPage methods activate and deactivate widgets public instead of protected. Signed-off-by: Michael Demeter <[email protected]>
C
apache-2.0
lbt/meego-handset-dialer,lbt/meego-handset-dialer,lbt/meego-handset-dialer,lbt/meego-handset-dialer
24f16f44b3b2569b8858c453429c3fb42ea02392
objc/PromiseKit.h
objc/PromiseKit.h
#import "PromiseKit/Promise.h" #ifdef PMK_CORELOCATION #import "PromiseKit+CoreLocation.h" #endif #ifdef PMK_FOUNDATION #import "PromiseKit+Foundation.h" #endif #ifdef PMK_UIKIT #import "PromiseKit+UIKit.h" #endif #ifdef PMK_MAPKIT #import "PromiseKit+MapKit.h" #endif #ifdef PMK_SOCIAL #import "PromiseKit+Social.h" #endif #ifdef PMK_STOREKIT #import "PromiseKit+StoreKit.h" #endif #ifdef PMK_AVFOUNDATION #import "PromiseKit+AVFoundation.h" #endif #ifndef PMK_NO_UNPREFIXATION // I used a typedef but it broke the tests, turns out typedefs are new // types that have consequences with isKindOfClass and that // NOTE I will remove this at 1.0 typedef PMKPromise Promise __attribute__((deprecated("Use PMKPromise. Use of Promise is deprecated. This is a typedef, and since it is a typedef, there may be unintended side-effects."))); #endif
#import "PromiseKit/Promise.h" #ifdef PMK_CORELOCATION #import "PromiseKit+CoreLocation.h" #endif #ifdef PMK_FOUNDATION #import "PromiseKit+Foundation.h" #endif #ifdef PMK_UIKIT #import "PromiseKit+UIKit.h" #endif #ifdef PMK_MAPKIT #import "PromiseKit+MapKit.h" #endif #ifdef PMK_SOCIAL #import "PromiseKit+Social.h" #endif #ifdef PMK_STOREKIT #import "PromiseKit+StoreKit.h" #endif #ifdef PMK_AVFOUNDATION #import "PromiseKit+AVFoundation.h" #endif #ifdef PMK_ACCOUNTS #import "PromiseKit+Accounts.h" #endif #ifndef PMK_NO_UNPREFIXATION // I used a typedef but it broke the tests, turns out typedefs are new // types that have consequences with isKindOfClass and that // NOTE I will remove this at 1.0 typedef PMKPromise Promise __attribute__((deprecated("Use PMKPromise. Use of Promise is deprecated. This is a typedef, and since it is a typedef, there may be unintended side-effects."))); #endif
Add missing import to umbrella header
Add missing import to umbrella header
C
mit
mxcl/PromiseKit,pgherveou/PromiseKit,mxcl/PromiseKit,allen-zeng/PromiseKit,mxcl/PromiseKit,pgherveou/PromiseKit,allen-zeng/PromiseKit,pgherveou/PromiseKit
a935263bc17f40ed671abc3157adbc04ade7b3fa
Source/SimpleITKMacro.h
Source/SimpleITKMacro.h
#ifndef __SimpleITKMacro_h #define __SimpleITKMacro_h #include <stdint.h> #include <itkImageBase.h> #include <itkImage.h> #include <itkLightObject.h> #include <itkSmartPointer.h> // Define macros to aid in the typeless layer typedef itk::ImageBase<3> SimpleImageBase; namespace itk { namespace simple { // To add a new type you must: // 1. Add an entry to ImageDataType // 2. Add to the sitkDataTypeSwitch // 3. Add the new type to ImageFileReader/ImageFileWriter enum ImageDataType { sitkUInt8, // Unsigned 8 bit integer sitkInt16, // Signed 16 bit integer sitkInt32, // Signed 32 bit integer sitkFloat32, // 32 bit float }; #define sitkImageDataTypeCase(typeN, type, call ) \ case typeN: { typedef type DataType; call; }; break #define sitkImageDataTypeSwitch( call ) \ sitkImageDataTypeCase ( sitkUInt8, uint8_t, call ); \ sitkImageDataTypeCase ( sitkInt16, int16_t, call ); \ sitkImageDataTypeCase ( sitkInt32, int32_t, call ); \ sitkImageDataTypeCase ( sitkFloat32, float, call ); } } #endif
#ifndef __SimpleITKMacro_h #define __SimpleITKMacro_h // Ideally, take the types from the C99 standard. However, // VS 8 does not have stdint.h, but they are defined anyway. #ifndef _MSC_VER #include <stdint.h> #endif #include <itkImageBase.h> #include <itkImage.h> #include <itkLightObject.h> #include <itkSmartPointer.h> // Define macros to aid in the typeless layer typedef itk::ImageBase<3> SimpleImageBase; namespace itk { namespace simple { // To add a new type you must: // 1. Add an entry to ImageDataType // 2. Add to the sitkDataTypeSwitch // 3. Add the new type to ImageFileReader/ImageFileWriter enum ImageDataType { sitkUInt8, // Unsigned 8 bit integer sitkInt16, // Signed 16 bit integer sitkInt32, // Signed 32 bit integer sitkFloat32, // 32 bit float }; #define sitkImageDataTypeCase(typeN, type, call ) \ case typeN: { typedef type DataType; call; }; break #define sitkImageDataTypeSwitch( call ) \ sitkImageDataTypeCase ( sitkUInt8, uint8_t, call ); \ sitkImageDataTypeCase ( sitkInt16, int16_t, call ); \ sitkImageDataTypeCase ( sitkInt32, int32_t, call ); \ sitkImageDataTypeCase ( sitkFloat32, float, call ); } } #endif
Support for MS Visual Studio 2008.
Support for MS Visual Studio 2008.
C
apache-2.0
SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging,SimpleITK/Staging
6536132facc72b11a630fef777d446e06dfeeed8
test/FrontendC/2010-06-28-nowarn.c
test/FrontendC/2010-06-28-nowarn.c
// RUN: %llvmgcc %s -c -m32 -fasm-blocks -o /dev/null // This should not warn about unreferenced label. 7729514. // XFAIL: * // XTARGET: i386-apple-darwin,x86_64-apple-darwin,i686-apple-darwin void quarterAsm(int array[], int len) { __asm { mov esi, array; mov ecx, len; shr ecx, 2; loop: movdqa xmm0, [esi]; psrad xmm0, 2; movdqa [esi], xmm0; add esi, 16; sub ecx, 1; jnz loop; } }
// RUN: %llvmgcc %s -c -m32 -fasm-blocks -o /dev/null // This should not warn about unreferenced label. 7729514. // XFAIL: * // XTARGET: x86,i386,i686 void quarterAsm(int array[], int len) { __asm { mov esi, array; mov ecx, len; shr ecx, 2; loop: movdqa xmm0, [esi]; psrad xmm0, 2; movdqa [esi], xmm0; add esi, 16; sub ecx, 1; jnz loop; } }
Fix this XTARGET so that this does doesn't XPASS on non-darwin hosts.
Fix this XTARGET so that this does doesn't XPASS on non-darwin hosts. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@108040 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm
061a6dd3104815719c59aa4fed512be64cb2feab
include/nekit/crypto/stream_cipher_interface.h
include/nekit/crypto/stream_cipher_interface.h
// MIT License // Copyright (c) 2017 Zhuhao Wang // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. #pragma once #include <memory> #include <boost/noncopyable.hpp> namespace nekit { namespace crypto { enum class ErrorCode { NoError, ValidationFailed }; enum class Action { Decryption = 0, Encryption = 1 }; // This class provide support for stream cipher or block cipher in stream mode. class StreamCipherInterface: private boost::noncopyable { public: virtual ~StreamCipherInterface() = default; virtual void SetKey(const uint8_t *data, bool copy) = 0; virtual void SetIv(const uint8_t *data, bool copy) = 0; virtual ErrorCode Process(const uint8_t *input, size_t len, const uint8_t *input_tag, uint8_t *output, uint8_t *output_tag) = 0; virtual void Reset() = 0; virtual size_t key_size() = 0; virtual size_t iv_size() = 0; virtual size_t block_size() = 0; virtual size_t tag_size() = 0; }; } // namespace crypto } // namespace nekit
Add interface for stream cipher
FEAT: Add interface for stream cipher
C
mit
zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit
e36c3d63728197449d4e555823d7d07db16e2c3a
OCMustache/MustacheToken.h
OCMustache/MustacheToken.h
// // MustacheToken.h // OCMustache // // Created by Wesley Moore on 31/10/10. // Copyright 2010 Wesley Moore. All rights reserved. // #import <Foundation/Foundation.h> enum mustache_token_type { mustache_token_type_etag = 1, // Escaped tag mustache_token_type_utag, // Unescaped tag mustache_token_type_section, mustache_token_type_inverted, mustache_token_type_static, // Static text mustache_token_type_partial }; @interface MustacheToken : NSObject { enum mustache_token_type type; const char *content; NSUInteger content_length; } @property(nonatomic, assign) enum mustache_token_type type; @property(nonatomic, assign) const char *content; @property(nonatomic, assign) size_t contentLength; - (id)initWithType:(enum mustache_token_type)token_type content:(const char *)content contentLength:(NSUInteger)length; - (NSString *)contentString; @end
// // MustacheToken.h // OCMustache // // Created by Wesley Moore on 31/10/10. // Copyright 2010 Wesley Moore. All rights reserved. // #import <Foundation/Foundation.h> enum mustache_token_type { mustache_token_type_etag = 1, // Escaped tag mustache_token_type_utag, // Unescaped tag mustache_token_type_section, mustache_token_type_inverted, mustache_token_type_static, // Static text mustache_token_type_partial }; @interface MustacheToken : NSObject { enum mustache_token_type type; const char *content; NSUInteger content_length; } @property(nonatomic, assign) enum mustache_token_type type; @property(nonatomic, assign) const char *content; @property(nonatomic, assign) NSUInteger contentLength; - (id)initWithType:(enum mustache_token_type)token_type content:(const char *)content contentLength:(NSUInteger)length; - (NSString *)contentString; @end
Fix type mismatch between property and ivar
Fix type mismatch between property and ivar
C
bsd-3-clause
wezm/OCMustache,wezm/OCMustache
d4754ea5df0dc77ad9de3d05a36e89ed2a7ebd9b
src/libcsg/modules/io/gmxtopologyreader.h
src/libcsg/modules/io/gmxtopologyreader.h
/* * Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org) * * 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 * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ #ifndef _VOTCA_CSG_GMXTOPOLOGYREADER_H #define _VOTCA_CSG_GMXTOPOLOGYREADER_H #include <string> #include <votca/csg/topologyreader.h> namespace votca { namespace csg { /** \brief reader for gromacs topology files This class encapsulates the gromacs reading functions and provides an interface to fill a topolgy class */ class GMXTopologyReader : public TopologyReader { public: GMXTopologyReader() = default; /// read a topology file bool ReadTopology(std::string file, Topology &top) override; private: }; } // namespace csg } // namespace votca #endif /* _VOTCA_CSG_GMXTOPOLOGYREADER_H */
/* * Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org) * * 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 * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ #ifndef _VOTCA_CSG_GMXTOPOLOGYREADER_H #define _VOTCA_CSG_GMXTOPOLOGYREADER_H #include <string> #include <votca/csg/topologyreader.h> #include <votca/tools/unitconverter.h> namespace votca { namespace csg { /** \brief reader for gromacs topology files This class encapsulates the gromacs reading functions and provides an interface to fill a topolgy class */ class GMXTopologyReader : public TopologyReader { public: GMXTopologyReader() = default; /// read a topology file bool ReadTopology(std::string file, Topology &top) override; private: }; } // namespace csg } // namespace votca #endif /* _VOTCA_CSG_GMXTOPOLOGYREADER_H */
Add unitconverter include to gmx top reader
Add unitconverter include to gmx top reader
C
apache-2.0
MrTheodor/csg,MrTheodor/csg,votca/csg,MrTheodor/csg,votca/csg,votca/csg,MrTheodor/csg,MrTheodor/csg,votca/csg
c33b5c9ef5b597850f66c66e8b68451f15adcfe7
libyaul/scu/bus/a/cs0/dram-cartridge/dram-cartridge.h
libyaul/scu/bus/a/cs0/dram-cartridge/dram-cartridge.h
/* * Copyright (c) 2012 Israel Jacques * See LICENSE for details. * * Israel Jacques <[email protected]> */ #ifndef _DRAM_CARTRIDGE_H__ #define _DRAM_CARTRIDGE_H__ extern void dram_init(void); #endif /* !_DRAM_CARTRIDGE_H_
/* * Copyright (c) 2012 Israel Jacques * See LICENSE for details. * * Israel Jacques <[email protected]> */ #ifndef _DRAM_CARTRIDGE_H__ #define _DRAM_CARTRIDGE_H__ extern void dram_cartridge_init(void); #endif /* !_DRAM_CARTRIDGE_H_
Change incorrect prototype from 'dram_init(void)' to 'dram_cartridge_init(void)'
Change incorrect prototype from 'dram_init(void)' to 'dram_cartridge_init(void)'
C
mit
ChillyWillyGuru/libyaul,ChillyWillyGuru/libyaul
1d37f17343715e08ea2f206f7df4e3c6edf2ecf8
tests/regression/31-ikind-awars-ints/05-shift.c
tests/regression/31-ikind-awars-ints/05-shift.c
// PARAM: --enable ana.int.interval --enable exp.partition-arrays.enabled --set ana.activated "['base', 'mallocWrapper']" int main(void) { // Shifting by a negative number is UB, but we should still not crash on it, but go to top instead int v = -1; int r = 17; int u = r >> v; }
Test for shift by negative
Test for shift by negative
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
4a882fe26dab76ae7b0c89459a5808cfef99055a
libyaul/kernel/mm/slob.h
libyaul/kernel/mm/slob.h
/* * Copyright (c) 2012 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <[email protected]> */ #ifndef _SLOB_H_ #define _SLOB_H_ #include <stddef.h> /*- * Restrictions * * 1. Allocation requests bigger than SLOB_PAGE_BREAK_2ND cannot be * serviced. This is due to the memory block manager not able to * guarantee that sequential allocations of SLOB pages will be * contiguous. */ /* * Adjust the number of pages to be statically allocated as needed. If * memory is quickly exhausted, increase the SLOB page count. */ #ifndef SLOB_PAGE_COUNT #define SLOB_PAGE_COUNT 4 #endif /* !SLOB_PAGE_COUNT */ #define SLOB_PAGE_SIZE 0x1000 #define SLOB_PAGE_MASK (~(SLOB_PAGE_SIZE - 1)) #define SLOB_PAGE_BREAK_1ST 0x0100 #define SLOB_PAGE_BREAK_2ND 0x0400 void slob_init(void); void *slob_alloc(size_t); void slob_free(void *); #endif /* _SLOB_H_ */
/* * Copyright (c) 2012 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <[email protected]> */ #ifndef _SLOB_H_ #define _SLOB_H_ #include <stddef.h> /*- * Restrictions * * 1. Heap size limit: Allocation requests bigger than * SLOB_PAGE_BREAK_2ND cannot be serviced. This is due to the * memory block manager not able to guarantee that sequential * allocations of SLOB pages will be contiguous. */ /* * Adjust the number of pages to be statically allocated as needed. If * memory is quickly exhausted, increase the SLOB page count. */ #ifndef SLOB_PAGE_COUNT #define SLOB_PAGE_COUNT 4 #endif /* !SLOB_PAGE_COUNT */ #define SLOB_PAGE_SIZE 0x4000 #define SLOB_PAGE_MASK (~(SLOB_PAGE_SIZE - 1)) #define SLOB_PAGE_BREAK_1ST 0x0100 #define SLOB_PAGE_BREAK_2ND 0x0400 void slob_init(void); void *slob_alloc(size_t); void slob_free(void *); #endif /* _SLOB_H_ */
Change hard limit on heap
Change hard limit on heap
C
mit
ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul
249fbcfbc118c0b6d59cf421ac919d3febf3181f
tests/regression/24-octagon/15-problem-rec2.c
tests/regression/24-octagon/15-problem-rec2.c
// PARAM: --sets solver td3 --set ana.activated "['base','threadid','threadflag','octagon','mallocWrapper']" // Example from https://github.com/sosy-lab/sv-benchmarks/blob/master/c/recursive-simple/afterrec_2calls-1.c void f(int); void f2(int); void f(int n) { if (n<3) return; n--; f2(n); assert(1); } void f2(int n) { if (n<3) return; n--; f(n); assert(1); } int main(void) { f(4); }
Add further issue with recursion
Add further issue with recursion
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
8b3bd1defc7baa4537528fb45e7f8f365407992a
NUCLEO_L053R8/Button_HAL/src/main.c
NUCLEO_L053R8/Button_HAL/src/main.c
/** * Using the HAL library */ #include "stm32l0xx.h" #include "stm32l0xx_nucleo.h" int main(void) { HAL_Init(); BSP_LED_Init(LED2); while (1) { BSP_LED_Toggle(LED2); HAL_Delay(500); } }
/** * Using the HAL library */ #include "stm32l0xx.h" #include "stm32l0xx_nucleo.h" GPIO_InitTypeDef GPIO_InitStructure; int main(void) { HAL_Init(); BSP_LED_Init(LED2); // Initialise the button (PC13) __HAL_RCC_GPIOC_CLK_ENABLE(); GPIO_InitStructure.Pin = GPIO_PIN_13; GPIO_InitStructure.Mode = GPIO_MODE_INPUT; GPIO_InitStructure.Pull = GPIO_NOPULL; // External pull up GPIO_InitStructure.Speed = GPIO_SPEED_LOW; HAL_GPIO_Init(GPIOC, &GPIO_InitStructure); while (1) { if (HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_13)) { BSP_LED_Toggle(LED2); //HAL_Delay(500); } } }
Read the button with the HAL library
Read the button with the HAL library
C
mit
theapi/stm32,theapi/stm32
6e5eac20ada828fb2fbcd6fd262fe07e3d16fc54
TTKMobile/musicmobileglobaldefine.h
TTKMobile/musicmobileglobaldefine.h
#ifndef MUSICMOBILEGLOBALDEFINE_H #define MUSICMOBILEGLOBALDEFINE_H /* ================================================= * This file is part of the TTK Music Player project * Copyright (c) 2015 - 2017 Greedysky Studio * All rights reserved! * Redistribution and use of the source code or any derivative * works are strictly forbiden. =================================================*/ #include "musicglobal.h" ////////////////////////////////////// ///exoprt /// /// #define MUSIC_EXPORT #ifdef MUSIC_EXPORT # define MUSIC_MOBILE_EXPORT Q_DECL_EXPORT #else # define MUSIC_MOBILE_EXPORT Q_DECL_IMPORT #endif #endif // MUSICMOBILEGLOBALDEFINE_H
#ifndef MUSICMOBILEGLOBALDEFINE_H #define MUSICMOBILEGLOBALDEFINE_H /* ================================================= * This file is part of the TTK Music Player project * Copyright (c) 2015 - 2017 Greedysky Studio * All rights reserved! * Redistribution and use of the source code or any derivative * works are strictly forbiden. =================================================*/ #include "musicglobal.h" ////////////////////////////////////// ///exoprt /// /// #define MUSIC_EXPORT #ifdef MUSIC_EXPORT # define MUSIC_MOBILE_EXPORT Q_DECL_EXPORT #else # define MUSIC_MOBILE_IMPORT Q_DECL_IMPORT #endif #endif // MUSICMOBILEGLOBALDEFINE_H
Fix dll import name error[132001]
Fix dll import name error[132001]
C
lgpl-2.1
Greedysky/Musicplayer,Greedysky/Musicplayer,Greedysky/Musicplayer
2d5cecc31b53f508e721e1411faa2455560823f7
src/extensions/boost_json_spirit.h
src/extensions/boost_json_spirit.h
#include <json_spirit.h> namespace sqlite { // json_spirit::mArray template<> void get_col_from_db(database_binder& db, int inx, json_spirit::mArray& a) { json_spirit::mValue tmp; std::string str((char*)sqlite3_column_blob(db._stmt, inx), sqlite3_column_bytes(db._stmt, inx)); json_spirit::read(str, tmp); a = tmp.get_array(); } template<> database_binder& operator <<(database_binder& db, const json_spirit::mArray& val) { auto tmp = json_spirit::write(val); if(sqlite3_bind_blob(db._stmt, db._inx, tmp.c_str() , tmp.size() , SQLITE_TRANSIENT) != SQLITE_OK) { db.throw_sqlite_error(); } ++db._inx; return db; } // json_spirit::mObject template<> void get_col_from_db(database_binder& db, int inx, json_spirit::mObject& a) { json_spirit::mValue tmp; std::string str((char*)sqlite3_column_blob(db._stmt, inx), sqlite3_column_bytes(db._stmt, inx)); json_spirit::read(str, tmp); a = tmp.get_obj(); } template<> database_binder& operator <<(database_binder& db, const json_spirit::mObject& val) { auto tmp = json_spirit::write(val); if(sqlite3_bind_blob(db._stmt, db._inx, tmp.c_str(), tmp.size(), SQLITE_TRANSIENT) != SQLITE_OK) { db.throw_sqlite_error(); } ++db._inx; return db; } }
Boost json::spirit support for mArrays and mObjects
Boost json::spirit support for mArrays and mObjects
C
mit
aminroosta/sqlite_modern_cpp,zauguin/sqlite_modern_cpp
4e0739eb319e4283da0616ac64bd2d65168861ef
src/backend/utils/resource_manager/resource_manager.c
src/backend/utils/resource_manager/resource_manager.c
/*------------------------------------------------------------------------- * * resource_manager.c * GPDB resource manager code. * * * Copyright (c) 2006-2017, Greenplum inc. * * ------------------------------------------------------------------------- */ #include "postgres.h" #include "utils/guc.h" #include "utils/resource_manager.h" /* * GUC variables. */ bool ResourceScheduler; /* Is scheduling enabled? */ ResourceManagerPolicy Gp_resource_manager_policy;
/*------------------------------------------------------------------------- * * resource_manager.c * GPDB resource manager code. * * * Copyright (c) 2006-2017, Greenplum inc. * * ------------------------------------------------------------------------- */ #include "postgres.h" #include "utils/guc.h" #include "utils/resource_manager.h" /* * GUC variables. */ bool ResourceScheduler = false; /* Is scheduling enabled? */ ResourceManagerPolicy Gp_resource_manager_policy;
Initialize global var to avoid macOS linker error
Initialize global var to avoid macOS linker error The macOS ld64 linker has an assertion on empty DATA segments within linker Atoms. This assertion trips on the resource_manager since it only contains uninitialized variables placed for the BSS segment. This fails linking the backend on the resource_manager SUBSYS object. Without anything initialized, an no exported function symbols, the sections are: $ nm -mgU src/backend/utils/resource_manager/SUBSYS.o 0000000000000004 (common) (alignment 2^2) external _Gp_resource_manager_policy 0000000000000001 (common) external _ResourceScheduler With the initialization of the ResourceScheduler GUC variable: $ nm -mgU src/backend/utils/resource_manager/SUBSYS.o 0000000000000004 (common) (alignment 2^2) external _Gp_resource_manager_policy 0000000000000004 (__DATA,__common) external _ResourceScheduler Since the resource_manager in its current state is off anyways it seems harmless to initialize to the correct value.
C
apache-2.0
xinzweb/gpdb,xinzweb/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,Quikling/gpdb,50wu/gpdb,cjcjameson/gpdb,janebeckman/gpdb,50wu/gpdb,janebeckman/gpdb,ashwinstar/gpdb,Chibin/gpdb,yuanzhao/gpdb,50wu/gpdb,cjcjameson/gpdb,50wu/gpdb,Quikling/gpdb,lisakowen/gpdb,xinzweb/gpdb,ashwinstar/gpdb,edespino/gpdb,jmcatamney/gpdb,edespino/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,Quikling/gpdb,edespino/gpdb,Chibin/gpdb,xinzweb/gpdb,yuanzhao/gpdb,lisakowen/gpdb,cjcjameson/gpdb,Chibin/gpdb,50wu/gpdb,ashwinstar/gpdb,rvs/gpdb,janebeckman/gpdb,adam8157/gpdb,Chibin/gpdb,xinzweb/gpdb,yuanzhao/gpdb,Chibin/gpdb,ashwinstar/gpdb,Chibin/gpdb,rvs/gpdb,kaknikhil/gpdb,rvs/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,jmcatamney/gpdb,yuanzhao/gpdb,Quikling/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,yuanzhao/gpdb,xinzweb/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,Quikling/gpdb,lisakowen/gpdb,greenplum-db/gpdb,xinzweb/gpdb,Quikling/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,rvs/gpdb,edespino/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,adam8157/gpdb,yuanzhao/gpdb,janebeckman/gpdb,jmcatamney/gpdb,Chibin/gpdb,edespino/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,50wu/gpdb,janebeckman/gpdb,jmcatamney/gpdb,adam8157/gpdb,jmcatamney/gpdb,Chibin/gpdb,janebeckman/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,rvs/gpdb,lisakowen/gpdb,cjcjameson/gpdb,xinzweb/gpdb,Quikling/gpdb,yuanzhao/gpdb,Quikling/gpdb,lisakowen/gpdb,adam8157/gpdb,kaknikhil/gpdb,adam8157/gpdb,lisakowen/gpdb,adam8157/gpdb,lisakowen/gpdb,edespino/gpdb,Chibin/gpdb,rvs/gpdb,50wu/gpdb,lisakowen/gpdb,edespino/gpdb,rvs/gpdb,rvs/gpdb,edespino/gpdb,Chibin/gpdb,rvs/gpdb,janebeckman/gpdb,kaknikhil/gpdb,janebeckman/gpdb,Quikling/gpdb,edespino/gpdb,50wu/gpdb,yuanzhao/gpdb,edespino/gpdb,jmcatamney/gpdb,kaknikhil/gpdb,janebeckman/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,janebeckman/gpdb,Quikling/gpdb,adam8157/gpdb,adam8157/gpdb,greenplum-db/gpdb,rvs/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,kaknikhil/gpdb
4cc26f6ae19b096bae1ec8309671bb415997786c
c_solutions_1-10/Euler_1.c
c_solutions_1-10/Euler_1.c
#include <stdio.h> #include <time.h> int multiples_three_five(int limit) { long total = 0; int i; for (i=1; i < limit; i++) total += i % 3 == 0 || i % 5 == 0 ? i : 0; return total; } int main(void) { clock_t start, stop; start = clock(); long ans = multiples_three_five(1000); printf ("Answer: %ld\n", ans); stop = clock(); printf ("Time: %f\n", ((float)stop - (float)start) / CLOCKS_PER_SEC); return 0; }
#include <time.h> #include <stdio.h> #define NANO 10000000000 int multiples_three_five(int limit) { long total = 0; for (int i=1; i < limit; i++) total += i % 3 == 0 || i % 5 == 0 ? i : 0; return total; } int main(void) { struct timespec start; clock_gettime(CLOCK_REALTIME, &start); double start_time = ((float) start.tv_sec) + ((float) start.tv_nsec) / NANO; long ans = multiples_three_five(1000); printf ("Answer: %ld\n", ans); struct timespec stop; clock_gettime(CLOCK_REALTIME, &stop); double stop_time = ((float) stop.tv_sec) + ((float) stop.tv_nsec) / NANO; printf ("Time: %.8f\n", stop_time - start_time); return 0; }
Use WALL time for timer
Use WALL time for timer
C
mit
tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler,tijko/Project-Euler
65931e9f800a97f9fa8af4aa8c26b2ed04ed8eb2
src/condor_includes/condor_collector.h
src/condor_includes/condor_collector.h
#ifndef __COLLECTOR_H__ #define __COLLECTOR_H__ #include "sched.h" enum AdTypes { STARTD_AD, SCHEDD_AD, MASTER_AD, GATEWAY_AD, CKPT_SRVR_AD, NUM_AD_TYPES }; // collector commands const int UPDATE_STARTD_AD = 0; const int UPDATE_SCHEDD_AD = 1; const int UPDATE_MASTER_AD = 2; const int UPDATE_GATEWAY_AD = 3; const int UPDATE_CKPT_SRVR_AD = 4; const int QUERY_STARTD_ADS = 5; const int QUERY_SCHEDD_ADS = 6; const int QUERY_MASTER_ADS = 7; const int QUERY_GATEWAY_ADS = 8; const int QUERY_CKPT_SRVR_ADS = 9; #endif // __COLLECTOR_H__
#ifndef __COLLECTOR_H__ #define __COLLECTOR_H__ #include "sched.h" enum AdTypes { STARTD_AD, SCHEDD_AD, MASTER_AD, GATEWAY_AD, CKPT_SRVR_AD, NUM_AD_TYPES }; #include "condor_commands.h" // collector commands #endif // __COLLECTOR_H__
Use condor_commands.h instead of defining commands here.
Use condor_commands.h instead of defining commands here.
C
apache-2.0
clalancette/condor-dcloud,djw8605/condor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,zhangzhehust/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,htcondor/htcondor,bbockelm/condor-network-accounting,djw8605/condor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,htcondor/htcondor,djw8605/htcondor,zhangzhehust/htcondor,neurodebian/htcondor,djw8605/htcondor,djw8605/htcondor,htcondor/htcondor,bbockelm/condor-network-accounting,zhangzhehust/htcondor,bbockelm/condor-network-accounting,neurodebian/htcondor,djw8605/condor,mambelli/osg-bosco-marco,zhangzhehust/htcondor,mambelli/osg-bosco-marco,djw8605/htcondor,djw8605/htcondor,neurodebian/htcondor,djw8605/condor,neurodebian/htcondor,zhangzhehust/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,zhangzhehust/htcondor,djw8605/condor,djw8605/htcondor,clalancette/condor-dcloud,mambelli/osg-bosco-marco,djw8605/htcondor,neurodebian/htcondor,bbockelm/condor-network-accounting,djw8605/htcondor,djw8605/condor,djw8605/condor,mambelli/osg-bosco-marco,neurodebian/htcondor,djw8605/htcondor,bbockelm/condor-network-accounting,clalancette/condor-dcloud,htcondor/htcondor,clalancette/condor-dcloud,clalancette/condor-dcloud,neurodebian/htcondor,htcondor/htcondor,mambelli/osg-bosco-marco,htcondor/htcondor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,htcondor/htcondor,bbockelm/condor-network-accounting,htcondor/htcondor,djw8605/condor,neurodebian/htcondor,zhangzhehust/htcondor
d4b91732699737c33c64d949015e0f26bb5f22f2
doxygen/input/doc_hashing.h
doxygen/input/doc_hashing.h
/** * @file * Hashing module documentation file. */ /** * @addtogroup hashing_module Hashing module * * The Hashing module provides one-way hashing functions. Such functions can be * used for creating a hash message authentication code (HMAC) when sending a * message. Such a HMAC can be used in combination with a private key * for authentication, which is a message integrity control. * * All hash algorithms can be accessed via the generic MD layer (see * \c md_init_ctx()) * * The following hashing-algorithms are provided: * - MD2, MD4, MD5 128-bit one-way hash functions by Ron Rivest (see * \c md2_hmac(), \c md4_hmac() and \c md5_hmac()). * - SHA-1, SHA-256, SHA-384/512 160-bit or more one-way hash functions by * NIST and NSA (see\c sha1_hmac(), \c sha256_hmac() and \c sha512_hmac()). * * This module provides one-way hashing which can be used for authentication. */
/** * @file * Hashing module documentation file. */ /** * @addtogroup hashing_module Hashing module * * The Hashing module provides one-way hashing functions. Such functions can be * used for creating a hash message authentication code (HMAC) when sending a * message. Such a HMAC can be used in combination with a private key * for authentication, which is a message integrity control. * * All hash algorithms can be accessed via the generic MD layer (see * \c md_init_ctx()) * * The following hashing-algorithms are provided: * - MD2, MD4, MD5 128-bit one-way hash functions by Ron Rivest. * - SHA-1, SHA-256, SHA-384/512 160-bit or more one-way hash functions by * NIST and NSA. * * This module provides one-way hashing which can be used for authentication. */
Update doxygen documentation on HMAC
Update doxygen documentation on HMAC
C
apache-2.0
NXPmicro/mbedtls,ARMmbed/mbedtls,Mbed-TLS/mbedtls,Mbed-TLS/mbedtls,NXPmicro/mbedtls,ARMmbed/mbedtls,Mbed-TLS/mbedtls,NXPmicro/mbedtls,ARMmbed/mbedtls,NXPmicro/mbedtls,Mbed-TLS/mbedtls,ARMmbed/mbedtls
b0f91c40ff3f623c03b1ecbe5f929d3ef0b1a063
as/target/x86/proc.h
as/target/x86/proc.h
enum args { AIMM = 1, AIMM8, AIMM16, AIMM32, AIMM64, AREG_AX, AREG_AL, AREG_AH, AREG_EAX, AREG_BC, AREG_BL, AREG_BH, AREG_EBX, AREG_CX, AREG_CL, AREG_CH, AREG_ECX, AREG_DX, AREG_DL, AREG_DH, AREG_EDX, AREG_SI, AREG_DI, AREG_SP, AREG_ESP, AREG_EBP, AREP, };
enum args { AIMM = 1, AIMM8, AIMM16, AIMM32, AIMM64, AREG_CS, AREG_DS, AREG_SS, AREG_ES AREG_FS, AREG_GS, AREG_EFLAGS, AREG_AX, AREG_AL, AREG_AH, AREG_EAX, AREG_RAX, AREG_BX, AREG_BL, AREG_BH, AREG_EBX, AREG_RBX, AREG_CX, AREG_CL, AREG_CH, AREG_ECX, AREG_RCX, AREG_DX, AREG_DL, AREG_DH, AREG_EDX, AREG_RDX, AREG_SI, AREG_DI, AREG_SP, AREG_ESP, AREG_RSP, AREG_BP, AREG_EBP, AREG_RBP, AREP, };
Extend list of intel registers
[as] Extend list of intel registers
C
isc
k0gaMSX/scc,k0gaMSX/scc,k0gaMSX/scc
32165dbeaa2f8bac59051b6dc370d478aadc2633
pixeltypes.h
pixeltypes.h
#ifndef __INC_PIXELS_H #define __INC_PIXELS_H #include <stdint.h> struct CRGB { union { struct { uint8_t r; uint8_t g; uint8_t b; }; uint8_t raw[3]; }; }; #ifdef SUPPORT_ARGB struct CARGB { union { struct { uint8_t a; uint8_t g; uint8_t r; uint8_t b; }; uint8_t raw[4]; uint32_t all32; }; }; #endif struct CHSV { union { uint8_t hue; uint8_t h; }; union { uint8_t saturation; uint8_t sat; uint8_t s; }; union { uint8_t value; uint8_t val; uint8_t v; }; }; // Define RGB orderings enum EOrder { RGB=0012, RBG=0021, GRB=0102, GBR=0120, BRG=0201, BGR=0210 }; #endif
#ifndef __INC_PIXELS_H #define __INC_PIXELS_H #include <stdint.h> struct CRGB { union { struct { uint8_t r; uint8_t g; uint8_t b; }; uint8_t raw[3]; }; inline uint8_t& operator[] (uint8_t x) __attribute__((always_inline)) { return raw[x]; } }; #ifdef SUPPORT_ARGB struct CARGB { union { struct { uint8_t a; uint8_t g; uint8_t r; uint8_t b; }; uint8_t raw[4]; uint32_t all32; }; }; #endif struct CHSV { union { struct { union { uint8_t hue; uint8_t h; }; union { uint8_t saturation; uint8_t sat; uint8_t s; }; union { uint8_t value; uint8_t val; uint8_t v; }; }; uint8_t raw[3]; }; inline uint8_t& operator[](uint8_t x) __attribute__((always_inline)) { return raw[x]; } }; // Define RGB orderings enum EOrder { RGB=0012, RBG=0021, GRB=0102, GBR=0120, BRG=0201, BGR=0210 }; #endif
Add raw array access to hsv structure, and operator[] operations to hsv and rgb classes
Add raw array access to hsv structure, and operator[] operations to hsv and rgb classes
C
mit
liyanage/FastLED,eshkrab/FastLED-esp32,MattDurr/FastLED,NicoHood/FastLED,PaulStoffregen/FastLED,corbinstreehouse/FastLED,remspoor/FastLED,NicoHood/FastLED,felixLam/FastLED,kcouck/FastLED,neographophobic/FastLED,liyanage/FastLED,remspoor/FastLED,tullo-x86/FastLED,corbinstreehouse/FastLED,MattDurr/FastLED,yaneexy/FastLED,FastLED/FastLED,wsilverio/FastLED,neographophobic/FastLED,wilhelmryan/FastLED,MiketheChap/FastLED,wilhelmryan/FastLED,MiketheChap/FastLED,eshkrab/FastLED-esp32,wsilverio/FastLED,yaneexy/FastLED,ryankenney/FastLED,kcouck/FastLED,ryankenney/FastLED,FastLED/FastLED,PaulStoffregen/FastLED,FastLED/FastLED,felixLam/FastLED,PaulStoffregen/FastLED,FastLED/FastLED,tullo-x86/FastLED
9dd93ba12825a3aa6af1bfebf40a60292992d971
creator/plugins/docks/componentsdock/componentsdock.h
creator/plugins/docks/componentsdock/componentsdock.h
/* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GLUON_CREATOR_COMPONENTSDOCK_H #define GLUON_CREATOR_COMPONENTSDOCK_H #include <../../home/ahiemstra/Projects/gluon/creator/lib/widgets/dock.h> namespace Gluon { namespace Creator { class ComponentsDock : public Gluon::Creator::Dock { public: ComponentsDock(const QString& title, QWidget* parent = 0, Qt::WindowFlags flags = 0); ~ComponentsDock(); void setSelection(Gluon::GluonObject* obj = 0); QAbstractItemView* view(); QAbstractItemModel* model(); private: class ComponentsDockPrivate; ComponentsDockPrivate* d; }; } } #endif // GLUON_CREATOR_COMPONENTSDOCK_H
/* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GLUON_CREATOR_COMPONENTSDOCK_H #define GLUON_CREATOR_COMPONENTSDOCK_H #include "widgets/dock.h" namespace Gluon { namespace Creator { class ComponentsDock : public Gluon::Creator::Dock { public: ComponentsDock(const QString& title, QWidget* parent = 0, Qt::WindowFlags flags = 0); ~ComponentsDock(); void setSelection(Gluon::GluonObject* obj = 0); QAbstractItemView* view(); QAbstractItemModel* model(); private: class ComponentsDockPrivate; ComponentsDockPrivate* d; }; } } #endif // GLUON_CREATOR_COMPONENTSDOCK_H
Make creator compile without being on ahiemstra's machine ;)
Make creator compile without being on ahiemstra's machine ;)
C
lgpl-2.1
cgaebel/gluon,KDE/gluon,pranavrc/example-gluon,pranavrc/example-gluon,pranavrc/example-gluon,pranavrc/example-gluon,KDE/gluon,KDE/gluon,cgaebel/gluon,KDE/gluon,cgaebel/gluon,cgaebel/gluon
cd4c34d2a078b78ca31fd3bc5cbb210123dce89d
test/CodeGen/struct-passing.c
test/CodeGen/struct-passing.c
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s // RUN: grep 'declare i32 @f0() readnone$' %t // RUN: grep 'declare i32 @f1() readonly$' %t // RUN: grep 'declare void @f2(.* sret)$' %t // RUN: grep 'declare void @f3(.* sret)$' %t // RUN: grep 'declare void @f4(.* byval)$' %t // RUN: grep 'declare void @f5(.* byval)$' %t // PR3835 typedef int T0; typedef struct { int a[16]; } T1; T0 __attribute__((const)) f0(void); T0 __attribute__((pure)) f1(void); T1 __attribute__((const)) f2(void); T1 __attribute__((pure)) f3(void); void __attribute__((const)) f4(T1 a); void __attribute__((pure)) f5(T1 a); void *ps[] = { f0, f1, f2, f3, f4, f5 };
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s // RUN: grep 'declare i32 @f0() readnone ;' %t // RUN: grep 'declare i32 @f1() readonly ;' %t // RUN: grep 'declare void @f2(.* sret) ;' %t // RUN: grep 'declare void @f3(.* sret) ;' %t // RUN: grep 'declare void @f4(.* byval) ;' %t // RUN: grep 'declare void @f5(.* byval) ;' %t // PR3835 typedef int T0; typedef struct { int a[16]; } T1; T0 __attribute__((const)) f0(void); T0 __attribute__((pure)) f1(void); T1 __attribute__((const)) f2(void); T1 __attribute__((pure)) f3(void); void __attribute__((const)) f4(T1 a); void __attribute__((pure)) f5(T1 a); void *ps[] = { f0, f1, f2, f3, f4, f5 };
Correct this test for the fact that the number of uses is now printed in a comment.
Correct this test for the fact that the number of uses is now printed in a comment. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@112813 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang
6c915905f626c257222181886b7420a9a32d3360
src/vast/aliases.h
src/vast/aliases.h
#ifndef VAST_ALIASES_H #define VAST_ALIASES_H #include <cstdint> #include <limits> namespace vast { /// Uniquely identifies a VAST event. using event_id = uint64_t; /// The smallest possible event ID. static constexpr event_id min_event_id = 1; /// The largest possible event ID. static constexpr event_id max_event_id = std::numeric_limits<event_id>::max() - 1; /// Uniquely identifies a VAST type. using type_id = uint64_t; } // namespace vast #endif
#ifndef VAST_ALIASES_H #define VAST_ALIASES_H #include <cstdint> #include <limits> namespace vast { /// Uniquely identifies a VAST event. using event_id = uint64_t; /// The invalid event ID. static constexpr event_id invalid_event_id = 0; /// The smallest possible event ID. static constexpr event_id min_event_id = 1; /// The largest possible event ID. static constexpr event_id max_event_id = std::numeric_limits<event_id>::max() - 1; /// Uniquely identifies a VAST type. using type_id = uint64_t; } // namespace vast #endif
Add alias for invalid event ID.
Add alias for invalid event ID.
C
bsd-3-clause
mavam/vast,pmos69/vast,mavam/vast,mavam/vast,pmos69/vast,pmos69/vast,vast-io/vast,vast-io/vast,vast-io/vast,mavam/vast,vast-io/vast,vast-io/vast,pmos69/vast
b90c3bb659a1e0e1f6d1f7715ba96614f25543d3
src/clientversion.h
src/clientversion.h
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 1 #define CLIENT_VERSION_MINOR 1 #define CLIENT_VERSION_REVISION 0 #define CLIENT_VERSION_BUILD 0 // Set to true for release, false for prerelease or test build #define CLIENT_VERSION_IS_RELEASE true // Copyright year (2009-this) // Todo: update this when changing our copyright comments in the source #define COPYRIGHT_YEAR 2013 // Converts the parameter X to a string after macro replacement on X has been performed. // Don't merge these into one macro! #define STRINGIZE(X) DO_STRINGIZE(X) #define DO_STRINGIZE(X) #X #endif // CLIENTVERSION_H
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning and copyright year // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 1 #define CLIENT_VERSION_MINOR 2 #define CLIENT_VERSION_REVISION 0 #define CLIENT_VERSION_BUILD 0 // Set to true for release, false for prerelease or test build #define CLIENT_VERSION_IS_RELEASE true // Copyright year (2009-this) // Todo: update this when changing our copyright comments in the source #define COPYRIGHT_YEAR 2013 // Converts the parameter X to a string after macro replacement on X has been performed. // Don't merge these into one macro! #define STRINGIZE(X) DO_STRINGIZE(X) #define DO_STRINGIZE(X) #X #endif // CLIENTVERSION_H
Change client version number to 1.2.0.0
Change client version number to 1.2.0.0
C
mit
TigerCoinDev/Tigercoin,TigerCoinDev/Tigercoin,TigerCoinDev/Tigercoin,TigerCoinDev/Tigercoin,TigerCoinDev/Tigercoin
ee8e471d1b658635f9873faa1b2b5de41770216f
ghighlighter/gh-datastore.h
ghighlighter/gh-datastore.h
#ifndef GH_DATASTORE_H #define GH_DATASTORE_H #include <sqlite3.h> struct reading { int id; char *title; int readmill_id; int total_pages; }; sqlite3 *gh_datastore_open_db (char *data_dir); int gh_datastore_get_db_version (sqlite3 *db); void gh_datastore_set_db_version (sqlite3 *db, int version); #endif
#ifndef GH_DATASTORE_H #define GH_DATASTORE_H #include <sqlite3.h> typedef struct { int id; char *title; int readmill_id; int total_pages; } Reading; sqlite3 *gh_datastore_open_db (char *data_dir); int gh_datastore_get_db_version (sqlite3 *db); void gh_datastore_set_db_version (sqlite3 *db, int version); #endif
Use typedef for reading struct
Use typedef for reading struct
C
mit
chdorner/ghighlighter-c
d8d27dc450b5862afa2fbf29579efd70442d0479
sandbox/linux/services/linux_syscalls.h
sandbox/linux/services/linux_syscalls.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This header will be kept up to date so that we can compile system-call // policies even when system headers are old. // System call numbers are accessible through __NR_syscall_name. #ifndef SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_ #define SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_ #if defined(__x86_64__) #include "sandbox/linux/services/x86_64_linux_syscalls.h" #endif #if defined(__i386__) #include "sandbox/linux/services/x86_32_linux_syscalls.h" #endif #if defined(__arm__) && defined(__ARM_EABI__) #include "sandbox/linux/services/arm_linux_syscalls.h" #endif #if defined(__mips__) #include "sandbox/linux/services/mips_linux_syscalls.h" #endif #endif // SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This header will be kept up to date so that we can compile system-call // policies even when system headers are old. // System call numbers are accessible through __NR_syscall_name. #ifndef SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_ #define SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_ #if defined(__x86_64__) #include "sandbox/linux/services/x86_64_linux_syscalls.h" #endif #if defined(__i386__) #include "sandbox/linux/services/x86_32_linux_syscalls.h" #endif #if defined(__arm__) && defined(__ARM_EABI__) #include "sandbox/linux/services/arm_linux_syscalls.h" #endif #if defined(__mips__) && defined(_ABIO32) #include "sandbox/linux/services/mips_linux_syscalls.h" #endif #endif // SANDBOX_LINUX_SERVICES_LINUX_SYSCALLS_H_
Add ABI check for syscall numbers definitions
[MIPS] Add ABI check for syscall numbers definitions In file mips_linux_syscalls.h are definitions of syscall numbers for O32 ABI, so this check is needed in order for Mips architectures with other ABIs to work properly. BUG=400684 TEST=compile sandbox_linux_unittest for MIPS32 and MIPS64 Review URL: https://codereview.chromium.org/446213003 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@288252 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
ondra-novak/chromium.src,littlstar/chromium.src,ondra-novak/chromium.src,ondra-novak/chromium.src,littlstar/chromium.src,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,littlstar/chromium.src,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,littlstar/chromium.src,littlstar/chromium.src,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,littlstar/chromium.src,littlstar/chromium.src,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,littlstar/chromium.src,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk
0b3285c047b003f80ffbecdc86add24a6b6de51c
src/include/gpugrid.h
src/include/gpugrid.h
#ifndef GRIDINF_INCLUDE_GPUGRID_H #define GRIDINF_INCLUDE_GPUGRID_H #include "matdim.h" namespace ginf { // Mirrors the Grid class, but uses an implementation that is more suitable for GPUs. template <typename T> class GpuGrid { public: int smModel; // The smoothness cost model MatDim dimDt, dimSm; // Dimensions of cost matrices T *dtCosts; // Data cost matrix T *smCosts; // Smoothness cost matrix // Declare this functions only when compiling with nvcc #ifdef __CUDACC__ // Get width/height __device__ int getWidth() { return dimDt.x; } __device__ int getHeight() { return dimDt.y; } // Get total number of nodes __device__ int getNumNodes() { return dimDt.x * dimDt.y; } // Get number of labels __device__ int getNumLabels() { return dimDt.z; } // Get the cost of labeling (x, y) with label fp __device__ T getDataCost(int x, int y, int fp) { return dtCosts[dimDt.idx(x, y, fp)]; } // Get the smoothness cost V(fp, fq) __device__ T getSmoothnessCost(int fp, int fq) { return smCosts[dimSm.idx(fp, fq)]; } // Returns the cost of a labeling for a particular pixel __device__ T getLabelingCost(int *f, int x, int y, int label) { T totalCost = getDataCost(x, y, label); for (int d = 0; d < GINF_NUM_DIR; d++) { int nx = x + dDirX[d], ny = y + dDirY[d]; if (dimDt.isValid(nx, ny)) { totalCost += getSmoothnessCost(label, (int)f[dimDt.idx(nx, ny)]); } } return totalCost; } #endif }; // Explicit instantiations for template classes template class GpuGrid<int>; template class GpuGrid<float>; } #endif
Add class for representing a Grid on the device
Add class for representing a Grid on the device
C
mit
evilncrazy/GridInfCuda,evilncrazy/GridInfCuda
736dc11a46bbdf20c807bca3e7585367c1fbc117
lib/ortho/ortho.h
lib/ortho/ortho.h
/* $Id$Revision: */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (c) 1994-2004 AT&T Corp. * * and is licensed under the * * Common Public License, Version 1.0 * * by AT&T Corp. * * * * Information and Software Systems Research * * AT&T Research, Florham Park NJ * **********************************************************/ #ifndef ORTHO_H #define ORTHO_H #include <render.h> void orthoEdges (Agraph_t* g, int useLbls, splineInfo* sinfo); #endif
/* $Id$Revision: */ /* vim:set shiftwidth=4 ts=8: */ /********************************************************** * This software is part of the graphviz package * * http://www.graphviz.org/ * * * * Copyright (c) 1994-2004 AT&T Corp. * * and is licensed under the * * Common Public License, Version 1.0 * * by AT&T Corp. * * * * Information and Software Systems Research * * AT&T Research, Florham Park NJ * **********************************************************/ #ifndef ORTHO_H #define ORTHO_H #include <render.h> void orthoEdges (Agraph_t* g, int useLbls); #endif
Add to comments; remove use of sinfo from calling routines; adjust code to play well with other routing functions; add framework for handling loops
Add to comments; remove use of sinfo from calling routines; adjust code to play well with other routing functions; add framework for handling loops
C
epl-1.0
kbrock/graphviz,BMJHayward/graphviz,ellson/graphviz,MjAbuz/graphviz,pixelglow/graphviz,MjAbuz/graphviz,pixelglow/graphviz,pixelglow/graphviz,ellson/graphviz,MjAbuz/graphviz,tkelman/graphviz,jho1965us/graphviz,pixelglow/graphviz,MjAbuz/graphviz,tkelman/graphviz,ellson/graphviz,kbrock/graphviz,tkelman/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,kbrock/graphviz,ellson/graphviz,kbrock/graphviz,tkelman/graphviz,tkelman/graphviz,BMJHayward/graphviz,ellson/graphviz,jho1965us/graphviz,pixelglow/graphviz,tkelman/graphviz,BMJHayward/graphviz,tkelman/graphviz,kbrock/graphviz,pixelglow/graphviz,kbrock/graphviz,kbrock/graphviz,ellson/graphviz,ellson/graphviz,ellson/graphviz,BMJHayward/graphviz,kbrock/graphviz,jho1965us/graphviz,ellson/graphviz,kbrock/graphviz,BMJHayward/graphviz,jho1965us/graphviz,tkelman/graphviz,MjAbuz/graphviz,jho1965us/graphviz,MjAbuz/graphviz,BMJHayward/graphviz,jho1965us/graphviz,MjAbuz/graphviz,tkelman/graphviz,BMJHayward/graphviz,jho1965us/graphviz,jho1965us/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,jho1965us/graphviz,jho1965us/graphviz,tkelman/graphviz,tkelman/graphviz,jho1965us/graphviz,pixelglow/graphviz,pixelglow/graphviz,ellson/graphviz,pixelglow/graphviz,ellson/graphviz,MjAbuz/graphviz,pixelglow/graphviz,MjAbuz/graphviz,pixelglow/graphviz,kbrock/graphviz,MjAbuz/graphviz,kbrock/graphviz
ab7b4a594efab038c9b40f52b0a525c445a25d8d
src/ArticleCellView.h
src/ArticleCellView.h
// // ArticleCellView.h // PXListView // // Adapted from PXListView by Alex Rozanski // Modified by Barijaona Ramaholimihaso // #import <Cocoa/Cocoa.h> #import "PXListViewCell.h" #import "ArticleView.h" @interface ArticleCellView : PXListViewCell { AppController * controller; ArticleView *articleView; NSProgressIndicator * progressIndicator; } @property (nonatomic, retain) ArticleView *articleView; @property BOOL inProgress; @property int folderId; // Public functions -(id)initWithReusableIdentifier: (NSString*)identifier inFrame:(NSRect)frameRect; @end
// // ArticleCellView.h // PXListView // // Adapted from PXListView by Alex Rozanski // Modified by Barijaona Ramaholimihaso // #import <Cocoa/Cocoa.h> #import "PXListViewCell.h" #import "ArticleView.h" @interface ArticleCellView : PXListViewCell { AppController * controller; ArticleView *articleView; NSProgressIndicator * progressIndicator; BOOL inProgress; int folderId; } @property (nonatomic, retain) ArticleView *articleView; @property BOOL inProgress; @property int folderId; // Public functions -(id)initWithReusableIdentifier: (NSString*)identifier inFrame:(NSRect)frameRect; @end
Fix a static analyzer error
Fix a static analyzer error
C
apache-2.0
Feitianyuan/vienna-rss,josh64x2/vienna-rss,lapcat/vienna-rss,Eitot/vienna-rss,aidanamavi/vienna-rss,iamjasonchoi/vienna-rss,tothgy/vienna-rss,barijaona/vienna-rss,ViennaRSS/vienna-rss,Feitianyuan/vienna-rss,barijaona/vienna-rss,iamjasonchoi/vienna-rss,barijaona/vienna-rss,Eitot/vienna-rss,barijaona/vienna-rss,lapcat/vienna-rss,dak180/vienna,tothgy/vienna-rss,ViennaRSS/vienna-rss,barijaona/vienna-rss,tothgy/vienna-rss,ViennaRSS/vienna-rss,Eitot/vienna-rss,lapcat/vienna-rss,josh64x2/vienna-rss,josh64x2/vienna-rss,lapcat/vienna-rss,tothgy/vienna-rss,iamjasonchoi/vienna-rss,aidanamavi/vienna-rss,aidanamavi/vienna-rss,dak180/vienna,josh64x2/vienna-rss,ViennaRSS/vienna-rss,dak180/vienna,ViennaRSS/vienna-rss,Eitot/vienna-rss,Feitianyuan/vienna-rss,josh64x2/vienna-rss,dak180/vienna
38d665c82ba3dedc51f597f519dac84546588638
include/shmlog_tags.h
include/shmlog_tags.h
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(CLI) SLTM(SessionOpen) SLTM(SessionClose) SLTM(ClientAddr) SLTM(Request) SLTM(URL) SLTM(Protocol) SLTM(Headers)
/* * $Id$ * * Define the tags in the shared memory in a reusable format. * Whoever includes this get to define what the SLTM macro does. * */ SLTM(CLI) SLTM(SessionOpen) SLTM(SessionClose) SLTM(ClientAddr) SLTM(Request) SLTM(URL) SLTM(Protocol) SLTM(H_Unknown) #define HTTPH(a, b) SLTM(b) #include "http_headers.h" #undef HTTPH
Use http_headers.h to define HTTP header tags for logging
Use http_headers.h to define HTTP header tags for logging git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@90 d4fa192b-c00b-0410-8231-f00ffab90ce4
C
bsd-2-clause
varnish/Varnish-Cache,ajasty-cavium/Varnish-Cache,ssm/pkg-varnish,zhoualbeart/Varnish-Cache,franciscovg/Varnish-Cache,ajasty-cavium/Varnish-Cache,ambernetas/varnish-cache,zhoualbeart/Varnish-Cache,gauthier-delacroix/Varnish-Cache,drwilco/varnish-cache-drwilco,drwilco/varnish-cache-drwilco,ssm/pkg-varnish,feld/Varnish-Cache,mrhmouse/Varnish-Cache,ssm/pkg-varnish,wikimedia/operations-debs-varnish,ajasty-cavium/Varnish-Cache,1HLtd/Varnish-Cache,1HLtd/Varnish-Cache,gauthier-delacroix/Varnish-Cache,mrhmouse/Varnish-Cache,chrismoulton/Varnish-Cache,gquintard/Varnish-Cache,gauthier-delacroix/Varnish-Cache,feld/Varnish-Cache,alarky/varnish-cache-doc-ja,alarky/varnish-cache-doc-ja,1HLtd/Varnish-Cache,feld/Varnish-Cache,ajasty-cavium/Varnish-Cache,drwilco/varnish-cache-old,gquintard/Varnish-Cache,franciscovg/Varnish-Cache,alarky/varnish-cache-doc-ja,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ambernetas/varnish-cache,gauthier-delacroix/Varnish-Cache,chrismoulton/Varnish-Cache,varnish/Varnish-Cache,mrhmouse/Varnish-Cache,franciscovg/Varnish-Cache,wikimedia/operations-debs-varnish,alarky/varnish-cache-doc-ja,drwilco/varnish-cache-drwilco,alarky/varnish-cache-doc-ja,zhoualbeart/Varnish-Cache,franciscovg/Varnish-Cache,drwilco/varnish-cache-old,mrhmouse/Varnish-Cache,zhoualbeart/Varnish-Cache,ajasty-cavium/Varnish-Cache,gquintard/Varnish-Cache,zhoualbeart/Varnish-Cache,ambernetas/varnish-cache,chrismoulton/Varnish-Cache,1HLtd/Varnish-Cache,varnish/Varnish-Cache,feld/Varnish-Cache,gauthier-delacroix/Varnish-Cache,feld/Varnish-Cache,ssm/pkg-varnish,gquintard/Varnish-Cache,varnish/Varnish-Cache,chrismoulton/Varnish-Cache,franciscovg/Varnish-Cache,wikimedia/operations-debs-varnish,ssm/pkg-varnish,varnish/Varnish-Cache,chrismoulton/Varnish-Cache,drwilco/varnish-cache-old,mrhmouse/Varnish-Cache
4ee20e213b952faeaf1beb08b8f78600f6c79f1c
master/mcoils.h
master/mcoils.h
#define _MASTERCOILS #include <inttypes.h> //Functions for building requests extern uint8_t MODBUSBuildRequest01( uint8_t, uint16_t, uint16_t ); extern uint8_t MODBUSBuildRequest05( uint8_t, uint16_t, uint16_t ); extern uint8_t MODBUSBuildRequest15( uint8_t, uint16_t, uint16_t, uint8_t * ); //Functions for parsing responses extern void MODBUSParseResponse01( union MODBUSParser *, union MODBUSParser * ); //extern void MODBUSParseResponse05( union MODBUSParser *, union MODBUSParser * ); //extern void MODBUSParseResponse15( union MODBUSParser *, union MODBUSParser * );
#define _MASTERCOILS #include <inttypes.h> //Functions for building requests extern uint8_t MODBUSBuildRequest01( uint8_t, uint16_t, uint16_t ); extern uint8_t MODBUSBuildRequest05( uint8_t, uint16_t, uint16_t ); extern uint8_t MODBUSBuildRequest15( uint8_t, uint16_t, uint16_t, uint8_t * ); //Functions for parsing responses extern void MODBUSParseResponse01( union MODBUSParser *, union MODBUSParser * ); extern void MODBUSParseResponse05( union MODBUSParser *, union MODBUSParser * ); extern void MODBUSParseResponse15( union MODBUSParser *, union MODBUSParser * );
Add prototypes for functions for parsing slave's responses
Add prototypes for functions for parsing slave's responses
C
mit
Jacajack/modlib
15c7a4f2089b5688f7ff3be22fd349d8e3530267
test/binaryTreeNode.h
test/binaryTreeNode.h
#include <unordered_set> #include "../src/include/gc_obj.h" #include "../src/include/collector.h" class BinaryTreeNode : public gc_obj { public: BinaryTreeNode(const int id); ~BinaryTreeNode() = delete; int size() const; void curtailToLevel(const int lvl); void extendToLevel(const int size,Collector* collector); void addLeftChild(BinaryTreeNode* leftChild); void addRightChild(BinaryTreeNode* rightChild); virtual void finalize(); virtual std::unordered_set<gc_obj*> getManagedChildren(); private: int id; BinaryTreeNode* leftChild; BinaryTreeNode* rightChild; };
#include <unordered_set> #include "../src/include/gc_obj.h" class BinaryTreeNode : public gc_obj { public: BinaryTreeNode(const int id); int size() const; void curtailToLevel(const int lvl); void extendToLevel(const int size); void addLeftChild(BinaryTreeNode* leftChild); void addRightChild(BinaryTreeNode* rightChild); virtual void finalize(); virtual std::unordered_set<gc_obj*> getManagedChildren(); private: int id; BinaryTreeNode* leftChild; BinaryTreeNode* rightChild; };
Remove manual addObject usage from the collector
Remove manual addObject usage from the collector
C
mit
henfredemars/simple-collector
5c443e8dd6db31588d8926af0ebb6dc60501c5f2
src/plugins/render/weather/BBCWeatherItem.h
src/plugins/render/weather/BBCWeatherItem.h
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2009 Bastian Holst <[email protected]> // #ifndef BBCWEATHERITEM_H #define BBCWEATHERITEM_H #include "WeatherItem.h" class QString; class QUrl; namespace Marble { class BBCWeatherItem : public WeatherItem { public: BBCWeatherItem( QObject *parent = 0 ); ~BBCWeatherItem(); virtual bool request( const QString& type ); QString service() const; void addDownloadedFile( const QString& url, const QString& type ); QUrl observationUrl() const; QUrl forecastUrl() const; quint32 bbcId() const; void setBbcId( quint32 id ); QString creditHtml() const; private: quint32 m_bbcId; bool m_observationRequested; bool m_forecastRequested; }; } // namespace Marble #endif // BBCWEATHERITEM_H
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2009 Bastian Holst <[email protected]> // #ifndef BBCWEATHERITEM_H #define BBCWEATHERITEM_H #include "WeatherItem.h" class QString; class QUrl; namespace Marble { class BBCWeatherItem : public WeatherItem { Q_OBJECT public: BBCWeatherItem( QObject *parent = 0 ); ~BBCWeatherItem(); virtual bool request( const QString& type ); QString service() const; void addDownloadedFile( const QString& url, const QString& type ); QUrl observationUrl() const; QUrl forecastUrl() const; quint32 bbcId() const; void setBbcId( quint32 id ); QString creditHtml() const; private: quint32 m_bbcId; bool m_observationRequested; bool m_forecastRequested; }; } // namespace Marble #endif // BBCWEATHERITEM_H
Add Q_OBJECT macro (requested by lupdate).
Add Q_OBJECT macro (requested by lupdate). svn path=/trunk/KDE/kdeedu/marble/; revision=1205732
C
lgpl-2.1
David-Gil/marble-dev,oberluz/marble,quannt24/marble,adraghici/marble,tzapzoor/marble,rku/marble,tzapzoor/marble,David-Gil/marble-dev,utkuaydin/marble,probonopd/marble,quannt24/marble,adraghici/marble,oberluz/marble,adraghici/marble,utkuaydin/marble,Earthwings/marble,Earthwings/marble,oberluz/marble,tzapzoor/marble,utkuaydin/marble,adraghici/marble,tzapzoor/marble,utkuaydin/marble,Earthwings/marble,Earthwings/marble,probonopd/marble,tzapzoor/marble,quannt24/marble,rku/marble,adraghici/marble,tucnak/marble,probonopd/marble,tucnak/marble,Earthwings/marble,David-Gil/marble-dev,tucnak/marble,probonopd/marble,quannt24/marble,probonopd/marble,tucnak/marble,utkuaydin/marble,utkuaydin/marble,rku/marble,oberluz/marble,David-Gil/marble-dev,rku/marble,Earthwings/marble,AndreiDuma/marble,tucnak/marble,AndreiDuma/marble,tzapzoor/marble,adraghici/marble,AndreiDuma/marble,oberluz/marble,quannt24/marble,tucnak/marble,David-Gil/marble-dev,quannt24/marble,probonopd/marble,AndreiDuma/marble,AndreiDuma/marble,tucnak/marble,AndreiDuma/marble,David-Gil/marble-dev,rku/marble,rku/marble,tzapzoor/marble,oberluz/marble,quannt24/marble,tzapzoor/marble,probonopd/marble
b157c4c47402d1086d3324bca15aba09db54e03f
KTp/message-filters-private.h
KTp/message-filters-private.h
#include "message-processor.h" class UrlFilter : public AbstractMessageFilter { virtual void filterMessage(Message& message); };
#include "message-processor.h" class UrlFilter : public AbstractMessageFilter { virtual void filterMessage(Message& message); }; class ImageFilter : public AbstractMessageFilter { virtual void filterMessage(Message& message); }; class EmoticonFilter : public AbstractMessageFilter { virtual void filterMessage(Message& message); };
Create headers for ImageFilter and EmoticonFilter
Create headers for ImageFilter and EmoticonFilter
C
lgpl-2.1
KDE/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals
8b22cf8108255c4771386ad3101e0058684cd757
SSPSolution/SSPSolution/DebugHandler.h
SSPSolution/SSPSolution/DebugHandler.h
#ifndef SSPAPPLICATION_DEBUG_DEBUGHANDLER_H #define SSPAPPLICATION_DEBUG_DEBUGHANDLER_H #include <vector> #include <iostream> #include <Windows.h> class DebugHandler { private: std::vector<LARGE_INTEGER> m_timers; std::vector<std::string> m_labels; std::vector<unsigned short int> m_timerMins; std::vector<unsigned short int> m_timerMaxs; std::vector<float> m_customValues; unsigned short int m_lastFPS[10]; unsigned short int m_lastFPSCurr; public: DebugHandler(); ~DebugHandler(); int StartTimer(std::string label); //returns timer ID, -1 fail int EndTimer(); int EndTimer(int timerID); int StartProgram(); int EndProgram(); int ShowFPS(bool show); int CreateCustomLabel(std::string label, float value); //returns label ID, -1 fail int UpdateCustomLabel(int labelID, float newValue); int Display(); }; #endif
#ifndef SSPAPPLICATION_DEBUG_DEBUGHANDLER_H #define SSPAPPLICATION_DEBUG_DEBUGHANDLER_H #include <vector> #include <iostream> #include <Windows.h> class DebugHandler { private: std::vector<LARGE_INTEGER> m_timers; std::vector<std::string> m_labels; std::vector<unsigned short int> m_timerMins; std::vector<unsigned short int> m_timerMaxs; std::vector<float> m_customValues; unsigned short int m_frameTimes[10]; unsigned short int m_currFrameTimesPtr; public: DebugHandler(); ~DebugHandler(); int StartTimer(std::string label); //returns timer ID, -1 fail int EndTimer(); int EndTimer(int timerID); int StartProgram(); int EndProgram(); int ShowFPS(bool show); int CreateCustomLabel(std::string label, float value); //returns label ID, -1 fail int UpdateCustomLabel(int labelID, float newValue); int Display(); }; #endif
UPDATE some variable name changes
UPDATE some variable name changes
C
apache-2.0
Chringo/SSP,Chringo/SSP
9e08143850140aa3ebc764c25c8ca85ae7e30bdb
hab/proxr/cb-set-resource.c
hab/proxr/cb-set-resource.c
#include <string.h> #include "proxrcmds.h" #include "sim-hab.h" void cb_set_resource(bionet_resource_t *resource, bionet_value_t *value) { uint8_t data; float content; int id; bionet_node_t *node; bionet_value_get_uint8(value, &data); if(data < 0 || data > 255) return; node = bionet_resource_get_node(resource); // get index of resource //FIXME: probably a better way to do this for(int i=0; i<16; i++) { char buf[5]; char name[24]; strcpy(name, "Potentiometer\0"); sprintf(buf,"%d", i); int len = strlen(buf); buf[len] = '\0'; strcat(name, buf); if(bionet_resource_matches_id(resource, name)) { id = i; break; } } // command proxr to adjust to new value set_potentiometer(id, data); // set resources datapoint to new value content = data*POT_CONVERSION; bionet_resource_set_float(resource, content, NULL); hab_report_datapoints(node); }
#include <string.h> #include "proxrcmds.h" #include "sim-hab.h" void cb_set_resource(bionet_resource_t *resource, bionet_value_t *value) { float data; float content; int id; bionet_node_t *node; bionet_value_get_float(value, &data); if(data < 0 || data > 255) return; node = bionet_resource_get_node(resource); // get index of resource //FIXME: probably a better way to do this for(int i=0; i<16; i++) { char buf[5]; char name[24]; strcpy(name, "Potentiometer\0"); sprintf(buf,"%d", i); int len = strlen(buf); buf[len] = '\0'; strcat(name, buf); if(bionet_resource_matches_id(resource, name)) { id = i; break; } } // command proxr to adjust to new value set_potentiometer(id, (int)data); // set resources datapoint to new value content = data*POT_CONVERSION; bionet_resource_set_float(resource, content, NULL); hab_report_datapoints(node); }
Modify set resource. Using floats now.
Modify set resource. Using floats now.
C
lgpl-2.1
ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead
d826393cdebe340b3716002bfb1298ab19b57e83
include/asm-ia64/resource.h
include/asm-ia64/resource.h
#ifndef _ASM_IA64_RESOURCE_H #define _ASM_IA64_RESOURCE_H #include <asm/ustack.h> #define _STK_LIM_MAX DEFAULT_USER_STACK_SIZE #include <asm-generic/resource.h> #endif /* _ASM_IA64_RESOURCE_H */
#ifndef _ASM_IA64_RESOURCE_H #define _ASM_IA64_RESOURCE_H #include <asm/ustack.h> #include <asm-generic/resource.h> #endif /* _ASM_IA64_RESOURCE_H */
Remove stack hard limit on ia64
[IA64] Remove stack hard limit on ia64 Un-Breaks pthreads, since Oct 2003. Signed-off-by: Olaf Hering <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Tony Luck <[email protected]>
C
mit
KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs
c098e4740216c0410a474bc54df3f70e91857079
int2eng/str_util.h
int2eng/str_util.h
// // str_util.h // int2eng // // Created by Rodrigo Fontes on 17/12/16. // Copyright © 2016 Rodrigo Fontes. All rights reserved. // #ifndef str_util_h #define str_util_h #endif /* str_util_h */
Add header file with useful string functions
Add header file with useful string functions
C
mit
fontesrp/int2eng
312dfd2307f1acc406d61135b91081b3d4115e8a
Settings/Controls/Control.h
Settings/Controls/Control.h
#pragma once #include <Windows.h> #include <functional> #include <string> class Control { public: Control(); Control(int id, HWND parent); ~Control(); virtual RECT Dimensions(); virtual void Enable(); virtual void Disable(); virtual bool Enabled(); virtual void Enabled(bool enabled); virtual std::wstring Text(); virtual int TextAsInt(); virtual bool Text(std::wstring text); virtual bool Text(int value); void WindowExStyle(); void WindowExStyle(long exStyle); void AddWindowExStyle(long exStyle); void RemoveWindowExStyle(long exStyle); /// <summary>Handles WM_COMMAND messages.</summary> /// <param name="nCode">Control-defined notification code</param> virtual DLGPROC Command(unsigned short nCode); /// <summary>Handles WM_NOTIFY messages.</summary> /// <param name="nHdr">Notification header structure</param> virtual DLGPROC Notification(NMHDR *nHdr); protected: int _id; HWND _hWnd; HWND _parent; protected: static const int MAX_EDITSTR = 0x4000; };
#pragma once #include <Windows.h> #include <functional> #include <string> class Control { public: Control(); Control(int id, HWND parent); ~Control(); virtual RECT Dimensions(); virtual void Enable(); virtual void Disable(); virtual bool Enabled(); virtual void Enabled(bool enabled); virtual std::wstring Text(); virtual int TextAsInt(); virtual bool Text(std::wstring text); virtual bool Text(int value); void WindowExStyle(); void WindowExStyle(long exStyle); void AddWindowExStyle(long exStyle); void RemoveWindowExStyle(long exStyle); /// <summary>Handles WM_COMMAND messages.</summary> /// <param name="nCode">Control-defined notification code</param> virtual DLGPROC Command(unsigned short nCode); /// <summary>Handles WM_NOTIFY messages.</summary> /// <param name="nHdr">Notification header structure</param> virtual DLGPROC Notification(NMHDR *nHdr); protected: int _id; HWND _hWnd; HWND _parent; protected: static const int MAX_EDITSTR = 4096; };
Decrease MAX_EDITSTR. Was way too big.
Decrease MAX_EDITSTR. Was way too big.
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX
9db141ce4a4033e3c1ac5b7b69d55ff85d62a27f
libtu/util.h
libtu/util.h
/* * libtu/util.h * * Copyright (c) Tuomo Valkonen 1999-2002. * * You may distribute and modify this library under the terms of either * the Clarified Artistic License or the GNU LGPL, version 2.1 or later. */ #ifndef LIBTU_UTIL_H #define LIBTU_UTIL_H #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include "types.h" #include "optparser.h" extern void libtu_init(const char *argv0); extern const char *libtu_progname(); extern const char *libtu_progbasename(); #endif /* LIBTU_UTIL_H */
/* * libtu/util.h * * Copyright (c) Tuomo Valkonen 1999-2002. * * You may distribute and modify this library under the terms of either * the Clarified Artistic License or the GNU LGPL, version 2.1 or later. */ #ifndef LIBTU_UTIL_H #define LIBTU_UTIL_H #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include "types.h" #include "optparser.h" /** * @parame argv0 The program name used to invoke the current program, with * path (if specified). Unfortunately it is generally not easy to determine * the encoding of this string, so we don't require a specific one here. * * @see http://stackoverflow.com/questions/5408730/what-is-the-encoding-of-argv */ extern void libtu_init(const char *argv0); /** * The program name used to invoke the current program, with path (if * supplied). Unfortunately the encoding is undefined. */ extern const char *libtu_progname(); /** * The program name used to invoke the current program, without path. * Unfortunately the encoding is undefined. */ extern const char *libtu_progbasename(); #endif /* LIBTU_UTIL_H */
Document (lack of) character encoding rules in the API
Document (lack of) character encoding rules in the API
C
lgpl-2.1
p5n/notion,dkogan/notion.xfttest,anoduck/notion,anoduck/notion,raboof/notion,knixeur/notion,p5n/notion,dkogan/notion.xfttest,dkogan/notion,dkogan/notion,dkogan/notion.xfttest,neg-serg/notion,anoduck/notion,dkogan/notion,raboof/notion,anoduck/notion,knixeur/notion,dkogan/notion,anoduck/notion,knixeur/notion,neg-serg/notion,neg-serg/notion,dkogan/notion,p5n/notion,p5n/notion,p5n/notion,knixeur/notion,neg-serg/notion,knixeur/notion,raboof/notion,dkogan/notion.xfttest,raboof/notion
95d75ab83bf01bea87cc27af747e6da9c6c4b19d
ProcessLauncher/Util.h
ProcessLauncher/Util.h
#pragma once #include <type_traits> namespace ugly { template<typename T> constexpr const bool is_enum_flag = false; template<typename T = typename std::enable_if<is_enum_flag<T>, T>::type> class auto_bool { private: T val_; public: constexpr auto_bool(T val) : val_(val) {} constexpr operator T() const { return val_; } constexpr explicit operator bool() const { return static_cast<std::underlying_type_t<T>>(val_) != 0; } }; template <typename T> std::enable_if_t<is_enum_flag<T>, auto_bool<T>> operator&(T lhs, T rhs) { return static_cast<T>( static_cast<typename std::underlying_type<T>::type>(lhs) & static_cast<typename std::underlying_type<T>::type>(rhs)); } template <typename T> std::enable_if_t<is_enum_flag<T>, T> operator|(T lhs, T rhs) { return static_cast<T>( static_cast<typename std::underlying_type<T>::type>(lhs) | static_cast<typename std::underlying_type<T>::type>(rhs)); } }
#pragma once #include <type_traits> namespace ugly { template<typename T> constexpr const bool is_enum_flag = false; template<typename T, typename = typename std::enable_if<is_enum_flag<T>>::type> class auto_bool { private: T val_; public: constexpr auto_bool(T val) : val_(val) {} constexpr operator T() const { return val_; } constexpr explicit operator bool() const { return static_cast<std::underlying_type_t<T>>(val_) != 0; } }; template <typename T> std::enable_if_t<is_enum_flag<T>, auto_bool<T>> operator&(T lhs, T rhs) { return static_cast<T>( static_cast<typename std::underlying_type<T>::type>(lhs) & static_cast<typename std::underlying_type<T>::type>(rhs)); } template <typename T> std::enable_if_t<is_enum_flag<T>, T> operator|(T lhs, T rhs) { return static_cast<T>( static_cast<typename std::underlying_type<T>::type>(lhs) | static_cast<typename std::underlying_type<T>::type>(rhs)); } }
Fix bad template SFINAE declaration
Fix bad template SFINAE declaration
C
mit
Ilod/ugly,Ilod/ugly,Ilod/ugly
11f5916306e74765f5142ddd326e54ed22346dd5
kill_file_access.c
kill_file_access.c
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <dirent.h> #include <limits.h> /** * kill processes which access descendants of given directory */ int is_number(const char *s) { size_t i, len = strlen(s); for (i = 0; i < len; i++) { if (!isdigit(s[i])) return 0; } return 1; } void kill_processes(const char *dir) { DIR *par_pdir, *chl_pdir; struct dirent *par_pdent, *chl_pdent; char path[PATH_MAX]; par_pdir = opendir("/proc"); if (par_pdir == NULL) { perror("opendir"); return; } /* using children of /proc/pid/fd, find out processes which accesses * given directory and kill thoses */ while (par_pdent = readdir(par_pdir)) { if (isdigit(par_pdent->d_name[0]) && ((par_pdent->d_type == DT_DIR) || (par_pdent->d_type == DT_UNKNOWN))) { snprintf(path, sizeof(path), "/proc/%s/fd", par_pdent->d_name); chi_pdir = opendir(path); if (chl_pdir == NULL) { if (errno != EACCES || errno != ENOENT) perror(opendir); continue; } while (chl_pdent = readdir(chl_pdir)) { } } } } int main(int argc, const char *argv[]) { kill_processes(argv[1]); return 0; }
Kill processes which access descendants of given directory
Kill processes which access descendants of given directory Signed-off-by: Hyeoncheol Lee <[email protected]>
C
mit
1982bom/linux-practices
f3994034c767f5c181d09bdb08e395eb11dfe18e
tests/embedded/main.c
tests/embedded/main.c
/* * Copyright © 2009 CNRS, INRIA, Université Bordeaux 1 * Copyright © 2009 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ #include <hwloc.h> #include <stdio.h> int main(int argc, char *argv[]) { mytest_hwloc_topology_t topology; unsigned depth; hwloc_cpuset_t cpu_set; /* Just call a bunch of functions to see if we can link and run */ cpu_set = mytest_hwloc_cpuset_alloc(); mytest_hwloc_topology_init(&topology); mytest_hwloc_topology_load(topology); depth = mytest_hwloc_topology_get_depth(topology); printf("Max depth: %u\n", depth); mytest_hwloc_topology_destroy(topology); mytest_hwloc_cpuset_free(cpu_set); return 0; }
/* * Copyright © 2009 CNRS, INRIA, Université Bordeaux 1 * Copyright © 2009 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ #include <hwloc.h> #include <stdio.h> int main(int argc, char *argv[]) { mytest_hwloc_topology_t topology; unsigned depth; hwloc_cpuset_t cpu_set; /* Just call a bunch of functions to see if we can link and run */ printf("*** Test 1: cpuset alloc\n"); cpu_set = mytest_hwloc_cpuset_alloc(); printf("*** Test 2: topology init\n"); mytest_hwloc_topology_init(&topology); printf("*** Test 3: topology load\n"); mytest_hwloc_topology_load(topology); printf("*** Test 4: topology get depth\n"); depth = mytest_hwloc_topology_get_depth(topology); printf(" Max depth: %u\n", depth); printf("*** Test 5: topology destroy\n"); mytest_hwloc_topology_destroy(topology); printf("*** Test 6: cpuset free\n"); mytest_hwloc_cpuset_free(cpu_set); return 0; }
Add some more print statements to this test, just to help differentiate the output when debugging is enabled
Add some more print statements to this test, just to help differentiate the output when debugging is enabled git-svn-id: 14be032f8f42541b1a281b51ae8ea69814daf20e@1752 4b44e086-7f34-40ce-a3bd-00e031736276
C
bsd-3-clause
BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc
d9ace0273fba4d7da6da20f36183c2b9bf1ad305
libevmjit/Common.h
libevmjit/Common.h
#pragma once #include <vector> #include <boost/multiprecision/cpp_int.hpp> namespace dev { namespace eth { namespace jit { using byte = uint8_t; using bytes = std::vector<byte>; using u256 = boost::multiprecision::uint256_t; using bigint = boost::multiprecision::cpp_int; struct NoteChannel {}; // FIXME: Use some log library? enum class ReturnCode { Stop = 0, Return = 1, Suicide = 2, BadJumpDestination = 101, OutOfGas = 102, StackTooSmall = 103, BadInstruction = 104, LLVMConfigError = 201, LLVMCompileError = 202, LLVMLinkError = 203, }; /// Representation of 256-bit value binary compatible with LLVM i256 // TODO: Replace with h256 struct i256 { uint64_t a; uint64_t b; uint64_t c; uint64_t d; }; static_assert(sizeof(i256) == 32, "Wrong i265 size"); #define UNTESTED assert(false) } } }
#pragma once #include <vector> #include <boost/multiprecision/cpp_int.hpp> namespace dev { namespace eth { namespace jit { using byte = uint8_t; using bytes = std::vector<byte>; using u256 = boost::multiprecision::uint256_t; using bigint = boost::multiprecision::cpp_int; struct NoteChannel {}; // FIXME: Use some log library? enum class ReturnCode { Stop = 0, Return = 1, Suicide = 2, BadJumpDestination = 101, OutOfGas = 102, StackTooSmall = 103, BadInstruction = 104, LLVMConfigError = 201, LLVMCompileError = 202, LLVMLinkError = 203, }; /// Representation of 256-bit value binary compatible with LLVM i256 // TODO: Replace with h256 struct i256 { uint64_t a = 0; uint64_t b = 0; uint64_t c = 0; uint64_t d = 0; }; static_assert(sizeof(i256) == 32, "Wrong i265 size"); #define UNTESTED assert(false) } } }
Fix some GCC initialization warnings
Fix some GCC initialization warnings
C
mit
ethereum/evmjit,ethereum/evmjit,ethereum/evmjit
af65de668c8b6ab55e46e07ca5235feee23e86dc
src/GameState.h
src/GameState.h
/****************************************************************************** GameState.h Game State Management Copyright (c) 2013 Jeffrey Carpenter Portions Copyright (c) 2013 Fielding Johnston ******************************************************************************/ #ifndef GAMEAPP_GAMESTATE_HEADERS #define GAMEAPP_GAMESTATE_HEADERS #include <iostream> #include <string> #include "SDL.h" #include "SDLInput.h" #include "gamelib.h" { public: virtual ~GameState(); virtual void Pause() = 0; virtual void Resume() = 0; virtual void Input ( void ) = 0; virtual void Update ( void ) = 0; virtual void Draw ( void ) = 0; private: // ... }; #endif // GAMEAPP_GAMESTATE_HEADERS defined
/****************************************************************************** GameState.h Game State Management Copyright (c) 2013 Jeffrey Carpenter Portions Copyright (c) 2013 Fielding Johnston ******************************************************************************/ #ifndef GAMEAPP_GAMESTATE_HEADERS #define GAMEAPP_GAMESTATE_HEADERS #include <iostream> #include <string> #include "SDL.h" #include "SDLInput.h" #include "gamelib.h" { public: virtual ~GameState(); virtual void Pause() = 0; virtual void Resume() = 0; virtual void HandleInput ( void ) = 0; virtual void Update ( void ) = 0; virtual void Draw ( void ) = 0; private: // ... }; #endif // GAMEAPP_GAMESTATE_HEADERS defined
Rename of Input to HandleInput
Rename of Input to HandleInput
C
bsd-2-clause
i8degrees/nomlib,i8degrees/nomlib,i8degrees/nomlib,i8degrees/nomlib
6530ca82a95042e90d3cb6147472c8f9768dbfda
nbip4.c
nbip4.c
#define _BSD_SOURCE #include <stdio.h> #include <arpa/inet.h> #include <netinet/ip.h> #include "config.h" #include "common.h" void printpkt(void) { struct ip *iphdr = (struct ip *) pkt; printf("ip.version=%d " "ip.ihl=%d " "ip.tos=%02x " "ip.length=%d " "ip.id=%d " "ip.flags=%d%c%c " "ip.offset=%d " "ip.ttl=%d " "ip.protocol=%d " "ip.checksum=%04x " "ip.src=%s ", iphdr->ip_v, iphdr->ip_hl, iphdr->ip_tos, iphdr->ip_len, iphdr->ip_id, iphdr->ip_off & IP_RF, flag('d', iphdr->ip_off & IP_DF), flag('m', iphdr->ip_off & IP_MF), iphdr->ip_off & IP_OFFMASK, iphdr->ip_ttl, iphdr->ip_p, iphdr->ip_sum, inet_ntoa(iphdr->ip_src)); printf("ip.dst=%s ", inet_ntoa(iphdr->ip_dst)); dumppkt(iphdr->ip_hl * 4); }
#define _BSD_SOURCE #include <stdio.h> #include <arpa/inet.h> #include <netinet/ip.h> #include "config.h" #include "common.h" void printpkt(void) { struct ip *iphdr = (struct ip *) pkt; printf("ip.version=%u " "ip.ihl=%u " "ip.tos=%02x " "ip.length=%u " "ip.id=%u " "ip.flags=%u%c%c " "ip.offset=%u " "ip.ttl=%u " "ip.protocol=%u " "ip.checksum=%04x " "ip.src=%s ", iphdr->ip_v, iphdr->ip_hl, iphdr->ip_tos, iphdr->ip_len, iphdr->ip_id, iphdr->ip_off & IP_RF, flag('d', iphdr->ip_off & IP_DF), flag('m', iphdr->ip_off & IP_MF), iphdr->ip_off & IP_OFFMASK, iphdr->ip_ttl, iphdr->ip_p, iphdr->ip_sum, inet_ntoa(iphdr->ip_src)); printf("ip.dst=%s ", inet_ntoa(iphdr->ip_dst)); dumppkt(iphdr->ip_hl * 4); }
Change printf format %d -> %u
Change printf format %d -> %u
C
mit
grn/netbox,grn/netbox
8cb2fd424309fa6ff70cf00bfcedc4e66d3355c0
platforms/app_fuzz/fuzzer.c
platforms/app_fuzz/fuzzer.c
// // Wasm3 - high performance WebAssembly interpreter written in C. // // Copyright © 2019 Steven Massey, Volodymyr Shymanskyy. // All rights reserved. // #include <stdint.h> #include <stddef.h> #include "wasm3.h" #define FATAL(...) __builtin_trap() int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { M3Result result = m3Err_none; if (size < 8 || size > 256*1024) { return 0; } IM3Environment env = m3_NewEnvironment (); if (env) { IM3Runtime runtime = m3_NewRuntime (env, 128, NULL); if (runtime) { IM3Module module = NULL; result = m3_ParseModule (env, &module, data, size); if (module) { result = m3_LoadModule (runtime, module); if (result == 0) { IM3Function f = NULL; result = m3_FindFunction (&f, runtime, "fib"); if (f) { m3_CallV (f, 10); } } else { m3_FreeModule (module); } } m3_FreeRuntime(runtime); } m3_FreeEnvironment(env); } return 0; }
// // Wasm3 - high performance WebAssembly interpreter written in C. // // Copyright © 2019 Steven Massey, Volodymyr Shymanskyy. // All rights reserved. // #include <stdint.h> #include <stddef.h> #include "wasm3.h" #define FATAL(...) __builtin_trap() int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { M3Result result = m3Err_none; if (size < 8 || size > 256*1024) { return 0; } IM3Environment env = m3_NewEnvironment (); if (env) { IM3Runtime runtime = m3_NewRuntime (env, 128, NULL); if (runtime) { IM3Module module = NULL; result = m3_ParseModule (env, &module, data, size); if (module) { result = m3_LoadModule (runtime, module); if (result == 0) { IM3Function f = NULL; result = m3_FindFunction (&f, runtime, "fib"); /* TODO: if (f) { m3_CallV (f, 10); }*/ } else { m3_FreeModule (module); } } m3_FreeRuntime(runtime); } m3_FreeEnvironment(env); } return 0; }
Disable function execution for now, to focus on parsing issues
Disable function execution for now, to focus on parsing issues
C
mit
wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3,wasm3/wasm3
649f41482e6114d7bdd67afc311a0eea06cbdeaa
samples/Qt/basic/mythread.h
samples/Qt/basic/mythread.h
#ifndef MYTHREAD_H #define MYTHREAD_H #include <QThread> #include "easylogging++.h" class MyThread : public QThread { Q_OBJECT public: MyThread(int id) : threadId(id) {} private: int threadId; protected: void run() { LINFO <<"Writing from a thread " << threadId; LVERBOSE(2) << "This is verbose level 2 logging from thread #" << threadId; // Following line will be logged only once from second running thread (which every runs second into // this line because of interval 2) LWARNING_EVERY_N(2) << "This will be logged only once from thread who every reaches this line first. Currently running from thread #" << threadId; for (int i = 1; i <= 10; ++i) { LVERBOSE_EVERY_N(2, 3) << "Verbose level 3 log every two times. This is at " << i << " from thread #" << threadId; } // Following line will be logged once with every thread because of interval 1 LINFO_EVERY_N(1) << "This interval log will be logged with every thread, this one is from thread #" << threadId; LINFO_IF(threadId == 2) << "This log is only for thread 2 and is ran by thread #" << threadId; std::vector<std::string> myLoggers; easyloggingpp::Loggers::getAllLogIdentifiers(myLoggers); for (unsigned int i = 0; i < myLoggers.size(); ++i) { std::cout << "Logger ID [" << myLoggers.at(i) << "]"; } easyloggingpp::Configurations c; c.parseFromText("*ALL:\n\nFORMAT = %level"); } }; #endif
#ifndef MYTHREAD_H #define MYTHREAD_H #include <QThread> #include "easylogging++.h" class MyThread : public QThread { Q_OBJECT public: MyThread(int id) : threadId(id) {} private: int threadId; protected: void run() { LINFO <<"Writing from a thread " << threadId; LVERBOSE(2) << "This is verbose level 2 logging from thread #" << threadId; // Following line will be logged only once from second running thread (which every runs second into // this line because of interval 2) LWARNING_EVERY_N(2) << "This will be logged only once from thread who every reaches this line first. Currently running from thread #" << threadId; for (int i = 1; i <= 10; ++i) { LVERBOSE_EVERY_N(2, 3) << "Verbose level 3 log every two times. This is at " << i << " from thread #" << threadId; } // Following line will be logged once with every thread because of interval 1 LINFO_EVERY_N(1) << "This interval log will be logged with every thread, this one is from thread #" << threadId; LINFO_IF(threadId == 2) << "This log is only for thread 2 and is ran by thread #" << threadId; } }; #endif
Remove logger ids loop from sample
Remove logger ids loop from sample
C
mit
orchid-hybrid/easyloggingpp,orchid-hybrid/easyloggingpp,orchid-hybrid/easyloggingpp
f932830991824596fcfd635bdc2d4a2d59284f13
mem/layout.h
mem/layout.h
// Copyright 2022 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #pragma once #include <stddef.h> #include "marker/unsafe.h" namespace sus::mem::layout { namespace __private { template <class T> struct layout_nonzero_tag final { static constexpr bool has_field(...) { return false; } static constexpr bool has_field(int) requires(std::is_same_v< decltype(std::declval<T>().SusUnsafeNonZeroIsNonZero()), bool>) { return true; }; static constexpr bool is_non_zero(const T* t) { return t->SusUnsafeNonZeroIsNonZero(); }; static constexpr void set_zero(T* t) { t->SusUnsafeNonZeroSetZero(); }; }; } // namespace __private template <class T> struct nonzero_field { static constexpr bool has_field = __private::layout_nonzero_tag<T>::has_field(0); static constexpr bool is_non_zero(::sus::marker::UnsafeFnMarker, const T* t) noexcept { return __private::layout_nonzero_tag<T>::is_non_zero(t); } static constexpr void set_zero(::sus::marker::UnsafeFnMarker, T* t) noexcept { __private::layout_nonzero_tag<T>::set_zero(t); } }; } // namespace sus::mem::layout /// Mark a class field as never being zero (after a constructor has run, until /// the destructor has completed). #define sus_class_nonzero_field(unsafe_fn, T, name) \ static_assert(std::is_same_v<decltype(unsafe_fn), \ const ::sus::marker::UnsafeFnMarker>); \ template <class SusOuterClassTypeForNonZeroField> \ friend struct ::sus::mem::layout::__private::layout_nonzero_tag; \ constexpr inline bool SusUnsafeNonZeroIsNonZero() const noexcept { \ static_assert(std::same_as<decltype(*this), const T&>); \ return static_cast<bool>(name); \ } \ constexpr inline void SusUnsafeNonZeroSetZero() noexcept { \ name = static_cast<decltype(name)>(0u); \ } \ static_assert(true)
Add tools to mark a field as never-non-zero while constructed
Add tools to mark a field as never-non-zero while constructed
C
apache-2.0
chromium/subspace,chromium/subspace
e5566d834616be80ef5caf4c4713421bdde2e1bb
rpi3/src/gpio_switch.c
rpi3/src/gpio_switch.c
#include <stdlib.h> #include <stdio.h> #include <iostream> #include <errno.h> int main (int argc, char* argv[]){ if (argc < 2){ printf("Error, missing arguments\n"); printf("Convention: \n"); printf("./gpio_switch pin value\n"); return EXIT_SUCCESS; }else{ int valueFile; char refPath[256]; sprintf(refPath, "/sys/class/gpio/gpio%s", argv[2]); char valuePath[256]; sprintf(valuePath, "%s/value", refPath); if ((valueFile = open(valuePath)) < 0) { if (errno == ENOENT){ int exportFile; if ((exportFile = open("/sys/class/gpio/export", O_WRONLY)) < 0){ return EXIT_FAILURE; } write(exportFile, argv[1], sizeof(argv[1])); close(exportFile); char directionPath[256]; sprintf(directionPath, "%s/direction", refPath); int directionFile = open(directionPath, O_WRONLY); char* direction = "out"; write(directionFile, direction, sizeof(direction)); close(directionFile); }else{ return EXIT_FAILURE; } } write(valuePath, argv[2], sizeof(argv[2])); close(valueFile); } }
Add GPIO Switch first implementation
Add GPIO Switch first implementation
C
mit
pblottiere/dominus,pblottiere/dominus
b6c2b3c712ab2b879b727fdb02dba169695de698
src/host/os_isfile.c
src/host/os_isfile.c
/** * \file os_isfile.c * \brief Returns true if the given file exists on the file system. * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project */ #include <sys/stat.h> #include "premake.h" int os_isfile(lua_State* L) { const char* filename = luaL_checkstring(L, 1); lua_pushboolean(L, do_isfile(filename)); return 1; } int do_isfile(const char* filename) { struct stat buf; if (stat(filename, &buf) == 0) { return ((buf.st_mode & S_IFDIR) == 0); } else { return 0; } }
/** * \file os_isfile.c * \brief Returns true if the given file exists on the file system. * \author Copyright (c) 2002-2008 Jason Perkins and the Premake project */ #include <sys/stat.h> #include "premake.h" int os_isfile(lua_State* L) { const char* filename = luaL_checkstring(L, 1); lua_pushboolean(L, do_isfile(filename)); return 1; } int do_isfile(const char* filename) { struct stat buf; #if PLATFORM_WINDOWS DWORD attrib = GetFileAttributesA(filename); if (attrib != INVALID_FILE_ATTRIBUTES) { return (attrib & FILE_ATTRIBUTE_DIRECTORY) == 0; } #else if (stat(filename, &buf) == 0) { return ((buf.st_mode & S_IFDIR) == 0); } #endif return 0; }
Fix do_isfile to support symbolic links on Windows.
Fix do_isfile to support symbolic links on Windows.
C
bsd-3-clause
mendsley/premake-core,noresources/premake-core,CodeAnxiety/premake-core,bravnsgaard/premake-core,starkos/premake-core,bravnsgaard/premake-core,mendsley/premake-core,TurkeyMan/premake-core,premake/premake-core,noresources/premake-core,resetnow/premake-core,noresources/premake-core,noresources/premake-core,starkos/premake-core,Blizzard/premake-core,Blizzard/premake-core,LORgames/premake-core,mandersan/premake-core,mandersan/premake-core,tvandijck/premake-core,dcourtois/premake-core,dcourtois/premake-core,soundsrc/premake-core,aleksijuvani/premake-core,Blizzard/premake-core,sleepingwit/premake-core,mandersan/premake-core,LORgames/premake-core,lizh06/premake-core,LORgames/premake-core,sleepingwit/premake-core,soundsrc/premake-core,premake/premake-core,martin-traverse/premake-core,LORgames/premake-core,jstewart-amd/premake-core,aleksijuvani/premake-core,martin-traverse/premake-core,Blizzard/premake-core,starkos/premake-core,sleepingwit/premake-core,xriss/premake-core,mendsley/premake-core,mendsley/premake-core,martin-traverse/premake-core,starkos/premake-core,starkos/premake-core,starkos/premake-core,Zefiros-Software/premake-core,resetnow/premake-core,xriss/premake-core,jstewart-amd/premake-core,tvandijck/premake-core,jstewart-amd/premake-core,noresources/premake-core,noresources/premake-core,martin-traverse/premake-core,premake/premake-core,xriss/premake-core,jstewart-amd/premake-core,resetnow/premake-core,premake/premake-core,dcourtois/premake-core,lizh06/premake-core,bravnsgaard/premake-core,dcourtois/premake-core,sleepingwit/premake-core,soundsrc/premake-core,tvandijck/premake-core,aleksijuvani/premake-core,aleksijuvani/premake-core,mandersan/premake-core,Zefiros-Software/premake-core,Zefiros-Software/premake-core,noresources/premake-core,dcourtois/premake-core,resetnow/premake-core,bravnsgaard/premake-core,premake/premake-core,lizh06/premake-core,tvandijck/premake-core,jstewart-amd/premake-core,mendsley/premake-core,Zefiros-Software/premake-core,CodeAnxiety/premake-core,tvandijck/premake-core,TurkeyMan/premake-core,sleepingwit/premake-core,CodeAnxiety/premake-core,soundsrc/premake-core,TurkeyMan/premake-core,CodeAnxiety/premake-core,Blizzard/premake-core,dcourtois/premake-core,bravnsgaard/premake-core,starkos/premake-core,CodeAnxiety/premake-core,Zefiros-Software/premake-core,TurkeyMan/premake-core,LORgames/premake-core,lizh06/premake-core,resetnow/premake-core,dcourtois/premake-core,premake/premake-core,aleksijuvani/premake-core,mandersan/premake-core,Blizzard/premake-core,premake/premake-core,TurkeyMan/premake-core,xriss/premake-core,xriss/premake-core,soundsrc/premake-core
b7ce10aacc06b17d1e47c6da0d00a570e8517566
kmail/kmversion.h
kmail/kmversion.h
// KMail Version Information // #ifndef kmversion_h #define kmversion_h #define KMAIL_VERSION "1.8.91" #endif /*kmversion_h*/
// KMail Version Information // #ifndef kmversion_h #define kmversion_h #define KMAIL_VERSION "1.9.50" #endif /*kmversion_h*/
Use a fresh version number for the trunk version
Use a fresh version number for the trunk version svn path=/trunk/KDE/kdepim/; revision=466318
C
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
f7ee1dbbeb58a7d59fde269e7f11ffbf2e3e9e4a
src/lib/annis/join/nestedloop.h
src/lib/annis/join/nestedloop.h
#pragma once #include <annis/types.h> #include <annis/graphstorage/graphstorage.h> #include <annis/db.h> #include <annis/iterators.h> namespace annis { class Operator; /** * A join that checks all combinations of the left and right matches if their are connected. * * @param lhsIdx the column of the LHS tuple to join on * @param rhsIdx the column of the RHS tuple to join on */ class NestedLoopJoin : public Iterator { public: NestedLoopJoin(std::shared_ptr<Operator> op, std::shared_ptr<Iterator> lhs, std::shared_ptr<Iterator> rhs, size_t lhsIdx, size_t rhsIdx, bool materializeInner=true, bool leftIsOuter=true); virtual ~NestedLoopJoin(); virtual bool next(std::vector<Match>& tuple) override; virtual void reset() override; private: std::shared_ptr<Operator> op; const bool materializeInner; const bool leftIsOuter; bool initialized; std::vector<Match> matchOuter; std::vector<Match> matchInner; std::shared_ptr<Iterator> outer; std::shared_ptr<Iterator> inner; const size_t outerIdx; const size_t innerIdx; bool firstOuterFinished; std::list<std::vector<Match>> innerCache; std::list<std::vector<Match>>::const_iterator itInnerCache; private: bool fetchNextInner(); }; } // end namespace annis
#pragma once #include <annis/types.h> #include <annis/graphstorage/graphstorage.h> #include <annis/db.h> #include <annis/iterators.h> #include <deque> namespace annis { class Operator; /** * A join that checks all combinations of the left and right matches if their are connected. * * @param lhsIdx the column of the LHS tuple to join on * @param rhsIdx the column of the RHS tuple to join on */ class NestedLoopJoin : public Iterator { public: NestedLoopJoin(std::shared_ptr<Operator> op, std::shared_ptr<Iterator> lhs, std::shared_ptr<Iterator> rhs, size_t lhsIdx, size_t rhsIdx, bool materializeInner=true, bool leftIsOuter=true); virtual ~NestedLoopJoin(); virtual bool next(std::vector<Match>& tuple) override; virtual void reset() override; private: std::shared_ptr<Operator> op; const bool materializeInner; const bool leftIsOuter; bool initialized; std::vector<Match> matchOuter; std::vector<Match> matchInner; std::shared_ptr<Iterator> outer; std::shared_ptr<Iterator> inner; const size_t outerIdx; const size_t innerIdx; bool firstOuterFinished; std::deque<std::vector<Match>> innerCache; std::deque<std::vector<Match>>::const_iterator itInnerCache; private: bool fetchNextInner(); }; } // end namespace annis
Use a deque instead of a list as inner cache in nested loop.
Use a deque instead of a list as inner cache in nested loop.
C
apache-2.0
thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS,thomaskrause/graphANNIS
19697a3e104e0152c5e7a121c8cb1b5031fef145
tests/regression/01-cpa/57-def_exc-interval-inconsistent.c
tests/regression/01-cpa/57-def_exc-interval-inconsistent.c
// PARAM: --enable ana.int.def_exc --enable ana.int.interval --enable ana.sv-comp.functions --set sem.int.signed_overflow assume_none --set ana.int.refinement never // used to crash in branch when is_bool returned true, but to_bool returned None on (0,[1,1]) // manually minimized from sv-benchmarks/c/recursive/MultCommutative-2.c extern int __VERIFIER_nondet_int(void); void f(int m) { if (m < 0) { f(-m); } if (m == 0) { return; } f(m - 1); } int main() { int m = __VERIFIER_nondet_int(); if (m < 0 || m > 1) { return 0; } f(m); // m=[0,1] return 0; }
Add test with inconsistent IntDomain crash
Add test with inconsistent IntDomain crash
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
3e6389f02a1cbd5e08f74f4ba362874ecefbe596
src/win32/timer_win.c
src/win32/timer_win.c
/* *The MIT License (MIT) * * Copyright (c) <2017> <Stephan Gatzka> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include "eventloop.h" #include "timer.h" int cjet_timer_init(struct cjet_timer *timer, struct eventloop *loop) { return 0; } void cjet_timer_destroy(struct cjet_timer *timer) { }
Add stub for windows timer implementation.
Add stub for windows timer implementation.
C
mit
mloy/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet
72ff7ba9c9ed6436625c27b2616d1efb0f782a0a
Pathfinder-Core/include/pathfinder.h
Pathfinder-Core/include/pathfinder.h
#ifndef PATHFINDER_H_DEF #define PATHFINDER_H_DEF #include "pathfinder/mathutil.h" #include "pathfinder/structs.h" #include "pathfinder/fit.h" #include "pathfinder/spline.h" #include "pathfinder/trajectory.h" #include "pathfinder/modifiers/tank.h" #include "pathfinder/modifiers/swerve.h" #include "pathfinder/followers/encoder.h" #include "pathfinder/followers/distance.h" #include "pathfinder/io.h" #endif
#ifndef PATHFINDER_H_DEF #define PATHFINDER_H_DEF #ifdef __cplusplus extern "C" { #endif #include "pathfinder/mathutil.h" #include "pathfinder/structs.h" #include "pathfinder/fit.h" #include "pathfinder/spline.h" #include "pathfinder/trajectory.h" #include "pathfinder/modifiers/tank.h" #include "pathfinder/modifiers/swerve.h" #include "pathfinder/followers/encoder.h" #include "pathfinder/followers/distance.h" #include "pathfinder/io.h" #ifdef __cplusplus } #endif #endif
Use extern C if C++
Use extern C if C++
C
mit
JacisNonsense/Pathfinder,JacisNonsense/Pathfinder,JacisNonsense/Pathfinder
0cc0c5734bad9e48de66f9293ab89f746c150a05
tests/regression/02-base/46-spawn-global-funptrs.c
tests/regression/02-base/46-spawn-global-funptrs.c
#include <pthread.h> #include <assert.h> void foo() { assert(1); } void bar() { assert(1); } void (*funs[2])() = { &foo, &bar }; extern void magic1(); extern void magic2(void (*funs[])()); void *t_fun(void *arg) { // just for going to multithreaded mode return NULL; } int main() { pthread_t id; pthread_create(&id, NULL, t_fun, NULL); // enter multithreaded mode magic1(); // invalidate funs a bit magic2(funs); return 0; }
Add regression test where known functions in unknown AD should be spawned
Add regression test where known functions in unknown AD should be spawned
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
091e1dd907d7605ff96b7c0e3974aa1a88c73f07
tests/regression/02-base/82-eq-no-overflow.c
tests/regression/02-base/82-eq-no-overflow.c
// PARAM: --enable ana.int.interval #include <assert.h> int main() { unsigned long x; x = 0; int b; b = x == 7; // NOWARN if (b) assert(0); // NOWARN (unreachable) else assert(1); // reachable return 0; }
Add unsigned eq emits spurious underflow warning
Add unsigned eq emits spurious underflow warning
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
d3a3e46ba364af0320037a8be3159eb238683e51
linkedLists/addEndNode.c
linkedLists/addEndNode.c
#include<stdio.h> #include"listHelper.h" void makeNode(struct linkList **head, struct linkList **tail, int dat) { struct linkList *curr; curr = (struct linkList*)malloc(sizeof(struct linkList)); curr->data = dat; curr->next = NULL; if(*head == NULL) *head = *tail = curr; else { (*tail)->next = curr; *tail = curr; } } void main() { int dat; struct linkList *head, *tail; tail = head = NULL; for (dat = 1; dat <= 21; dat++) makeNode(&head, &tail, dat); displayList(head); displayList(head); free(head); }
Append node to end of the list.
Append node to end of the list.
C
mit
vidya-ranganathan/algorithms
014e2375fa4b73feb98cea3a4d69700c4df32514
ios/Utils/RNSVGVectorEffect.h
ios/Utils/RNSVGVectorEffect.h
/** * Copyright (c) 2015-present, react-native-community. * All rights reserved. * * This source code is licensed under the MIT-style license found in the * LICENSE file in the root directory of this source tree. */ typedef CF_ENUM(int32_t, RNSVGVectorEffect) { kRNSVGVectorEffectDefault, kRNSVGVectorEffectNonScalingStroke, kRNSVGVectorEffectInherit, kRNSVGVectorEffectUri };
Implement vectorEffect nonScalingStroke / non-scaling-stroke
[ios] Implement vectorEffect nonScalingStroke / non-scaling-stroke Add missing header file
C
mit
msand/react-native-svg,react-native-community/react-native-svg,magicismight/react-native-art-svg,magicismight/react-native-svg,magicismight/react-native-svg,msand/react-native-svg,magicismight/react-native-svg,magicismight/react-native-art-svg,magicismight/react-native-svg,msand/react-native-svg,msand/react-native-svg,react-native-community/react-native-svg,magicismight/react-native-svg,react-native-community/react-native-svg,react-native-community/react-native-svg,react-native-community/react-native-svg
c5bac4e6a4c55baedd93abb0b9e0ad0dcc93a2f3
macos/compat/sys/types.h
macos/compat/sys/types.h
#ifndef __SYS_TYPES_H__ #define __SYS_TYPES_H__ 1 #include <MacTypes.h> #include <alloca.h> #include <string.h> typedef short int16_t; typedef long int32_t; typedef long long int64_t; #define vorbis_size32_t long #if defined(__cplusplus) extern "C" { #endif #pragma options align=power char *strdup(const char *inStr); #pragma options align=reset #if defined(__cplusplus) } #endif #endif /* __SYS_TYPES_H__ */
#ifndef __SYS_TYPES_H__ #define __SYS_TYPES_H__ 1 #include <MacTypes.h> #include <alloca.h> #include <string.h> typedef short int16_t; // typedef long int32_t; typedef long long int64_t; #define vorbis_size32_t long #if defined(__cplusplus) extern "C" { #endif #pragma options align=power char *strdup(const char *inStr); #pragma options align=reset #if defined(__cplusplus) } #endif #endif /* __SYS_TYPES_H__ */
Fix osx build (this is going to be removed soon anyways)
Fix osx build (this is going to be removed soon anyways)
C
bsd-3-clause
jhotovy/libvorbis,jhotovy/libvorbis,jhotovy/libvorbis,jhotovy/libvorbis,jhotovy/libvorbis