make style
This commit is contained in:
1 parent
9686e4712b
commit
5a4584358c
12 files changed
+88
-96
No files matched your search
@@ -94,8 +94,8 @@ static uint64_t expand(uint64_t mask, uint64_t value) {
|
||||
static void bitslice(const uint64_t value, bitslice_t *restrict bitsliced_value) {
|
||||
// set constants
|
||||
bitslice_t bs_zeroes, bs_ones;
|
||||
memset((uint8_t*)&bs_ones, 0xff, VECTOR_SIZE);
|
||||
memset((uint8_t*)&bs_zeroes, 0x00, VECTOR_SIZE);
|
||||
memset((uint8_t *)&bs_ones, 0xff, VECTOR_SIZE);
|
||||
memset((uint8_t *)&bs_zeroes, 0x00, VECTOR_SIZE);
|
||||
|
||||
for (size_t bit_idx = 0; bit_idx < 32; bit_idx++) {
|
||||
const bool bit = get_bit(32 - 1 - bit_idx, value);
|
||||
|
||||
@@ -24,7 +24,7 @@ License: GNU General Public License v3 or any later version (see LICENSE.txt)
|
||||
|
||||
#include "opencl.h"
|
||||
|
||||
bool plat_dev_enabled(unsigned int id, const unsigned int *sel,
|
||||
bool plat_dev_enabled(unsigned int id, const unsigned int *sel,
|
||||
unsigned int cnt, unsigned int cur_type, unsigned int allow_type) {
|
||||
// usefulonly with devices
|
||||
if (allow_type != CL_DEVICE_TYPE_ALL) {
|
||||
@@ -69,10 +69,10 @@ unsigned int get_smallest_profile(compute_platform_ctx_t *cd_ctx, size_t ocl_pla
|
||||
}
|
||||
|
||||
int discoverDevices(unsigned int profile_selected, uint32_t device_types_selected,
|
||||
cl_uint *platform_detected_cnt, size_t *selected_platforms_cnt,
|
||||
size_t *selected_devices_cnt, compute_platform_ctx_t **cd_ctx,
|
||||
unsigned int *plat_sel, unsigned int plat_cnt, unsigned int *dev_sel,
|
||||
unsigned int dev_cnt, bool verbose, bool show) {
|
||||
cl_uint *platform_detected_cnt, size_t *selected_platforms_cnt,
|
||||
size_t *selected_devices_cnt, compute_platform_ctx_t **cd_ctx,
|
||||
unsigned int *plat_sel, unsigned int plat_cnt, unsigned int *dev_sel,
|
||||
unsigned int dev_cnt, bool verbose, bool show) {
|
||||
int err = 0;
|
||||
unsigned int ocl_platform_max = MAX_OPENCL_DEVICES; // 16
|
||||
cl_uint ocl_platform_cnt;
|
||||
|
||||
Reference in new issue
Block a user