file_path
stringlengths
11
219
num_changed_lines
int64
0
58.4k
code
stringlengths
0
3.52M
repo_name
stringclasses
25 values
commit_date
stringdate
2017-01-24 00:00:00
2017-01-28 00:00:00
sha
stringclasses
25 values
dist/vue.min.js
5
/*! * Vue.js v2.1.10 * (c) 2014-2017 Evan You * Released under the MIT License. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";function e(e){return null==e?"":"object"==typeof e?JSON.st...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/compiler/directives/model.js
127
/* @flow */ /** * Cross-platform code generation for component v-model */ export function genComponentModel ( el: ASTElement, value: string, modifiers: ?ASTModifiers ): ?boolean { const { number, trim } = modifiers || {} let valueExpression = 'value' if (trim) { valueExpression = `(typeof value === ...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/platforms/weex/runtime/modules/transition.js
265
import { warn } from 'core/util/debug' import { extend, once, noop } from 'shared/util' import { activeInstance } from 'core/instance/lifecycle' import { resolveTransition } from 'web/runtime/transition-util' export default { create: enter, activate: enter, remove: leave } function enter (_, vnode) { const el...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/platforms/weex/runtime/components/transition-group.js
148
import { warn, extend } from 'core/util/index' import { transitionProps, extractTransitionData } from './transition' const props = extend({ tag: String, moveClass: String }, transitionProps) delete props.mode export default { props, created () { const dom = this.$requireWeexModule('dom') this.getPos...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/entries/weex-factory.js
6
// this entry is built and wrapped with a factory function // used to generate a fresh copy of Vue for every Weex instance. import Vue from 'weex/runtime/index' exports.Vue = Vue
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
test/unit/modules/vdom/modules/events.spec.js
99
import { patch } from 'web/runtime/patch' import VNode from 'core/vdom/vnode' describe('vdom events module', () => { it('should attach event handler to element', () => { const click = jasmine.createSpy() const vnode = new VNode('a', { on: { click }}) const elm = patch(null, vnode) document.body.appe...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
dist/vue.runtime.min.js
4
/*! * Vue.js v2.1.10 * (c) 2014-2017 Evan You * Released under the MIT License. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){"use strict";function t(t){return null==t?"":"object"==typeof t?JSON.st...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/core/instance/render-helpers/render-static.js
60
/* @flow */ import { cloneVNode, cloneVNodes } from 'core/vdom/vnode' /** * Runtime helper for rendering static trees. */ export function renderStatic ( index: number, isInFor?: boolean ): VNode | Array<VNode> { let tree = this._staticTrees[index] // if has already-rendered static tree and not inside v-for,...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/server/render-context.js
109
/* @flow */ type RenderState = { type: 'Element'; rendered: number; total: number; endTag: string; children: Array<VNode>; } | { type: 'Component'; prevActive: Component; } | { type: 'ComponentWithCache'; buffer: Array<string>; bufferIndex: number; key: string; }; export class RenderContext { ...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/core/components/keep-alive.js
52
/* @flow */ import { callHook } from 'core/instance/lifecycle' import { getFirstComponentChild } from 'core/vdom/helpers/index' const patternTypes = [String, RegExp] function getComponentName (opts: ?VNodeComponentOptions): ?string { return opts && (opts.Ctor.options.name || opts.tag) } function matches (pattern:...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/core/instance/render-helpers/bind-object-props.js
39
/* @flow */ import config from 'core/config' import { isObject, warn, toObject } from 'core/util/index' /** * Runtime helper for merging v-bind="object" into a VNode's data. */ export function bindObjectProps ( data: any, tag: string, value: any, asProp?: boolean ): VNodeData { if (value) { if (!isObj...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
test/unit/features/options/_scopeId.spec.js
28
import Vue from 'vue' describe('Options _scopeId', () => { it('should add scopeId attributes', () => { const vm = new Vue({ _scopeId: 'foo', template: '<div><p><span></span></p></div>' }).$mount() expect(vm.$el.hasAttribute('foo')).toBe(true) expect(vm.$el.children[0].hasAttribute('foo'))...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/core/vdom/helpers/update-listeners.js
47
/* @flow */ import { cached } from 'shared/util' import { warn } from 'core/util/index' const normalizeEvent = cached((name: string): { name: string, once: boolean, capture: boolean } => { const once = name.charAt(0) === '~' // Prefixed last, checked first name = once ? name.slice(1) : name const capture ...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/core/instance/render-helpers/render-slot.js
34
/* @flow */ import { extend, warn } from 'core/util/index' /** * Runtime helper for rendering <slot> */ export function renderSlot ( name: string, fallback: ?Array<VNode>, props: ?Object, bindObject: ?Object ): ?Array<VNode> { const scopedSlotFn = this.$scopedSlots[name] if (scopedSlotFn) { // scoped sl...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/core/instance/render-helpers/resolve-slots.js
50
/* @flow */ /** * Runtime helper for resolving raw children VNodes into a slot object. */ export function resolveSlots ( children: ?Array<VNode>, context: ?Component ): { [key: string]: Array<VNode> } { const slots = {} if (!children) { return slots } const defaultSlot = [] let name, child for (l...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/core/instance/render-helpers/render-list.js
32
/* @flow */ import { isObject } from 'core/util/index' /** * Runtime helper for rendering v-for lists. */ export function renderList ( val: any, render: () => VNode ): ?Array<VNode> { let ret: ?Array<VNode>, i, l, keys, key if (Array.isArray(val) || typeof val === 'string') { ret = new Array(val.length)...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/core/instance/render-helpers/resolve-filter.js
10
/* @flow */ import { identity, resolveAsset } from 'core/util/index' /** * Runtime helper for resolving filters */ export function resolveFilter (id: string): Function { return resolveAsset(this.$options, 'filters', id, true) || identity }
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/platforms/weex/runtime/components/transition.js
9
// reuse same transition component logic from web export { transitionProps, extractTransitionData } from 'web/runtime/components/transition' import Transition from 'web/runtime/components/transition' export default Transition
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/core/instance/render-helpers/check-keycodes.js
19
/* @flow */ import config from 'core/config' /** * Runtime helper for checking keyCodes from config. */ export function checkKeyCodes ( eventKeyCode: number, key: string, builtInAlias: number | Array<number> | void ): boolean { const keyCodes = config.keyCodes[key] || builtInAlias if (Array.isArray(keyCod...
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
src/platforms/weex/runtime/components/index.js
7
import Transition from './transition' import TransitionGroup from './transition-group' export default { Transition, TransitionGroup }
vuejs_vue
2017-01-25
af1ec1ba99b8312777770d21e9b2aded6e5944e3
drivers/gles3/rasterizer_storage_gles3.cpp
6,501
#include "rasterizer_storage_gles3.h" #include "rasterizer_canvas_gles3.h" #include "rasterizer_scene_gles3.h" #include "globals.h" /* TEXTURE API */ #define _EXT_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00 #define _EXT_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01 #define _EXT_COMPRESSED_RGBA...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio/effects/audio_effect_delay.cpp
326
#include "audio_effect_delay.h" #include "servers/audio_server.h" #include "math_funcs.h" void AudioEffectDelayInstance::process(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count) { int todo = p_frame_count; while(todo) { int to_mix = MIN(todo,256); //can't mix too much _process_chunk...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
scene/audio/audio_player.cpp
301
#include "audio_player.h" void AudioPlayer::_mix_audio() { if (!stream_playback.is_valid()) { return; } if (!active) { return; } if (setseek>=0.0) { stream_playback->start(setseek); setseek=-1.0; //reset seek } int bus_index = AudioServer::get_singleton()->thread_find_bus_index(bus); //get data ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
thirdparty/zlib/gzlib.c
637
/* gzlib.c -- zlib functions common to reading and writing gzip files * Copyright (C) 2004-2017 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ #include "gzguts.h" #if defined(_WIN32) && !defined(__BORLANDC__) && !defined(__MINGW32__) # define LSEEK _lseeki64 #else #if defin...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/visual/visual_server_scene.cpp
3,612
#include "visual_server_scene.h" #include "visual_server_global.h" #include "os/os.h" /* CAMERA API */ RID VisualServerScene::camera_create() { Camera * camera = memnew( Camera ); return camera_owner.make_rid( camera ); } void VisualServerScene::camera_set_perspective(RID p_camera,float p_fovy_degrees, float ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
main/tests/test_shader_lang.cpp
361
/*************************************************************************/ /* test_shader_lang.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
thirdparty/stb_vorbis/stb_vorbis.c
5,399
// Ogg Vorbis audio decoder - v1.09 - public domain // http://nothings.org/stb_vorbis/ // // Original version written by Sean Barrett in 2007. // // Originally sponsored by RAD Game Tools. Seeking sponsored // by Phillip Bennefall, Marc Andersen, Aaron Baker, Elias Software, // Aras Pranckevicius, and Sean Barrett. // ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
drivers/gles3/rasterizer_scene_gles3.cpp
5,014
#include "rasterizer_scene_gles3.h" #include "globals.h" #include "os/os.h" #include "rasterizer_canvas_gles3.h" #ifdef IPHONE_ENABLED // for some reason glClearDepth seems to have been removed in iOS ES3.h #define glClearDepth glClearDepthf #endif static const GLenum _cube_side_enum[6]={ GL_TEXTURE_CUBE_MAP_NEGATI...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio/effects/audio_effect_pitch_shift.cpp
298
#include "audio_effect_pitch_shift.h" #include "servers/audio_server.h" #include "math_funcs.h" /**************************************************************************** * * NAME: smbPitchShift.cpp * VERSION: 1.2 * HOME URL: http://blogs.zynaptiq.com/bernsee * KNOWN BUGS: none * * SYNOPSIS: Routine for doing pitch ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
thirdparty/zlib/gzread.c
654
/* gzread.c -- zlib functions for reading gzip files * Copyright (C) 2004, 2005, 2010, 2011, 2012, 2013, 2016 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ #include "gzguts.h" /* Local functions */ local int gz_load OF((gz_statep, unsigned char *, unsigned, unsigned *)); lo...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
thirdparty/glad/glad.c
1,818
/* OpenGL loader generated by glad 0.1.13a0 on Fri Jan 6 19:27:07 2017. Language/Generator: C/C++ Specification: gl APIs: gl=3.3 Profile: compatibility Extensions: GL_ARB_debug_output Loader: True Local files: False Omit khrplatform: False Commandline: --profi...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/visual/visual_server_viewport.cpp
568
#include "visual_server_viewport.h" #include "visual_server_global.h" #include "visual_server_canvas.h" #include "visual_server_scene.h" #include "globals.h" void VisualServerViewport::_draw_viewport(Viewport *p_viewport) { /* Camera should always be BEFORE any other 3D */ #if 0 bool scenario_draw_canvas_bg=false...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
core/os/memory.cpp
144
/*************************************************************************/ /* memory.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio/effects/reverb.cpp
364
// // C++ Interface: reverb // // Description: // // // Author: Juan Linietsky <reduzio@gmail.com>, (C) 2006 // // Copyright: See COPYING file that comes with this distribution // // #include "reverb.h" #include <math.h> #include "math_funcs.h" const float Reverb::comb_tunings[MAX_COMBS]={ //freeverb comb tunings ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
core/safe_refcount.cpp
65
/*************************************************************************/ /* safe_refcount.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
scene/3d/baked_light_instance.cpp
1,735
/*************************************************************************/ /* baked_light_instance.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio/effects/audio_effect_phaser.cpp
148
#include "audio_effect_phaser.h" #include "servers/audio_server.h" #include "math_funcs.h" void AudioEffectPhaserInstance::process(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count) { float sampling_rate = AudioServer::get_singleton()->get_mix_rate(); float dmin = base->range_min / (samplin...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
drivers/gles3/rasterizer_gles3.cpp
366
#include "rasterizer_gles3.h" #include "os/os.h" #include "globals.h" #include "gl_context/context_gl.h" #include <string.h> RasterizerStorage *RasterizerGLES3::get_storage() { return storage; } RasterizerCanvas *RasterizerGLES3::get_canvas() { return canvas; } RasterizerScene *RasterizerGLES3::get_scene() { re...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/visual/shader_language.cpp
3,296
/*************************************************************************/ /* shader_language.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
drivers/gles3/rasterizer_canvas_gles3.cpp
1,533
#include "rasterizer_canvas_gles3.h" #include "os/os.h" #ifdef IPHONE_ENABLED // for some reason glClearDepth seems to have been removed in iOS ES3.h #define glClearDepth glClearDepthf #endif static _FORCE_INLINE_ void store_transform2d(const Transform2D& p_mtx, float* p_array) { p_array[ 0]=p_mtx.elements[0][0]; ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
drivers/windows/rw_lock_windows.cpp
72
#if defined(WINDOWS_ENABLED) #include "os/memory.h" #include "rw_lock_windows.h" #include "error_macros.h" #include <stdio.h> void RWLockWindows::read_lock() { AcquireSRWLockShared(&lock); } void RWLockWindows::read_unlock() { ReleaseSRWLockShared(&lock); } Error RWLockWindows::read_try_lock() { if (TryAcqu...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio/effects/audio_effect_chorus.cpp
365
#include "audio_effect_chorus.h" #include "servers/audio_server.h" #include "math_funcs.h" void AudioEffectChorusInstance::process(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count) { int todo = p_frame_count; while(todo) { int to_mix = MIN(todo,256); //can't mix too much _process_chu...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
drivers/unix/rw_lock_posix.cpp
77
#if defined(UNIX_ENABLED) || defined(PTHREAD_ENABLED) #include "os/memory.h" #include "rw_lock_posix.h" #include "error_macros.h" #include <stdio.h> void RWLockPosix::read_lock() { int err =pthread_rwlock_rdlock(&rwlock); if (err!=0) { perror("wtf: "); } ERR_FAIL_COND(err!=0); } void RWLockPosix::read_unlock...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
scene/resources/sky_box.cpp
159
#include "sky_box.h" #include "io/image_loader.h" void SkyBox::set_radiance_size(RadianceSize p_size) { ERR_FAIL_INDEX(p_size,RADIANCE_SIZE_MAX); radiance_size=p_size; _radiance_changed(); } SkyBox::RadianceSize SkyBox::get_radiance_size() const { return radiance_size; } void SkyBox::_bind_methods() { Class...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/visual/visual_server_canvas.cpp
1,270
#include "visual_server_canvas.h" #include "visual_server_global.h" #include "visual_server_viewport.h" void VisualServerCanvas::_render_canvas_item_tree(Item *p_canvas_item, const Transform2D& p_transform, const Rect2& p_clip_rect, const Color& p_modulate, RasterizerCanvas::Light *p_lights) { static const int z_ra...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio/effects/audio_effect_distortion.cpp
171
#include "audio_effect_distortion.h" #include "servers/audio_server.h" #include "math_funcs.h" void AudioEffectDistortionInstance::process(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count) { const float *src = (const float*)p_src_frames; float *dst = (float*)p_dst_frames; //float lpf_c=...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
scene/resources/material.cpp
1,102
/*************************************************************************/ /* material.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/visual_server.cpp
1,301
/*************************************************************************/ /* visual_server.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
thirdparty/zlib/uncompr.c
74
/* uncompr.c -- decompress a memory buffer * Copyright (C) 1995-2003, 2010, 2014, 2016 Jean-loup Gailly, Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ /* @(#) $Id$ */ #define ZLIB_INTERNAL #include "zlib.h" /* ===============================================================...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
tools/editor/editor_audio_buses.cpp
1,192
#include "editor_audio_buses.h" #include "editor_node.h" #include "servers/audio_server.h" #include "os/keyboard.h" #include "io/resource_saver.h" #include "filesystem_dock.h" void EditorAudioBus::_notification(int p_what) { if (p_what==NOTIFICATION_READY) { vu_l->set_under_texture(get_icon("BusVuEmpty","EditorIc...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio/effects/audio_effect_filter.cpp
151
#include "audio_effect_filter.h" #include "servers/audio_server.h" template<int S> void AudioEffectFilterInstance::_process_filter(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count) { for(int i=0;i<p_frame_count;i++) { float f = p_src_frames[i].l; filter_process[0][0].process_one(f); if...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
scene/gui/viewport_container.cpp
103
#include "viewport_container.h" #include "scene/main/viewport.h" Size2 ViewportContainer::get_minimum_size() const { if (stretch) return Size2(); Size2 ms; for(int i=0;i<get_child_count();i++) { Viewport *c = get_child(i)->cast_to<Viewport>(); if (!c) continue; Size2 minsize = c->get_size(); ms.widt...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/register_server_types.cpp
73
/*************************************************************************/ /* register_server_types.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
scene/3d/gi_probe.cpp
1,406
#include "gi_probe.h" #include "mesh_instance.h" void GIProbeData::set_bounds(const Rect3& p_bounds) { VS::get_singleton()->gi_probe_set_bounds(probe,p_bounds); } Rect3 GIProbeData::get_bounds() const{ return VS::get_singleton()->gi_probe_get_bounds(probe); } void GIProbeData::set_cell_size(float p_size) { VS...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio_server.cpp
1,174
/*************************************************************************/ /* audio_server.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/visual/shader_types.cpp
182
#include "shader_types.h" const Map< StringName, Map<StringName,ShaderLanguage::DataType> >& ShaderTypes::get_functions(VS::ShaderMode p_mode) { return shader_modes[p_mode].functions; } const Set<String>& ShaderTypes::get_modes(VS::ShaderMode p_mode) { return shader_modes[p_mode].modes; } ShaderTypes *ShaderTy...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio/effects/audio_effect_stereo_enhance.cpp
135
#include "audio_effect_stereo_enhance.h" #include "servers/audio_server.h" void AudioEffectStereoEnhanceInstance::process(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count) { float intensity=base->pan_pullout; bool surround_mode=base->surround>0; float surround_amount=base->surround; unsig...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio/effects/audio_effect_reverb.cpp
182
#include "audio_effect_reverb.h" #include "servers/audio_server.h" void AudioEffectReverbInstance::process(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count) { for(int i=0;i<2;i++) { Reverb &r=reverb[i]; r.set_predelay( base->predelay); r.set_predelay_feedback( base->predelay_fb ); r....
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
drivers/gles3/shader_gles3.cpp
839
/*************************************************************************/ /* shader_gles2.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
modules/stb_vorbis/audio_stream_ogg_vorbis.cpp
236
#include "audio_stream_ogg_vorbis.h" #include "thirdparty/stb_vorbis/stb_vorbis.c" #include "os/file_access.h" void AudioStreamPlaybackOGGVorbis::_mix_internal(AudioFrame* p_buffer,int p_frames) { ERR_FAIL_COND(!active); int todo=p_frames; while(todo) { int mixed = stb_vorbis_get_samples_float_interleaved(o...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
scene/3d/reflection_probe.cpp
268
#include "reflection_probe.h" void ReflectionProbe::set_intensity(float p_intensity) { intensity=p_intensity; VS::get_singleton()->reflection_probe_set_intensity(probe,p_intensity); } float ReflectionProbe::get_intensity() const{ return intensity; } void ReflectionProbe::set_interior_ambient(Color p_ambient) ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
drivers/gles3/shader_compiler_gles3.cpp
738
#include "shader_compiler_gles3.h" #include "os/os.h" #define SL ShaderLanguage static String _mktab(int p_level) { String tb; for(int i=0;i<p_level;i++) { tb+="\t"; } return tb; } static String _typestr(SL::DataType p_type) { return ShaderLanguage::get_datatype_name(p_type); } static int _get_datatype_si...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
tools/editor/editor_path.cpp
108
/*************************************************************************/ /* editor_path.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
scene/resources/environment.cpp
1,006
/*************************************************************************/ /* environment.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio/effects/eq.cpp
219
// // C++ Interface: eq // // Description: // // // Author: reduzio@gmail.com (C) 2006 // // Copyright: See COPYING file that comes with this distribution // // #include "eq.h" #include <math.h> #include "error_macros.h" #include "math_funcs.h" #define POW2(v) ((v)*(v)) /* Helper */ static int solve_quadratic(double...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio/effects/audio_effect_limiter.cpp
124
#include "audio_effect_limiter.h" void AudioEffectLimiterInstance::process(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count) { float thresh = Math::db2linear(base->treshold); float threshdb = base->treshold; float ceiling = Math::db2linear(base->ceiling); float ceildb = base->ceiling; fl...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio/effects/audio_effect_eq.cpp
122
#include "audio_effect_eq.h" #include "servers/audio_server.h" void AudioEffectEQInstance::process(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count) { int band_count = bands[0].size(); EQ::BandProcess *proc_l = bands[0].ptr(); EQ::BandProcess *proc_r = bands[1].ptr(); float *bgain = gain...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
core/math/matrix3.cpp
281
/*************************************************************************/ /* matrix3.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
thirdparty/zlib/gzwrite.c
665
/* gzwrite.c -- zlib functions for writing gzip files * Copyright (C) 2004-2017 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ #include "gzguts.h" /* Local functions */ local int gz_init OF((gz_statep)); local int gz_comp OF((gz_statep, int)); local int gz_zero OF((gz_statep...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
servers/audio/effects/audio_effect_compressor.cpp
227
#include "audio_effect_compressor.h" #include "servers/audio_server.h" void AudioEffectCompressorInstance::process(const AudioFrame *p_src_frames,AudioFrame *p_dst_frames,int p_frame_count) { float treshold = Math::db2linear(base->treshold); float sample_rate=AudioServer::get_singleton()->get_mix_rate(); float r...
godotengine_godot
2017-01-27
7a85d25218971506058a992d21821b47e153ec78
ext/misc/sha1.c
399
/* ** 2017-01-27 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** **************************...
sqlite_sqlite
2017-01-28
2d2e4f389584fec0b27100107b18bb835ddeba94
test/wordcount.c
284
/* ** This C program extracts all "words" from an input document and adds them ** to an SQLite database. A "word" is any contiguous sequence of alphabetic ** characters. All digits, punctuation, and whitespace characters are ** word separators. The database stores a single entry for each distinct ** word together w...
sqlite_sqlite
2017-01-28
2d2e4f389584fec0b27100107b18bb835ddeba94
lib/StaticAnalyzer/Checkers/IteratorPastEndChecker.cpp
842
//===-- IteratorPastEndChecker.cpp --------------------------------*- C++ -*--// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_distribute_simd_misc_messages.c
312
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target teams distribute simd'}} #pragma omp target teams distribute simd // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target teams distribute simd'}} #pragma omp target teams distrib...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_parallel_for_is_device_ptr_messages.cpp
311
// RUN: %clang_cc1 -std=c++11 -verify -fopenmp %s struct ST { int *a; }; typedef int arr[10]; typedef ST STarr[10]; typedef struct { int a; } S; struct SA { const int d = 5; const int da[5] = { 0 }; ST e; ST g[10]; STarr &rg = g; int i; int &j = i; int *k = &j; int *&z = k; int aa[10]; arr &r...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_parallel_for_simd_is_device_ptr_ast_print.cpp
318
// RUN: %clang_cc1 -verify -fopenmp -std=c++11 -ast-print %s | FileCheck %s // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -emit-pch -o %t %s // RUN: %clang_cc1 -fopenmp -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s // expected-no-diagnostics #ifndef HEADER #define HEADER struct ST { i...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/SemaCXX/diagnose_if.cpp
669
// RUN: %clang_cc1 %s -verify -fno-builtin -std=c++14 #define _diagnose_if(...) __attribute__((diagnose_if(__VA_ARGS__))) using size_t = decltype(sizeof(int)); namespace type_dependent { template <typename T> void neverok() _diagnose_if(!T(), "oh no", "error") {} // expected-note 4{{from 'diagnose_if'}} template <t...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_distribute_parallel_for_simd_misc_messages.c
312
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target teams distribute parallel for simd'}} #pragma omp target teams distribute parallel for simd // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target teams distribute parallel for s...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_parallel_codegen.cpp
802
// Test host codegen. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CHECK --check-prefix CHECK-64 // RUN: %clang_cc1 -fopenmp -fopenmp-version=45 -x c++ -std=c++11 -triple pow...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_codegen.cpp
802
// Test host codegen. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CHECK --check-prefix CHECK-64 // RUN: %clang_cc1 -fopenmp -fopenmp-version=45 -x c++ -std=c++11 -triple pow...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_distribute_parallel_for_simd_map_messages.cpp
281
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s void foo() { } bool foobool(int argc) { return argc; } struct S1; // expected-note 2 {{declared here}} extern S1 a; class S2 { mutable int a; public: S2():a(0) { } S2(S2 &s2):a(s2.a) { } static float S2s; // expected-note 4 {{mappable type cannot con...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_distribute_simd_is_device_ptr_messages.cpp
337
// RUN: %clang_cc1 -std=c++11 -verify -fopenmp %s struct ST { int *a; }; typedef int arr[10]; typedef ST STarr[10]; struct SA { const int d = 5; const int da[5] = { 0 }; ST e; ST g[10]; STarr &rg = g; int i; int &j = i; int *k = &j; int *&z = k; int aa[10]; arr &raa = aa; void func(int arg) { ...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_distribute_simd_loop_messages.cpp
627
// RUN: %clang_cc1 -fsyntax-only -fopenmp -x c++ -std=c++11 -fexceptions -fcxx-exceptions -verify %s class S { int a; S() : a(0) {} public: S(int v) : a(v) {} S(const S &s) : a(s.a) {} }; static int sii; // expected-note@+1 {{defined as threadprivate or thread local}} #pragma omp threadprivate(sii) static in...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_distribute_parallel_for_simd_is_device_ptr_ast_print.cpp
318
// RUN: %clang_cc1 -verify -fopenmp -std=c++11 -ast-print %s | FileCheck %s // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -emit-pch -o %t %s // RUN: %clang_cc1 -fopenmp -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s // expected-no-diagnostics #ifndef HEADER #define HEADER struct ST { i...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/distribute_private_codegen.cpp
206
// RUN: %clang_cc1 -DLAMBDA -verify -fopenmp -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix LAMBDA --check-prefix LAMBDA-64 // RUN: %clang_cc1 -DLAMBDA -fopenmp -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopen...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_parallel_for_is_device_ptr_ast_print.cpp
315
// RUN: %clang_cc1 -verify -fopenmp -std=c++11 -ast-print %s | FileCheck %s // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -emit-pch -o %t %s // RUN: %clang_cc1 -fopenmp -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s // expected-no-diagnostics #ifndef HEADER #define HEADER void foo() {} ...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/nvptx_target_parallel_codegen.cpp
136
// Test target codegen - host bc file has to be created first. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc %s -o %t-ppc-host.bc // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple nvptx64-unknown...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
590
//===---- CGOpenMPRuntimeNVPTX.cpp - Interface to OpenMP NVPTX Runtimes ---===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/nvptx_target_teams_codegen.cpp
222
// Test target codegen - host bc file has to be created first. // RUN: %clang_cc1 -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc %s -o %t-ppc-host.bc // RUN: %clang_cc1 -verify -fopenmp -x c++ -triple nvptx64-unknown-unknown -fopenmp-targets=nvptx64-nvidia...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_distribute_simd_is_device_ptr_ast_print.cpp
318
// RUN: %clang_cc1 -verify -fopenmp -std=c++11 -ast-print %s | FileCheck %s // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -emit-pch -o %t %s // RUN: %clang_cc1 -fopenmp -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s // expected-no-diagnostics #ifndef HEADER #define HEADER struct ST { i...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_distribute_parallel_for_simd_loop_messages.cpp
627
// RUN: %clang_cc1 -fsyntax-only -fopenmp -x c++ -std=c++11 -fexceptions -fcxx-exceptions -verify %s class S { int a; S() : a(0) {} public: S(int v) : a(v) {} S(const S &s) : a(s.a) {} }; static int sii; // expected-note@+1 {{defined as threadprivate or thread local}} #pragma omp threadprivate(sii) static in...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
lib/Format/BreakableToken.cpp
520
//===--- BreakableToken.cpp - Format C++ code -----------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_distribute_parallel_for_simd_schedule_messages.cpp
143
// RUN: %clang_cc1 -verify -fopenmp %s void foo() { } bool foobool(int argc) { return argc; } struct S1; // expected-note {{declared here}} template <class T, typename S, int N, int ST> // expected-note {{declared here}} T tmain(T argc, S **argv) { // expected-error@+1 {{expected '(' after 'schedule'}} #pragma om...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/nvptx_parallel_codegen.cpp
317
// Test target codegen - host bc file has to be created first. // RUN: %clang_cc1 -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc %s -o %t-ppc-host.bc // RUN: %clang_cc1 -verify -fopenmp -x c++ -triple nvptx64-unknown-unknown -fopenmp-targets=nvptx64-nvidia...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_distribute_parallel_for_simd_collapse_messages.cpp
149
// RUN: %clang_cc1 -verify -fopenmp %s // RUN: %clang_cc1 -verify -fopenmp %s -std=c++98 // RUN: %clang_cc1 -verify -fopenmp %s -std=c++11 void foo() { } #if __cplusplus >= 201103L // expected-note@+2 4 {{declared here}} #endif bool foobool(int argc) { return argc; } struct S1; // expected-note {{declared here}} ...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_distribute_simd_aligned_messages.cpp
231
// RUN: %clang_cc1 -x c++ -std=c++11 -verify -fopenmp %s struct B { static int ib[20]; // expected-note 0 {{'B::ib' declared here}} static constexpr int bfoo() { return 8; } }; namespace X { B x; // expected-note {{'x' defined here}} }; constexpr int bfoo() { return 4; } int **z; const int C1 = 1; const int C2 ...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_parallel_if_codegen.cpp
413
// Test host codegen. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CHECK --check-prefix CHECK-64 // RUN: %clang_cc1 -fopenmp -fopenmp-version=45 -x c++ -std=c++11 -triple pow...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_distribute_parallel_for_simd_aligned_messages.cpp
231
// RUN: %clang_cc1 -x c++ -std=c++11 -verify -fopenmp %s struct B { static int ib[20]; // expected-note 0 {{'B::ib' declared here}} static constexpr int bfoo() { return 8; } }; namespace X { B x; // expected-note {{'x' defined here}} }; constexpr int bfoo() { return 4; } int **z; const int C1 = 1; const int C2 ...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_thread_limit_codegen.cpp
357
// Test host codegen. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CHECK --check-prefix CHECK-64 // RUN: %clang_cc1 -fopenmp -fopenmp-version=45 -x c++ -std=c++11 -triple pow...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1
test/OpenMP/target_teams_codegen_registration.cpp
437
// Test host codegen. // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck %s // RUN: %clang_cc1 -fopenmp -fopenmp-version=45 -x c++ -std=c++11 -triple powerpc64le-unknown-unknown -fopenmp-targets=pow...
llvm-mirror_clang
2017-01-28
4c2a74ccfd6996fa95da8489e5fcb63aca18a4e1