This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <iomanip> | |
| #include <vector> | |
| #include <chrono> | |
| template <typename T> | |
| double Test_memset(T val , std::vector<T> &v, size_t iterations) | |
| { | |
| auto start = std::chrono::high_resolution_clock::now(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Example program | |
| #include <iostream> | |
| #include <cassert> | |
| int wordCounter( const char* pszStringBuffer) | |
| { | |
| auto wordCount = 0; | |
| while( *pszStringBuffer ) { | |
| // whitespace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (C) 2009 University of Szeged | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: | |
| * 1. Redistributions of source code must retain the above copyright | |
| * notice, this list of conditions and the following disclaimer. | |
| * 2. Redistributions in binary form must reproduce the above copyright |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| // console output: | |
| //*** | |
| //0 A() | |
| //1 B() | |
| //2 C() | |
| //3 ~C() | |
| //4 ~B() | |
| //5 ~A() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| // console output: | |
| //0 A() | |
| //1 B() | |
| //2 C() | |
| //3 ~C() | |
| //4 ~B() | |
| //5 ~A() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" | |
| XDG_CURRENT_DESKTOP="KDE" | |
| AMDAPPSDKROOT="/home/f/AMDAPPSDK-3.0" | |
| OPENCL_VENDOR_PATH="/home/f/AMDAPPSDK-3.0/etc/OpenCL/vendors/" | |
| OpenCL_INCLUDE_DIR="/home/f/AMDAPPSDK-3.0/include/" | |
| OpenCL_LIBRARY="/home/f/AMDAPPSDK-3.0/" |