39+ results for '/memcpy' (0 ms)

Not the results you expected?

particles_data.cpp (https://github.com/Milkyway-at-home/nemo.git) C++ · 181 lines

42 if (m.pos) {

43 pos = (float *) mallocate((char *) pos, sizeof (float) * 3 * (*nbody), true);

44 //memcpy((float *) pos, (float *) m.pos, sizeof(float)* (*nbody) * 3);

45 for (int i=0; i < (*nbody); i++) {

46 pos[i*3] = m.pos[i*3];

52 if (m.vel) {

53 vel = (float *) mallocate((char *) vel, sizeof (float) * 3 * (*nbody), true);

54 //memcpy((float *) vel, (float *) m.vel, sizeof(float)* (*nbody) * 3);

55 for (int i=0; i < (*nbody); i++) {

56 vel[i*3] = m.vel[i*3];

67 if (m.vel_norm) {

68 vel_norm = (float *) mallocate((char *) vel_norm, sizeof (float) * (*nbody), true);

69 //memcpy((float *) vel_norm, (float *) m.vel_norm, sizeof(float)* (*nbody));

70 for (int i=0; i < (*nbody); i++) {

71 vel_norm[i] = m.vel_norm[i];

IntrinsicInst.h (https://bitbucket.org/rlyspn/androidrr.git) C Header · 282 lines

118 };

119

120 /// MemIntrinsic - This is the common base class for memset/memcpy/memmove.

121 ///

122 class MemIntrinsic : public IntrinsicInst {

memcpy-s390.S (https://gitlab.com/Namal/glibc) Assembly · 128 lines

111

112 #define memcpy __memcpy_default

113 #include "../memcpy.S"

114 #undef memcpy

115

make.sh (https://bitbucket.org/jorgenio/libreoffice.git) Shell · 73 lines

60 cc -c -I. -Iunix -Iunix/bsd43 -Iunix/bsd43/vf -O unix/bsd43/setvbuf.c

61 mv setvbuf.o objects

62 cc -c -I. -Iunix -Iunix/bsd43 -Iunix/bsd43/vf -O unix/bsd43/vf/memcpy.c

63 mv memcpy.o objects

64 cc -c -I. -Iunix -Iunix/bsd43 -Iunix/bsd43/vf -O unix/bsd43/vf/vfprintf.c

70 objects/rulparse.o objects/percent.o objects/function.o objects/arlib.o \

71 objects/dirbrk.o objects/rmprq.o objects/ruletab.o objects/runargv.o \

72 objects/dcache.o objects/putenv.o objects/tempnam.o objects/utime.o objects/setvbuf.o objects/memcpy.o objects/vfprintf.o

73 cp unix/bsd43/vf/template.mk startup/config.mk

74

qbytedata_p.h (https://gitlab.com/x33n/phantomjs) C Header · 246 lines

59

60 // this class handles a list of QByteArrays. It is a variant of QRingBuffer

61 // that avoid malloc/realloc/memcpy.

62 class QByteDataBuffer

63 {

200-add_libssp_nonshared.patch (https://gitlab.com/kus/lede-nbd-staging) Patch · 50 lines

25 src/thread/__set_thread_area.c src/thread/$(ARCH)/__set_thread_area.c \

26 src/string/memset.c src/string/$(ARCH)/memset.c \

27 src/string/memcpy.c src/string/$(ARCH)/memcpy.c \

28 - ldso/dlstart.c ldso/dynlink.c

29 + ldso/dlstart.c ldso/dynlink.c \

memcpy.S (https://github.com/DamienCHN/U-BOOT-Damien.git) Assembly · 243 lines

1 /*

2 * linux/arch/arm/lib/memcpy.S

3 *

4 * Author: Nicolas Pitre

MS3DModelAnimator.cs (https://github.com/Wiladams/NewTOAPIA.git) C# · 346 lines

26 foreach (MS3DJoint joint in fModel.m_joints)

27 {

28 //memcpy(joint.matLocal, joint.matLocalSkeleton, sizeof(joint.matLocal));

29 //memcpy(joint.matGlobal, joint.matGlobalSkeleton, sizeof(joint.matGlobal));

83 if (joint.parentIndex == -1)

84 {

85 //memcpy(joint.matGlobalSkeleton, joint.matLocalSkeleton, sizeof(joint.matGlobalSkeleton));

86 joint.matLocalSkeleton = joint.matGlobalSkeleton;

87 }

Hook.cpp (https://bitbucket.org/quarkbit/mycodes.git) C++ · 691 lines

89 params.hKey = hKey;

90 memcpy(params.buffer1, lpSubKey, strlen(lpSubKey));

91 //memcpy(params.buffer2, lpClass, 1024);

92 params.result = nRet;

93

133 params.hKey = hKey;

134 memcpy(params.buffer1, lpSubKey, wcslen(lpSubKey)*2);

135 //memcpy(params.buffer2, lpClass, 1024);

136 params.result = nRet;

137

convert.h (https://bitbucket.org/thelearninglabs/uclinux-distro-tll-public.git) C Header · 668 lines

32 #include <directfb.h>

33

34 #include <direct/memcpy.h>

35 #include <direct/util.h>

36

SuperpoweredAudioBuffers.h (https://gitlab.com/kidaa/Low-Latency-Android-Audio-iOS-Audio-Engine.git) C Header · 194 lines

66 @brief This object manages an audio buffer list.

67

68 Instead of circular buffers and too many memmove/memcpy, this object maintains an audio buffer "chain". You can append, insert, truncate, slice, extend, etc. this without the expensive memory operations.

69 Check the SuperpoweredOfflineProcessingExample project on how to use.

70

list.c (https://github.com/gonzoj/motoko.git) C · 242 lines

185 } else {

186 //e = malloc(l->size);

187 //memcpy(e, l->elements + index * l->size, l->size);

188 e = l->elements + index * l->size;

189 }

204

205 //i = malloc(l->size);

206 //memcpy(i, l->elements + index * l->size, l->size);

207

208 //pthread_mutex_unlock(&l->mutex);

CMakeLists.txt (https://github.com/GREO/uhd.git) CMake · 47 lines

31 ${CMAKE_SOURCE_DIR}/lib/i2c.c

32 ${CMAKE_SOURCE_DIR}/lib/mdelay.c

33 ${CMAKE_SOURCE_DIR}/lib/memcpy_wa.c

34 ${CMAKE_SOURCE_DIR}/lib/memset_wa.c

35 ${CMAKE_SOURCE_DIR}/lib/nonstdio.c

Crypto.cs (https://github.com/soywiz/cspspemu.git) C# · 1137 lines

12 ((uint) pt[0] << 24) ^ ((uint) pt[1] << 16) ^ ((uint) pt[2] << 8) ^ pt[3];

13

14 //memcpy(block_buff, src, 16);

15 public static void Memcpy(byte* dst, byte* src, int count) => PointerUtils.Memcpy(dst, src, count);

16 public static void Memcpy(void* dst, void* src, int count) => Memcpy((byte*) dst, (byte*) src, count);

files.mk (https://github.com/ajorgensen/os161.git) Makefile · 446 lines

270 OBJS+=bzero.o

271

272 memcpy.o: ${S}/../lib/libc/memcpy.c

273 ${COMPILE.c} ${S}/../lib/libc/memcpy.c

274 SRCS+=${S}/../lib/libc/memcpy.c

275 OBJS+=memcpy.o

276

PacketBuild.h (https://bitbucket.org/Ryfon/mux.git) C Header · 164 lines

42 //unsigned char byPkgType = T_Msg::byPkgType;

43 //unsigned short wCmd = pPkg->wCmd;

44 //memcpy( &(m_InnerBuf[0]), &wPkgLen, 2 );//包长:wPkgLen;

45 //memcpy( &(m_InnerBuf[2]), &byPkgType, 1 );//包类型:byPkgType;

46 //memcpy( &(m_InnerBuf[3]), &wCmd, 2 );//命令字:wCmd;

47 //memcpy( &(m_InnerBuf[5]), pPkg, sizeof(T_Msg) );//包内容;

cde.c (https://github.com/rortian/CDE.git) C · 145 lines

62 printf("execve %p %d\n", child_filename,

63 ptrace(PTRACE_PEEKUSER, child_pcb->pid, 0, NULL));

64 //memcpy_from_child(child_pcb, filename, child_filename, 255);

65 //open_mode = O_RDONLY;

66 }

mixed_strategy.c (https://github.com/seclab-ucr/INTANG.git) C · 238 lines

101

102 //u_char bytes[20] = {0x13,0x12,0xf9,0x89,0x5c,0xdd,0xa6,0x15,0x12,0x83,0x3e,0x93,0x11,0x22,0x33,0x44,0x55,0x66,0x01,0x01};

103 //memcpy(vars.tcp_opt, bytes, 20);

104 //vars.tcp_opt_len = 20;

105

133

134 //u_char bytes[20] = {0x13,0x12,0xf9,0x89,0x5c,0xdd,0xa6,0x15,0x12,0x83,0x3e,0x93,0x11,0x22,0x33,0x44,0x55,0x66,0x01,0x01};

135 //memcpy(vars.tcp_opt, bytes, 20);

136 //vars.tcp_opt_len = 20;

137

b2CircleContact.as (https://github.com/joelhooks/PushButtonEngine.git) ActionScript · 141 lines

59

60 //b2Manifold m0;

61 //memcpy(&m0, &m_manifold, sizeof(b2Manifold));

62 // TODO: make sure this is completely necessary

63 m0.Set(m_manifold);

CutDomain.java (https://github.com/porkshire/biojava.git) Java · 185 lines

57

58 /* function cut makes a decision where to cut , returns -1 if no cut */

59 //memcpy(&domains[ndom],&dom,sizeof(struct Domain));

60 domains.add(dom);

61 dom.score = val.s_min;

memcpy.S (https://github.com/mstsirkin/linux.git) Assembly · 92 lines

1 /*

2 * linux/arch/m32r/lib/memcpy.S

3 *

4 * Copyright (C) 2001 Hiroyuki Kondo, and Hirokazu Takata

ifunc-impl-list.c (https://gitlab.com/Namal/glibc) C · 376 lines

308

309 #ifdef SHARED

310 /* Support sysdeps/i386/i686/multiarch/memcpy_chk.S. */

311 IFUNC_IMPL (i, name, __memcpy_chk,

312 IFUNC_IMPL_ADD (array, i, __memcpy_chk,

322 __memcpy_chk_ia32))

323

324 /* Support sysdeps/i386/i686/multiarch/memcpy.S. */

325 IFUNC_IMPL (i, name, memcpy,

326 IFUNC_IMPL_ADD (array, i, memcpy, HAS_CPU_FEATURE (SSSE3),

Makefile (https://github.com/mturquette/linux.git) Makefile · 45 lines

27 obj-y += syscalls_64.o vdso/

28

29 subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../entry/thunk_64.o \

30 ../lib/rwsem.o

31

b2CircleContact.as (https://github.com/GunioRobot/box2d2-js.git) ActionScript · 141 lines

59

60 //b2Manifold m0;

61 //memcpy(&m0, &m_manifold, sizeof(b2Manifold));

62 // TODO: make sure this is completely necessary

63 m0.Set(m_manifold);

tcp_recv.c (https://gitlab.com/skype/skypeopensource2) C · 189 lines

92

93 // pass 2 bytes of header

94 //memcpy((char *)&tmplen, recvbuf+checked_pkt_len, 2);

95

96 // some fucking magic

mutex_c.cs (https://github.com/kumaryu/IronLanguages-main.git) C# · 179 lines

61 pFrom = sqlite3NoopMutex();

62 }

63 //memcpy(pTo, pFrom, offsetof(sqlite3_mutex_methods, xMutexAlloc));

64 //memcpy(pTo.xMutexFree, pFrom.xMutexFree,

testmem.cpp (https://github.com/papyrussolution/OpenPapyrus.git) C++ · 396 lines

130 A_memcpy(c, a, 4*pagesize);

131 (*memcpyTab[version])(b+bo, b+ao, len);

132 //memcpy(c+bo, c+ao, len); // Most library versions of memcpy are actually memmove

133 memcpySSE2(c+bo, c+ao, len);

134 if (memcmp(b, c, 4*pagesize)) {

146 A_memcpy(c, a, 4*pagesize);

147 (*memcpyTab[version])(b+bo, b+ao, len);

148 //memcpy(c+bo, c+ao, len); // MS Most library versions of memcpy are actually memmove

149 memcpySSE2(c+bo, c+ao, len);

150 if (memcmp(b, c, 4*pagesize)) {

243 A_memcpy(c, a, 4*pagesize);

244 (*memcpyTab[version])(b+bo, b+ao, len);

245 //memcpy(c+bo, c+ao, len); // Most library versions of memcpy are actually memmove

246 memcpySSE2(c+bo, c+ao, len);

247 if (memcmp(b, c, 4*pagesize)) {

memcpy.S (https://gitlab.com/Namal/glibc) Assembly · 167 lines

165 #endif

166

167 #include "../memcpy.S"

168

mips.mk (https://gitlab.com/generic-library/bionic) Makefile · 46 lines

3 libc_bionic_src_files_mips += \

4 arch-mips/string/memcmp.c \

5 arch-mips/string/memcpy.S \

6 arch-mips/string/memset.S \

7 arch-mips/string/strcmp.S \

Makefile (https://github.com/jthornber/linux-2.6.git) Makefile · 45 lines

27 obj-y += syscalls_64.o vdso/

28

29 subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../lib/thunk_64.o \

30 ../lib/rwsem.o

31

System.h (https://github.com/Vanj-crew/HearthStone-Emu.git) C Header · 122 lines

6 @cite Rob Wyatt http://www.gamasutra.com/features/wyatts_world/19990709/processor_detection_01.htm

7 @cite Benjamin Jurke http://www.flipcode.com/cgi-bin/msg.cgi?showThread=COTD-ProcessorDetectionClass&forum=cotd&id=-1

8 @cite Michael Herf http://www.stereopsis.com/memcpy.html

9

10 @created 2003-01-25

memcpy.c (https://gitlab.com/PedroFalcato/sortix) C · 113 lines

14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

15 *

16 * string/memcpy.c

17 * Copy memory between non-overlapping regions.

18 */

check-headers.sh (https://github.com/kees/linux.git) Shell · 124 lines

108

109 # diff with extra ignore lines

110 check arch/x86/lib/memcpy_64.S '-I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>"'

111 check arch/x86/lib/memset_64.S '-I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>"'

112 check include/uapi/asm-generic/mman.h '-I "^#include <\(uapi/\)*asm-generic/mman-common\(-tools\)*.h>"'

Makefile (https://github.com/Estella/eggdrop-1.7.git) Makefile · 50 lines

42 ../../../src/users.h ../../../src/compat/compat.h \

43 ../../../src/compat/inet_aton.h ../../../src/compat/snprintf.h \

44 ../../../src/compat/memset.h ../../../src/compat/memcpy.h \

45 ../../../src/compat/strcasecmp.h ../../../src/compat/strftime.h \

46 ../../../src/mod/modvals.h ../../../src/botmsg.h ../../../src/dcc.h \

hufftable.c (https://github.com/pshved/cil.git) C · 116 lines

15 {

16 //MEMCOPY((*htblptr)->bits, bits, SIZEOF((*htblptr)->bits));

17 //memcpy(seventeen, bits, sizeof(seventeen));

18

19 // sm: bugfix code

Body_skinned.cpp (http://narutortsproject.googlecode.com/svn/trunk/) C++ · 251 lines

150

151 //Prepare to animation

152 //memcpy(m_mesh->m_vertex.m_point, m_mesh->m_base_vertex.m_point, m_mesh->m_vertex.m_point_count*sizeof(Tpoint3f));

153

154

ilut_states.c (http://mmo-resourse.googlecode.com/svn/) C · 380 lines

317 ilutCurrentPos++;

318

319 //memcpy(&ilutStates[ilutCurrentPos], &ilutStates[ilutCurrentPos - 1], sizeof(ILUT_STATES));

320

321 if (Bits & ILUT_OPENGL_BIT) {

CMakeLists.txt (https://github.com/ggasoftware/indigo.git) CMake · 60 lines

27

28 if (NOT MSVC)

29 add_library(bingo-postgres-shared SHARED ${PG_AM_src} ${PG_AM_headers} ${PG_COMMON_src} ${PG_COMMON_headers} ${PG_CORE_src} ${PG_CORE_headers} ${Common_SOURCE_DIR}/hacks/memcpy.c $<TARGET_OBJECTS:graph> $<TARGET_OBJECTS:layout> $<TARGET_OBJECTS:molecule> $<TARGET_OBJECTS:common> $<TARGET_OBJECTS:reaction>)

30 else()

31 add_library(bingo-postgres-shared SHARED ${PG_AM_src} ${PG_AM_headers} ${PG_COMMON_src} ${PG_COMMON_headers} ${PG_CORE_src} ${PG_CORE_headers} ${POSTGRES_INCLUDE_DIRS}/port/win32.h $<TARGET_OBJECTS:graph> $<TARGET_OBJECTS:layout> $<TARGET_OBJECTS:molecule> $<TARGET_OBJECTS:common> $<TARGET_OBJECTS:reaction>)

cpu_memcpy.S (https://gitlab.com/hussain6001/xvisor) Assembly · 205 lines

22 *

23 * This source code has been largely adapted from Linux source:

24 * linux-xxx/arch/arm64/lib/memcpy.S

25 *

26 * Copyright (C) 2013 ARM Ltd.